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

2.2.8 • 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'

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @latticexyz/abi-ts

Weekly Downloads

1,782

Version

2.2.8

License

MIT

Unpacked Size

8.73 kB

Total Files

12

Last publish

Collaborators

  • holic
  • alvarius
  • l_udens