File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 193193 output += parser . customTokens . map ( function ( token ) { return "declare var " + token + ": any;\n" } ) . join ( "" )
194194 output += parser . body . join ( '\n' ) ;
195195 output += "\n" ;
196- output += "interface NearleyToken {\n" ;
197- output += " value: any;\n" ;
198- output += " [key: string]: any;\n" ;
199- output += "};\n" ;
200- output += "\n" ;
201196 output += "interface NearleyLexer {\n" ;
202197 output += " reset: (chunk: string, info: any) => void;\n" ;
203198 output += " next: () => NearleyToken | undefined;\n" ;
204199 output += " save: () => any;\n" ;
205- output += " formatError: (token: NearleyToken ) => string;\n" ;
200+ output += " formatError: (token: never ) => string;\n" ;
206201 output += " has: (tokenType: string) => boolean;\n" ;
207202 output += "};\n" ;
208203 output += "\n" ;
You can’t perform that action at this time.
0 commit comments