Skip to content

Commit 00500ef

Browse files
committed
Fix types and skip typecheck for libs
1 parent 3758413 commit 00500ef

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/backwards/utils/legacyBaseUtil.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export const withCamelCaseKeys = function(source: {}) {
1818
* @return {string} in camelCase format
1919
*/
2020
export const camelCase = function(source: string) {
21-
var words = source.match(reWords);
21+
let words : string[] = source.match(reWords);
22+
2223
words = words.map(word=> word.charAt(0).toLocaleUpperCase() + word.slice(1).toLocaleLowerCase());
2324
words[0] = words[0].toLocaleLowerCase();
2425

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"esModuleInterop": true,
99
"resolveJsonModule": true,
1010
"allowJs": true,
11+
"skipLibCheck": true
1112
},
1213
"include": [
1314
"src"

tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"moduleResolution": "node",
77
"esModuleInterop": true,
88
"noEmit": true,
9-
"resolveJsonModule": true
9+
"resolveJsonModule": true,
10+
"skipLibCheck": true
1011
},
1112
"include": [
1213
"src",

0 commit comments

Comments
 (0)