summaryrefslogtreecommitdiff
path: root/js/lib.deno.d.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-02 13:13:32 -0400
committerGitHub <noreply@github.com>2018-08-02 13:13:32 -0400
commitc7c6203e61cb6bb85051b96eabd6deae7995a787 (patch)
treeef463466f34fd72a4ac5a30eecd3cc94254f321f /js/lib.deno.d.ts
parente30bdb71aa8b9902078e1ed8e7d014a68eb9eb2e (diff)
Source map support (#429)
This change increases size: out/debug/obj/libdeno/from_snapshot.o 19M -> 34M out/release/deno 32M -> 47M
Diffstat (limited to 'js/lib.deno.d.ts')
-rw-r--r--js/lib.deno.d.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/js/lib.deno.d.ts b/js/lib.deno.d.ts
index 81e8daf4e..b11a08edf 100644
--- a/js/lib.deno.d.ts
+++ b/js/lib.deno.d.ts
@@ -27,10 +27,15 @@ declare class Console {
interface Window {
console: Console;
- mainSource: string; // TODO(ry) This shouldn't be global.
+ // TODO(ry) These shouldn't be global.
+ mainSource: string;
+ setMainSourceMap(sm: string): void;
}
// Globals in the runtime environment
declare let console: Console;
-declare let mainSource: string; // TODO(ry) This shouldn't be global.
declare const window: Window;
+
+// TODO(ry) These shouldn't be global.
+declare let mainSource: string;
+declare function setMainSourceMap(sm: string): void;