@acrool/react-fetcher 0.0.4-test.5 → 0.0.4-test.6

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.
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { IDocument, IUseRestFulFetcherArgs2, TContentTypeResolver, TFileMapVariables } from './types';
2
+ import { IDocument, ICreateRestFulFetcherArgs, TContentTypeResolver, TFileMapVariables } from './types';
3
3
  /**
4
4
  * RestFul 的查詢器
5
5
  * https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-react-query#usage-example-isreacthook-true
@@ -7,5 +7,5 @@ import { IDocument, IUseRestFulFetcherArgs2, TContentTypeResolver, TFileMapVaria
7
7
  * @param document
8
8
  * @param contentTypeResolver
9
9
  */
10
- declare const createRestFulFetcher: <TData, TArgs extends IUseRestFulFetcherArgs2<TFileMapVariables | void>>(axiosInstance: AxiosInstance, document: IDocument, contentTypeResolver?: TContentTypeResolver) => ((args?: TArgs) => Promise<TData>);
10
+ declare const createRestFulFetcher: <TData, TArgs extends ICreateRestFulFetcherArgs<TFileMapVariables | void>>(axiosInstance: AxiosInstance, document: IDocument, contentTypeResolver?: TContentTypeResolver) => ((args?: TArgs) => Promise<TData>);
11
11
  export default createRestFulFetcher;
@@ -1,3 +1,3 @@
1
1
  export { default as createRestFulFetcher } from './createRestFulFetcher';
2
- export type { IUseRestFulFetcherArgs, TContentTypeResolver } from './types';
2
+ export type { IRestFulEndpointsQueryReturn, ICreateRestFulFetcherArgs, TContentTypeResolver } from './types';
3
3
  export * from './config';
@@ -1,12 +1,12 @@
1
1
  import { IRequestConfig } from '../types';
2
2
  import { ERequestMethod } from './config';
3
- export type IUseRestFulFetcherArgs<TVariables> = TVariables extends void ? void | {
3
+ export type IRestFulEndpointsQueryReturn<TVariables> = TVariables extends void ? void | {
4
4
  fetchOptions?: IRequestConfig;
5
5
  } : {
6
6
  variables: TVariables;
7
7
  fetchOptions?: IRequestConfig;
8
8
  };
9
- export type IUseRestFulFetcherArgs2<TVariables> = TVariables extends void ? void | {
9
+ export type ICreateRestFulFetcherArgs<TVariables> = TVariables extends void ? void | {
10
10
  fetchOptions?: IRequestConfig;
11
11
  } : {
12
12
  body: TFileMapVariables;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-fetcher",
3
- "version": "0.0.4-test.5",
3
+ "version": "0.0.4-test.6",
4
4
  "description": "Fetcher library based for Reactjs",
5
5
  "keywords": [
6
6
  "acrool",