Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/colinhacks/zod
/ createV4Schema
Function
createV4Schema
packages/zod/src/v4/classic/tests/generics.test.ts:61–65 ·
view source on GitHub ↗
(opts: { schema: z.ZodType<Output>; })
Source
from the content-addressed store, hash-verified
59
60
test(
"generic on output type"
, () => {
61
const
createV4Schema = <Output>(opts: {
62
schema: z.ZodType<Output>;
63
}) => {
64
return
opts.schema;
65
};
66
67
createV4Schema({
68
schema: z.object({
Callers
1
generics.test.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected