Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/actions/isoTime/index.ts>isoTime

The modular and type safe schema library for validating structural data 🤖
Latest
function isoTime
import { isoTime } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/actions/isoTime/index.ts";

Creates an ISO time validation action.

Format: hh:mm

Type Parameters

TInput extends string

Returns

IsoTimeAction<TInput, undefined>

An ISO time action.

Creates an ISO time validation action.

Format: hh:mm

Type Parameters

TInput extends string
TMessage extends ErrorMessage<IsoTimeIssue<TInput>> | undefined

Parameters

message: TMessage

The error message.

Returns

An ISO time action.