import { debounce as baseDebounce } from 'lodash'; /* eslint-disable @typescript-eslint/no-explicit-any */ type BaseDebounce any> = typeof baseDebounce; const debounce = any>( fn: Fn, options: { wait?: Parameters>[1]; } & Parameters>[2] = {}, ): ReturnType> => { const { wait = 500, ...rest } = options; return baseDebounce(fn, wait, rest); }; export default debounce;