rescript-webapi icon indicating copy to clipboard operation
rescript-webapi copied to clipboard

Convert options objects to records with optional fields

Open TheSpyder opened this issue 3 years ago • 1 comments

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.

TheSpyder avatar Jul 05 '22 22:07 TheSpyder

@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?

Minnozz avatar Aug 01 '22 15:08 Minnozz