|
1 |
| -import { of, asyncScheduler } from 'rxjs'; |
| 1 | +import { asyncScheduler } from 'rxjs'; |
2 | 2 | import { merge } from 'rxjs/operators';
|
3 |
| -import { A, B, C, D, E, F, G, a, b, c, d, e, f, g } from '../helpers'; |
| 3 | +import { a$, b$, c$, d$, e$, f$} from '../helpers'; |
4 | 4 |
|
5 | 5 | it('should accept no parameter', () => {
|
6 |
| - const res = a.pipe(merge()); // $ExpectType Observable<A> |
| 6 | + const res = a$.pipe(merge()); // $ExpectType Observable<A> |
7 | 7 | });
|
8 | 8 |
|
9 | 9 | it('should infer correctly with scheduler param', () => {
|
10 |
| - const res = a.pipe(merge(asyncScheduler)); // $ExpectType Observable<A> |
| 10 | + const res = a$.pipe(merge(asyncScheduler)); // $ExpectType Observable<A> |
11 | 11 | });
|
12 | 12 |
|
13 | 13 | it('should infer correctly with concurrent param', () => {
|
14 |
| - const res = a.pipe(merge(3)); // $ExpectType Observable<A> |
| 14 | + const res = a$.pipe(merge(3)); // $ExpectType Observable<A> |
15 | 15 | });
|
16 | 16 |
|
17 | 17 | it('should infer correctly with concurrent and scheduler param', () => {
|
18 |
| - const res = a.pipe(merge(3, asyncScheduler)); // $ExpectType Observable<A> |
| 18 | + const res = a$.pipe(merge(3, asyncScheduler)); // $ExpectType Observable<A> |
19 | 19 | });
|
20 | 20 |
|
21 | 21 | it('should infer correctly with 1 Observable param', () => {
|
22 |
| - const res = a.pipe(merge(b)); // $ExpectType Observable<A | B> |
| 22 | + const res = a$.pipe(merge(b$)); // $ExpectType Observable<A | B> |
23 | 23 | });
|
24 | 24 |
|
25 | 25 | it('should infer correctly with 2 Observable param', () => {
|
26 |
| - const res = a.pipe(merge(b, c)); // $ExpectType Observable<A | B | C> |
| 26 | + const res = a$.pipe(merge(b$, c$)); // $ExpectType Observable<A | B | C> |
27 | 27 | });
|
28 | 28 |
|
29 | 29 | it('should infer correctly with 3 Observable param', () => {
|
30 |
| - const res = a.pipe(merge(b, c, d)); // $ExpectType Observable<A | B | C | D> |
| 30 | + const res = a$.pipe(merge(b$, c$, d$)); // $ExpectType Observable<A | B | C | D> |
31 | 31 | });
|
32 | 32 |
|
33 | 33 | it('should infer correctly with 4 Observable param', () => {
|
34 |
| - const res = a.pipe(merge(b, c, d, e)); // $ExpectType Observable<A | B | C | D | E> |
| 34 | + const res = a$.pipe(merge(b$, c$, d$, e$)); // $ExpectType Observable<A | B | C | D | E> |
35 | 35 | });
|
36 | 36 |
|
37 | 37 | it('should infer correctly with 5 Observable param', () => {
|
38 |
| - const res = a.pipe(merge(b, c, d, e, f)); // $ExpectType Observable<A | B | C | D | E | F> |
| 38 | + const res = a$.pipe(merge(b$, c$, d$, e$, f$)); // $ExpectType Observable<A | B | C | D | E | F> |
39 | 39 | });
|
40 | 40 |
|
41 | 41 | it('should infer correctly with 1 Observable and concurrent param', () => {
|
42 |
| - const res = a.pipe(merge(b, 1)); // $ExpectType Observable<A | B> |
| 42 | + const res = a$.pipe(merge(b$, 1)); // $ExpectType Observable<A | B> |
43 | 43 | });
|
44 | 44 |
|
45 | 45 | it('should infer correctly with 2 Observable and concurrent param', () => {
|
46 |
| - const res = a.pipe(merge(b, c, 1)); // $ExpectType Observable<A | B | C> |
| 46 | + const res = a$.pipe(merge(b$, c$, 1)); // $ExpectType Observable<A | B | C> |
47 | 47 | });
|
48 | 48 |
|
49 | 49 | it('should infer correctly with 3 Observable and concurrent param', () => {
|
50 |
| - const res = a.pipe(merge(b, c, d, 1)); // $ExpectType Observable<A | B | C | D> |
| 50 | + const res = a$.pipe(merge(b$, c$, d$, 1)); // $ExpectType Observable<A | B | C | D> |
51 | 51 | });
|
52 | 52 |
|
53 | 53 | it('should infer correctly with 4 Observable and concurrent param', () => {
|
54 |
| - const res = a.pipe(merge(b, c, d, e, 1)); // $ExpectType Observable<A | B | C | D | E> |
| 54 | + const res = a$.pipe(merge(b$, c$, d$, e$, 1)); // $ExpectType Observable<A | B | C | D | E> |
55 | 55 | });
|
56 | 56 |
|
57 | 57 | it('should infer correctly with 5 Observable and concurrent param', () => {
|
58 |
| - const res = a.pipe(merge(b, c, d, e, f, 1)); // $ExpectType Observable<A | B | C | D | E | F> |
| 58 | + const res = a$.pipe(merge(b$, c$, d$, e$, f$, 1)); // $ExpectType Observable<A | B | C | D | E | F> |
59 | 59 | });
|
60 | 60 |
|
61 | 61 | it('should infer correctly with 1 Observable, concurrent, and scheduler param', () => {
|
62 |
| - const res = a.pipe(merge(b, 1, asyncScheduler)); // $ExpectType Observable<A | B> |
| 62 | + const res = a$.pipe(merge(b$, 1, asyncScheduler)); // $ExpectType Observable<A | B> |
63 | 63 | });
|
64 | 64 |
|
65 | 65 | it('should infer correctly with 2 Observable, concurrent, and scheduler param', () => {
|
66 |
| - const res = a.pipe(merge(b, c, 1, asyncScheduler)); // $ExpectType Observable<A | B | C> |
| 66 | + const res = a$.pipe(merge(b$, c$, 1, asyncScheduler)); // $ExpectType Observable<A | B | C> |
67 | 67 | });
|
68 | 68 |
|
69 | 69 | it('should infer correctly with 3 Observable, concurrent, and scheduler param', () => {
|
70 |
| - const res = a.pipe(merge(b, c, d, 1, asyncScheduler)); // $ExpectType Observable<A | B | C | D> |
| 70 | + const res = a$.pipe(merge(b$, c$, d$, 1, asyncScheduler)); // $ExpectType Observable<A | B | C | D> |
71 | 71 | });
|
72 | 72 |
|
73 | 73 | it('should infer correctly with 4 Observable, concurrent, and scheduler param', () => {
|
74 |
| - const res = a.pipe(merge(b, c, d, e, 1, asyncScheduler)); // $ExpectType Observable<A | B | C | D | E> |
| 74 | + const res = a$.pipe(merge(b$, c$, d$, e$, 1, asyncScheduler)); // $ExpectType Observable<A | B | C | D | E> |
75 | 75 | });
|
76 | 76 |
|
77 | 77 | it('should infer correctly with 5 Observable, concurrent, and scheduler param', () => {
|
78 |
| - const res = a.pipe(merge(b, c, d, e, f, 1, asyncScheduler)); // $ExpectType Observable<A | B | C | D | E | F> |
| 78 | + const res = a$.pipe(merge(b$, c$, d$, e$, f$, 1, asyncScheduler)); // $ExpectType Observable<A | B | C | D | E | F> |
79 | 79 | });
|
80 | 80 |
|
81 | 81 | // TODO: Fix this when the both merge operator and merge creator function has been fix
|
|
0 commit comments