Appearance
Variable: uuid()
ts
const uuid: (version?: number) => RegExp;Defined in: node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.d.cts:16
Returns a regex for validating an RFC 9562/4122 UUID.
Parameters
| Parameter | Type | Description |
|---|---|---|
version? | number | Optionally specify a version 1-8. If no version is specified, all versions are supported. |
Returns
RegExp