12 lines
324 B
TypeScript
12 lines
324 B
TypeScript
import "reflect-metadata";
|
|
/**
|
|
* 收集类依赖
|
|
* @constructor
|
|
*/
|
|
export declare function Injectable(): (_constructor: new (...args: any[]) => {}) => void;
|
|
/**
|
|
* 将类依赖实例化然后注入到被装饰的属性中
|
|
* @constructor
|
|
*/
|
|
export declare function Inject(): (target: any, propertyName: string) => void;
|