nowjs-core
Version:
NowCanDo Javascript Core [nowjs-core] is a library written by TypeScript code maintains under Apache 2.0 licence
11 lines (10 loc) • 621 B
TypeScript
import { StringFormatType } from '../../utils/index';
import { ValidationContext, ValidatorBase } from '../index';
export declare const VALIDATOR_MIN_METADATA_KEY: unique symbol;
export declare function isMin(min: number | Date, errorMessage?: StringFormatType): (target: Record<string, any>, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => void;
export declare class MinValidator extends ValidatorBase {
private min;
constructor(min: number | Date, errorMessage?: StringFormatType);
get Min(): number | Date;
validate(context: ValidationContext<any, any>): Promise<boolean>;
}