Skip to content

rune-langium / visual-editor/src / TypeRefPayload

Interface: TypeRefPayload ​

Defined in: packages/visual-editor/src/types/structure-view.ts:45

Drag payload emitted by NamespaceExplorer items and consumed by drop targets.

Field semantics:

  • typeId — canonical node id in ns.Name format (e.g. cdm.trade.Trade). Used by setInheritance and other operations that reference nodes by their fully-qualified id.
  • typeName — bare display/AST name (e.g. Trade) used in $refText writes, e.g. updateAttributeType. This is what the grammar stores as the unqualified cross-reference text.

Drag sources MUST set both fields.

Properties ​

PropertyModifierTypeDescriptionDefined in
kindreadonly| "Data" | "Choice" | "Annotation" | "Enum" | "BasicType" | "Record" | "TypeAlias" | "Func"-packages/visual-editor/src/types/structure-view.ts:52
namespaceUrireadonlystring-packages/visual-editor/src/types/structure-view.ts:47
runereadonly"type-ref"-packages/visual-editor/src/types/structure-view.ts:46
typeIdreadonlystringCanonical node id in ns.Name format. Used by setInheritance.packages/visual-editor/src/types/structure-view.ts:49
typeNamereadonlystringBare AST/display name used in $refText writes. Used by updateAttributeType.packages/visual-editor/src/types/structure-view.ts:51

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.