1 | // Type definitions for jsdom 16.2
|
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 |
|
8 | /// <reference path="ts4.0/index.d.ts"/>
|
9 |
|
10 | // tslint:disable-next-line: no-declare-current-package no-single-declare-module
|
11 | declare module "jsdom" {
|
12 | interface DOMWindow {
|
13 | FinalizationRegistry: FinalizationRegistryConstructor;
|
14 | WeakRef: WeakRefConstructor;
|
15 | }
|
16 | }
|
17 |
|
18 | // Necessary to avoid breaking dependents because of the dependency
|
19 | // on the `ESNext.WeakRef` lib:
|
20 | // tslint:disable-next-line: no-empty-interface
|
21 | interface FinalizationRegistryConstructor {}
|
22 | // tslint:disable-next-line: no-empty-interface
|
23 | interface WeakRefConstructor {}
|