Type alias DebounceState

DebounceState: Readonly<{
    ms: number;
    queued: boolean;
    timer?: number;
}>

The DebounceState is passed to each DebounceBehavior:interface stage.

Type declaration

  • ms: number

    The current amount of milliseconds the timer will use.

  • queued: boolean

    Whether or not the current chunk was queued to the next Readable.

  • Optional timer?: number

    The timer Id/handle.

Generated using TypeDoc