include typescript definitions in npm package
See original GitHub issue@FezVrasta would you consider publishing a .d.ts
file in the NPM package for typescript consumers? @types/popper.js
is already a thing, but including types in the source package itself provides a more consistent experience. it also allows libraries to depend on your interfaces without introducing an @types
dependency that is unnecessary for JS consumers.
i’ve been improving the @types
definitions and could be ready with a PR today or tomorrow?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to add a typescript definition file to a npm package?
Try to load a file named index.d.ts located in the package folder (node_modules/foo/) - this file should contain typings for the package. The ......
Read more >Documentation - Publishing - TypeScript
Including declarations in your npm package ... Note that the "typings" field is synonymous with types , and could be used as well....
Read more >Typescript Typings: The Complete Guide: @types Compiler ...
We can now simply use npm and the Typescript compiler will implicitly take any type definitions installed inside the node_modules/@types folder ...
Read more >How to link a npm package with its types - Digital Fortress
1. Write Typescript Definitions ... Well this one is obvious. The first thing to do is to write the types linked to your...
Read more >Writing a TypeScript Type Definition for a JavaScript npm ...
I'm using this npm package in my project: ... This is a JavaScript only library, it does not provide any TypeScript type definitions,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I think we can give this a try. Thank you
These days I’m not at home and I’m sick + personal stuff to do.
Once I’ll be back to the normality I’m going to release a new version.