Переглянути джерело

docs: fix wrong return type of `debounce()`

Sven Fehler 2 місяців тому
батько
коміт
a0f5c95dbf
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      docs.md

+ 1 - 1
docs.md

@@ -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.