-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
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
Using publish() inside a pipe doesn't return a right type #3595
Comments
According to the TypeScript definition of import { interval } from 'rxjs';
import { filter, publish } from 'rxjs/operators';
const source = interval(400);
const observable = publish()(source.pipe(
filter(x => x % 2 === 0),
));
observable.connect(); See also #2995 |
@evertbouw |
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. |
RxJS version:
6.0.0-uncanny-rc.7
Code to reproduce:
https://stackblitz.com/edit/rxjs6-publish-and-connect
Expected behavior:
It should be no error for TS compiler.
Actual behavior:
TS compiler outputs error, even when I added
ConnectableObservable<any>
to variable.Additional information:
The text was updated successfully, but these errors were encountered: