1 | // Type definitions for jsdom 20.0
|
2 | // Project: https://github.com/jsdom/jsdom
|
3 | // Definitions by: Leonard Thieu <https://github.com/leonard-thieu>
|
4 | // Johan Palmfjord <https://github.com/palmfjord>
|
5 | // ExE Boss <https://github.com/ExE-Boss>
|
6 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
7 | // Minimum TypeScript Version: 4.5
|
8 |
|
9 | /// <reference path="base.d.ts"/>
|
10 |
|
11 | // tslint:disable-next-line: no-declare-current-package no-single-declare-module
|
12 | declare module "jsdom" {
|
13 | interface DOMWindow {
|
14 | FinalizationRegistry: FinalizationRegistryConstructor;
|
15 | WeakRef: WeakRefConstructor;
|
16 | InputEvent: typeof InputEvent;
|
17 | External: typeof External;
|
18 | }
|
19 | }
|
20 |
|
21 | // Necessary to avoid breaking dependents because of the dependency
|
22 | // on the `ESNext.WeakRef` lib:
|
23 | // tslint:disable-next-line: no-empty-interface
|
24 | interface FinalizationRegistryConstructor {}
|
25 | // tslint:disable-next-line: no-empty-interface
|
26 | interface WeakRefConstructor {}
|