UNPKG

typia

Version:

Superfast runtime validators with only one line

32 lines (31 loc) 1.59 kB
export declare const boolean: () => boolean; export declare const integer: (min?: number, max?: number) => number; export declare const bigint: (min?: bigint, max?: bigint) => bigint; export declare const number: (min?: number, max?: number) => number; export declare const string: (length?: number) => string; export declare const array: <T>(closure: (index: number) => T, count?: number, unique?: boolean) => T[]; export declare const pick: <T>(array: T[]) => T; export declare const length: () => number; export declare const pattern: (regex: RegExp) => string; export declare const byte: () => string; export declare const password: () => string; export declare const regex: () => string; export declare const uuid: () => string; export declare const email: () => string; export declare const hostname: () => string; export declare const idnEmail: () => string; export declare const idnHostname: () => string; export declare const iri: () => string; export declare const iriReference: () => string; export declare const ipv4: () => string; export declare const ipv6: () => string; export declare const uri: () => string; export declare const uriReference: () => string; export declare const uriTemplate: () => string; export declare const url: () => string; export declare const datetime: (min?: number, max?: number) => string; export declare const date: (min?: number, max?: number) => string; export declare const time: () => string; export declare const duration: () => string; export declare const jsonPointer: () => string; export declare const relativeJsonPointer: () => string;