Skip to main content

ValidateExpressionOptions

Defined in: expr/src/utils/validateExpression.ts:14

Inputs validateExpression checks a node against.

Properties

functions?

optional functions?: Record<string, unknown>

Defined in: expr/src/utils/validateExpression.ts:21

Map whose keys define the known functions (a func node referencing a key absent here is flagged "Unknown function"). Rule processors pass their per-format serializer map, so a function lacking that format's serializer is treated as unknown (and its rule omitted from export). When absent, meta supplies the known set.


meta?

optional meta?: ExpressionFunctionMetaRegistry

Defined in: expr/src/utils/validateExpression.ts:26

Function metadata supplying arity for the arity check. When functions is omitted, this map's keys also define the known set (the format-agnostic validator path).


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.