Bump common (#1563)
This commit is contained in:
@@ -27,12 +27,12 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.7.1",
|
||||
"@polkadot/util": "^1.7.0-beta.5",
|
||||
"@polkadot/util-crypto": "^1.7.0-beta.5",
|
||||
"@polkadot/util": "^1.7.0-beta.6",
|
||||
"@polkadot/util-crypto": "^1.7.0-beta.6",
|
||||
"@types/memoizee": "^0.4.3",
|
||||
"memoizee": "^0.4.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.7.0-beta.5"
|
||||
"@polkadot/keyring": "^1.7.0-beta.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,13 +25,13 @@ import { getTypeRegistry } from './registry';
|
||||
function getSubDefArray (value: TypeDef): TypeDef[] {
|
||||
assert(value.sub && Array.isArray(value.sub), `Expected subtype as TypeDef[] in ${JSON.stringify(value)}`);
|
||||
|
||||
return value.sub as TypeDef[];
|
||||
return value.sub;
|
||||
}
|
||||
|
||||
function getSubDef (value: TypeDef): TypeDef {
|
||||
assert(value.sub && !Array.isArray(value.sub), `Expected subtype as TypeDef in ${JSON.stringify(value)}`);
|
||||
|
||||
return value.sub as TypeDef;
|
||||
return value.sub;
|
||||
}
|
||||
|
||||
function getSubType (value: TypeDef): InterfaceTypes {
|
||||
|
||||
Reference in New Issue
Block a user