Interface DebounceReturnFunType<T>

防抖函数类型

interface DebounceReturnFunType<T> {
    cancel(): void;
    (...arg: Parameters<T>): void;
}

Type Parameters

  • T extends ((...args: any) => any)
  • Parameters

    • Rest...arg: Parameters<T>

    Returns void

Methods

Methods