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

Use polymorphic variants for some Request properties

Open tom-sherman opened this issue 3 years ago • 1 comments

Relates to #30 and #38

Changes mode, credentials, cache, and redirect to use polymorphic variants.

I've left destination and referrerPolicy untouched for now as they have some problems. See https://github.com/tinymce/rescript-webapi/issues/38#issuecomment-998956905

tom-sherman avatar Dec 21 '21 17:12 tom-sherman

@spocke Yeah it looks quite awkward. I think another way of improving that situation is through IDE autocompletion too.

tom-sherman avatar Dec 27 '21 18:12 tom-sherman