Files
api/packages/type-primitives
Jaco Greeff c3065263fc API docs -> WS (#141)
* API docs -> WS

* API docs update

* HttpProvider -> WsProvider

* sub<something> -> subscribing

* Update dependencies

* Test message checks update
2018-08-28 14:51:16 +02:00
..
2018-08-11 11:14:20 +02:00
2018-08-28 14:51:16 +02:00

polkadotjs isc style npm travis maintainability coverage dependency devDependency

@polkadot/primitives

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.

Usage

Installation -

npm install --save @polkadot/primitives

Usage -

// @flow

import type { AccountId, Balance } from '@polkadot/primitives/base';

function getBalance (accountId: AccountId): Balance {
 ...
}