Skip to content

Commit

Permalink
chore: refactor NetlifyNextRequest type for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
orinokai committed Jul 23, 2024
1 parent 1a5886e commit 8e691dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edge-runtime/lib/next-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
import type { NextConfig } from 'next/dist/server/config-shared'
import type { NextRequest, RequestInit } from 'next/dist/server/web/spec-extension/request.js'

export type NetlifyNextRequest = RequestInit &
Pick<NextRequest, 'url' | 'geo' | 'ip' | 'method' | 'body'> & {
export type NetlifyNextRequest = Partial<Omit<NextRequest, 'headers'>> &
RequestInit & {
headers: HeadersInit
}

Expand Down

0 comments on commit 8e691dc

Please sign in to comment.