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.

TS Interface for FormData missing

See original GitHub issue

I am trying to use mailgun.js with a TS project. It seems like Interfaces for FormData are not imported in the index.d.ts files.?

screenshots: Screenshot 2021-02-23 at 13 49 39 Screenshot 2021-02-23 at 13 50 10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
MirzaFaizancommented, Feb 24, 2021

Looking at this closer you probably don’t have @types/node installed. FormData is coming from Nodejs Standard Library. Types for the Nodejs Standard Library come in the @types/node package.

I have the @types/node installed already. It generates same TS errors.

2reactions
from-niblycommented, Feb 24, 2021

Looking at this closer you probably don’t have @types/node installed. FormData is coming from Nodejs Standard Library. Types for the Nodejs Standard Library come in the @types/node package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing methods in FormData interface · Issue #14537 - GitHub
In general JS I can retrieve data set with append by calling getAll . This method is missing inside of the FormData interface...
Read more >
Error TS2339: Property 'entries' does not exist on type ...
I run into this error while compiling my code with ng serve --watch . Error TS2339: Property 'entries' does not exist on type...
Read more >
FormData in TypeScript - DEV Community ‍ ‍
It turns out the fix for this is subtle - you need to specifically tell TypeScript you're going to be using this method...
Read more >
FormData.entries() - Web APIs | MDN
The FormData.entries() method returns an iterator which iterates through all key/value pairs contained in the FormData.
Read more >
form-data - npm
A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications.
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