diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-04-13 03:54:13 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-12 14:54:13 -0400 |
commit | e0edcc9c1b025c2b02eb5b50ae7a86089d1c4d61 (patch) | |
tree | 5866877988968e95e2870cd9bbd936768c861788 /js/dom_types.ts | |
parent | ea1b0519f58887f0019ead942bf3de4490e7bc11 (diff) |
fix: re-expose DomFile (#2100)
Diffstat (limited to 'js/dom_types.ts')
-rw-r--r-- | js/dom_types.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/dom_types.ts b/js/dom_types.ts index bf6e07796..817f91abf 100644 --- a/js/dom_types.ts +++ b/js/dom_types.ts @@ -196,14 +196,16 @@ export interface CustomEvent extends Event { ): void; } -/* TODO(ry) Re-expose this interface. There is currently some interference - * between deno's File and this one. - */ export interface DomFile extends Blob { readonly lastModified: number; readonly name: string; } +export interface DomFileConstructor { + new (bits: BlobPart[], filename: string, options?: FilePropertyBag): DomFile; + prototype: DomFile; +} + export interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } |