Skip to content

Commit

Permalink
docs: fix wrong return type of debounce()
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 authored Jan 24, 2025
1 parent 331ae8e commit a0f5c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ debounce<
fn: TFunc,
timeout?: number,
type?: "immediate" | "idle"
): TFunc
): TFunc & { debouncer: Debouncer }
```

A standalone function that debounces a given function to prevent it from being executed too often.
Expand Down

0 comments on commit a0f5c95

Please sign in to comment.