Use assertReturn to cleanup (#2804)

* Use assertReturn to cleanup

* Remove Uint/Int duplication

* Adjust

* ws errors, part 2

* .

* Adj. manual

* adj

* switchMap

* Revert "switchMap"

This reverts commit edfa4a2258f09042b61a27fd3812f0c53039fe4f.

* Revert.

* Revert.

* protected constructor

* Correct isHexJson flag

* Remove isHexJson (always detect)

* Adjust

* Flags
This commit is contained in:
Jaco Greeff
2020-10-29 17:17:22 +01:00
committed by GitHub
parent 9bb1343255
commit 1f6c8c2eb8
25 changed files with 322 additions and 350 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
"@polkadot/metadata": "^2.4.2-12",
"@polkadot/rpc-provider": "^2.4.2-12",
"@polkadot/types": "^2.4.2-12",
"@polkadot/util": "^3.6.2-8",
"@polkadot/util": "^3.6.2-10",
"handlebars": "^4.7.6",
"websocket": "^1.0.32",
"yargs": "^16.1.0"
+1 -1
View File
@@ -122,7 +122,7 @@ function tsSet (definitions: Record<string, ModuleTypes>, { name: setName, sub }
setImports(definitions, imports, ['Set']);
const types = (sub as TypeDef[]).map(({ name }): string => {
assert(!!name, 'Invalid TypeDef found, no name specified');
assert(name, 'Invalid TypeDef found, no name specified');
return createGetter(definitions, `is${name}`, 'boolean', imports);
});