fetily

``` import { createFetily } from 'fetily';

Usage no npm install needed!

<script type="module">
  import fetily from 'https://cdn.skypack.dev/fetily';
</script>

README

fetily

import { createFetily } from 'fetily';

interface API {
    hello: {
        get({
            username: string
        }): Promise<{
            world: string;
        }>;
    };
    'dog/fish-hello': {
        get({
            aa: string
        }): Promise<{
            data: { name: string; age: number }[];
        }>;
    };
}

export const fetily = createFetily<API>({ baseUrl: '/api' });