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:
@@ -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