We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RxJS version: 5.5.0
Code to reproduce:
declare const obs: Observable<number>; const temp: null = obs.pipe(publishReplay(1));
Expected behavior: I'm expecting Type 'Observable<number>' is not assignable to type 'null'.
Type 'Observable<number>' is not assignable to type 'null'.
Actual behavior: Type 'Observable<any>' is not assignable to type 'null'.
Type 'Observable<any>' is not assignable to type 'null'.
The text was updated successfully, but these errors were encountered:
Thanks, @bowenni.
This could just be an issue with TypeScript. cc @david-driscoll, can you please have a look at this?
Sorry, something went wrong.
fix(publishReplay): type inference improved
696d04e
closes ReactiveX#3260
fix(publishReplay): type inference improved (#3437)
dd7c9f1
closes #3260
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
david-driscoll
Successfully merging a pull request may close this issue.
RxJS version:
5.5.0
Code to reproduce:
Expected behavior:
I'm expecting
Type 'Observable<number>' is not assignable to type 'null'.
Actual behavior:
Type 'Observable<any>' is not assignable to type 'null'.
The text was updated successfully, but these errors were encountered: