Options
All
  • Public
  • Public/Protected
  • All
Menu

Module function/throttle

Index

References

Interfaces

Type aliases

Functions

References

Renames and re-exports throttle

Type aliases

ThrottleFunc<T>: (...args: Parameters<T>) => void

Type parameters

Type declaration

    • (...args: Parameters<T>): void
    • Parameters

      • Rest ...args: Parameters<T>

      Returns void

Functions

  • Creates a throttled function that only invokes fn at most once per every wait milliseconds. fn is called in start of wait delay

    Type parameters

    Parameters

    • wait: number

      The number of milliseconds to throttle invocations to.

    • fn: F

      The function to throttle.

    Returns ThrottleFunc<F>

  • Creates a throttled function that only invokes fn at most once per every wait milliseconds. fn is called in start of wait delay

    Parameters

    • wait: number

      The number of milliseconds to throttle invocations to.

    Returns <F>(fn: F) => ThrottleFunc<F>

Generated using TypeDoc