Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8e691dc

Browse files
committedJul 23, 2024·
chore: refactor NetlifyNextRequest type for clarity
1 parent 1a5886e commit 8e691dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎edge-runtime/lib/next-request.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212
import type { NextConfig } from 'next/dist/server/config-shared'
1313
import type { NextRequest, RequestInit } from 'next/dist/server/web/spec-extension/request.js'
1414

15-
export type NetlifyNextRequest = RequestInit &
16-
Pick<NextRequest, 'url' | 'geo' | 'ip' | 'method' | 'body'> & {
15+
export type NetlifyNextRequest = Partial<Omit<NextRequest, 'headers'>> &
16+
RequestInit & {
1717
headers: HeadersInit
1818
}
1919

0 commit comments

Comments
 (0)
Please sign in to comment.