UNPKG

node-web-mvc

Version:
23 lines (22 loc) 985 B
import { ClazzType } from '../../interface/declare'; import RuntimeAnnotation from '../../servlets/annotations/annotation/RuntimeAnnotation'; declare class Valid { static getChildValidations(clazz: ClazzType | Function): RuntimeAnnotation<Valid>[]; constructor(info: RuntimeAnnotation<Valid>); } /** * 标记一个属性或者方法参数为校验对象 */ declare const _default: { (options: import("../../servlets/annotations/Target").CreateOptions<typeof Valid>): (target: Object, name: string, p?: number | TypedPropertyDescriptor<any>) => 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 Valid> & typeof Valid; export default _default;