ObservableLike<T>
Defined in: js-api/src/u2core/protocol.ts:15
The subscription surface of an event stream; an rxjs Observable satisfies it structurally.
Deliberately NOT rxjs Observable: the notification seams return hand-rolled literals, and
the dependency-free core never types against rxjs (a webpack external).
What Component.onEvent emits is a union: a component event's own payload, or a DOM
Event where the control's root raises one of the same name. Nothing wraps or tags them —
a subscriber that cares tests for instanceof Event.
Type Parameters
| Type Parameter |
|---|
T |
Methods
subscribe()
subscribe(
next):object
Defined in: js-api/src/u2core/protocol.ts:16
Parameters
| Parameter | Type |
|---|---|
next | (x) => void |
Returns
object
| Name | Type | Defined in |
|---|---|---|
unsubscribe() | () => void | js-api/src/u2core/protocol.ts:16 |