Needlessly Promiscuous, Modularize!

    @types/static-eval
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.31 • Public • Published

    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.

    Keywords

    none

    Install

    npm i @types/static-eval

    DownloadsWeekly Downloads

    11,559

    Version

    0.2.31

    License

    MIT

    Unpacked Size

    4.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • types