Skip to content
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

ConnectableObservable & publish typings are wrong #5651

Closed
joshribakoff opened this issue Aug 17, 2020 · 2 comments
Closed

ConnectableObservable & publish typings are wrong #5651

joshribakoff opened this issue Aug 17, 2020 · 2 comments

Comments

@joshribakoff
Copy link
Contributor

joshribakoff commented Aug 17, 2020

Bug Report

Current Behavior
Typings for connectableObservable when using publish are wrong

Reproduction

import { of, ConnectableObservable,timer } from 'rxjs'; 
import { map, publish } from 'rxjs/operators';


const stall$: ConnectableObservable<number> = timer(100).pipe(publish());
stall$.connect();

There is a TS error on declaration of stall$

Expected behavior
Should infer the type w/o annotating. If I do chose to annotate, no type error should occur.

@voliva
Copy link
Contributor

voliva commented Aug 18, 2020

I think it's a duplicate of #2972

@kwonoj
Copy link
Member

kwonoj commented Jan 22, 2021

Closing as dupe as commented.

@kwonoj kwonoj closed this as completed Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants