From 25b35be50dd59d00e126591dd24d06824e2c50cf Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Thu, 4 Feb 2021 15:05:36 +0100 Subject: refactor: rewrite File implementation (#9334) --- op_crates/fetch/internal.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'op_crates/fetch/internal.d.ts') diff --git a/op_crates/fetch/internal.d.ts b/op_crates/fetch/internal.d.ts index 5fb30f503..a474d499c 100644 --- a/op_crates/fetch/internal.d.ts +++ b/op_crates/fetch/internal.d.ts @@ -19,11 +19,14 @@ declare namespace globalThis { Headers: typeof Headers; }; - declare var blob: { + declare var file: { Blob: typeof Blob & { - [globalThis.__bootstrap.blob._byteSequence]: Uint8Array; + [globalThis.__bootstrap.file._byteSequence]: Uint8Array; }; _byteSequence: unique symbol; + File: typeof File & { + [globalThis.__bootstrap.file._byteSequence]: Uint8Array; + }; }; declare var streams: { -- cgit v1.2.3