summaryrefslogtreecommitdiff
path: root/op_crates/file/internal.d.ts
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-04-06 12:55:05 +0200
committerGitHub <noreply@github.com>2021-04-06 12:55:05 +0200
commit00e63306cbcc295a87ba662f9f63311a3c6c49ce (patch)
tree88020a85a0f1d64803841386d2c5711b7ee008dc /op_crates/file/internal.d.ts
parentff5d072702aee52882787ea85dd73573a8f8f316 (diff)
refactor: add deno_file op crate (#10019)
Also enables WPT for FileReader.
Diffstat (limited to 'op_crates/file/internal.d.ts')
-rw-r--r--op_crates/file/internal.d.ts18
1 files changed, 18 insertions, 0 deletions
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.
+
+/// <reference no-default-lib="true" />
+/// <reference lib="esnext" />
+
+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;
+ };
+ };
+ }
+}