Nathan.fooo 8a2f5fe789
Feat/tauri database effects (#1863)
* feat: config database view effects

* chore: add tests

* chore: config jest

* chore: config jest windows

* ci: wanrings

* chore: config folder effect
2023-02-19 14:59:04 +08:00

18 lines
288 B
TypeScript

import { Subject } from 'rxjs';
export class ChangeNotifier<T> {
private subject = new Subject<T>();
notify(value: T) {
this.subject.next(value);
}
get observer() {
return this.subject.asObservable();
}
unsubscribe = () => {
this.subject.unsubscribe();
};
}