diff --git a/types/nearley/index.d.ts b/types/nearley/index.d.ts index 6bda98332c..b8d9b33b1a 100644 --- a/types/nearley/index.d.ts +++ b/types/nearley/index.d.ts @@ -83,7 +83,7 @@ export interface ParserRule { postprocess?: Postprocessor; } -export type Postprocessor = (data: any[], reference: number, wantedBy: {}) => void; +export type Postprocessor = (data: any[], reference?: number, wantedBy?: {}) => void; export interface Lexer { /**