-
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
Type definition for extended operator is not published #642
Comments
This issue is related with modularity strategies. Tried some approaches ends up with vain, exploring few other approaches including mixins. |
cc/ @robwormald |
cc/ @jeffbcross |
Created PR #643 for initial proposal based on mixin, and possibly including ambient declaration merging if it's necessarily required. |
Nice work OJ! I'll try this out later today but at first glance it looks On Wednesday, November 4, 2015, OJ Kwon notifications@github.com wrote:
|
Related with #750 . |
@kwonoj @robwormald is this issue resolved? Can we close this? |
No, it's still there and we don't have decent solution yet. |
@kwonoj @jeffbcross @robwormald ... is it reasonable to say this is a problem with TypeScript and not necessarily with how RxJS is structured? |
I'm considering half and half. TypeScript can possibly bring better feature resolves this issue, but I would expect it'll eventually requires change structures of RxJS codebase, just matter of how much. Short example would be interfaces are tied to return As an issue tracking perspective, I don't think this can be updated in relatively short time frame. I'm seeing couple of discussions are in TypeScript perspective would require some time to something's actually happening. I can suggest close this for now and bring it back once circumstances allowing further discussion. |
Thinking about this issue, I came to think this also could be resolved via module augmentation as same as #1193, with introducing some organization changes. It might be get rid of interface Still this is vague idea, might need to come up with solid changes once infrastructure (primarily min version of typescript) is ready. |
In theory |
I'm bit on fence to get rid of interface itself, but yes - augmentation can make it happen. Let me explore further to come up with proof of concept. |
ping @kwonoj ... can this be closed now? |
Yes, I thought it's already closed.. :/ Thanks for finding, closing. |
Note: this issue is closed by #1388. |
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. |
Code snippet below works in JS,
when it comes to TS
compiler will complain due to
Observable.of
does not returns extended type of operator instead of core.error TS2339: Property 'isEmpty' does not exist on type 'Observable<number>'.
The text was updated successfully, but these errors were encountered: