UNPKG

@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

7 lines 397 B
import { Signal } from '@angular/core'; import { Observable } from 'rxjs'; export type SignalStateProxy<State extends object> = { [K in keyof State]: Signal<State[K]>; }; export declare function createSignalStateProxy<State extends object>(state$: Observable<State>, stateFn: <K extends keyof State>(k: K) => State[K]): SignalStateProxy<State>; //# sourceMappingURL=signal-state-proxy.d.ts.map