UNPKG
pgh-common-utils
Version:
latest (1.0.1)
1.0.1
1.0.0
A collection of utility functions for TypeScript.
pgh-common-utils
/
dist
/
debounce
/
index.d.ts
3 lines
(2 loc)
•
256 B
TypeScript
View Raw
1
2
3
export
declare
function
debounce<T
extends
(...
args
:
any
[]) =>
any
>(
func
: T,
delay
?:
number
):
(
...
args
:
Parameters
<T>
) =>
void
;
export
declare
function
throttle<T
extends
(...
args
:
any
[]) =>
any
>(
func
: T,
limit
?:
number
):
(
...
args
:
Parameters
<T>
) =>
void
;