Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 685 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 685 Bytes

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