Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create a single d.ts file from a bundle of TS classes? #229

Closed
marcuswhit opened this issue Nov 4, 2015 · 4 comments
Closed
Labels

Comments

@marcuswhit
Copy link

I don't see any obvious way that this can be done, but please let me know if I've missed something.

Thanks.

@ivogabe
Copy link
Owner

ivogabe commented Nov 6, 2015

If you're not using external modules, you can use the out or outFile option. It's not yet possible to bundle definition with external modules, see microsoft/TypeScript#4433. In the meantime you can use dts-generator. If you distribute your package on NPM, you don't have to bundle these definition files at all (see the wiki)

@marcuswhit
Copy link
Author

That's very useful re NPM, I'll look into that! Thanks.

@vytenisu
Copy link

Also there is "npm-dts" package. When using WebPack: "npm-dts-webpack-plugin".

@cancerberoSgx
Copy link

Last time I tried, the only one that I had success with was https://github.com/TypeStrong/dts-bundle, my two cents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants