From cc41c14a0056d644ecb11eeb148d67ef1004cc7b Mon Sep 17 00:00:00 2001 From: Wessel van der Linden Date: Fri, 20 Dec 2019 07:22:20 +0100 Subject: [PATCH] Update Postprocessor definition (#41132) --- types/nearley/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { /**