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.
Description:
While trying to consume a
zen-observable
into rxjs viafrom
, the types weren't being inferred. I added a facscimille of the zen-observable types asCompatObservable
to the tests to figure out how it was failing, and discovered the solution of adding aInteropSubscribable
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):