question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript types are not distributed in published package

See original GitHub issue

It’s not possible to use classnames with typescript because types are not published.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:25
  • Comments:12

github_iconTop GitHub Comments

12reactions
inomdzhoncommented, Jun 17, 2020

Hi, @JedWatson!

Can you please publish version with index.d.ts to npm? 🙏 🙏 🙏

9reactions
iRoachiecommented, Dec 16, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found