import _ from 'underscore'; import { WrappingDec } from './utils'; export const debounce = (time: number, immediate?: boolean) => WrappingDec((f) => _.debounce(f, time, immediate)); export const throttle = (time: number, options?: _.ThrottleSettings) => WrappingDec((f) => _.throttle(f, time, options));