Skip to content

UnionDefinition

Describes a Union: a named group of Templates that Relations, outputs and Events can target together.

readonly events: Record<string, EventDefinition>

Events declared on the Union, keyed by Event key; the Runtime exposes them on every member Template.


readonly fromRelations: Record<string, RelationDefinition>

Relations declared on this Union, keyed by Relation key.


readonly key: string

Key of the Union, unique within its App.


readonly prn: string

PRN of the Union, prn::<app>:union/<key>.


readonly templatePrns: string[]

PRNs of the member Templates, without duplicates.


readonly toRelations: Record<string, RelationDefinition>

Relations that target this Union, keyed by their toKey; the Runtime fills it when it indexes the Definition.