Base flow definitions for the base Polkadot types as defined in the specification. It is useful for implementations, applications and libraries, where type-checking of the JavaScript base types is of importance.
Installation -
npm install --save @polkadot/primitives
Usage -
// @flow
import type { AccountId, Balance } from '@polkadot/primitives/base';
function getBalance (accountId: AccountId): Balance {
...
}
Version | Tag | Published |
---|---|---|
0.30.3 | latest | 4yrs ago |