Skip to content

UnionBuilder

Defined in: builder/union.ts:8

readonly prn: string

Defined in: builder/union.ts:9

BaseBuilder.prn

addEvent(key): EventBuilder

Defined in: builder/union.ts:14

Adds an event that can be published against items of this template type.

string

EventBuilder


addRelation(key, cardinality, to, options?): RelationBuilder

Defined in: builder/union.ts:21

Creates a Relation of the specified cardinality from members of this union to the other supplied template or union.

string

RelationCardinality

TemplateBuilder | UnionBuilder

RelationOptions

RelationBuilder

RelationBuilder for more information


addTemplate(template): this

Defined in: builder/union.ts:28

TemplateBuilder | TemplateBuilder[]

this


setDescription(description): this

Defined in: builder/index.ts:33

string

this

BaseBuilder.setDescription


toDefinition(): UnionDefinition

Defined in: builder/union.ts:30

UnionDefinition