add missing await
Some checks failed
Actions / Build and Push Documentation (push) Has been cancelled
Some checks failed
Actions / Build and Push Documentation (push) Has been cancelled
This commit is contained in:
parent
8bbc062e0c
commit
067fd34519
1 changed files with 2 additions and 3 deletions
|
@ -14,7 +14,7 @@ See the [documentation](./docs) for more information.
|
|||
|
||||
```ts
|
||||
> import { parsePackwiz } from "packwizjs";
|
||||
> const packwizFile = parsePackwiz("./packwiz/pack.toml")
|
||||
> const packwizFile = await parsePackwiz("./packwiz/pack.toml")
|
||||
Packwiz {
|
||||
location: Resource { path: './packwiz/pack.toml' },
|
||||
index: { // The index file is automatically parsed alongside the pack.toml file
|
||||
|
@ -42,7 +42,7 @@ Packwiz {
|
|||
liteloader: undefined
|
||||
}
|
||||
}
|
||||
> packwizFile.index.files[2].parse()
|
||||
> await packwizFile.index.files[2].parse()
|
||||
{
|
||||
name: 'Fabric API',
|
||||
filename: 'fabric-api-0.115.1+1.21.4.jar',
|
||||
|
@ -61,4 +61,3 @@ Packwiz {
|
|||
description: undefined
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue