ahoym/redesert

View on GitHub
src/reducer-factories/type-definitions.ts

Summary

Maintainability
A
0 mins
Test Coverage
export interface ReducerFactory {
  [factory_name: string]: Function;
}

export interface ReduxSliceState {
  [other_properties: string]: any;
  errors?: object;
}

export interface ReducerConfig {
  entitiesPath: string;
}

export interface DefaultReducerFactories {
  createReducerFactory: Function;
  fetchReducerFactory: Function;
  removeReducerFactory: Function;
  updateReducerFactory: Function;
}

export interface CombinedReducerConfiguration {
  customReducerFactories?: ReducerFactory;
  defaultReducerFactories: DefaultReducerFactories;
  entitiesPath: string;
}

export interface MakeReducerConfiguration {
  customReducerFactories?: ReducerFactory;
  defaultReducerFactories: DefaultReducerFactories;
  entitiesPath: string;
  externalActionTypes?: string[];
  initialState?: any;
  resource: string;
}