@encointer/types
v0.19.2-alpha.0
Published
Encointer type definitions for Polkadot.js
Downloads
471
Readme
@encointer/types
Encointer type definitions for Polkadot.js
Installation
yarn add @encointer/types
Usage
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.