UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

12 lines (11 loc) 602 B
import { DateSchema, type DateSchemaOptions } from "./DateSchema.js"; /** Define a valid time in 24h hh:mm:ss.fff format, e.g. `23:59` or `24:00 */ export declare class TimeSchema extends DateSchema { constructor({ one, title, input, ...options }: DateSchemaOptions); stringify(value: Date): string; format(value: Date): string; } /** Valid time, e.g. `2005-09-12` (required because falsy values are invalid). */ export declare const TIME: TimeSchema; /** Valid time, e.g. `2005-09-12`, or `null` */ export declare const NULLABLE_TIME: import("./NullableSchema.js").NullableSchema<string>;