@whitesev/utils 1.5.5 → 1.5.6

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.
@@ -12,6 +12,7 @@ import { UtilsDictionary } from "./Dictionary";
12
12
  import type { DOMUtils_EventType } from "./Event";
13
13
  import type { UtilsCoreOption } from "./UtilsCore";
14
14
  import type { Vue2Object } from "./VueObject";
15
+ import type { UtilsAjaxHookResult } from "./ajaxHooker";
15
16
  export declare var unsafeWindow: Window & typeof globalThis;
16
17
  export type JSTypeMap = {
17
18
  string: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/utils",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "一个常用的工具库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/node/index.esm.js",
package/src/Utils.ts CHANGED
@@ -16,6 +16,7 @@ import { UtilsDictionary } from "./Dictionary";
16
16
  import type { DOMUtils_EventType } from "./Event";
17
17
  import type { UtilsCoreOption } from "./UtilsCore";
18
18
  import type { Vue2Object } from "./VueObject";
19
+ import type { UtilsAjaxHookResult } from "./ajaxHooker";
19
20
 
20
21
  export declare var unsafeWindow: Window & typeof globalThis;
21
22
 
@@ -1,4 +1,3 @@
1
- /// <reference path="./index.d.ts" />
2
1
  // @name ajaxHooker
3
2
  // @author cxxjackie
4
3
  // @version 1.4.3
@@ -1,5 +1,5 @@
1
1
  /** 请求的response配置 */
2
- declare interface UtilsAjaxHookResponseOptions {
2
+ export declare interface UtilsAjaxHookResponseOptions {
3
3
  /**
4
4
  * (重定向后的)Url
5
5
  */
@@ -23,7 +23,7 @@ declare interface UtilsAjaxHookResponseOptions {
23
23
  }
24
24
 
25
25
  /** hook请求的配置 */
26
- declare interface UtilsAjaxHookRequestOptions {
26
+ export declare interface UtilsAjaxHookRequestOptions {
27
27
  /**
28
28
  * 只读属性。一个字符串,表明请求类型是xhr还是fetch
29
29
  */
@@ -65,7 +65,7 @@ declare interface UtilsAjaxHookRequestOptions {
65
65
  }
66
66
 
67
67
  /** 过滤规则配置 */
68
- declare interface UtilsAjaxHookFilterOptions {
68
+ export declare interface UtilsAjaxHookFilterOptions {
69
69
  /**
70
70
  * 应是xhr或fetch
71
71
  */
@@ -85,7 +85,7 @@ declare interface UtilsAjaxHookFilterOptions {
85
85
  }
86
86
 
87
87
  /** Utils.ajaxHooker */
88
- declare interface UtilsAjaxHookResult {
88
+ export declare interface UtilsAjaxHookResult {
89
89
  /**
90
90
  * 劫持
91
91
  * @example