node-web-mvc
Version:
node spring mvc
20 lines (19 loc) • 642 B
TypeScript
/**
* 标注指定控制器的作用域
* 可选值为:
* singleton (单例: 整个程序一个Controller仅有一个实例)
* prototype (多例: 每次都会创建一个新的Controller)
*/
import { ScopeType } from '../../ioc/factory/BeanDefinition';
declare class Scope {
scope: ScopeType;
value: string;
}
/**
* 标注指定类为一个rest 风格的controller
*/
declare const _default: {
(target: Function): any;
(options: string | import("./Target").CreateOptions<typeof Scope>): ClassDecorator;
} & import("./annotation/type").LinkAnnotationType<typeof Scope> & typeof Scope;
export default _default;