add noImplicitAny back to tsconfig (fixing utils.ts in the process)

This commit is contained in:
Xymorot 2019-06-23 23:11:26 +02:00
parent 8559a6b85e
commit 19dc7bd11e
2 changed files with 6 additions and 3 deletions

View File

@ -1,13 +1,13 @@
export function c(input: Array<string | boolean> | 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(';');
}

View File

@ -2,6 +2,9 @@
"compilerOptions": {
"baseUrl": "./src",
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"noImplicitAny": true,
"removeComments": true,
"sourceMap": true,
"allowJs": true,