Skip to content

Commit 4d0801f

Browse files
committed
chore: cleaned up NextRequest type
1 parent b658c0c commit 4d0801f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

packages/next/src/middleware/request.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,9 @@ import type { NextRequest as InternalNextRequest } from 'next/server'
55
import { MiddlewareResponse } from './response'
66

77
export type NextRequest = InternalNextRequest & {
8-
get geo():
9-
| {
10-
city?: string
11-
country?: string
12-
region?: string
13-
latitude?: string
14-
longitude?: string
15-
timezone?: string
16-
}
17-
| undefined
8+
get geo(): {
9+
timezone?: string
10+
}
1811
}
1912

2013
export interface NextOptions {

0 commit comments

Comments
 (0)