UNPKG

649 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_MILITARY_TIME = "isMilitaryTime";
3/**
4 * Checks if the string represents a time without a given timezone in the format HH:MM (military)
5 * If the given value does not match the pattern HH:MM, then it returns false.
6 */
7export declare function isMilitaryTime(value: unknown): boolean;
8/**
9 * Checks if the string represents a time without a given timezone in the format HH:MM (military)
10 * If the given value does not match the pattern HH:MM, then it returns false.
11 */
12export declare function IsMilitaryTime(validationOptions?: ValidationOptions): PropertyDecorator;