mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 21:40:21 +00:00
Add delegate for parse (#18222)
* Add delegate for parse * explicit type of node param
This commit is contained in:
Vendored
+2
-2
@@ -13,7 +13,7 @@ declare namespace esprima {
|
||||
|
||||
const version: string;
|
||||
|
||||
function parse(code: string, options?: Options): ESTree.Program;
|
||||
function parse(code: string, options?: Options, delegate?: (node: ESTree.Node, meta: any) => void): ESTree.Program;
|
||||
function tokenize(code: string, options?: Options): Array<Token>;
|
||||
|
||||
interface Token {
|
||||
@@ -101,4 +101,4 @@ declare namespace esprima {
|
||||
YieldExpression: 'YieldExpression'
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user