// Type definitions for redux-action-utils 2.0.0 // Project: https://github.com/insin/redux-action-utils // Definitions by: Qubo // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module "redux-action-utils" { export interface Action { type: string; } export interface ActionCreator { (...data: any[]): Action & T; } export interface OptionsActionCreator { (data: T): Action & T; } /** * Creates an action creator which will create an action object with the given type. */ export function actionCreator(type: string, ...props: string[]): ActionCreator; /** * Creates an action creator which will create an action object with the given type. */ export function actionCreator(type: string, props: string[]): ActionCreator; /** * Creates an action creator which takes a single object argument and adds its properties to the action object. */ export function optionsActionCreator(type: string, ...props: string[]): OptionsActionCreator; /** * Creates an action creator which takes a single object argument and adds its properties to the action object. */ export function optionsActionCreator(type: string, props: string[]): OptionsActionCreator; }