@types/redux-action-utils
TypeScript icon, indicating that this package has built-in type declarations

2.0.35 • Public • Published

Installation

npm install --save @types/redux-action-utils

Summary

This package contains type definitions for redux-action-utils (https://github.com/insin/redux-action-utils).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-action-utils.

index.d.ts

export interface Action {
    type: string;
}

export interface ActionCreator<T> {
    (...data: any[]): Action & T;
}

export interface OptionsActionCreator<T> {
    (data: T): Action & T;
}

/**
 * Creates an action creator which will create an action object with the given type.
 */
export declare function actionCreator<T>(type: string, ...props: string[]): ActionCreator<T>;
/**
 * Creates an action creator which will create an action object with the given type.
 */
export declare function actionCreator<T>(type: string, props: string[]): ActionCreator<T>;

/**
 * Creates an action creator which takes a single object argument and adds its properties to the action object.
 */
export declare function optionsActionCreator<T>(type: string, ...props: string[]): OptionsActionCreator<T>;
/**
 * Creates an action creator which takes a single object argument and adds its properties to the action object.
 */
export declare function optionsActionCreator<T>(type: string, props: string[]): OptionsActionCreator<T>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: redux

Credits

These definitions were written by Qubo.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/redux-action-utils

Weekly Downloads

0

Version

2.0.35

License

MIT

Unpacked Size

4.69 kB

Total Files

5

Last publish

Collaborators

  • types