35af91c20887f4e651d2481603ffa9384e77a4e473e57ca0468c415da9fd150613d34451ac633b05727573e8720fded6909ca8bd3bed92c28024dce2720124 340 B

1234567891011121314151617
  1. declare module 'throttle-debounce' {
  2. type throttleFn = (
  3. delay: number,
  4. noTrailing: boolean,
  5. callback?: Function,
  6. debounceMode?: boolean
  7. ) => Function;
  8. type debounceFn = (
  9. delay: number,
  10. atBegin: boolean,
  11. callback?: Function
  12. ) => Function;
  13. const throttle: throttleFn;
  14. const debounce: debounceFn;
  15. }