소스 검색

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.