mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Adding Ejs and static-eval
This commit is contained in:
8
static-eval/static-eval.d.ts
vendored
8
static-eval/static-eval.d.ts
vendored
@@ -3,8 +3,14 @@
|
||||
// Definitions by: Ben Liddicott <https://github.com/benliddicott/DefinitelyTyped>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../esprima/esprima.d.ts" />
|
||||
|
||||
declare module 'static-eval' {
|
||||
function evaluate(ast, vars: { [name: string]: any });
|
||||
/**
|
||||
* Evaluates the given ESTree.Expression, with the given named variables in place.
|
||||
* @param ast [ESTree.Expression] An esprima expression derived from parse.body[].expression
|
||||
* @param vars Named variables, objects or functions which may be referenced in the expression.
|
||||
*/
|
||||
function evaluate(ast : ESTree.Expression, vars: { [name: string]: any }): any;
|
||||
export =evaluate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user