0.2.34 • Published 1 year ago

@types/static-eval v0.2.34

Weekly downloads
6,304
License
MIT
Repository
github
Last release
1 year ago

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

// Type definitions for static-eval v0.2.4
// Project: https://github.com/substack/static-eval
// Definitions by: Ben Liddicott <https://github.com/benliddicott>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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

Credits

These definitions were written by Ben Liddicott.

0.2.34

1 year ago

0.2.33

1 year ago

0.2.32

1 year ago

0.2.31

3 years ago

0.2.30

8 years ago

0.2.29

8 years ago

0.2.28

8 years ago

0.2.27

8 years ago

0.2.26-alpha

8 years ago

0.2.25-alpha

8 years ago

0.2.24-alpha

8 years ago

0.2.23-alpha

8 years ago

0.2.22-alpha

8 years ago

0.2.21-alpha

9 years ago

0.2.20-alpha

9 years ago

0.2.15-alpha

9 years ago

0.2.14-alpha

9 years ago