TypeScript type definitions for Robonomics chain to decorate the @polkadot/api.
npm i robonomics-api-augment --save
⚠️ @polkadot/api
should be installed in your project!
Add to your codebase entry point before any imports from the API itself.
import 'robonomics-api-augment'
- applies Robonomics types and endpoint augmentation
Generate new types.
npm run generate
Build the package.
npm run build