Explorar o código

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

Sven Fehler hai 2 meses
pai
achega
a0f5c95dbf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.