diff --git a/types/debounce-promise/index.d.ts b/types/debounce-promise/index.d.ts index 2356d30060..905ca7fc50 100644 --- a/types/debounce-promise/index.d.ts +++ b/types/debounce-promise/index.d.ts @@ -11,14 +11,12 @@ declare namespace debounce { } } -type ArgumentsType = T extends (...args: infer A) => any ? A : never; - declare function debounce any>( func: T, wait?: number, options?: debounce.DebounceOptions ): ( - ...args: ArgumentsType + ...args: Parameters ) => ReturnType extends Promise ? ReturnType : Promise>;