File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ async function runBench(
259
259
warnings = warnings . concat ( result . warnings ) ;
260
260
} catch ( e ) {
261
261
console . log ( "UNHANDELED ERROR" , e ) ;
262
- errors . push ( e ) ;
262
+ errors . push ( e as string ) ;
263
263
}
264
264
}
265
265
}
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ async function fetchFrameworks(url: string) {
125
125
return await response . json ( ) ;
126
126
} catch ( error ) {
127
127
console . log ( error ) ;
128
- throw new Error ( error ) ;
128
+ throw new Error ( error as string ) ;
129
129
}
130
130
}
131
131
@@ -139,7 +139,7 @@ export async function initializeFrameworks(
139
139
try {
140
140
lsResult = await fetchFrameworks ( lsUrl ) ;
141
141
} catch ( error ) {
142
- throw new Error ( error ) ;
142
+ throw new Error ( error as string ) ;
143
143
}
144
144
145
145
let frameworks : FrameworkData [ ] = [ ] ;
Original file line number Diff line number Diff line change 3
3
"outDir" : " dist" ,
4
4
"rootDir" : " src" ,
5
5
"sourceMap" : true ,
6
- "noImplicitAny" : true ,
7
6
"module" : " NodeNext" ,
8
7
"moduleResolution" : " NodeNext" ,
9
8
"declaration" : false ,
10
9
"target" : " es2017" ,
11
10
"allowSyntheticDefaultImports" : true ,
12
11
"noLib" : false ,
13
- "typeRoots" : [" ./node_modules/@types" , " ./src/typings" ]
12
+ "typeRoots" : [" ./node_modules/@types" , " ./src/typings" ],
13
+
14
+ "noImplicitAny" : true ,
15
+ "alwaysStrict" : true ,
16
+ "strictBindCallApply" : true ,
17
+ "strictFunctionTypes" : true ,
18
+ "useUnknownInCatchVariables" : true
14
19
},
15
20
"include" : [" src/**/*.ts" ],
16
21
"exclude" : [" **/*.test.ts" ]
You can’t perform that action at this time.
0 commit comments