Cleanup imports from @polkadot/util (#315)

* Cleanup imports from @polkadot/util

* Example imports

* Alphabetic imports
This commit is contained in:
Jaco Greeff
2018-10-18 13:30:04 +02:00
committed by GitHub
parent 8b7b76ead8
commit 55ac4626d5
22 changed files with 29 additions and 46 deletions
+1 -2
View File
@@ -14,8 +14,7 @@ import storageStatic from '@polkadot/storage/static';
import { Vector } from '@polkadot/types/codec';
import { Hash, Method } from '@polkadot/types/index';
import { StorageFunction } from '@polkadot/types/StorageKey';
import assert from '@polkadot/util/assert';
import isUndefined from '@polkadot/util/is/undefined';
import { assert, isUndefined } from '@polkadot/util';
type MapFn<R, T> = (combined: R) => T;
+1 -2
View File
@@ -10,8 +10,7 @@ import { switchMap, defaultIfEmpty, map } from 'rxjs/operators';
import { decodeAddress } from '@polkadot/keyring';
import { AccountId, AccountIndex, Balance, bool as Bool, BlockNumber, Moment, ReferendumIndex } from '@polkadot/types/index';
import { ENUMSET_SIZE } from '@polkadot/types/AccountIndex';
import assert from '@polkadot/util/assert';
import isString from '@polkadot/util/is/string';
import { assert, isString } from '@polkadot/util';
import ApiCalls from './Calls';
import { RxProposal, RxReferendum } from './classes';