Function
string
packages/zod/src/v4/classic/schemas.ts:570–572
· packages/zod/src/v4/classic/schemas.ts::string
(params?: string | core.$ZodStringParams)
Source from the content-addressed store, hash-verified
| 568 | export function string(params?: string | core.$ZodStringParams): ZodString; |
| 569 | export function string<T extends string>(params?: string | core.$ZodStringParams): core.$ZodType<T, T>; |
| 570 | export function string(params?: string | core.$ZodStringParams): ZodString { |
| 571 | return core._string(ZodString, params); |
| 572 | } |
| 573 | |
| 574 | class="cm">// ZodStringFormat |
| 575 | export interface ZodStringFormat<Format extends string = string> |
Tested by
no test coverage detected