UNPKG

node-web-mvc

Version:
23 lines (22 loc) 952 B
export type ValidateGroupType = () => void; declare class Validated { value?: ValidateGroupType | ValidateGroupType[]; } /** * 标记一个属性或者方法参数为校验对象,可进行分组配置 */ declare const _default: { (options: ValidateGroupType | ValidateGroupType[] | import("../../servlets/annotations/Target").CreateOptions<typeof Validated>): { (target: Function): any; (target: Object, name: string, descriptor: TypedPropertyDescriptor<any>): any; (target: Object, name: string, parameterIndex: number): any; }; (target: Function): 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 Validated> & typeof Validated; export default _default;