fix: set error types to any

This commit is contained in:
Peter Evans 2021-09-02 13:59:30 +09:00
parent 3e21ec0c82
commit 3263596ac4
7 changed files with 67 additions and 25 deletions

View file

@ -134,7 +134,7 @@ export function fileExistsSync(path: string): boolean {
let stats: fs.Stats
try {
stats = fs.statSync(path)
} catch (error) {
} catch (error: any) {
if (error.code === 'ENOENT') {
return false
}