Remove circular imports from types (#492)

* Remove circular imports from types

- These are creating issues on RN and is not correct
- Uint is equivalent to BN (extends it), so remove it.
- Don't import all classes (it imports types itself) - CodecTypes can be exposed elsewhere if needed

* Cleanup linting & imports

* Cleanup compact decoding
This commit is contained in:
Jaco Greeff
2018-12-19 09:29:53 +01:00
committed by GitHub
parent f690808a04
commit 5b978246a7
6 changed files with 18 additions and 20 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { CodecTypes } from '@polkadot/types/types';
import { CodecTypes } from '@polkadot/types/classes';
import { RpcParam } from '../types';
type RpcParamOptions = {
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { CodecTypes } from '@polkadot/types/types';
import { CodecTypes } from '@polkadot/types/classes';
export type RpcParam = {
isOptional: boolean,