All files / scripts/tools/debounce/debounceType debounceType.ts

100% Statements 5/5
100% Branches 2/2
100% Functions 1/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                                1x 1x 1x 1x 1x    
/**
 * The debounce type
 *
 * IMMEDIATE : the function should be called immediately, and then not anymore
 * until the delay has passed without a call.
 *
 * END : the function should not be called immediately, and will only be called
 * once the delay has passed without a call.
 *
 * BOTH : IMMEDIATE and END : the function should be called immediately, has
 * well as when the delay has passed without a call, but never in between.
 *
 * PERIODIC : the function should be called immediately, has well as when the
 * delay has passed without a call, and periodically in between, with the delay
 * as the period.
 */
export enum DebounceType {
  IMMEDIATE,
  END,
  BOTH,
  PERIODIC,
}