@wpkernel/core / ActionEnvelope
Type Alias: ActionEnvelope<TArgs, TResult>
ts
type ActionEnvelope<TArgs, TResult> = object;Shape of the action envelope dispatched through Redux middleware.
Action envelopes wrap WPKernel actions in a Redux-compatible format, carrying:
- The action function itself (
payload.action) - The arguments to invoke it with (
payload.args) - Optional metadata for middleware coordination (
meta) - A marker flag for runtime type checking (
__kernelAction)
Type Parameters
TArgs
TArgs
Input type for the action
TResult
TResult
Return type from the action
Properties
__kernelAction
ts
__kernelAction: true;payload
ts
payload: object;action
ts
action: DefinedAction<TArgs, TResult>;args
ts
args: TArgs;type
ts
type: typeof EXECUTE_ACTION_TYPE;meta?
ts
optional meta: Record<string, unknown>;