index.d.ts 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. }