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 { export function c(input: Array<string | boolean> | object): string {
const array = Array.isArray(input) const array = Array.isArray(input)
? input.filter(el => typeof el === 'string') ? 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(' '); return array.join(' ');
} }
export function s(styles: object): string { export function s(styles: object): string {
return Object.keys(styles) return Object.keys(styles)
.filter(key => !!styles[key]) .filter((key: keyof object) => !!styles[key])
.map(key => `${key}:${styles[key]}`) .map((key: keyof object) => `${key}:${styles[key]}`)
.join(';'); .join(';');
} }

View File

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