| 1 | interface ErrorWithErrorCode extends Error { |
| 2 | code: string; |
| 3 | } |
| 4 | |
| 5 | export function isAnErrorWithCode(error: unknown): error is ErrorWithErrorCode { |
| 6 | return error instanceof Error && 'code' in error; |
nothing calls this directly
no outgoing calls
no test coverage detected