(error: unknown)
| 27 | } |
| 28 | |
| 29 | export function isStructuredError(error: unknown): error is StructuredError { |
| 30 | return ( |
| 31 | typeof error === 'object' && |
| 32 | error !== null && |
| 33 | 'message' in error && |
| 34 | typeof (error as StructuredError).message === 'string' |
| 35 | ); |
| 36 | } |
| 37 | |
| 38 | export function isProQuotaExceededError(error: unknown): boolean { |
| 39 | // Check for Pro quota exceeded errors by looking for the specific pattern |
no outgoing calls
no test coverage detected