Bump deps, update with stricter TS checks from dev (#415)
* Bump deps, update with stricter TS checks from dev * Add pretty to tsc
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.1.5",
|
||||
"@polkadot/keyring": "^0.33.1",
|
||||
"@polkadot/util": "^0.33.1"
|
||||
"@polkadot/keyring": "^0.33.2",
|
||||
"@polkadot/util": "^0.33.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ export default class Compact extends Base<UInt | Moment> implements Codec {
|
||||
static encodeU8a = compactToU8a;
|
||||
|
||||
static stripLengthPrefix (u8a: Uint8Array, bitLength: UIntBitLength = DEFAULT_BITLENGTH): Uint8Array {
|
||||
const [_, value] = compactStripLength(u8a, bitLength);
|
||||
const [, value] = compactStripLength(u8a, bitLength);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -36,8 +36,7 @@ function generateSectionLinks (sectionName: string, metadata: Metadata) {
|
||||
).join('');
|
||||
|
||||
default:
|
||||
console.error('Unknown section name provided to generate anchors');
|
||||
break;
|
||||
throw new Error('Unknown section name provided to generate anchors');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user