Function debouncedTimeout

  • Parameters

    • intervalMs: number = 1000
    • Optional task: (() => void)
        • (): void
        • Returns void

    Returns {
        cancel: (() => void);
        setInterval: ((newInterval) => number);
        setTask: ((newTask) => (() => void));
        start: ((newIntervalMs?, newTask?) => void);
    }

    • cancel: (() => void)
        • (): void
        • Returns void

    • setInterval: ((newInterval) => number)
        • (newInterval): number
        • Parameters

          • newInterval: number

          Returns number

    • setTask: ((newTask) => (() => void))
        • (newTask): (() => void)
        • Parameters

          • newTask: (() => void)
              • (): void
              • Returns void

          Returns (() => void)

            • (): void
            • Returns void

    • start: ((newIntervalMs?, newTask?) => void)
        • (newIntervalMs?, newTask?): void
        • Parameters

          • Optional newIntervalMs: number
          • Optional newTask: (() => void)
              • (): void
              • Returns void

          Returns void

Generated using TypeDoc