UNPKG

@ndbx/runtime

Version:

The `@ndbx/runtime` package provides a runtime environment to embed NodeBox visualizations directly into React applications. NodeBox is a powerful tool for creating interactive and generative visualizations, and this runtime allows you to integrate those

6 lines (5 loc) 262 B
export type Expression = { fn: (context: Record<string, any>) => unknown; }; export declare function parseExpression(s: string): Expression; export declare function evaluateExpression(expression: Expression | string, context?: Record<string, any>): unknown;