From 00e63306cbcc295a87ba662f9f63311a3c6c49ce Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 6 Apr 2021 12:55:05 +0200 Subject: refactor: add deno_file op crate (#10019) Also enables WPT for FileReader. --- op_crates/file/internal.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 op_crates/file/internal.d.ts (limited to 'op_crates/file/internal.d.ts') diff --git a/op_crates/file/internal.d.ts b/op_crates/file/internal.d.ts new file mode 100644 index 000000000..91a61d811 --- /dev/null +++ b/op_crates/file/internal.d.ts @@ -0,0 +1,18 @@ +// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. + +/// +/// + +declare namespace globalThis { + declare namespace __bootstrap { + declare var file: { + Blob: typeof Blob & { + [globalThis.__bootstrap.file._byteSequence]: Uint8Array; + }; + _byteSequence: unique symbol; + File: typeof File & { + [globalThis.__bootstrap.file._byteSequence]: Uint8Array; + }; + }; + } +} -- cgit v1.2.3