You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
It seems like an omission that there's no TypeScript interface for the top level Rx object. It means you can't pass that object into a function without losing all of the type information, which sucks a bit for dependency injection (I found this while putting it into Angular).
I can get around it in TypeScript 1.4 by putting type IRx = typeof Rx; into my code. Just wondering whether it'd be possible to put that into the TypeScript definition files somewhere so its easy find? That's where I looked first (unless it's there and I missed it?)
The text was updated successfully, but these errors were encountered:
It seems like an omission that there's no TypeScript interface for the top level Rx object. It means you can't pass that object into a function without losing all of the type information, which sucks a bit for dependency injection (I found this while putting it into Angular).
I can get around it in TypeScript 1.4 by putting
type IRx = typeof Rx;
into my code. Just wondering whether it'd be possible to put that into the TypeScript definition files somewhere so its easy find? That's where I looked first (unless it's there and I missed it?)The text was updated successfully, but these errors were encountered: