* Type guard narrowing an unknown error to a Node.js errno-style exception. * Uses `in` narrowing so no `as` cast is needed at call sites.
(e: unknown)
| 140 | * Uses `in` narrowing so no `as` cast is needed at call sites. |
| 141 | */ |
| 142 | function isErrnoException(e: unknown): e is NodeJS.ErrnoException { |
| 143 | return e instanceof Error && 'code' in e && typeof e.code === 'string' |
| 144 | } |
| 145 | |
| 146 | // ─── Auth & endpoint ───────────────────────────────────────── |
| 147 |
no outgoing calls
no test coverage detected