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.

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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
FezVrastacommented, Jul 11, 2017

Ok I think we can give this a try. Thank you

0reactions
FezVrastacommented, Jul 19, 2017

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.

Read more comments on GitHub >

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

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