Reject Zod 4 inputs whose runtime conversion is known to throw.
When T (or any inner schema wrapped by ZodOptional,
ZodNullable, ZodReadonly, ZodLazy, or ZodPipe) is one of
the UnrepresentableZodType variants, the resolved type is
UnrepresentableZodSchemaError, which is not assignable from
any legitimate Zod / JSON Schema / OpenAPI input — so the prop
fails to typecheck.
Anything else (Zod 4 schemas that DO convert, JSON Schema literals,
OpenAPI documents, unknown for runtime inputs) passes through
unchanged.
Reject Zod 4 inputs whose runtime conversion is known to throw.
T(or any inner schema wrapped byZodOptional,ZodNullable,ZodReadonly,ZodLazy, orZodPipe) is one of the UnrepresentableZodType variants, the resolved type is UnrepresentableZodSchemaError, which is not assignable from any legitimate Zod / JSON Schema / OpenAPI input — so the prop fails to typecheck.unknownfor runtime inputs) passes through unchanged.