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