import { ModelState } from "../react-redux-form"; /* * Action, Reducer, and Dispatch was taken from official redux libs * TODO: Remove them after TS 2.0 landing when /// will be available */ interface Action { type: any; } type Reducer = (state: S, action: A) => S; export function modelReducer(model: string, initialState?: ModelState): Reducer; export function modeled(reducer: Reducer, model: string): Reducer;