MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / DesignComponent

Interface DesignComponent

packages/plugins/src/index.ts:95–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 * Instance node with optional reference to its master component.
94 */
95export 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected