Bump deps, type import on generated (#2075)

* Bump deps, type import on generated

* type imports in types/types

* Re-export defs

* Split imports/exports

* Additional type import

* Remove import type

* Remove dupes
This commit is contained in:
Jaco Greeff
2020-03-21 09:40:59 +01:00
committed by GitHub
parent f45d03fa17
commit 9d67d711d4
24 changed files with 485 additions and 431 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
},
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.8.7",
"@babel/runtime": "^7.9.0",
"@polkadot/metadata": "1.8.0-beta.7",
"@polkadot/util": "^2.6.2",
"@polkadot/util-crypto": "^2.6.2",
+2 -2
View File
@@ -2,10 +2,10 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { isString, u8aToU8a } from '@polkadot/util';
import { AnyU8a, Constructor, Registry } from '../types';
import { isString, u8aToU8a } from '@polkadot/util';
import Raw from './Raw';
// The 520 here is a weird one - it is explicitly for a [u8; 65] as found as a EcdsaSignature
+1
View File
@@ -3,6 +3,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { Codec } from '../types';
import AbstractArray from './AbstractArray';
/**
+1 -2
View File
@@ -6,11 +6,10 @@
import { SignOptions } from '@polkadot/keyring/types';
import { Hash } from '../interfaces/runtime';
import { FunctionMetadataLatest } from '../interfaces/metadata';
import { ArgsDef, Codec } from './codec';
import BN from 'bn.js';
import { ArgsDef, Codec } from './codec';
export interface ICompact<T> extends Codec {
toBn (): BN;
toNumber (): number;
+2 -3
View File
@@ -4,13 +4,12 @@
import { ChainProperties } from '../interfaces/rpc';
import { OverrideModuleType } from '../known/types';
import BN from 'bn.js';
import { CallFunction } from './calls';
import { Codec, Constructor } from './codec';
import { AnyJson } from './helpers';
import BN from 'bn.js';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface InterfaceTypes { }