作者:xie392地址:https://v.douyin.com/ieQtm3cC/更新时间:2024-12-21
1declare function debounce<T extends any[], K>(fn: (...args: T) => K, delay?: number): (...args: T) => K23function handle(a:number,b:number) {}45const fn = debounce(handle)67// fn(1) // Error: 应有 2 个参数,但获得 1 个。