Interface: AtomObserver<T>
API / @xmachines/play-atom / AtomObserver
Defined in: play-atom/src/types.ts:34
The observer of an atom, in the object form
Each member is optional, so an observer of the value alone gives next alone. An
atom completes never and it fails never, so error and complete stay for the
consumers that adapt an atom to an observable.
Type Parameters
| Type Parameter |
|---|
T |
Properties
| Property | Type | Defined in |
|---|---|---|
complete? | () => void | play-atom/src/types.ts:37 |
error? | (error) => void | play-atom/src/types.ts:36 |
next? | (value) => void | play-atom/src/types.ts:35 |