0.0.2 • Published 4 years ago

fetily v0.0.2

Weekly downloads
-
License
-
Repository
github
Last release
4 years ago

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' });
0.0.2

4 years ago

0.0.1

4 years ago