Interface ServiceReducer<TRequest, TNext, TError, TState>

The interface for a reducer with an optional getInitialState synchronous property.

interface ServiceReducer<TRequest, TNext, TError, TState> {
    getInitialState?: (() => TState);
    (state, action): TState;
}

Type Parameters

  • TRequest
  • TNext = void
  • TError = Error
  • TState = {}

Properties

Properties

getInitialState?: (() => TState)

Type declaration