@ace-util/injects
Version:
Utils.
19 lines (18 loc) • 607 B
TypeScript
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?: {
[K in 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';