We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba4a50 commit c486135Copy full SHA for c486135
lib/generate.js
@@ -193,6 +193,11 @@
193
output += parser.customTokens.map(function (token) { return "declare var " + token + ": any;\n" }).join("")
194
output += parser.body.join('\n');
195
output += "\n";
196
+ output += "interface NearleyToken {";
197
+ output += " value: any;\n";
198
+ output += " [key: string]: any;\n";
199
+ output += "};\n";
200
+ output += "\n";
201
output += "interface NearleyLexer {\n";
202
output += " reset: (chunk: string, info: any) => void;\n";
203
output += " next: () => NearleyToken | undefined;\n";
0 commit comments