@acrool/react-fetcher 0.0.2-alpha.8 → 0.0.2-alpha.9

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.
@@ -2,7 +2,7 @@ import { AxiosInstance } from 'axios';
2
2
  import { IUseFetcherArgs } from './types';
3
3
  import { TFileMapVariables } from './utils';
4
4
  /**
5
- * GrqpahQL 的查詢氣
5
+ * GrqpahQL 的查詢器
6
6
  * @param axiosInstance
7
7
  * @param query
8
8
  */
@@ -1,15 +1,7 @@
1
1
  import { IRequestConfig } from '../types';
2
- export interface IUseFetcherArgs<TVariables extends IObjectArgs> {
3
- params?: TVariables['params'];
4
- body?: TVariables['body'];
5
- variables?: TVariables['variables'];
2
+ export type IUseFetcherArgs<TVariables> = TVariables | (TVariables & {
6
3
  fetchOptions?: IRequestConfig;
7
- }
8
- export interface IObjectArgs {
9
- params?: unknown;
10
- variables?: unknown;
11
- body?: unknown;
12
- }
4
+ });
13
5
  export interface IDocument {
14
6
  url: string;
15
7
  method?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-fetcher",
3
- "version": "0.0.2-alpha.8",
3
+ "version": "0.0.2-alpha.9",
4
4
  "description": "Fetcher library based for Reactjs",
5
5
  "keywords": [
6
6
  "acrool",