Next 15 wants to me to type the second parameter of API route handler as Promise<any>
#71872
Replies: 1 comment
-
|
Oh, I see it has to entirely be a Promise now. Closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm the maintainer of https://github.com/zenstackhq/zenstack, and we have a Next.js adapter that automatically mounts API route handlers. After upgrading to Next15, the compiler complains:
My route handler is typed as:
Why does Next want me to type the second parameter as
Promise<any>instead of a more specific one?Beta Was this translation helpful? Give feedback.
All reactions