TheSpyder / rescript-webapi

ReScript bindings to the DOM and other Web APIs
http://tinymce.github.io/rescript-webapi/api/Webapi/
Other
151 stars 37 forks source link

Convert options objects to records with optional fields #103

Open TheSpyder opened 2 years ago

TheSpyder commented 2 years ago

There's a new feature in ReScript v10 (which hit alpha today) that means we no longer need annoying functions to implement "option object" apis. I'll update this description with examples when I have time.

We don't use this style in webapi as much as some other bindings, but we should still switch to this during the version 2 efforts.

Minnozz commented 2 years ago

@TheSpyder Do you want to provide the first example(s) or are contributions already welcome?

How do you intend to handle the required bump in compiler version?