@gx-design-vue/pro-utils 0.2.0-alpha.6 → 0.2.0-alpha.7

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.
@@ -11,7 +11,7 @@ interface ScrollToOptions {
11
11
  }
12
12
  declare function easeInOutCubic(t: number, b: number, c: number, d: number): number;
13
13
  declare function isScroll(el: HTMLElement, isVertical?: Nullable<boolean>): RegExpMatchArray;
14
- declare function getScrollContainer(el: HTMLElement, isVertical?: Nullable<boolean>): (Window & typeof globalThis) | HTMLElement;
14
+ declare function getScrollContainer(el: HTMLElement, isVertical?: Nullable<boolean>): HTMLElement | (Window & typeof globalThis);
15
15
  declare function isInContainer(el: HTMLElement, container: HTMLElement): boolean;
16
16
  declare function isWindow(obj: any): boolean;
17
17
  declare function getScroll(target: HTMLElement | Window | Document | null, top: boolean): number;
@@ -12,7 +12,7 @@ declare function getSymbols(object: any): symbol[];
12
12
  * @param obj - 目标对象
13
13
  * @param callback - 回调函数
14
14
  */
15
- declare function forInObject<T extends object>(obj: T, callback: (key: keyof T, value: T[keyof T]) => void): void;
15
+ declare function forInObject<T extends object>(obj: T, callback: <Key extends keyof T>(key: Key, value: T[Key]) => void): void;
16
16
  /**
17
17
  * 获取对象的所有键
18
18
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-utils",
3
3
  "type": "module",
4
- "version": "0.2.0-alpha.6",
4
+ "version": "0.2.0-alpha.7",
5
5
  "description": "Gx Design Pro Utils",
6
6
  "author": {
7
7
  "name": "gx12358",