(value: unknown)
| 28 | } |
| 29 | |
| 30 | const getErrorMessage = (value: unknown): string | undefined => { |
| 31 | if (!value || typeof value !== 'object') return undefined |
| 32 | const record = value as Record<string, unknown> |
| 33 | const message = record.error ?? record.message |
| 34 | return typeof message === 'string' ? message : undefined |
| 35 | } |
| 36 | |
| 37 | const redactGravityApiKey = ( |
| 38 | text: string, |