@webalternatif/js-core 1.6.6 → 1.6.8

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/types/onOff.d.ts CHANGED
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @param {Element|Document|Window} el
2
+ * @param {Element|Document|Window|string} el
3
3
  * @param {string} events
4
4
  * @param {string|Element|function} selector
5
5
  * @param {function|AddEventListenerOptions|boolean} [handler]
6
6
  * @param {AddEventListenerOptions|boolean} [options]
7
- * @returns {Element}
7
+ * @returns {Element|Document|Window|string}
8
8
  */
9
- export function on(el: Element | Document | Window, events: string, selector: string | Element | Function, handler?: Function | AddEventListenerOptions | boolean, options?: AddEventListenerOptions | boolean): Element;
9
+ export function on(el: Element | Document | Window | string, events: string, selector: string | Element | Function, handler?: Function | AddEventListenerOptions | boolean, options?: AddEventListenerOptions | boolean): Element | Document | Window | string;
10
10
  /**
11
- * @param {Element|Document|Window} el
11
+ * @param {Element|Document|Window|string} el
12
12
  * @param {string} [events]
13
13
  * @param {string|Element|function} [selector]
14
14
  * @param {function|AddEventListenerOptions|boolean} [handler]
15
15
  * @param {AddEventListenerOptions|boolean} [options]
16
- * @returns {Element}
16
+ * @returns {Element|Document|Window|string}
17
17
  */
18
- export function off(el: Element | Document | Window, events?: string, selector?: string | Element | Function, handler?: Function | AddEventListenerOptions | boolean, options?: AddEventListenerOptions | boolean): Element;
18
+ export function off(el: Element | Document | Window | string, events?: string, selector?: string | Element | Function, handler?: Function | AddEventListenerOptions | boolean, options?: AddEventListenerOptions | boolean): Element | Document | Window | string;
19
19
  export function __resetCustomEventsForTests(): void;
package/types/utils.d.ts CHANGED
@@ -5,4 +5,4 @@ export function flatten(o: Object | any[]): any[];
5
5
  export function strParseFloat(val: any): number;
6
6
  export function throttle(func: Function, wait: number, leading?: boolean, trailing?: boolean, context?: any): Function;
7
7
  export function debounce(func: Function, wait: number, immediate?: boolean, context?: any): Function;
8
- export function getScrollbarWidth(): any;
8
+ export function getScrollbarWidth(): number;