(error: any)
| 23 | |
| 24 | /** Error originates from file system. */ |
| 25 | export const errorHasCode = (error: any): error is ErrorWithCode => { |
| 26 | return error && "code" in error |
| 27 | } |
| 28 | |
| 29 | const notFoundCodes = [404, "ENOENT", "EISDIR"] |
| 30 |
no outgoing calls
no test coverage detected