@whitesev/utils 2.5.0 → 2.5.1

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.
@@ -101,7 +101,7 @@ declare class Httpx {
101
101
  * @param url 网址
102
102
  * @param details 配置
103
103
  */
104
- post<T = HttpxRequestOption>(url: string, details: T): HttpxPromise<HttpxResponse<T>>;
104
+ post<T extends HttpxRequestOption>(url: string, details: T): HttpxPromise<HttpxResponse<T>>;
105
105
  /**
106
106
  * HEAD 请求
107
107
  * @param details 配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/utils",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "一个常用的工具库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/src/Httpx.ts CHANGED
@@ -1401,7 +1401,7 @@ class Httpx {
1401
1401
  * @param url 网址
1402
1402
  * @param details 配置
1403
1403
  */
1404
- post<T = HttpxRequestOption>(
1404
+ post<T extends HttpxRequestOption>(
1405
1405
  url: string,
1406
1406
  details: T // @ts-ignore
1407
1407
  ): HttpxPromise<HttpxResponse<T>>;