Publish typescript definitions
See original GitHub issueThe library is written in typescript, but clients using this library can’t use the definitions (.d.ts
files) since they’re not published. What about publishing them?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Documentation - Publishing - TypeScript
If your types are generated by your source code, publish the types with your source code. Both TypeScript and JavaScript projects can generate...
Read more >The 30-second guide to publishing a TypeScript package to ...
The 30-second guide to publishing a TypeScript package to NPM · 1. Add "declaration": true to the compilerOptions of your tsconfig.json · 2....
Read more >Developing and publishing a TypeScript NPM package
Ever wondered how to publish your very own npm package to the npmjs.com registry? In this article, I'll take you through the step-by-step ......
Read more >how npm publish typescript interface definition - Stack Overflow
I want to npm publish a library that contains its types definitions. I've just really started to do TS because another teams need...
Read more >Publish TypeScript definition files - DevTut
Publish TypeScript definition files. # Include definition file with library on npm. Add typings to your package.json. { ... "typings": "path/file.d.ts" .
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
For those who are interested please take a look at https://github.com/airbrake/airbrake-js/pull/422. I’ve used type definitions written by @jonnyarnold with some edits - thank you.
I was fighting with this issue for a while and I found out that there is non-standard way of importing this in typescript:
import Airbrake = require("airbrake-js");