| 1 | import os from 'os'; |
| 2 | |
| 3 | export interface NodeError extends Error { |
| 4 | code: string; |
| 5 | } |
| 6 | |
| 7 | export function isNodeError(err: any): err is NodeError { |
| 8 | return !!err?.code; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…