Comparing version 1.4.3 to 1.4.4
@@ -712,2 +712,3 @@ 'use strict'; | ||
// The extends type includes `undefined` to match optional characters. | ||
const throttle = (delay, fn, _isDebounce) => { | ||
@@ -714,0 +715,0 @@ let lastExec = 0; |
@@ -710,2 +710,3 @@ export { Queue } from 'small-queue'; | ||
// The extends type includes `undefined` to match optional characters. | ||
const throttle = (delay, fn, _isDebounce) => { | ||
@@ -712,0 +713,0 @@ let lastExec = 0; |
@@ -769,2 +769,3 @@ (function (global, factory) { | ||
// The extends type includes `undefined` to match optional characters. | ||
const throttle = (delay, fn, _isDebounce) => { | ||
@@ -771,0 +772,0 @@ let lastExec = 0; |
export declare const throttle: < | ||
T extends (...args: Array<any>) => undefined | void, | ||
T extends ((...args: Array<any>) => undefined | void) | null | undefined, | ||
>( | ||
delay: number, | ||
fn: T, | ||
fn: Exclude<T, null | undefined>, | ||
_isDebounce?: boolean, | ||
@@ -11,8 +11,8 @@ ) => T & { | ||
export declare const debounce: < | ||
T extends (...args: Array<any>) => undefined | void, | ||
T extends ((...args: Array<any>) => undefined | void) | null | undefined, | ||
>( | ||
delay: number, | ||
fn: T, | ||
fn: Exclude<T, null | undefined>, | ||
) => T & { | ||
cancel: () => void; | ||
}; |
{ | ||
"name": "aidly", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Tool library.", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -0,0 +0,0 @@ <div align="center"> |
@@ -0,0 +0,0 @@ <div align="center"> |
Sorry, the diff of this file is not supported yet
182251
5511