Skip to content

Commit c486135

Browse files
committed
added NearleyToken interface back
1 parent aba4a50 commit c486135

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/generate.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@
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 {";
197+
output += " value: any;\n";
198+
output += " [key: string]: any;\n";
199+
output += "};\n";
200+
output += "\n";
196201
output += "interface NearleyLexer {\n";
197202
output += " reset: (chunk: string, info: any) => void;\n";
198203
output += " next: () => NearleyToken | undefined;\n";

0 commit comments

Comments
 (0)