Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

IRx interface for TypeScript #723

Open
franklin-ross opened this issue May 19, 2015 · 2 comments
Open

IRx interface for TypeScript #723

franklin-ross opened this issue May 19, 2015 · 2 comments

Comments

@franklin-ross
Copy link

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?)

@raysuelzer
Copy link

+1

@mattpodwysocki
Copy link
Member

@david-driscoll is this worth looking into?

bouzuya pushed a commit to bouzuya/RxJS that referenced this issue Mar 23, 2016
add tests to be sure all permutations of objects that could be observers can be passed without error

related Reactive-Extensions#723
bouzuya pushed a commit to bouzuya/RxJS that referenced this issue Mar 23, 2016
Errors were being thrown in situations where a handler was not present on a partial observer

fixes Reactive-Extensions#723
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants