@antv/expr
Version:
A secure, high-performance expression evaluator for dynamic chart rendering
8 lines (7 loc) • 308 B
TypeScript
import { type Context } from "./interpreter";
/**
* Compile an expression into a reusable function
* @param expression - The expression to compile
* @returns A function that evaluates the expression with a given context
*/
export declare function compile(expression: string): (context?: Context) => any;