@acrool/react-fetcher 0.0.2-alpha.10 → 0.0.2-alpha.11

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,3 +1,2 @@
1
1
  export { default as createRestFulFetcher } from './createRestFulFetcher';
2
- export type { IUseFetcherArgs as IUseRestFulFetcherArgs } from './types';
3
- export type { ERequestHeaderContentType } from './config';
2
+ export type { IUseFetcherArgs as IUseRestFulFetcherArgs, TContentTypeResolver, ERequestHeaderContentType } from './types';
@@ -9,3 +9,8 @@ export interface IDocument {
9
9
  export type TFileMapVariables = Record<string, any>;
10
10
  export type TBody = Record<string, any> | FormData | File[] | File;
11
11
  export type TContentTypeResolver = (method: string) => string;
12
+ export declare enum ERequestHeaderContentType {
13
+ formData = "multipart/form-data",
14
+ formUrlDecode = "application/x-www-form-urlencoded",
15
+ json = "application/json"
16
+ }
@@ -1,5 +1,4 @@
1
- import { ERequestHeaderContentType } from './config';
2
- import { TBody, TContentTypeResolver } from './types';
1
+ import { TBody, TContentTypeResolver, ERequestHeaderContentType } from './types';
3
2
  /**
4
3
  * 依據 Content-Type 處理 body
5
4
  * @param data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-fetcher",
3
- "version": "0.0.2-alpha.10",
3
+ "version": "0.0.2-alpha.11",
4
4
  "description": "Fetcher library based for Reactjs",
5
5
  "keywords": [
6
6
  "acrool",
@@ -1,5 +0,0 @@
1
- export declare enum ERequestHeaderContentType {
2
- formData = "multipart/form-data",
3
- formUrlDecode = "application/x-www-form-urlencoded",
4
- json = "application/json"
5
- }