Helper type that enforces all properties in T are Zod schemas.
Returns never for any property that is not a Zod schema, which causes
TypeScript to error when the type is used in a function parameter.
Type Parameters
T
Example
// Valid - all properties are Zod schemas typeValid = AssertZodShape<{ name: z.ZodString }>; // { name: z.ZodString }
// Invalid - 'age' is not a Zod schema typeInvalid = AssertZodShape<{ name: z.ZodString; age: number }>; // { name: z.ZodString; age: never }
Helper type that enforces all properties in T are Zod schemas. Returns
neverfor any property that is not a Zod schema, which causes TypeScript to error when the type is used in a function parameter.