File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export function run(): Promise<void> {
3434 } ) ;
3535 } catch ( err ) {
3636 console . error ( err ) ;
37- e ( err as Error ) ;
37+ e ( err instanceof Error ? err : new Error ( String ( err ) ) ) ;
3838 }
3939 } ) ;
4040 } ) ;
Original file line number Diff line number Diff line change 55 "lib" : [" ES2020" ],
66 "sourceMap" : true ,
77 "rootDir" : " src" ,
8- "strict" : true /* enable all strict type-checking options */
8+ "strict" : true /* enable all strict type-checking options */ ,
99 /* Additional Checks */
10- // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
10+ "noImplicitReturns" : true /* Report error when not all code paths in function return a value. */ ,
11+ "useUnknownInCatchVariables" : true /* Type caught variables as 'unknown' instead of 'any' */
1112 // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
1213 // "noUnusedParameters": true, /* Report errors on unused parameters. */
1314 }
You can’t perform that action at this time.
0 commit comments