Skip to content

Property 'get' does not exist on type 'FormData'. #14813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ravirajhalli opened this issue Mar 23, 2017 · 5 comments
Closed

Property 'get' does not exist on type 'FormData'. #14813

ravirajhalli opened this issue Mar 23, 2017 · 5 comments
Assignees
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

Comments

@ravirajhalli
Copy link

ravirajhalli commented Mar 23, 2017

Expected behavior:**
(https://developer.mozilla.org/en-US/docs/Web/API/FormData/get)
The above method tells about methods which can be used on formData.
Actual behavior:
Throws error

Property 'get' does not exist on type 'FormData'.)

@mhegazy
Copy link
Contributor

mhegazy commented Mar 23, 2017

We are missing almost all methods for FormData, e.g. delete, has, getAll, etc..

@mhegazy
Copy link
Contributor

mhegazy commented Mar 23, 2017

PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.

@mhegazy
Copy link
Contributor

mhegazy commented Mar 23, 2017

entries, values and keys, are special, and should be added to https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.iterable.d.ts. PRs are appreciated, feel free to ping me if you want to send a PR and have any questions.

@mhegazy mhegazy added Help Wanted You can do this Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Mar 23, 2017
@mhegazy mhegazy added this to the Community milestone Mar 23, 2017
@NColey
Copy link
Contributor

NColey commented Mar 26, 2017

Hi @mhegazy. I prepared a PR that should fix this issue here: #14859. Feel free to let me know if there is anything in it I should update or change.

@mhegazy mhegazy added the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Mar 29, 2017
@mhegazy mhegazy reopened this Mar 29, 2017
@mhegazy mhegazy modified the milestones: TypeScript 2.3, Community Mar 29, 2017
@mhegazy mhegazy self-assigned this Mar 29, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Apr 13, 2017
@mhegazy mhegazy added Fixed A PR has been merged for this issue and removed Fixed A PR has been merged for this issue Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet labels Aug 24, 2017
@radiumrasheed
Copy link

Property 'set' does not exist on type 'FormData'

any resolution?

@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

4 participants