react-toolkits 2.31.4 → 2.31.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.31.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 4ca1e63: refactor: improve request handling in KyClient
8
+
3
9
  ## 2.31.4
4
10
 
5
11
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -16,8 +16,9 @@ import { StateStorage } from 'zustand/middleware';
16
16
  type ResponseType = 'json' | 'blob' | 'text' | 'arrayBuffer' | 'formData';
17
17
  /** 通用请求选项接口 */
18
18
  interface RequestOptions extends Options {
19
+ /** 响应类型 */
19
20
  responseType?: ResponseType;
20
- /** 是否使用全局模式(覆盖 context 中的 isGlobalMode) */
21
+ /** 是否使用全局模式 */
21
22
  isGlobalMode?: boolean;
22
23
  }
23
24
  /** KyClient 构造函数配置 */