Skip to content

Type Alias: SlotContentDeclaration

Makaio Framework


Makaio Framework / contracts/extension / 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).

  • 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> }
type SlotContentDeclaration = {
type: 'view' | 'widget';
};