UnionBuilder
Defined in: builder/union.ts:8
Extends
Section titled “Extends”Properties
Section titled “Properties”
readonlyprn:string
Defined in: builder/union.ts:9
Overrides
Section titled “Overrides”Methods
Section titled “Methods”addEvent()
Section titled “addEvent()”addEvent(
key):EventBuilder
Defined in: builder/union.ts:14
Adds an event that can be published against items of this template type.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”addRelation()
Section titled “addRelation()”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.
Parameters
Section titled “Parameters”string
cardinality
Section titled “cardinality”TemplateBuilder | UnionBuilder
options?
Section titled “options?”Returns
Section titled “Returns”RelationBuilder for more information
addTemplate()
Section titled “addTemplate()”addTemplate(
template):this
Defined in: builder/union.ts:28
Parameters
Section titled “Parameters”template
Section titled “template”TemplateBuilder | TemplateBuilder[]
Returns
Section titled “Returns”this
setDescription()
Section titled “setDescription()”setDescription(
description):this
Defined in: builder/index.ts:33
Parameters
Section titled “Parameters”description
Section titled “description”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”toDefinition()
Section titled “toDefinition()”toDefinition():
UnionDefinition
Defined in: builder/union.ts:30