It would be nice to improve the types of the function:
export const fetchJSON = async (url: string, options?: RequestInit) => {}
Thanks for the idea @pomdtr! I gave it a go, and included the new custom bearer options param I added -- what do you think?
bearer
https://esm.town/v/stevekrouse/fetchJSON
<script type="module" src="https://esm.town/v/stevekrouse/fetchJSON"></script>
It would be nice to improve the types of the function:
export const fetchJSON = async (url: string, options?: RequestInit) => {}
Thanks for the idea @pomdtr! I gave it a go, and included the new custom
bearer
options param I added -- what do you think?