Преглед на файлове

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.