node-web-mvc
Version:
node spring mvc
26 lines (25 loc) • 960 B
TypeScript
/**
* @module Autowired
* @description 自动装配注解,可用于装配类的构造函数,以及属性,方法。
*/
declare class Autowired {
/**
* 是否当前装配的实例必须存在,如果无法装配,则抛出异常
* 默认为:treu
*/
required?: boolean;
}
declare const _default: {
(options: import("../../servlets/annotations/Target").CreateOptions<typeof Autowired>): (target: any, name?: string, p?: number | TypedPropertyDescriptor<any>) => any;
(target: Function): any;
(target: {
[x: string]: any;
}, propertyKey: string): any;
(target: {
[x: string]: any;
}, propertyKey: string, descriptor: TypedPropertyDescriptor<any>): any;
(target: {
[x: string]: any;
}, propertyKey: string, parameterIndex: number): any;
} & import("../../servlets/annotations/annotation/type").LinkAnnotationType<typeof Autowired> & typeof Autowired;
export default _default;