summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <my.burning@gmail.com> 2025-01-09 15:05:50 +0000
committerGravatar GitHub <noreply@github.com> 2025-01-09 15:05:50 +0000
commit35d77b4f7bff653879c9bdb55d8a6fe3881ffae9 (patch)
tree051714a552fcb568ba9329c4d91cdce2e97ff279
parentbbb1bc9915ff232752abc896c31eec5631ea407c (diff)
downloadastro-35d77b4f7bff653879c9bdb55d8a6fe3881ffae9.tar.gz
astro-35d77b4f7bff653879c9bdb55d8a6fe3881ffae9.tar.zst
astro-35d77b4f7bff653879c9bdb55d8a6fe3881ffae9.zip
chore: better types (#12944)
-rw-r--r--packages/astro/src/core/request.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/astro/src/core/request.ts b/packages/astro/src/core/request.ts
index 289920403..5e646bb89 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<string, any> | IncomingHttpHeaders;
-type RequestBody =
- | ArrayBuffer
- | Blob
- | ReadableStream
- | URLSearchParams
- | FormData
- | ReadableStream<Uint8Array>;
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;
/**