node-web-mvc
Version:
node spring mvc
24 lines (23 loc) • 765 B
TypeScript
import Constraints from './Constraints';
declare class AssertTrue extends Constraints {
message?: string;
isValid(value: any): boolean;
}
/**
* 验证配置元素的值必须为`true`
*
* 支持类型:
* - `Boolean`
*
* `null` 或者 `undefined` 则不做验证
*/
declare const _default: {
(options: import("../../servlets/annotations/Target").CreateOptions<typeof AssertTrue>): (target: Object, name: string, p?: number) => any;
(target: {
[x: string]: any;
}, propertyKey: string): any;
(target: {
[x: string]: any;
}, propertyKey: string, parameterIndex: number): any;
} & import("../../servlets/annotations/annotation/type").LinkAnnotationType<typeof AssertTrue> & typeof AssertTrue;
export default _default;