Skip to content

Commit

Permalink
refactor(bitstream): address TS strictNullChecks flag
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 7, 2019
1 parent 525ad0d commit ba7d31e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/bitstream/src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const U32 = Math.pow(2, 32);
export class BitInputStream {
buffer: Uint8Array;
protected start: number;
protected pos: number;
protected limit: number;
protected bit: number;
protected bitPos: number;
protected pos!: number;
protected bitPos!: number;
protected bit!: number;

constructor(buffer: Uint8Array, offset = 0, limit = buffer.length << 3) {
this.buffer = buffer;
Expand Down
6 changes: 3 additions & 3 deletions packages/bitstream/src/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const U32 = Math.pow(2, 32);
export class BitOutputStream {
buffer: Uint8Array;
protected start: number;
protected pos: number;
protected bit: number;
protected bitPos: number;
protected pos!: number;
protected bit!: number;
protected bitPos!: number;

constructor(buffer?: number | Uint8Array, offset = 0) {
this.buffer =
Expand Down

0 comments on commit ba7d31e

Please sign in to comment.