# @types/static-eval

> TypeScript definitions for static-eval

Latest version **0.2.34** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/static-eval
pnpm add @types/static-eval
yarn add @types/static-eval
bun add @types/static-eval
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.34 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/static-eval
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/static-eval
- npm.io page: https://npm.io/package/@types/static-eval

## Dependencies (2)

- [@types/estree](https://npm.io/package/@types/estree.md) *
- [@types/esprima](https://npm.io/package/@types/esprima.md) *

## Recent versions

- 0.2.34 (latest) — 2023-11-07
- 0.2.31 (ts3.6) — 2021-07-08
- 0.2.30 (ts2.0) — 2016-09-19
- 0.2.33 — 2023-10-18
- 0.2.32 — 2023-09-25
- 0.2.29 — 2016-08-25
- 0.2.28 — 2016-08-08
- 0.2.27 — 2016-07-14
- 0.2.26-alpha — 2016-07-08
- 0.2.25-alpha — 2016-07-04
- 0.2.24-alpha — 2016-07-02
- 0.2.23-alpha — 2016-07-02
- 0.2.22-alpha — 2016-07-01
- 0.2.21-alpha — 2016-05-25
- 0.2.20-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/static-eval/versions

## README

# 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).

---
_Source: https://npm.io/package/@types/static-eval · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
