UNPKG

@antv/expr

Version:

A secure, high-performance expression evaluator for dynamic chart rendering

14 lines (13 loc) 444 B
type ExpressionFunction = (...args: any[]) => any; /** * Register a function to be used in expressions with the @ prefix * @param name - The name of the function to register * @param fn - The function implementation */ export declare function register(name: string, fn: ExpressionFunction): void; /** * Get all the registered functions * @returns */ export declare function getFunctions(): Record<string, ExpressionFunction>; export {};