Interface DebounceReturnFunType<T>
interface DebounceReturnFunType<T> { cancel(): void; (...arg: Parameters<T>): void; } Type Parameters
- T extends ((...args: any) => any)
- DebounceReturnFunType(...arg): void
Parameters
Rest
...arg: Parameters<T>
Returns void
Methods
cancel
- cancel(): void
Returns void
防抖函数类型