@known-as-bmf/store-obs
v3.0.7
Published
Utility to create an Observable emiting when a @known-as-bmf/store instance changes.
Downloads
13
Maintainers
Readme
@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>>;