(data: unknown)
| 450 | } |
| 451 | |
| 452 | export const isServiceError = (data: unknown): data is ServiceError => { |
| 453 | return typeof data === 'object' && |
| 454 | data !== null && |
| 455 | 'statusCode' in data && |
| 456 | 'errorCode' in data && |
| 457 | 'message' in data; |
| 458 | } |
| 459 | |
| 460 | export const getFormattedDate = (date: Date) => { |
| 461 | const now = new Date(); |
no outgoing calls
no test coverage detected