@@ -9,7 +9,7 @@ import { addBadRequest, bundleResponses } from "./responses";
99import parseSearchParams from "./search-params" ;
1010import type { ExampleObject } from "@omer-x/openapi-types/example" ;
1111import type { OperationObject } from "@omer-x/openapi-types/operation" ;
12- import type { ZodIssue , ZodType , ZodTypeDef } from "zod" ;
12+ import type { ZodIssue , ZodType } from "zod" ;
1313
1414type ActionSource < PathParams , QueryParams , RequestBody > = {
1515 pathParams : PathParams ,
@@ -27,7 +27,7 @@ type RouteWithoutBody = {
2727
2828type RouteWithBody < I , O > = {
2929 method : Exclude < HttpMethod , "GET" | "DELETE" | "HEAD" > ,
30- requestBody ?: ZodType < O , ZodTypeDef , I > | string ,
30+ requestBody ?: ZodType < O , I > | string ,
3131 requestBodyExample ?: NoInfer < O > ,
3232 requestBodyExamples ?: Record < string , ExampleObject < NoInfer < O > > > ,
3333 hasFormData ?: boolean ,
@@ -50,8 +50,8 @@ type RouteOptions<
5050 summary : string ,
5151 description : string ,
5252 tags : string [ ] ,
53- pathParams ?: ZodType < PathParamsOutput , ZodTypeDef , PathParamsInput > ,
54- queryParams ?: ZodType < QueryParamsOutput , ZodTypeDef , QueryParamsInput > ,
53+ pathParams ?: ZodType < PathParamsOutput , PathParamsInput > ,
54+ queryParams ?: ZodType < QueryParamsOutput , QueryParamsInput > ,
5555 action : (
5656 source : ActionSource < PathParamsOutput , QueryParamsOutput , RequestBodyOutput > ,
5757 request : Req
0 commit comments