Optionaloptions: ObserverEngine.Options<Shape>Returns if the observable instance has the given event
The internals of the observable instance. *
Enables or disables debugging for the observable instance. Works in conjunction with your spy function. Provides a stack trace of events that are triggered, listened to, and cleaned up.
Whether to enable or disable debugging
Observes given component as an extension of this observable instance.
Component to wrap events around
Optionaloptions: ObserverEngine.ObserveOptionsOptional configuration including signal for cleanup
Returns an event generator that will listen for the specified event
Optionaloptions: ObserverEngine.ListenerOptionsReturns an event generator that will listen for the specified event
Optionaloptions: ObserverEngine.ListenerOptionsListens for the specified event and executes the given callback
Optionaloptions: ObserverEngine.ListenerOptionsReturns an event generator that will listen for the specified event
Optionaloptions: ObserverEngine.ListenerOptionsReturns an event generator that will listen for all events matching the regex
Optionaloptions: ObserverEngine.ListenerOptionsListens for all events matching the regex and executes the given callback
Optionaloptions: ObserverEngine.ListenerOptionsReturns an event promise that resolves when the specified event is emitted
Optionaloptions: ObserverEngine.ListenerOptionsReturns an event promise that resolves when the specified event is emitted. This overload is untyped and can be used to listen for any event that is emitted.
Optionaloptions: ObserverEngine.ListenerOptionsExecutes a callback once when the specified event is emitted
Optionaloptions: ObserverEngine.ListenerOptionsExecutes a callback once when the specified event is emitted. This overload is untyped and can be used to listen for any event that is emitted.
Optionaloptions: ObserverEngine.ListenerOptionsReturns an event promise that resolves when any events matching the regex are emitted
Optionaloptions: ObserverEngine.ListenerOptionsExecutes a callback once when any events matching the regex are emitted
Optionaloptions: ObserverEngine.ListenerOptionsSets the spy function for the observable instance.
The spy function to set
Whether to force the spy function to be set even if one is already set
StaticcopyCopies all matching listeners from source to target without removing them from the source. Target's existing listeners are preserved.
Useful when forking an engine so both instances react to the same events independently.
Optionaloptions: ObserverEngine.TransferOptions<Shape>StatictransferTransfers all matching listeners from source to target, removing them from the source. Target's existing listeners are preserved.
Useful when cloning an engine (e.g. FetchEngine) and carrying over observability listeners to the new instance.
Optionaloptions: ObserverEngine.TransferOptions<Shape>
Returns facts about the the internal state of the observable instance.