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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user