Type Alias: MakaioWebUiComponentProps<TLoaderData, TActions>
Makaio Framework / contracts / MakaioWebUiComponentProps
Type Alias: MakaioWebUiComponentProps<TLoaderData, TActions>
Section titled “Type Alias: MakaioWebUiComponentProps<TLoaderData, TActions>”MakaioWebUiComponentProps<
TLoaderData,TActions> =object
Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:81
Props passed to a WebUI component.
Provides type-safe access to loader data, Promise-based action executors, and the LoaderContext that was active when the loader ran.
Type Parameters
Section titled “Type Parameters”TLoaderData
Section titled “TLoaderData”TLoaderData = unknown
Type of data returned by the loader.
TActions
Section titled “TActions”TActions extends MakaioWebUiActions = MakaioWebUiActions
Record of available actions.
Properties
Section titled “Properties”actions
Section titled “actions”actions:
TActionsextendsMakaioWebUiActions?PromisifiedActions<TActions> :Record<string,never>
Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:88
Promisified action executors for mutating server-side state.
loaderContext
Section titled “loaderContext”loaderContext:
LoaderContext
Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:90
The loader context that was active when the loader ran.
loaderData
Section titled “loaderData”loaderData:
TLoaderData
Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:86
Data resolved by the loader before the component was rendered.
Type Composition
Section titled “Type Composition”MakaioWebUiComponentProps{ /** Data resolved by the loader before the component was rendered. */ loaderData: TLoaderData; /** Promisified action executors for mutating server-side state. */ actions: TActions extends MakaioWebUiActions ? PromisifiedActions<TActions> : Record<string, never>; /** The loader context that was active when the loader ran. */ loaderContext: LoaderContext; }
Resolved Shape
Section titled “Resolved Shape”type MakaioWebUiComponentProps = { loaderData: TLoaderData; actions: TActions extends MakaioWebUiActions ? PromisifiedActions<TActions> : Record<string, never>; loaderContext: LoaderContext;};