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.

Publish typescript definitions

See original GitHub issue

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

github_iconTop GitHub Comments

2reactions
vmihailencocommented, Apr 23, 2018

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.

0reactions
mwilniewieccommented, Jan 4, 2019

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");

Read more comments on GitHub >

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

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