Type Alias CountOptions

CountOptions: {
    amount: number;
    interval: Interval;
    lazy: Lazy;
    offset: number;
    signal: AbortSignal;
}

Options for the 'count' source.

Type declaration

  • amount: number

    Amount to increment by

    1
    
  • interval: Interval

    How long to wait before incrementing.

    1 second
    
  • lazy: Lazy

    Determines when counting starts

    'initial'
    
  • offset: number

    Where to begin counting

    0
    
  • signal: AbortSignal

    Abort signal to trigger the source to close.