From 67f14c9a73e33f25a4f5f284f71de9493500ca65 Mon Sep 17 00:00:00 2001 From: Sebastian Richter Date: Tue, 13 Nov 2018 10:46:14 +0100 Subject: [PATCH] Reference lib "dom" Currently lib "dom" is required for compilation. However, including "dom" in lib can cause some opaque bugs on a server. For example, the TS compiler won't complain when using `fetch` without something like `import fetch from "node-fetch"` or using `URL` without `import { URL } from "url"`. --- types/jsdom/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/jsdom/index.d.ts b/types/jsdom/index.d.ts index dec74af1ba..a48404da21 100644 --- a/types/jsdom/index.d.ts +++ b/types/jsdom/index.d.ts @@ -5,6 +5,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +/// /// import { EventEmitter } from 'events';