mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Add delegate for parse (#18222)
* Add delegate for parse * explicit type of node param
This commit is contained in:
4
types/esprima/index.d.ts
vendored
4
types/esprima/index.d.ts
vendored
@@ -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