(error: unknown, status: number)
| 619 | }; |
| 620 | |
| 621 | export const isHttpError = (error: unknown, status: number): boolean => { |
| 622 | return error !== null |
| 623 | && typeof error === 'object' |
| 624 | && 'status' in error |
| 625 | && error.status === status; |
| 626 | } |
| 627 | |
| 628 | const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); |
| 629 |
nothing calls this directly
no outgoing calls
no test coverage detected