langium-zod / UnionTypeLike
Interface: UnionTypeLike
Defined in: types.ts:168
Duck-typed representation of a Langium UnionType (including datatype rules that alias primitives or terminal regex patterns). The type field holds the raw Langium type-model node and is inspected structurally by the extractor to classify the union as a keyword-enum, regex-enum, discriminated-union, or primitive alias.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
members? | string[] | Explicit member type names, when the extractor pre-populates them. | types.ts:177 |
name | string | Union type name as declared in the Langium grammar (e.g. "Statement"). | types.ts:170 |
type? | unknown | Raw Langium type-model node; inspected structurally by the extractor to classify the union as a keyword-enum, regex-enum, discriminated-union, or primitive alias. | types.ts:175 |