Interface StoreBuilder<TState, TAction>
Methods
withErrorCallbacks
- withErrorCallbacks(...callbacks: ErrorCallback[]): StoreBuilder<TState, TAction>
Parameters
Rest ...callbacks: ErrorCallback[]
Returns StoreBuilder<TState, TAction>
withPreloadedState
- withPreloadedState<S>(state: S): StoreBuilder<TState & S, TAction>
Type Parameters
Parameters
Returns StoreBuilder<TState & S, TAction>
withReducer
Type Parameters
Parameters
Returns StoreBuilder<TState & S, TAction | A>
withSlice
- withSlice<S, N, A>(slice: SliceBase<N, S, A>): StoreBuilder<TState & { [ key in string]: S }, TAction | { type: string }>
Type Parameters
S = any
N extends string = string
A = any
Parameters
Returns StoreBuilder<TState & { [ key in string]: S }, TAction | { type: string }>
add specified middleware after default middleware