summaryrefslogtreecommitdiff
path: root/extensions/web/internal.d.ts
diff options
context:
space:
mode:
authorAndreu Botella <abb@randomunok.com>2021-06-23 16:00:23 +0200
committerGitHub <noreply@github.com>2021-06-23 16:00:23 +0200
commitedab21ebab3daa3cb0ebd5f6fca60c17098df242 (patch)
tree601557d2ff77687acc5b883201a7fbc0ce2482dd /extensions/web/internal.d.ts
parent2c4ce26f0bf1bf957d5c7dec28372898c60ed66c (diff)
fix(fetch): proxy body for requests created from other requests (#11093)
Additionally, if the existing `Request`'s body is disturbed, the Request creation should fail. This change also updates the step numbers in the Request constructor to match whatwg/fetch#1249.
Diffstat (limited to 'extensions/web/internal.d.ts')
-rw-r--r--extensions/web/internal.d.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/web/internal.d.ts b/extensions/web/internal.d.ts
index 06976b28b..bbf529b77 100644
--- a/extensions/web/internal.d.ts
+++ b/extensions/web/internal.d.ts
@@ -81,6 +81,7 @@ declare namespace globalThis {
declare var streams: {
ReadableStream: typeof ReadableStream;
isReadableStreamDisturbed(stream: ReadableStream): boolean;
+ createProxy<T>(stream: ReadableStream<T>): ReadableStream<T>;
};
declare namespace messagePort {