Skip to content

Repository files navigation

fecho

A fetch wrapper with typesafe and easy to use.

Install

npm install fecho

yarn add fecho

pnpm add fecho

Usage

import { fecho } from 'fecho';

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

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

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages