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 @@ -457,11 +457,11 @@ export class Parser {
457457 return this ;
458458 }
459459
460- skip ( length : number , options ?: ParserOptions ) {
460+ skip ( length : ParserOptions [ 'length' ] , options ?: ParserOptions ) {
461461 return this . seek ( length , options ) ;
462462 }
463463
464- seek ( relOffset : number , options ?: ParserOptions ) {
464+ seek ( relOffset : ParserOptions [ 'length' ] , options ?: ParserOptions ) {
465465 if ( options && options . assert ) {
466466 throw new Error ( 'assert option on seek is not allowed.' ) ;
467467 }
@@ -571,7 +571,7 @@ export class Parser {
571571 return this . setNextParser ( 'choice' , varName as string , options ) ;
572572 }
573573
574- nest ( varName : string | ParserOptions , options : ParserOptions ) {
574+ nest ( varName : string | ParserOptions , options ? : ParserOptions ) {
575575 if ( typeof options !== 'object' && typeof varName === 'object' ) {
576576 options = varName ;
577577 varName = null ;
You can’t perform that action at this time.
0 commit comments