-
Notifications
You must be signed in to change notification settings - Fork 13
Есть тип DebouncedFunction, но нет ThrottledFunction #727
Copy link
Copy link
Closed
Milestone
Description
Lines 24 to 28 in 35036ae
| export function debounce<T extends any[]>( | |
| fn: (...args: T) => unknown, | |
| delay: number, | |
| context = typeof window !== 'undefined' ? window : undefined, | |
| ): DebouncedFunction<T> { |
Lines 10 to 14 in 35036ae
| export function throttle<T extends any[]>( | |
| fn: (...args: T) => unknown, | |
| threshold = 50, | |
| scope = typeof window !== 'undefined' ? window : undefined, | |
| ) { |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done