Skip to content

Commit 0671f73

Browse files
committed
refactor: fix linting issues
1 parent 30a605f commit 0671f73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/core/definer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ type RouteOptions<
5454
queryParams?: ZodType<QueryParamsOutput, QueryParamsInput>,
5555
action: (
5656
source: ActionSource<PathParamsOutput, QueryParamsOutput, RequestBodyOutput>,
57-
request: Req
57+
request: Req,
5858
) => Res | Promise<Res>,
5959
responses: ResponseCollection<ResponseDefinitions>,
6060
handleErrors?: (
6161
errorType: typeof customErrorTypes[number] | "UNKNOWN_ERROR",
62-
issues?: ZodIssue[]
62+
issues?: ZodIssue[],
6363
) => Res,
6464
middleware?: (
65-
hander: RouteMethodHandler<PathParamsInput, Req, Res>
65+
hander: RouteMethodHandler<PathParamsInput, Req, Res>,
6666
) => RouteMethodHandler<PathParamsInput, Req, Res>,
6767
security?: OperationObject["security"],
6868
} & (RouteWithBody<RequestBodyInput, RequestBodyOutput> | RouteWithoutBody);

src/types/next.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type RouteHandlerContext<PathParams> = {
77

88
export type RouteMethodHandler<PathParamsInput, Req, Res> = ((
99
request: Req,
10-
context: RouteHandlerContext<PathParamsInput>
10+
context: RouteHandlerContext<PathParamsInput>,
1111
) => Promise<Res>) & {
1212
apiData?: OperationObject,
1313
};

0 commit comments

Comments
 (0)