0.0.4 • Published 2 years ago

fecho v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago