diff options
author | Kyra <kyradiscord@gmail.com> | 2018-11-04 19:05:02 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-04 10:05:02 -0800 |
commit | e93d686e9d5e797f7e4e02bda56a8b6d535326ca (patch) | |
tree | e89490da61e17ee890ce590fdaa99d0701dc8308 /js/globals.ts | |
parent | 1241b8e9babfec3e87c8958e2065966ee5dd1335 (diff) |
Web APIs: `File` and `FormData` (#1056)
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index a09e6ed9b..5a0ca7cc6 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -1,5 +1,7 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. import * as blob from "./blob"; +import * as file from "./file"; +import * as formdata from "./form_data"; import * as console_ from "./console"; import * as fetch_ from "./fetch"; import { Headers } from "./headers"; @@ -44,3 +46,5 @@ window.fetch = fetch_.fetch; // runtime library window.Headers = Headers as domTypes.HeadersConstructor; window.Blob = blob.DenoBlob; +window.File = file.DenoFile; +window.FormData = formdata.FormData as domTypes.FormDataConstructor; |