@wpkernel/core / DefineInteractionOptions
Interface: DefineInteractionOptions<TEntity, TQuery, TStore, TActions>
Options accepted by defineInteraction.
Type Parameters
TEntity
TEntity
TQuery
TQuery
TStore
TStore extends Record<string, unknown>
TActions
TActions extends InteractionActionsRecord
Properties
feature
ts
readonly feature: string;resource
ts
readonly resource: ResourceObject<TEntity, TQuery>;actions?
ts
readonly optional actions: TActions;autoHydrate?
ts
readonly optional autoHydrate: boolean;hydrateServerState()?
ts
readonly optional hydrateServerState: (input) => void;Parameters
input
HydrateServerStateInput<TEntity, TQuery>
Returns
void
namespace?
ts
readonly optional namespace: string;registry?
ts
readonly optional registry: WPKernelRegistry;store?
ts
readonly optional store: TStore;