(value: unknown)
| 80 | | { status: 'failed'; error: string }; |
| 81 | |
| 82 | function object(value: unknown): Record<string, unknown> { |
| 83 | if (typeof value !== 'object' || value === null || Array.isArray(value)) |
| 84 | throw new Error('Invalid impact response'); |
| 85 | return value as Record<string, unknown>; |
| 86 | } |
| 87 | function text(value: unknown): string { |
| 88 | if (typeof value !== 'string') throw new Error('Invalid impact text'); |
| 89 | return value; |
no outgoing calls
no test coverage detected