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.

no typescript definitions

See original GitHub issue

npm install @types/browser-image-compression doesn’t install any types because there aren’t any. I had to add an empty definitions file just to use it. Please add some types

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Donaldcwlcommented, Mar 16, 2020

I am also planning to submit the type file to https://github.com/DefinitelyTyped/DefinitelyTyped

2reactions
vianneyguesdoncommented, Jan 23, 2020

declare module ‘browser-image-compression’ { interface Options { maxSizeMB: number; maxWidthOrHeight: number; useWebWorker: boolean; } function imageCompression(image: Blob, options: Options): Blob; export = imageCompression; }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript no type definition found - npm - Stack Overflow
It will work, no error, but no intellisens, and the message is the type definition is not found . However if I do...
Read more >
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 >
Using a JavaScript library (without type declarations ... - Medium
Let's say you want to use a library in your TypeScript project. ... This means that the module does not include TypeScript typings....
Read more >
No typescript definitions. · Issue #7318 · react-navigation/react ...
... I can't found typescript definitions: error TS7016: Could not find ... error TS2305: Module '"react-navigation"' has no exported member ...
Read more >
Types and Type Declarations | Manual - Deno
One of the design principles of Deno is no non-standard module resolution. ... Overall it is better to use module/UMD type definitions with...
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