-
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
ShareReplayConfig['refCount'] typing does not accept a function #7138
Comments
Not sure which part of the docs refers it. Mind elaborate? |
It doesn't explicitly mention what signature but this part is what I'm referring to:
Since |
That sentence is backed up by
Nothing explicilty said config will accept user function. |
Boolean values don't allow to define manual control of the unsubscription, which is allowed by |
@kwonoj why did you close this issue? This issue is totally valid. It's totally valid to wish to have the same configuration options that the |
Describe the bug
According to the docs,
shareReplay
configuration should accept a functionrefCount
that allows controlling unsubscription, but theShareReplayConfig
interface definesrefCount
asboolean
only.rxjs/src/internal/operators/shareReplay.ts
Lines 5 to 10 in 630d2b0
Expected behavior
ShareReplayConfig['refCount']
should have the same type asShareConfig['resetOnRefCountZero']
.Reproduction code
// Typing issue, functionality is not affected.
Reproduction URL
No response
Version
7.8.0
Environment
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: