CRUDUI

Home > @polyspec/crudui-generator-core > ConditionNode

ConditionNode type

One node of the editor: a group, a field comparison or a judged text.

Signature:

export type ConditionNode = {
    kind: 'group';
    path: string;
    mode: 'all' | 'any';
    items: ConditionNode[];
} | {
    kind: 'comparison';
    path: string;
    field: string;
    op: string;
    value: string;
} | {
    kind: 'judge';
    path: string;
    text: string;
};

References: ConditionNode