From 23c153e0ceec52ccf56f541b99b892f629b0ad35 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 8 Aug 2023 10:29:21 +0200 Subject: [PATCH] move comment --- src/runtime/fetch/call.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/fetch/call.ts b/src/runtime/fetch/call.ts index aaa17d24..199bdded 100644 --- a/src/runtime/fetch/call.ts +++ b/src/runtime/fetch/call.ts @@ -54,6 +54,8 @@ export function createCall(handle: Handle) { return handle(req, res).then(() => { // https://developer.mozilla.org/en-US/docs/Web/API/Response/body + // TODO: Ensure _data is either of BodyInit (or narrower) types + // Blob | ArrayBuffer | TypedArray | DataView | FormData | ReadableStream | URLSearchParams | String let body = res._data as BodyInit | null; if ( nullBodyResponses.has(res.statusCode) || @@ -63,8 +65,6 @@ export function createCall(handle: Handle) { delete res._headers["content-length"]; } - // TODO: Ensure _data is either of BodyInit (or narrower) types - // Blob | ArrayBuffer | TypedArray | DataView | FormData | ReadableStream | URLSearchParams | String const r = { body, headers: res._headers,