I know there must be TypeScript typings for this project
prior to this I installed using
npm install rxjs
but now I just want to install the typings, not the whole library.
But I cannot find the typings library name.
The typings are bundled in the rxjs package.
closing as it's answered.
I think it might be nice to have a @types/rxjs package, in the offchance someone just wants the types?
If you just want the types (I can't imagine why you would want that) you can just install the full package and only use the types. It would be a nightmare of maintenance to publish types _also_ to DT.
Can't you just publish a git-subtree or git-submodule to @types/rxjs?
DT does not support git submodules. What is your use case? What's the problem with the main package?
This is the problem :)

I think people in the NPM community could do a lot of good to the community, by using 1 d.ts file, instead of 30 .ts files in a project, and so on and so forth.
Another reason I ask - I am wondering how I can publish this project to @types/suman
In the suman-types project, I basically want to publish the contents of the dts folder, to @types/suman. Any advice would be well-received.
My question was more, why would you need the types but not the actual implementation?
Yes I will try to answer your question - I have a project which uses RxJS5 _types_ for testing, but does not need the library itself. That's because I support Observables, but I don't use Observables in the codebase, if that makes sense. I just need to know type signatures, but I don't need to use the library.
for example:
https://github.com/sumanjs/suman/blob/master/lib/test-suite-helpers/handle-promise-generator.ts#L28
I have rxjs5 installed as a devDependency => "rxjs": "^5.0.3", but if I can just get the types, I would rather install that, to reduce the size of the node_modules footprint.
I also need just type definitions to write some auto imported interfaces
https://stackoverflow.com/questions/47032606/typescript-d-ts-file-import-rxjs-type-definitions-only
how can i use types without a module system ?
@valeriob what do you mean? You can import types (.d.ts) files using node.js.
No, i mean just link a rx.js on the page and you are good to go, without any compiler, boundler etc..
@valeriob types are for buildtime, not runtime, so I don't think you are asking the right question, if you know what I mean. TypeScript types are "erased" when TS code is transpiled to JS code, it's called type-erasure.
Yes ofc they are,
but if you use typescript with namespaces instead of modules types have to be exported as namespace
https://github.com/zspitz/TypeScript-Handbook/blob/release-2.0/pages/Modules.md#umd-modules
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
The typings are bundled in the
rxjspackage.