I am surprised by the lack of strong types defined...
# javascript
i
I am surprised by the lack of strong types defined for window.fetch.... it seetms, like there are no enums for request methods POST, GET, its just a string, no type defined for headers, thats just a dynamic ... am i missing something? is there any convenience method to set basic auth headers with
window.fetch
(... or any api available in kotlin.js), or do i really just have to configure my requests 'manually' with these weak types?
t
You can realize strict
fetch
wrapper if you really need it 🙂
👍 1
Fetch_kt.kt