File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -758,7 +758,7 @@ export class Parser<O = {}> {
758758
759759 string < N extends string , F = string > (
760760 varName : N ,
761- options : ParserOptions < O , string , F >
761+ options : ParserOptions < O , string , F > = { }
762762 ) : Next < O , N , F > {
763763 if ( ! options . zeroTerminated && ! options . length && ! options . greedy ) {
764764 throw new Error (
@@ -785,7 +785,7 @@ export class Parser<O = {}> {
785785
786786 buffer < N extends string , F = Buffer > (
787787 varName : N ,
788- options : ParserOptions < O , Buffer , F >
788+ options : ParserOptions < O , Buffer , F > = { }
789789 ) : Next < O , N , F > {
790790 if ( ! options . length && ! options . readUntil ) {
791791 throw new Error ( "length or readUntil must be defined for buffer." ) ;
@@ -944,7 +944,7 @@ export class Parser<O = {}> {
944944
945945 pointer < N extends string , T , F = T > (
946946 varName : N ,
947- options : ParserOptions < O , T , F >
947+ options : ParserOptions < O , T , F > = { }
948948 ) : Next < O , N , F > {
949949 if ( ! options . offset ) {
950950 throw new Error ( "offset is required for pointer." ) ;
You can’t perform that action at this time.
0 commit comments