@rx-angular/state
Version:
@rx-angular/state is a light-weight, flexible, strongly typed and tested tool dedicated to reduce the complexity of managing component state and side effects in angular
12 lines • 491 B
TypeScript
import { Observable, Subscribable, Subscription } from 'rxjs';
export type AccumulationFn = <T>(st: T, sl: Partial<T>) => T;
export interface Accumulator<T> extends Subscribable<T> {
state: T;
state$: Observable<T>;
signal$: Observable<T>;
subscribe: () => Subscription;
nextSlice: (stateSlice: Partial<T>) => void;
nextSliceObservable: (state$: Observable<Partial<T>>) => void;
nextAccumulator: (fn: AccumulationFn) => void;
}
//# sourceMappingURL=model.d.ts.map