0.0.4 • Published 10 months ago

fecho v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

fetcho

A fetch wrapper with typesafe and easy to use.

Install

npm install fetcho

yarn add fetcho

pnpm add fetcho

Usage

import { fetcho } from 'fetcho';

type User = {
  id: number;
  name: string;
};

const response = await fetcho<User>(
  'https://jsonplaceholder.typicode.com/users/1',
);

console.log(response.data); // { id: 1, name: 'Leanne Graham' }
0.0.4

10 months ago

0.0.3

11 months ago

0.0.2

12 months ago

0.0.1

12 months ago