node-web-mvc
Version:
node spring mvc
19 lines (18 loc) • 611 B
TypeScript
import ParamAnnotation from './ParamAnnotation';
declare class PathVariable extends ParamAnnotation {
constructor();
}
/**
* 从请求path中提取指定名称的参数值
*
* action(@PathVariable id)
*
* action(@PathVariable({ required: true }) id)
*/
declare const _default: {
(options: string | import("../Target").CreateOptions<typeof PathVariable>): ParameterDecorator;
(target: {
[x: string]: any;
}, propertyKey: string, parameterIndex: number): any;
} & import("../annotation/type").LinkAnnotationType<typeof PathVariable> & typeof PathVariable;
export default _default;