diff --git a/packages/node/src/lib/http-client.ts b/packages/node/src/lib/http-client.ts index 6fe4d420b..f4ff626ba 100644 --- a/packages/node/src/lib/http-client.ts +++ b/packages/node/src/lib/http-client.ts @@ -16,7 +16,7 @@ export interface HTTPFetchFn { */ export interface HTTPFetchRequest { headers: Record - body?: string | ReadableStream + body: string method: HTTPClientRequest['method'] signal: any // AbortSignal type does not play nicely with node-fetch } @@ -27,7 +27,7 @@ export interface HTTPFetchRequest { */ export interface HTTPResponse { headers: Record - body: string + body: string | ReadableStream | null status: number statusText: string }