@encointer/types
v0.20.1
Published
Encointer type definitions for Polkadot.js
Readme
@encointer/types
Encointer type definitions for Polkadot.js
Installation
yarn add @encointer/typesUsage
import types from '@encointer/types';Usage with TypeScript
TODO
Update types
To update the types, a new definition is added to the types map.
export default {
rpc: {},
types: {
NewType: '<NewTypeDef>',
}
};A subsequent yarn generate:types updates the types.
To update the polkadot types, upgrade the @polkadot/types package and generate the types again.
The type generation process is elaborated on in the polkadot.{js} docs.
