@nimel/directorr
Version:
Like Redux but using decorators
8 lines (7 loc) • 744 B
TypeScript
import { DirectorrStoreClassConstructor, Decorator, BabelDescriptor, DecoratorValueTyped, DirectorrStoreClass, SomeObject } from './types';
export declare const MODULE_NAME = "injectStore";
export declare function injectStoreDecorator(StoreConstructor: any, moduleName: string): PropertyDescriptor;
export declare function createInjectStore(moduleName: string, decorator: Decorator): (StoreConstructor: any) => (target: any, property: string, descriptor?: BabelDescriptor) => void;
export declare type CreateDecoratorValueTypedEffect<I = DirectorrStoreClass | SomeObject, A = DirectorrStoreClassConstructor<I>> = (arg: A) => DecoratorValueTyped<I>;
export declare const injectStore: CreateDecoratorValueTypedEffect;
export default injectStore;