fastify-zod-schema
Advanced tools
Comparing version
{ | ||
"name": "fastify-zod-schema", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A Fastify plugin that allows users to define request schemas using Zod, providing type safety and validation.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -1,15 +0,8 @@ | ||
import type { | ||
FastifyTypeProvider, | ||
FastifyPluginOptions, | ||
RawServerBase, | ||
RawServerDefault, | ||
FastifyPluginCallback, | ||
FastifyPluginAsync, | ||
} from "fastify"; | ||
import { Schema, z } from "zod"; | ||
declare module "fastify" { | ||
interface FastifyTypeProviderDefault { | ||
output: this["input"] extends Schema ? z.infer<this["input"]> : unknown; | ||
} | ||
interface FastifyTypeProviderDefault { | ||
output: this["input"] extends Schema ? z.infer<this["input"]> : unknown; | ||
} | ||
} | ||
export {}; | ||
//# sourceMappingURL=modules.d.ts.map |
@@ -10,4 +10,5 @@ { | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
"skipLibCheck": true /* Skip type checking all .d.ts files. */ | ||
"skipLibCheck": true /* Skip type checking all .d.ts files. */, | ||
"baseUrl": "./", | ||
} | ||
} |
9076
8.19%12
33.33%104
11.83%