Interface: MiddlewareConfig<TState, TDependencies>
Defined in: starter.ts:13
Type Parameters
TState
TState
= any
The overall type of your application's state.
TDependencies
TDependencies
extends Record
<string
, any
> = Record
<string
, any
>
The type of the object containing application dependencies.
Configuration object for the middleware pipeline. This object provides the necessary context and utilities to each middleware function. It's the config
parameter received by middleware functions like exclusive
and concurrent
.
Properties
dispatch()
dispatch: (
action
) =>Promise
<void
>
Defined in: starter.ts:14
Parameters
action
AsyncAction
<any
, Record
<string
, any
>> | Action
<any
>
Returns
Promise
<void
>
getState()
getState: () =>
TState
Defined in: starter.ts:15
Returns
TState
dependencies()
dependencies: () =>
TDependencies
Defined in: starter.ts:16
Returns
TDependencies
lock
lock:
SimpleLock
Defined in: starter.ts:17