UNPKG
common-hook
Version:
latest (1.3.2)
1.3.2
1.2.0
1.1.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.3
0.0.2
0.0.1
提供项目中常用的 React Hooks
github.com/JainaXiong/common-hook
JainaXiong/common-hook
common-hook
/
es
/
state
/
useDebounce.d.ts
9 lines
(8 loc)
•
291 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** *
@name
处理防抖值Hook *
@description
* 在事件被触发n秒后再执行回调,如果在这n秒内又被触发,则重新计时 *
@example
* const debouncedValue = useDebounce(value, { wait: 500 }) */
export
declare
const
useDebounce
:
(
value
:
any
,
options
?:
any
) =>
any
;