Skip to content

Commit 3c78d53

Browse files
committed
fix: export fetchf as fetchff for consistency and clarity
1 parent 85d614f commit 3c78d53

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ yarn add fetchff
121121

122122
#### `fetchf(url, config)`
123123

124-
It is a functional wrapper for `fetch()`. It seamlessly enhances it with additional settings like the retry mechanism and error handling improvements. The `fetchf()` can be used directly as a function, simplifying the usage and making it easier to integrate with functional programming styles. The `fetchf()` makes requests independently of `createApiFetcher()` settings.
124+
_Alias: `fetchff(url, config)`_
125+
126+
A simple function that wraps the native `fetch()` and adds extra features like retries and better error handling. Use `fetchf()` directly for quick, enhanced requests - no need to set up `createApiFetcher()`. It works independently and is easy to use in any codebase.
125127

126128
#### Example
127129

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export * from './types';
33

44
/** Core fetch function with caching, retries, and revalidation */
5-
export { fetchf } from './request-handler';
5+
export { fetchf, fetchf as fetchff } from './request-handler';
66

77
/** Create a configured API fetcher instance */
88
export { createApiFetcher } from './api-handler';

0 commit comments

Comments
 (0)