(eventType: string, options: EventsFnOptions = {})
| 21 | } |
| 22 | |
| 23 | public events(eventType: string, options: EventsFnOptions = {}): Stream<Event> { |
| 24 | let stream: Stream<Event>; |
| 25 | if (options && typeof options.useCapture === 'boolean') { |
| 26 | stream = fromEvent(document, eventType, options.useCapture); |
| 27 | } else { |
| 28 | stream = fromEvent(document, eventType); |
| 29 | } |
| 30 | const out: DevToolEnabledSource & Stream<Event> = adapt(stream); |
| 31 | out._isCycleSource = this._name; |
| 32 | return out; |
| 33 | } |
| 34 | } |