{"library":"tozod","type":"library","category":null,"description":"tozod v3.0.0 is a TypeScript utility for defining Zod schemas that are guaranteed to match a given TypeScript type. It inverts the typical Zod workflow: instead of inferring a type from a schema, tozod starts with a type and ensures the schema is structurally identical at compile time. It supports recursive and mutually recursive types via z.late.object, preserving full access to Zod's built-in methods like .omit(), .pick(), and .partial(). Requires TypeScript 3.9+ and strictNullChecks. Published as part of the Zod ecosystem.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install tozod","imports":["import { toZod } from 'tozod';","type Schema = toZod<MyType>;","z.late.object(() => ({ ... }));"]},{"cmd":"yarn add tozod","imports":[]},{"cmd":"pnpm add tozod","imports":[]}],"homepage":"https://github.com/vriad/tozod","github":"https://github.com/vriad/tozod","docs":null,"changelog":null,"pypi":null,"npm":"tozod","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}