Glossary: TypeScript Beyond the Basics
z.infer
Also written: z.infer<typeof S>
Works out the TypeScript type that a Zod schema accepts, so you don't write the type twice. A value and a type may share a name, such as `Product`.
Glossary: TypeScript Beyond the Basics
Also written: z.infer<typeof S>
Works out the TypeScript type that a Zod schema accepts, so you don't write the type twice. A value and a type may share a name, such as `Product`.