mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
bf9930066d
This PR is intentionally ugly. It duplicates all of the code in cli/js2/ into cli/tsc/ ... because it's very important that we all understand that this code is unnecessarily duplicated in our binary. I hope this ugliness provides the motivation to clean it up. The typescript git submodule is removed, because it's a very large repo and contains all sorts of stuff we don't need. Instead the necessary files are copied directly into the deno repo. Hence +200k lines. COMPILER_SNAPSHOT.bin size ``` master 3448139 this branch 3320972 ``` Fixes #6812
25 lines
887 B
TypeScript
Vendored
25 lines
887 B
TypeScript
Vendored
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
|
/// <reference no-default-lib="true" />
|
|
/// <reference lib="deno.ns" />
|
|
/// <reference lib="deno.shared_globals" />
|
|
/// <reference lib="esnext" />
|
|
|
|
declare interface Window extends EventTarget {
|
|
readonly window: Window & typeof globalThis;
|
|
readonly self: Window & typeof globalThis;
|
|
onload: ((this: Window, ev: Event) => any) | null;
|
|
onunload: ((this: Window, ev: Event) => any) | null;
|
|
close: () => void;
|
|
readonly closed: boolean;
|
|
Deno: typeof Deno;
|
|
}
|
|
|
|
declare const window: Window & typeof globalThis;
|
|
declare const self: Window & typeof globalThis;
|
|
declare const onload: ((this: Window, ev: Event) => any) | null;
|
|
declare const onunload: ((this: Window, ev: Event) => any) | null;
|
|
|
|
/* eslint-enable @typescript-eslint/no-explicit-any */
|