mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
Update to TypeScript 3.7 (#3275)
and update to prettier 1.19 Also, update `assert()` and remove not null assertions where possibly in `cli`. Closes #3273
This commit is contained in:
parent
279191ad94
commit
9837d324a7
80 changed files with 980 additions and 1153 deletions
|
@ -162,25 +162,19 @@ window.removeEventListener =
|
|||
eventTarget.EventTarget.prototype.removeEventListener;
|
||||
|
||||
// Registers the handler for window.onload function.
|
||||
window.addEventListener(
|
||||
"load",
|
||||
(e: domTypes.Event): void => {
|
||||
const onload = window.onload;
|
||||
if (typeof onload === "function") {
|
||||
onload(e);
|
||||
}
|
||||
window.addEventListener("load", (e: domTypes.Event): void => {
|
||||
const onload = window.onload;
|
||||
if (typeof onload === "function") {
|
||||
onload(e);
|
||||
}
|
||||
);
|
||||
});
|
||||
// Registers the handler for window.onunload function.
|
||||
window.addEventListener(
|
||||
"unload",
|
||||
(e: domTypes.Event): void => {
|
||||
const onunload = window.onunload;
|
||||
if (typeof onunload === "function") {
|
||||
onunload(e);
|
||||
}
|
||||
window.addEventListener("unload", (e: domTypes.Event): void => {
|
||||
const onunload = window.onunload;
|
||||
if (typeof onunload === "function") {
|
||||
onunload(e);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
// below are interfaces that are available in TypeScript but
|
||||
// have different signatures
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue