(result: BackendAlertResult)
| 388 | } |
| 389 | |
| 390 | function normalizeAlertStatusResult(result: BackendAlertResult): SystemAlertCommandResult { |
| 391 | if (result.kind !== 'alertStatus') { |
| 392 | throw new AppError('COMMAND_FAILED', 'system.alert get returned an invalid backend result'); |
| 393 | } |
| 394 | return { kind: 'alertStatus', action: 'get', alert: result.alert }; |
| 395 | } |
| 396 | |
| 397 | function normalizeAlertWaitResult(result: BackendAlertResult): SystemAlertCommandResult { |
| 398 | if (result.kind !== 'alertWait') { |
no outgoing calls
no test coverage detected
searching dependent graphs…