diff options
Diffstat (limited to 'js/lib.globals.d.ts')
-rw-r--r-- | js/lib.globals.d.ts | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/js/lib.globals.d.ts b/js/lib.globals.d.ts index b11a08edf..d11bbe97d 100644 --- a/js/lib.globals.d.ts +++ b/js/lib.globals.d.ts @@ -6,36 +6,14 @@ /// <reference lib="esnext" /> -// TODO generate `console.d.ts` and inline it in `assets.ts` and remove -// declaration of `Console` -// import { Console } from 'gen/console'; - -declare class Console { - // tslint:disable-next-line:no-any - log(...args: any[]): void; - // tslint:disable-next-line:no-any - debug(...args: any[]): void; - // tslint:disable-next-line:no-any - info(...args: any[]): void; - // tslint:disable-next-line:no-any - warn(...args: any[]): void; - // tslint:disable-next-line:no-any - error(...args: any[]): void; - // tslint:disable-next-line:no-any - assert(condition: boolean, ...args: any[]): void; -} +import "gen/js/globals"; interface Window { - console: Console; // TODO(ry) These shouldn't be global. mainSource: string; setMainSourceMap(sm: string): void; } -// Globals in the runtime environment -declare let console: Console; -declare const window: Window; - // TODO(ry) These shouldn't be global. declare let mainSource: string; declare function setMainSourceMap(sm: string): void; |