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:
Jaco Greeff
2018-11-27 14:44:51 +01:00
committed by GitHub
parent 05bf1d3d8d
commit 5e5f8b8dab
10 changed files with 34 additions and 35 deletions
+1 -1
View File
@@ -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;
}
+1 -2
View File
@@ -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');
}
}