rescript-webapi
rescript-webapi copied to clipboard
Use polymorphic variants for some Request properties
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
@spocke Yeah it looks quite awkward. I think another way of improving that situation is through IDE autocompletion too.