add noImplicitAny back to tsconfig (fixing utils.ts in the process)
This commit is contained in:
parent
8559a6b85e
commit
19dc7bd11e
|
@ -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(';');
|
||||
}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
"compilerOptions": {
|
||||
"baseUrl": "./src",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"noImplicitAny": true,
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
"allowJs": true,
|
||||
|
|
Loading…
Reference in New Issue