From 9513e90a84d4527b0a8434e0b5c73886fa85566a Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Wed, 11 Apr 2018 11:20:11 -0400 Subject: [PATCH] Fix TS error regarding `window` --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index d056caa080b9..ef472b287975 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "target": "es2016", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": [ /* Specify library files to be included in the compilation. */ + "dom", // Required to access `window` "es2017", // Required by `@sindresorhus/is` ], // "allowJs": true, /* Allow javascript files to be compiled. */