(fn: () => void)
| 376 | } |
| 377 | |
| 378 | public onClose(fn: () => void): () => void { |
| 379 | if (this.isClosed) { |
| 380 | fn() |
| 381 | return () => {} |
| 382 | } |
| 383 | |
| 384 | this.closes.add(fn) |
| 385 | return () => { |
| 386 | this.closes.delete(fn) |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | public event(next: FooterEvent): void { |
| 391 | if (next.type === "turn.duration") { |
no test coverage detected