typia
Version:
Superfast runtime validators with only one line
7 lines (6 loc) • 508 B
TypeScript
export declare const boolean: (str: string | null) => boolean | null | undefined;
export declare const number: (str: string | null) => number | null | undefined;
export declare const bigint: (str: string | null) => bigint | null | undefined;
export declare const string: (str: string | null) => string | null | undefined;
export declare const params: (input: string | URLSearchParams) => URLSearchParams;
export declare const array: (input: any[], alternative: null | undefined) => any[] | null | undefined;