UNPKG

@ace-util/injects

Version:
17 lines (16 loc) 597 B
import { Inject } from './Inject'; import { InjectFunction } from './types'; /** * create a new Inject instance * @param store Store */ export declare function createInject<T extends Record<string, (...args: any) => any> = {}>(store: Record<keyof T, InstanceType<typeof Inject>>): InjectFunction<T>; /** * Global filters is used as singleton and can storage all inject callbacks; */ export declare const globalStorage: Record<string, Inject>; /** * Global Inject instalce */ export declare const globalInject: InjectFunction<Record<string, (...args: any) => any>>; export * from './types';