@ngrx/signals
Version:
Reactive Store and Set of Utilities for Angular Signals
16 lines (13 loc) • 474 B
TypeScript
import { Injector } from '@angular/core';
import { Observable } from 'rxjs';
type RxMethodRef = {
destroy: () => void;
};
type RxMethod<Input> = ((input: Input | (() => Input) | Observable<Input>, config?: {
injector?: Injector;
}) => RxMethodRef) & RxMethodRef;
declare function rxMethod<Input>(generator: (source$: Observable<Input>) => Observable<unknown>, config?: {
injector?: Injector;
}): RxMethod<Input>;
export { rxMethod };
export type { RxMethod };