Skip to content

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

PropertyTypeDescriptionDefined in
members?string[]Explicit member type names, when the extractor pre-populates them.types.ts:177
namestringUnion type name as declared in the Langium grammar (e.g. "Statement").types.ts:170
type?unknownRaw 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

Released under the MIT License.