valia
Version:
A runtime data validator in TypeScript with advanced type inference, built-in validation functions, and seamless integration for server and client environments.
14 lines (13 loc) • 324 B
TypeScript
interface IsUuidParams {
/** **Default:** All version validate */
version?: 1 | 2 | 3 | 4 | 5 | 6 | 7;
}
/**
* **Standard :** RFC 9562
*
* @see https://datatracker.ietf.org/doc/html/rfc9562#section-4
*
* @version 1.0.0
*/
export declare function isUuid(str: string, params?: IsUuidParams): boolean;
export {};