-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rename and alias
combineLatest
as combineLatestAll
for cons…
…istency (#6079) * chore: rename and alias comblineLatestAll Closes #4590 * chore: update api_guardian * chore: update docs and test
- Loading branch information
Showing
16 changed files
with
166 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { of } from 'rxjs'; | ||
import { combineLatestAll } from 'rxjs/operators'; | ||
|
||
it('should infer correctly', () => { | ||
const o = of([1, 2, 3]).pipe(combineLatestAll()); // $ExpectType Observable<number[]> | ||
}); | ||
|
||
it('should infer correctly with the projector', () => { | ||
const o = of([1, 2, 3]).pipe(combineLatestAll((values: number) => ['x', 'y', 'z'])); // $ExpectType Observable<string[]> | ||
}); | ||
|
||
it('is possible to make the projector have an `any` type', () => { | ||
const o = of([1, 2, 3]).pipe(combineLatestAll<string[]>(values => ['x', 'y', 'z'])); // $ExpectType Observable<string[]> | ||
}); | ||
|
||
it('should enforce types', () => { | ||
const o = of(1, 2, 3).pipe(combineLatestAll()); // $ExpectError | ||
}); | ||
|
||
it('should enforce type of the projector', () => { | ||
const o = of([1, 2, 3]).pipe(combineLatestAll((values: string) => ['x', 'y', 'z'])); // $ExpectError | ||
const p = of([1, 2, 3]).pipe(combineLatestAll<number[]>(values => ['x', 'y', 'z'])); // $ExpectError | ||
}); |
Oops, something went wrong.