From 5ae78eb1de378f04d0b9d54842bcb898053467d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 25 Mar 2019 05:23:24 +0100 Subject: Update ts_library_builder (#1920) --- js/globals.ts | 7 +++++++ js/lib.web_assembly.d.ts | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'js') 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 */ -- cgit v1.2.3