From 19dc7bd11eea63a32324f132e2db5797e8f308d0 Mon Sep 17 00:00:00 2001 From: Xymorot Date: Sun, 23 Jun 2019 23:11:26 +0200 Subject: [PATCH] add noImplicitAny back to tsconfig (fixing utils.ts in the process) --- src/renderer/services/utils.ts | 6 +++--- tsconfig.json | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/renderer/services/utils.ts b/src/renderer/services/utils.ts index f0ac851..e7ca2b6 100644 --- a/src/renderer/services/utils.ts +++ b/src/renderer/services/utils.ts @@ -1,13 +1,13 @@ export function c(input: Array | object): string { const array = Array.isArray(input) ? input.filter(el => typeof el === 'string') - : Object.keys(input).filter(key => !!input[key]); + : Object.keys(input).filter((key: keyof object) => !!input[key]); return array.join(' '); } export function s(styles: object): string { return Object.keys(styles) - .filter(key => !!styles[key]) - .map(key => `${key}:${styles[key]}`) + .filter((key: keyof object) => !!styles[key]) + .map((key: keyof object) => `${key}:${styles[key]}`) .join(';'); } diff --git a/tsconfig.json b/tsconfig.json index 75882c1..2303a2d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,9 @@ "compilerOptions": { "baseUrl": "./src", "module": "commonjs", + "moduleResolution": "node", + "esModuleInterop": true, + "noImplicitAny": true, "removeComments": true, "sourceMap": true, "allowJs": true,