Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/index.ts>IsMilitaryTime

Decorator-based property validation for classes.
Latest
function IsMilitaryTime
import { IsMilitaryTime } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Checks if the string represents a time without a given timezone in the format HH:MM (military) If the given value does not match the pattern HH:MM, then it returns false.

Parameters

optional
validationOptions: ValidationOptions

Returns

PropertyDecorator