Skip to content

Commit

Permalink
chore: updating typegen README (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 authored Dec 19, 2023
1 parent 1690004 commit 137ed8a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .changeset/good-timers-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
15 changes: 8 additions & 7 deletions apps/docs/src/guide/abi-typegen/generating-types-from-abi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ $ pnpm fuels typegen -h

Usage: fuels typegen [options]

generate typescript from contract abi json files
Generate Typescript from Sway ABI JSON files

Options:
-i, --inputs <path|glob... input paths/globals to your ABI JSON files
-o, --output <dir> directory path for generated files
-c, --contract generate code for contracts [default]
-s, --script generate code for scripts
--silent omit output messages
-h, --help display help for command
-i, --inputs <path|glob...> Input paths/globals to your ABI JSON files
-o, --output <dir> Directory path for generated files
-c, --contract Generate types for Contracts [default]
-s, --script Generate types for Scripts
-p, --predicate Generate types for Predicates
-S, --silent Omit output messages
-h, --help Display help
```

## Generating Types for Contracts
Expand Down
19 changes: 11 additions & 8 deletions packages/abi-typegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,26 @@ See [Fuels-ts Documentation](https://fuellabs.github.io/fuels-ts/guide/abi-typeg
```sh
pnpm add @fuel-ts/abi-typegen
# or
nppnpmm add @fuel-ts/abi-typegen
npm add @fuel-ts/abi-typegen
```

## Help

```console
$ fuels-typegen -h
Usage: fuels-typegen [options]

generate typescript from contract abi json files
Generate Typescript from Sway ABI JSON files

Usage: fuels-typegen [options]

Options:
-i, --inputs <path|glob...> input paths/globals to your ABI JSON files
-o, --output <dir> directory path for generated files
-c, --contract generate types for contracts [default]
-s, --script generate types for scripts
--silent omit output messages
-V, --version output the version number
-i, --inputs <path|glob...> Input paths/globals to your ABI JSON files
-o, --output <dir> Directory path for generated files
-c, --contract Generate types for Contracts [default]
-s, --script Generate types for Scripts
-p, --predicate Generate types for Predicates
-S, --silent Omit output messages
-h, --help display help for command
```

Expand Down

0 comments on commit 137ed8a

Please sign in to comment.