Skip to content

Type Alias: PatternDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Functions / PatternDto

Type Alias: PatternDto

PatternDto = { name: string; type: "Variable"; } | { type: "Integer"; value: number; } | { type: "Real"; value: number; } | { type: "String"; value: string; } | { type: "Boolean"; value: boolean; } | { type: "Wildcard"; }

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

Pattern for function clause parameter matching.

Remarks

Tagged union discriminated by type. Variable binds a name, literal patterns match exact values, Wildcard matches anything.