File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ export const withCamelCaseKeys = function(source: {}) {
1818 * @return {string } in camelCase format
1919 */
2020export 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
Original file line number Diff line number Diff line change 88 "esModuleInterop" : true ,
99 "resolveJsonModule" : true ,
1010 "allowJs" : true ,
11+ "skipLibCheck" : true
1112 },
1213 "include" : [
1314 " src"
Original file line number Diff line number Diff line change 66 "moduleResolution" : " node" ,
77 "esModuleInterop" : true ,
88 "noEmit" : true ,
9- "resolveJsonModule" : true
9+ "resolveJsonModule" : true ,
10+ "skipLibCheck" : true
1011 },
1112 "include" : [
1213 " src" ,
You can’t perform that action at this time.
0 commit comments