diff --git a/packages/astro/src/core/request.ts b/packages/astro/src/core/request.ts index 289920403240..5e646bb8959d 100644 --- a/packages/astro/src/core/request.ts +++ b/packages/astro/src/core/request.ts @@ -2,20 +2,13 @@ import type { IncomingHttpHeaders } from 'node:http'; import type { Logger } from './logger/core.js'; type HeaderType = Headers | Record | IncomingHttpHeaders; -type RequestBody = - | ArrayBuffer - | Blob - | ReadableStream - | URLSearchParams - | FormData - | ReadableStream; export interface CreateRequestOptions { url: URL | string; clientAddress?: string | undefined; headers: HeaderType; method?: string; - body?: RequestBody | undefined | null; + body?: RequestInit['body']; logger: Logger; locals?: object | undefined; /**