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

Improve type inference with zen-observable #7472

Open
wants to merge 2 commits into
base: 7.x
Choose a base branch
from

Conversation

forivall
Copy link

Description:

While trying to consume a zen-observable into rxjs via from, the types weren't being inferred. I added a facscimille of the zen-observable types as CompatObservable to the tests to figure out how it was failing, and discovered the solution of adding a InteropSubscribable with an overload, which allowed the types to infer properly. This might be a shortcoming of typescript itself, but, in the meantime, this seems to work well.

Related issue (if exists):

@forivall forivall changed the title test: add dtslint check for interop Improve type inference with zen-observable May 10, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant