Skip to content

Commit d4b1451

Browse files
committed
refactor: RouteWithoutBody type with never
1 parent 8a1ecdf commit d4b1451

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/definer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ type ActionSource<PathParams, QueryParams, RequestBody> = {
1919

2020
type RouteWithoutBody = {
2121
method: Extract<HttpMethod, "GET" | "DELETE" | "HEAD">,
22-
requestBody?: undefined,
23-
requestBodyExample?: undefined,
24-
requestBodyExamples?: undefined,
25-
hasFormData?: boolean,
22+
requestBody?: never,
23+
requestBodyExample?: never,
24+
requestBodyExamples?: never,
25+
hasFormData?: never,
2626
};
2727

2828
type RouteWithBody<I, O> = {

0 commit comments

Comments
 (0)