@known-as-bmf/store-obs
Installation
npm install --save rxjs @known-as-bmf/store @known-as-bmf/store-obs
Description
Create an observable emiting state changes from @known-as-bmf/store
.
API
/**
* Creates an observable from the store, emitting every time the store is updated.
* @param store The store to observe.
* @throws {TypeError} if the store is not a correct `Store` instance.
*/
function obs<S>(store: Store<S>): Observable<StateChangedEvent<S>>;