Type Alias: SlotContentDeclaration
Makaio Framework / contracts/extension / SlotContentDeclaration
Type Alias: SlotContentDeclaration
Section titled “Type Alias: SlotContentDeclaration”SlotContentDeclaration = {
props?:Record<string,unknown>;type:"view";viewId:string; } | {config?:Record<string,unknown>;type:"widget";widgetId:string; }
Defined in: ../../../packages/contracts/src/extension/contributions/page-types.ts:58
Content reference for a slot placement (view or widget).
Type Composition
Section titled “Type Composition”SlotContentDeclaration| { type: 'view'; viewId: string; props?: Record<string, unknown> } | { type: 'widget'; widgetId: string; config?: Record<string, unknown> }{ type: 'view'; viewId: string; props?: Record<string, unknown> }{ type: 'widget'; widgetId: string; config?: Record<string, unknown> }
Resolved Shape
Section titled “Resolved Shape”type SlotContentDeclaration = { type: 'view' | 'widget';};