@polkadot/primitives

0.30.3 • Public • Published

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 {
 ...
}

/@polkadot/primitives/

    Package Sidebar

    Install

    npm i @polkadot/primitives

    Weekly Downloads

    229

    Version

    0.30.3

    License

    ISC

    Unpacked Size

    122 kB

    Total Files

    223

    Last publish

    Collaborators

    • polkadotjs
    • jacogr