(handler: ConfirmationHandler | null)
| 12 | let confirmationHandler: ConfirmationHandler | null = null; |
| 13 | |
| 14 | export function registerConfirmationHandler(handler: ConfirmationHandler | null): void { |
| 15 | confirmationHandler = handler; |
| 16 | } |
| 17 | |
| 18 | export function requestConfirmation(request: ConfirmationRequest): Promise<boolean> { |
| 19 | if (confirmationHandler) { |
no outgoing calls
no test coverage detected