Spaces:
Paused
Paused
export function isNodeLikeError( | |
error: unknown | |
): error is NodeJS.ErrnoException { | |
if (error == null) { | |
return false | |
} | |
if (!(error instanceof Error)) { | |
return false | |
} | |
return 'code' in error && 'errno' in error | |
} | |