From 17c2adfc0c911acc4b04ee08981b30a722b96cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Fai=C3=A7al=20Rechdan?= Date: Sun, 4 Jul 2021 09:57:47 -0300 Subject: [PATCH] Update binary_parser.ts Fix wrong types --- lib/binary_parser.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/binary_parser.ts b/lib/binary_parser.ts index 5bfef472..e9809a11 100644 --- a/lib/binary_parser.ts +++ b/lib/binary_parser.ts @@ -16,9 +16,9 @@ interface ParserOptions { choices?: { [key: number]: string | Parser }; defaultChoice?: string | Parser; zeroTerminated?: boolean; - clone?: null; - stripNull?: null; - key?: null; + clone?: boolean; + stripNull?: boolean; + key?: string; tag?: string; offset?: number | string | ((item: any) => number); wrapper?: (buffer: Buffer) => Buffer;