summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/globals.ts7
-rw-r--r--js/lib.web_assembly.d.ts6
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 */