Cleanup imports from @polkadot/util (#315)
* Cleanup imports from @polkadot/util * Example imports * Alphabetic imports
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
|
||||
import isFunction from '@polkadot/util/is/function';
|
||||
import { isFunction } from '@polkadot/util';
|
||||
|
||||
jest.mock('@polkadot/rpc-provider/ws', () => class {
|
||||
isConnected = () => true;
|
||||
|
||||
@@ -9,8 +9,7 @@ import { RpcRxInterface, RpcRxInterface$Events, RpcRxInterface$Section } from '.
|
||||
import EventEmitter from 'eventemitter3';
|
||||
import { BehaviorSubject, ReplaySubject, Observable, Subscriber, from } from 'rxjs';
|
||||
import Rpc from '@polkadot/rpc-core/index';
|
||||
import isFunction from '@polkadot/util/is/function';
|
||||
import isUndefined from '@polkadot/util/is/undefined';
|
||||
import { isFunction, isUndefined } from '@polkadot/util';
|
||||
|
||||
type CachedMap = {
|
||||
[index: string]: {
|
||||
|
||||
Reference in New Issue
Block a user