UNPKG

@nimel/directorr

Version:
8 lines (7 loc) 744 B
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;