Skip to content

Commit 541182e

Browse files
committed
fix: update types with extended type for example to work, fix type problems in test file
1 parent 18b4149 commit 541182e

34 files changed

+100
-98
lines changed

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type NextRouteHandlerContext = {
1010
/**
1111
* Represents an app API route handlers for Next.js
1212
*/
13-
type NextRouteHandler = (request?: next_server.NextRequest, context?: NextRouteHandlerContext) => Promise<next_server.NextResponse<unknown>>;
13+
type NextRouteHandler = ((request?: next_server.NextRequest, context?: NextRouteHandlerContext) => Promise<next_server.NextResponse<unknown>>) | ((request: next_server.NextRequest, context: NextRouteHandlerContext) => Promise<next_server.NextResponse<unknown>>) | ((request: next_server.NextRequest) => Promise<next_server.NextResponse<unknown>>) | (() => Promise<next_server.NextResponse<unknown>>);
1414
/**
1515
* Describes the shape of the next function passed into middleware functions.
1616
*/

docs/html/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)