@lattice/core
Version:
7 lines (6 loc) • 703 B
TypeScript
import "reflect-metadata";
export declare function Injectable(serviceIdentifier?: any, container?: 'provider' | 'root'): <T extends new (...args: any[]) => {}>(constructor: T) => any;
export declare function Overwrite(serviceIdentifier: any, container?: 'provider' | 'root'): <T extends new (...args: any[]) => {}>(constructor: T) => any;
export declare function Inject(serviceIdentifier?: any): (target: any, targetKey: string, index?: number | undefined) => void;
export declare function MultiInject(serviceIdentifier: any): (target: any, targetKey: string, index?: number | undefined) => void;
export declare function Optional(): (target: any, targetKey: string, index?: number | undefined) => void;