UNPKG
@three11/debounce
Version:
latest (1.1.0)
1.1.0
1.0.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
Debounce multiple function executions
github.com/three11/debounce
three11/debounce
@three11/debounce
/
dist
/
debounce.d.ts
3 lines
(2 loc)
•
192 B
TypeScript
View Raw
1
2
3
export
declare
const
debounce
: <T
extends
(...
args
:
unknown
[]) =>
void
>
(
fn
: T,
delay
?:
number
,
isImmediate
?:
boolean
) =>
<C>
(
this
: C, ...
rest
:
Parameters
<T>
) =>
void
;
export
default
debounce;