UNPKG

@rx-angular/cdk

Version:

@rx-angular/cdk is a Component Development Kit for ergonomic and highly performant angular applications. It helps to to build Large scale applications, UI libs, state management, rendering systems and much more. Furthermore the unique way of mixing reacti

17 lines (16 loc) 729 B
import { Observable } from 'rxjs'; import { RxCustomStrategyCredentials, RxStrategyCredentials, RxStrategyNames } from './model'; export interface RxStrategyHandler { strategy$: Observable<RxStrategyCredentials>; next(name: RxStrategyNames | Observable<RxStrategyNames>): void; } /** * @internal * * A factory function returning an object to handle the process of turning strategy names into `RxStrategyCredentials` * You can next a strategy name as Observable or string and get an Observable of `RxStrategyCredentials` * * @param defaultStrategyName * @param strategies */ export declare function strategyHandling(defaultStrategyName: string, strategies: RxCustomStrategyCredentials<string>): RxStrategyHandler;