UNPKG

reducer-class

Version:

Boilerplate free class-based reducer creator. Built with TypeScript. Works with Redux and NGRX. Has integration with immer.

10 lines (9 loc) 523 B
export interface IAction { type: string; } export declare type IActionCreator = (...args: any[]) => IAction; export declare type IActionConstructor = new (...args: any[]) => IAction; declare type ActionArgsDecoratorFactory = Array<IAction | IActionConstructor | IActionCreator | string>; export declare function Action(...args: ActionArgsDecoratorFactory): MethodDecorator; export declare function Action(target: object, property: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void; export {};