schemaMatches<T>():<SextendsZodType<T,ZodTypeDef,unknown>>( schema:AssertEqual<S["_output"],T>extendstrue ?S :S&{"types do not match":{expected:T;received:S["_output"]}}, )=>S
Type Parameters
T
Returns <SextendsZodType<T,ZodTypeDef,unknown>>( schema:AssertEqual<S["_output"],T>extendstrue ?S :S&{"types do not match":{expected:T;received:S["_output"]}}, )=>S
Zod utility to check if a schema is defined correctly against a given type
See
https://github.com/colinhacks/zod/issues/372#issuecomment-2445439772