Skip to content

Commit 1d76bdf

Browse files
committed
Pass type for router event handler
1 parent 3483e1a commit 1d76bdf

File tree

1 file changed

+1
-1
lines changed
  • packages/next/next-server/lib/router

1 file changed

+1
-1
lines changed

packages/next/next-server/lib/router/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export default class Router implements BaseRouter {
205205
isFallback: boolean
206206
_inFlightRoute?: string
207207

208-
static events = mitt<RouterEvent>()
208+
static events = mitt<RouterEvent, (url: string) => void>()
209209

210210
constructor(
211211
pathname: string,

0 commit comments

Comments
 (0)