Skip to content

Type Alias: FunctionGuardDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Functions / FunctionGuardDto

Type Alias: FunctionGuardDto

FunctionGuardDto = { type: "GreaterThan"; value: FunctionValueDto; var: string; } | { type: "LessThan"; value: FunctionValueDto; var: string; } | { type: "Equal"; value: FunctionValueDto; var: string; } | { guards: FunctionGuardDto[]; type: "And"; } | { guards: FunctionGuardDto[]; type: "Or"; }

Defined in: src/types/functions.ts:54

Guard condition on a function clause.

Remarks

Tagged union discriminated by type. Comparison guards (GreaterThan, LessThan, Equal) compare a named variable to a literal value. And and Or compose guards logically.