Skip to content

fix: accept FormData as ReadOnlyFormData#1256

Merged
Rich-Harris merged 2 commits intosveltejs:masterfrom
ignatiusmb:gh-1215
Apr 28, 2021
Merged

fix: accept FormData as ReadOnlyFormData#1256
Rich-Harris merged 2 commits intosveltejs:masterfrom
ignatiusmb:gh-1215

Conversation

@ignatiusmb
Copy link
Member

Closes #1215

This will enable users to pass in FormData in RequestHandler as RequestHandler<any, FormData>, while still restricting it to allow readable methods only.

image

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpx changeset and following the prompts

@Rich-Harris Rich-Harris merged commit 354e384 into sveltejs:master Apr 28, 2021
@ignatiusmb ignatiusmb deleted the gh-1215 branch April 28, 2021 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should ReadOnlyFormData type be exported?

3 participants