summaryrefslogtreecommitdiff
path: root/js/lib.globals.d.ts
blob: d11bbe97daeb048e74429ab79c3c1988254bdd16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

// This file contains the default TypeScript libraries for the runtime

/// <reference no-default-lib="true"/>

/// <reference lib="esnext" />

import "gen/js/globals";

interface Window {
  // TODO(ry) These shouldn't be global.
  mainSource: string;
  setMainSourceMap(sm: string): void;
}

// TODO(ry) These shouldn't be global.
declare let mainSource: string;
declare function setMainSourceMap(sm: string): void;