diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-03-25 05:23:24 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-25 00:23:24 -0400 |
commit | 5ae78eb1de378f04d0b9d54842bcb898053467d6 (patch) | |
tree | 4d0d6a97e6af1f3c3a0a70f1ebe34bdd9d32ac3e /js | |
parent | 3cc90d9bcf4be58bf88b433ae410f42fa4ad69c7 (diff) |
Update ts_library_builder (#1920)
Diffstat (limited to 'js')
-rw-r--r-- | js/globals.ts | 7 | ||||
-rw-r--r-- | js/lib.web_assembly.d.ts | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/js/globals.ts b/js/globals.ts index 45a4ccb01..af99ae7e0 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -104,3 +104,10 @@ export type TextDecoder = textEncoding.TextDecoder; window.performance = new performanceUtil.Performance(); window.workerMain = workers.workerMain; + +// below are interfaces that are available in TypeScript but +// have different signatures +export interface ImportMeta { + url: string; + main: boolean; +} diff --git a/js/lib.web_assembly.d.ts b/js/lib.web_assembly.d.ts index ccefdd077..8c357840a 100644 --- a/js/lib.web_assembly.d.ts +++ b/js/lib.web_assembly.d.ts @@ -170,10 +170,4 @@ declare namespace WebAssembly { } } -// TODO Move ImportMeta intos its own lib.import_meta.d.ts file? -interface ImportMeta { - url: string; - main: boolean; -} - /* eslint-enable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */ |