UNPKG

zent

Version:

一套前端设计语言和基于React的实现

6 lines (5 loc) 238 B
import { ICancelable } from './types'; export interface IDebounceOptions { immediate?: boolean; } export default function debounce<T extends (...args: any) => any>(func: T, wait?: number, options?: IDebounceOptions): T & ICancelable;