Skip to content

Interface: ExtensionConfigComponentProps<TConfig>

Makaio Framework


Makaio Framework / contracts / ExtensionConfigComponentProps

Interface: ExtensionConfigComponentProps<TConfig>

Section titled “Interface: ExtensionConfigComponentProps<TConfig>”

Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:128

Props for custom extension configuration components.

When an extension provides ui.configComponent, the loaded component receives these props to interact with the extension configuration system.

TConfig = unknown

Extension configuration type.

config: TConfig

Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:130

Current configuration values.


optional errors?: Record<string, string>

Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:141

Validation errors keyed by field name.


isSaving: boolean

Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:139

Whether a save is currently in progress.


onChange: (config) => void

Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:135

Called when configuration values change.

TConfig

Updated configuration.

void


onSave: () => Promise<void>

Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:137

Called when the user confirms the save action.

Promise<void>