@whitesev/utils 2.4.1 → 2.4.2
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/dist/index.amd.js +1 -1
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +1 -1
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Httpx.d.ts +1 -1
- package/dist/types/src/types/Httpx.d.ts +7 -0
- package/package.json +1 -1
- package/src/Httpx.ts +1 -0
- package/src/Utils.ts +1 -1
- package/src/types/Httpx.d.ts +7 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpxHookErrorData, HttpxRequestOption, HttpxRequestOptionConfig, HttpxResponse, HttpxResponseData } from "./types/Httpx";
|
|
1
|
+
import type { HttpxHookErrorData, HttpxRequestOption, HttpxRequestOptionConfig, HttpxResponse, HttpxResponseData, HttpxPromise } from "./types/Httpx";
|
|
2
2
|
declare class Httpx {
|
|
3
3
|
#private;
|
|
4
4
|
private GM_Api;
|
|
@@ -1314,3 +1314,10 @@ export declare interface HttpxHookErrorData {
|
|
|
1314
1314
|
/** 请求的配置 */
|
|
1315
1315
|
details: HttpxRequestOption;
|
|
1316
1316
|
}
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* httpx的自定义Promise,包含额外函数
|
|
1320
|
+
*/
|
|
1321
|
+
export declare interface HttpxPromise<T> extends Promise<T> {
|
|
1322
|
+
abort: () => void;
|
|
1323
|
+
}
|
package/package.json
CHANGED
package/src/Httpx.ts
CHANGED
package/src/Utils.ts
CHANGED
package/src/types/Httpx.d.ts
CHANGED
|
@@ -1314,3 +1314,10 @@ export declare interface HttpxHookErrorData {
|
|
|
1314
1314
|
/** 请求的配置 */
|
|
1315
1315
|
details: HttpxRequestOption;
|
|
1316
1316
|
}
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* httpx的自定义Promise,包含额外函数
|
|
1320
|
+
*/
|
|
1321
|
+
export declare interface HttpxPromise<T> extends Promise<T> {
|
|
1322
|
+
abort: () => void;
|
|
1323
|
+
}
|