@acrool/react-fetcher 0.0.3 → 0.0.4-test.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
Acrool React Fetcher is a solution for API integration and Auth state management in React projects. It helps you easily manage tokens, make API requests, perform GraphQL queries, and handle authentication flows.
|
|
4
4
|
|
|
5
5
|
<a href="https://acrool-react-fetcher.pages.dev/" title="Acrool React Fetcher - This is a block function for React development loading block">
|
|
6
|
-
<img src="https://raw.githubusercontent.com/acrool/acrool-react-fetcher/main/example/public/og.
|
|
6
|
+
<img src="https://raw.githubusercontent.com/acrool/acrool-react-fetcher/main/example/graphQL/public/og.png" alt="Acrool React Fetcher Logo"/>
|
|
7
7
|
</a>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
A solution for API integration and token management in React projects
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- [GraphQL](https://acrool-react-fetcher-graphql.pages.dev/)
|
|
15
|
+
- [RestFul](https://acrool-react-fetcher-restful.pages.dev/)
|
|
11
16
|
|
|
12
|
-
https://acrool-react-fetcher-graphql.pages.dev/
|
|
13
|
-
https://acrool-react-fetcher-restful.pages.dev/
|
|
14
17
|
|
|
15
|
-
</p>
|
|
16
18
|
|
|
17
19
|
<div align="center">
|
|
18
20
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { IRequestConfig } from '../types';
|
|
2
2
|
import { ERequestMethod } from './config';
|
|
3
|
-
export type IUseRestFulFetcherArgs<TVariables> =
|
|
4
|
-
TVariables
|
|
5
|
-
] extends [void] ? void | {
|
|
3
|
+
export type IUseRestFulFetcherArgs<TVariables> = TVariables extends void ? void | {
|
|
6
4
|
fetchOptions?: IRequestConfig;
|
|
7
5
|
} : {
|
|
8
6
|
variables: TVariables;
|