0.0.4 • Published 11 months ago

fecho v0.0.4

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

11 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago