(value: any)
| 70 | } |
| 71 | |
| 72 | function isAppError(value: any): value is AppError { |
| 73 | return !!value |
| 74 | && typeof value === 'object' |
| 75 | && typeof value.code === 'string' |
| 76 | && typeof value.title === 'string' |
| 77 | && typeof value.detail === 'string' |
| 78 | } |
| 79 | |
| 80 | function legacyMessageToError( |
| 81 | message: string, |