UNPKG

node-web-mvc

Version:
19 lines (18 loc) 688 B
import Constraints from './Constraints'; declare class NotNull extends Constraints { message?: string; isValid(value: any): boolean; } /** * 验证配置元素的值不能为 `null`或者`undefined` */ declare const _default: { (options: import("../../servlets/annotations/Target").CreateOptions<typeof NotNull>): (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 NotNull> & typeof NotNull; export default _default;