1 | import { Action, ActionCreator, Creator } from '@ngrx/store';
|
2 | import { Observable, OperatorFunction, Operator } from 'rxjs';
|
3 | import * as i0 from "@angular/core";
|
4 | export declare class Actions<V = Action> extends Observable<V> {
|
5 | constructor(source?: Observable<V>);
|
6 | lift<R>(operator: Operator<V, R>): Observable<R>;
|
7 | static ɵfac: i0.ɵɵFactoryDeclaration<Actions<any>, never>;
|
8 | static ɵprov: i0.ɵɵInjectableDeclaration<Actions<any>>;
|
9 | }
|
10 | type ActionExtractor<T extends string | AC, AC extends ActionCreator<string, Creator>, E> = T extends string ? E : ReturnType<Extract<T, AC>>;
|
11 | export declare function ofType<AC extends ActionCreator<string, Creator>[], U extends Action = Action, V = ReturnType<AC[number]>>(...allowedTypes: AC): OperatorFunction<U, V>;
|
12 | export declare function ofType<E extends Extract<U, {
|
13 | type: T1;
|
14 | }>, AC extends ActionCreator<string, Creator>, T1 extends string | AC, U extends Action = Action, V = T1 extends string ? E : ReturnType<Extract<T1, AC>>>(t1: T1): OperatorFunction<U, V>;
|
15 | export declare function ofType<E extends Extract<U, {
|
16 | type: T1 | T2;
|
17 | }>, AC extends ActionCreator<string, Creator>, T1 extends string | AC, T2 extends string | AC, U extends Action = Action, V = ActionExtractor<T1 | T2, AC, E>>(t1: T1, t2: T2): OperatorFunction<U, V>;
|
18 | export declare function ofType<E extends Extract<U, {
|
19 | type: T1 | T2 | T3;
|
20 | }>, AC extends ActionCreator<string, Creator>, T1 extends string | AC, T2 extends string | AC, T3 extends string | AC, U extends Action = Action, V = ActionExtractor<T1 | T2 | T3, AC, E>>(t1: T1, t2: T2, t3: T3): OperatorFunction<U, V>;
|
21 | export declare function ofType<E extends Extract<U, {
|
22 | type: T1 | T2 | T3 | T4;
|
23 | }>, AC extends ActionCreator<string, Creator>, T1 extends string | AC, T2 extends string | AC, T3 extends string | AC, T4 extends string | AC, U extends Action = Action, V = ActionExtractor<T1 | T2 | T3 | T4, AC, E>>(t1: T1, t2: T2, t3: T3, t4: T4): OperatorFunction<U, V>;
|
24 | export declare function ofType<E extends Extract<U, {
|
25 | type: T1 | T2 | T3 | T4 | T5;
|
26 | }>, AC extends ActionCreator<string, Creator>, T1 extends string | AC, T2 extends string | AC, T3 extends string | AC, T4 extends string | AC, T5 extends string | AC, U extends Action = Action, V = ActionExtractor<T1 | T2 | T3 | T4 | T5, AC, E>>(t1: T1, t2: T2, t3: T3, t4: T4, t5: T5): OperatorFunction<U, V>;
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare function ofType<V extends Action>(...allowedTypes: Array<string | ActionCreator<string, Creator>>): OperatorFunction<Action, V>;
|
36 | export {};
|