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

chore(typings): improve publish typings #2983

Merged
merged 2 commits into from
Oct 25, 2017

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Oct 20, 2017

Use ConnectableObservable in signatures that do not have selectors.

Description:

This PR updates the overload signatures for lettable/pipeable publish, publishLast and multicast operators so that ConnectableObservable is specified where appropriate.

I've not included type tests, as it's not apparent where they should be placed. That is, the lettable operators appear to be tested via the prototype-patched operators in spec/operators. If you'd like the typings tests for the lettables added in the same location, please let me know and I'll add them.

The PR does not completely resolve the issue below, but it is directly related to it. And these changes would need to be made as the first step in resolving the issue.

Related issue (if exists): #2972

Use ConnectableObservable in signatures that do not have selectors.
@rxjs-bot
Copy link

rxjs-bot commented Oct 20, 2017

Messages
📖

CJS: 2276.5KB, global: 746.2KB (gzipped: 120.0KB), min: 145.7KB (gzipped: 31.2KB)

Generated by 🚫 dangerJS

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.399% when pulling b04f1a2 on cartant:publish-typings into 2e3d216 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.399% when pulling 6c0587e on cartant:publish-typings into 2e3d216 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.399% when pulling 34b3407 on cartant:publish-typings into 2e3d216 on ReactiveX:master.

@benlesh
Copy link
Member

benlesh commented Oct 25, 2017

Tested this and I seems to work fine in TS 2.5.

@benlesh benlesh merged commit d563bfa into ReactiveX:master Oct 25, 2017
@cartant cartant deleted the publish-typings branch March 31, 2018 02:24
@lock
Copy link

lock bot commented Jun 5, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants