@latticexyz/abi-ts
TypeScript icon, indicating that this package has built-in type declarations

2.0.12 • Public • Published

abi-ts

Create TypeScript type declaration files (.d.ts) for your ABI JSON files.

This allows you to import your JSON ABI and use it directly with libraries like viem and abitype.

pnpm add @latticexyz/abi-ts
pnpm abi-ts

By default, abi-ts looks for files with the glob **/*.abi.json, but you can customize this glob with the --input argument, e.g.

pnpm abi-ts --input 'abi/IWorld.sol/IWorld.abi.json'

Dependents (4)

Package Sidebar

Install

npm i @latticexyz/abi-ts

Weekly Downloads

1,326

Version

2.0.12

License

MIT

Unpacked Size

8.59 kB

Total Files

11

Last publish

Collaborators

  • holic
  • alvarius
  • l_udens