Skip to content

@miyue-mma/shared / debounce

函数: debounce()

ts
function debounce<T>(
   func, 
   wait, 
   options?): (this, ...cargs) => unknown

防抖

类型参数

T extends (...args) => any

参数

func

T

wait

number

options?

DebounceOptions

返回

Function

参数

this

any

cargs

...unknown[]

返回

unknown

cancel()

ts
cancel: () => void;

返回

void

flush()

ts
flush: () => unknown;

返回

unknown

Released under the MIT License.