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 {
|
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(';');
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue