Skip to content

Commit

Permalink
feat: better fetch generic
Browse files Browse the repository at this point in the history
  • Loading branch information
Bekacru committed Apr 22, 2024
1 parent 4fa7705 commit eb9b5c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@

### ❤️ Contributors

- Bekacru <[email protected]>

## v1.1.4

### Path

- BetterFetch is now generic

### ❤️ Contributors

- Bekacru <[email protected]>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@better-tools/fetch",
"version": "1.1.3",
"version": "1.1.4",
"packageManager": "[email protected]",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,6 @@ export const createFetch = <R = unknown, F = unknown>(

betterFetch.native = fetch;

export type BetterFetch = typeof betterFetch;
export type BetterFetch<T = any, E = unknown> = typeof betterFetch<T, E>;
export type CreateFetch = typeof createFetch;
export default betterFetch;

0 comments on commit eb9b5c9

Please sign in to comment.