Skip to content

Commit 17c2adf

Browse files
authored
Update binary_parser.ts
Fix wrong types
1 parent ea55fab commit 17c2adf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/binary_parser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ interface ParserOptions {
1616
choices?: { [key: number]: string | Parser };
1717
defaultChoice?: string | Parser;
1818
zeroTerminated?: boolean;
19-
clone?: null;
20-
stripNull?: null;
21-
key?: null;
19+
clone?: boolean;
20+
stripNull?: boolean;
21+
key?: string;
2222
tag?: string;
2323
offset?: number | string | ((item: any) => number);
2424
wrapper?: (buffer: Buffer) => Buffer;

0 commit comments

Comments
 (0)