Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Bindings for FormData #138

Closed
yawaramin opened this issue Apr 15, 2019 · 1 comment · Fixed by #187
Closed

Bindings for FormData #138

yawaramin opened this issue Apr 15, 2019 · 1 comment · Fixed by #187

Comments

@yawaramin
Copy link
Collaborator

I took a look at https://developer.mozilla.org/en-US/docs/Web/API/FormData and it seems binding this will involve writing some tricky bindings like iterators, Blobs, and so on.

@glennsl do you have any suggestions for this? Or maybe I can play around with it a bit and see what I come up with.

@glennsl
Copy link
Member

glennsl commented Apr 16, 2019

Yeah, that's a tricky one. There's been some attempt at adding it to bs-fetch too: melange-community/melange-fetch#14

At the very least I think the formData and blob types should be added to Dom in bs-platform, to avoid needing bs-webapi as a dependency of bs-fetch for eaxmple. (And there's a few more types here that could be brought over then too, like image).

I also think Bob had some thoughts about iterator support in BuckleScript a few years ago. I don't know if he's thought any more about that, but might be worth asking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants