浏览代码

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.