Skip to content

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.

1 participant