Skip to content
Shapemetry

Model - Expressions

API reference for src/validate/expressions on @huukhanhnguyen/model, reachable from ..

See the Guide for the ModelJSON / evaluate pipeline.

API reference

Signatures are generated from the live package .d.ts - not hand-written.

EXPR_MAX_AST_DEPTH

const

const EXPR_MAX_AST_DEPTH = 100

validateExpressions

function

Syntax-check every expression with the ENGINE's parser (jsep + the ternary/object/arrow plugins — the exact grammar eval uses), so a typo fails here instead of silently rendering an empty node at eval time.

validateExpressions(model: ModelJSON): ExpressionError[]
Last updated: 📖 1 min readEdit on GitHub