Skip to content

Commit 71dfb99

Browse files
committed
fix(ts): correct return type on AppRouteHandlerFnContext
1 parent c998ee6 commit 71dfb99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next-auth/src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type AppRouteHandlerFn = (
2121
* dynamic route).
2222
*/
2323
ctx: AppRouteHandlerFnContext
24-
) => unknown
24+
) => void | Response | Promise<void | Response>
2525

2626
export type AppRouteHandlers = Record<
2727
"GET" | "POST",

0 commit comments

Comments
 (0)