Skip to content

Commit 089994a

Browse files
authored
fix(next-auth): AppRouteHandlerFnContext type (#12901)
1 parent c847b71 commit 089994a

File tree

5 files changed

+427
-189
lines changed

5 files changed

+427
-189
lines changed

apps/dev/nextjs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/// <reference types="next/navigation-types/compat/navigation" />
44

55
// NOTE: This file should not be edited
6-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/dev/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"license": "ISC",
1313
"dependencies": {
14-
"next": "15.0.0-rc.1",
14+
"next": "15.3.1",
1515
"next-auth": "workspace:*",
1616
"react": "19.0.0-rc-4c58fce7-20240904",
1717
"react-dom": "19.0.0-rc-4c58fce7-20240904"

packages/next-auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"devDependencies": {
110110
"@types/react": "18.0.37",
111111
"dotenv": "^10.0.0",
112-
"next": "15.0.0-rc.1",
112+
"next": "15.3.1",
113113
"nodemailer": "^6.9.3",
114114
"react": "^18.2.0"
115115
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// @ts-expect-error Next.js does not yet correctly use the `package.json#exports` field
22
import type { NextRequest } from "next/server"
3-
import type { Awaitable } from "@auth/core/types"
43

54
/**
65
* AppRouteHandlerFnContext is the context that is passed to the handler as the
76
* second argument.
87
*/
98
export type AppRouteHandlerFnContext = {
10-
params: Awaitable<Record<string, string | string[]>>
9+
params: Promise<any>
1110
}
1211
/**
1312
* Handler function for app routes. If a non-Response value is returned, an error

0 commit comments

Comments
 (0)