| 93 | * Instance node with optional reference to its master component. |
| 94 | */ |
| 95 | export interface DesignComponent< |
| 96 | T extends object = Record<string, ComponentPropertyValue> |
| 97 | > extends ContainerNodeBase { |
| 98 | /** Identifies the node as a component instance. */ |
| 99 | type: 'INSTANCE' |
| 100 | |
| 101 | /** Component property map keyed by property name. */ |
| 102 | properties: T |
| 103 | |
| 104 | /** Reference to the main component definition, if linked. */ |
| 105 | mainComponent?: { |
| 106 | /** ID of the main component this instance is linked to. */ |
| 107 | id: string |
| 108 | |
| 109 | /** Name of the main component this instance is linked to. */ |
| 110 | name: string |
| 111 | } | null |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Convenience alias for any node that can contain children. |
nothing calls this directly
no outgoing calls
no test coverage detected