@nimel/directorr
Version:
Like Redux but using decorators
9 lines (8 loc) • 901 B
TypeScript
import { RunDispatcher, ActionType, CreateDecoratorValueTypedWithTypeActionTwoOptions, DecoratorValueTypedWithType, AddToPayload } from './types';
import addInitFields from './initFields';
export declare const MODULE_NAME = "action";
export declare function runDispatcher(args: any[], actionType: string, valueFunc: any, store: any, addToPayload: AddToPayload): any;
export declare function initializer(initObject: any, value: any, property: string, [actionType, addToPayload]: [string, AddToPayload], dispatcher?: RunDispatcher, addFields?: typeof addInitFields): (...args: any[]) => any;
export declare function addTypeToDecorator(decorator: DecoratorValueTypedWithType, context: [string, AddToPayload]): DecoratorValueTypedWithType<any, (...args: any) => any, string>;
export declare const action: CreateDecoratorValueTypedWithTypeActionTwoOptions<ActionType, AddToPayload>;
export default action;