Home > @polyspec/crudui-validator > ConditionMap
ConditionMap type
Declaration-ordered condition map (expressions.md §8). Each key is an Expression (§2 grammar); keys are evaluated top-to-bottom and the value of the first truthy key is returned. If none match, the value of the true key (the always-true default) is used; if absent, null. The default key is always literal true — convention symbols such as _ are forbidden (R4).
The condition map is a thin wrapper that calls the engine repeatedly; it is not a separate parser.
Signature:
export type ConditionMap<V = unknown> = {
true?: V;
[expression: string]: V | undefined;
};