Skip to content

Commit

Permalink
Add undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Nov 11, 2021
1 parent 454a7b5 commit f92123c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/next/server.md
Expand Up @@ -15,7 +15,7 @@ These native Web API objects are extended to give you more control over how you
The function signature is defined as follows:

```ts
type NextMiddlewareResult = NextResponse | Response | null
type NextMiddlewareResult = NextResponse | Response | null | undefined

type NextMiddleware = (
request: NextRequest,
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/web/types.ts
Expand Up @@ -33,7 +33,7 @@ export interface FetchEventResult {
waitUntil: Promise<any>
}

type NextMiddlewareResult = NextResponse | Response | null
export type NextMiddlewareResult = NextResponse | Response | null | undefined

export type NextMiddleware = (
request: NextRequest,
Expand Down

0 comments on commit f92123c

Please sign in to comment.