Files
Pipi Chen b8a3516cd6 update
2020-05-07 01:02:44 +08:00

10 lines
529 B
TypeScript

import { interfaces } from "../interfaces/interfaces";
export declare type ServiceIdentifierOrFunc = interfaces.ServiceIdentifier<any> | LazyServiceIdentifer;
export declare class LazyServiceIdentifer<T = any> {
private _cb;
constructor(cb: () => interfaces.ServiceIdentifier<T>);
unwrap(): string | symbol | interfaces.Newable<T> | interfaces.Abstract<T>;
}
declare function inject(serviceIdentifier: ServiceIdentifierOrFunc): (target: any, targetKey: string, index?: number | undefined) => void;
export { inject };