libmodulor
Version:
A TypeScript library to create platform-agnostic applications
16 lines (15 loc) • 700 B
TypeScript
import type { TName } from '../base/TBase.js';
import { TString, type TStringConstraints } from '../base/TString.js';
import type { JSONSchemaType } from '../targets/json-schema.js';
import type { RNInputMode } from '../targets/rn.js';
import type { HTMLInputType } from '../targets/web.js';
export type Time = `${number}${number}:${number}${number}` | `${number}${number}:${number}${number}:${number}${number}`;
export declare class TTime extends TString<Time> {
static readonly FORMAT: RegExp;
constructor(constraints?: TStringConstraints);
tName(): TName;
example(): Time;
htmlInputType(): HTMLInputType;
jsonSchemaType(): JSONSchemaType;
rnInputMode(): RNInputMode;
}