# Installation
> `npm install --save @types/static-eval`

# Summary
This package contains type definitions for static-eval (https://github.com/substack/static-eval).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/static-eval.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/static-eval/index.d.ts)
````ts
/// <reference types="esprima" />

import * as ESTree from "estree";

/**
 * 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.
 */
declare function evaluate(ast: ESTree.Expression, vars: { [name: string]: any }): any;
export = evaluate;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/esprima](https://npmjs.com/package/@types/esprima), [@types/estree](https://npmjs.com/package/@types/estree)

# Credits
These definitions were written by [Ben Liddicott](https://github.com/benliddicott).
