Skip to content

Latest commit

 

History

History

types

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

@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.