schemaMatches<T>():< SextendsZodType<T,unknown,$ZodTypeInternals<T,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
Type Parameters
T
Returns <SextendsZodType<T,unknown,$ZodTypeInternals<T,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