@omnicar/sam-tfetch

A wrapper around fetch that allows type safety in request/response.

Usage no npm install needed!

<script type="module">
  import omnicarSamTfetch from 'https://cdn.skypack.dev/@omnicar/sam-tfetch';
</script>

README

tfetch

Small wrapper around fetch making it possible to get JSON parsed values returned. With the typescript definitions, it is also possible to indicate which types are expected on success/error and work directly with those types.

Examples will follow :)