Check if a specific event type was received
(type: PrintModeEvent['type'])
| 48 | |
| 49 | /** Check if a specific event type was received */ |
| 50 | hasEventType(type: PrintModeEvent['type']): boolean { |
| 51 | return this.events.some((e) => e.type === type) |
| 52 | } |
| 53 | |
| 54 | /** Get the first event of a specific type */ |
| 55 | getFirstEvent<T extends PrintModeEvent['type']>( |
no outgoing calls
no test coverage detected