1 | import { ValidationOptions } from '../ValidationOptions';
|
2 | import ValidatorJS from 'validator';
|
3 | export declare const IS_ISO8601 = "isIso8601";
|
4 | /**
|
5 | * Checks if the string is a valid ISO 8601 date.
|
6 | * If given value is not a string, then it returns false.
|
7 | * Use the option strict = true for additional checks for a valid date, e.g. invalidates dates like 2019-02-29.
|
8 | */
|
9 | export declare function isISO8601(value: unknown, options?: ValidatorJS.IsISO8601Options): boolean;
|
10 | /**
|
11 | * Checks if the string is a valid ISO 8601 date.
|
12 | * If given value is not a string, then it returns false.
|
13 | * Use the option strict = true for additional checks for a valid date, e.g. invalidates dates like 2019-02-29.
|
14 | */
|
15 | export declare function IsISO8601(options?: ValidatorJS.IsISO8601Options, validationOptions?: ValidationOptions): PropertyDecorator;
|