TypeScript types are not distributed in published package
See original GitHub issueIt’s not possible to use classnames
with typescript because types are not published.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:25
- Comments:12
Top Results From Across the Web
Documentation - Publishing - TypeScript
Now that you have authored a declaration file following the steps of this guide, it is time to publish it to npm. There...
Read more >Typescript does not resolve definition file for npm package
The problem you have is due to your tsconfig.json tries to explicitly include the typing file. npm package typings ...
Read more >How to link a npm package with its types - Digital Fortress
Learn how to link your npm package with its types/typescript definitions correctly to provide type-hinting to everyone who uses your package ...
Read more >Typescript Typings: The Complete Guide: @types Compiler ...
How can packages provide their own custom types? ... No type definitions of any kind are available; Type definitions are available and ...
Read more >Publish Typescript Packages with minimal configuration
I will show you how to expose Node.js packages written in Typescript to the NPM registry. I will walk you through the process...
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 Free
Top 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
Hi, @JedWatson!
Can you please publish version with
index.d.ts
to npm? 🙏 🙏 🙏@ScottyFillups the request is to bundle it with the library. It’s already in master https://github.com/JedWatson/classnames/blob/master/index.d.ts, just not pushed to npm