In lib.d.ts hasn't signature for formData types (Fetch API) #14378
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 2.2.1
After adding typings for Fetch API in core typescript I got an error
Property 'formData' does not exist on type 'Response'
. Because in lib.dom.d.ts I see:But for typings whatwg-fetch:
And this types in Fetch API spec https://fetch.spec.whatwg.org/#body
I sent a PR to the repository TSJS-lib-generator
The text was updated successfully, but these errors were encountered: