UNPKG
@amxdev/throttle
Version:
latest (1.0.0)
1.0.0
Throttle a function to limit calls within a time frame.
@amxdev/throttle
/
dist
/
index.d.ts
2 lines
(1 loc)
•
128 B
TypeScript
View Raw
1
2
export
declare
function
throttle<T
extends
(...
args
:
any
[]) =>
void
>(
func
: T,
limit
:
number
):
(
...
args
:
Parameters
<T>
) =>
void
;