{"version":3,"file":"zod-nQLTnNYB.mjs","names":[],"sources":["../src/zod/schema-helper.ts"],"sourcesContent":["import { z } from \"zod\";\n\n// biome-ignore lint/suspicious/noExplicitAny: abstract type\nexport type SchemaFor<TOutput> = z.ZodType<TOutput, any, any>;\n\nexport type ShapeFor<TOutput extends object> = { [K in keyof TOutput]-?: SchemaFor<TOutput[K]> };\n\nexport function defineSchemaFor<TOutput extends object>() {\n  return <TShape extends ShapeFor<NoInfer<TOutput>>>(shape: TShape & { [K in Exclude<keyof TShape, keyof TOutput>]: never }) =>\n    z.object(shape).strict();\n}\n"],"mappings":";;;AAOA,SAAgB,kBAA0C;AACxD,SAAmD,UACjD,EAAE,OAAO,MAAM,CAAC,QAAQ"}