Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

range.d.ts 1.4KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { SchedulerAction, SchedulerLike } from '../types';
  2. import { Observable } from '../Observable';
  3. /**
  4. * Creates an Observable that emits a sequence of numbers within a specified
  5. * range.
  6. *
  7. * <span class="informal">Emits a sequence of numbers in a range.</span>
  8. *
  9. * ![](range.png)
  10. *
  11. * `range` operator emits a range of sequential integers, in order, where you
  12. * select the `start` of the range and its `length`. By default, uses no
  13. * {@link SchedulerLike} and just delivers the notifications synchronously, but may use
  14. * an optional {@link SchedulerLike} to regulate those deliveries.
  15. *
  16. * ## Example
  17. * Emits the numbers 1 to 10</caption>
  18. * ```javascript
  19. * const numbers = range(1, 10);
  20. * numbers.subscribe(x => console.log(x));
  21. * ```
  22. * @see {@link timer}
  23. * @see {@link index/interval}
  24. *
  25. * @param {number} [start=0] The value of the first integer in the sequence.
  26. * @param {number} [count=0] The number of sequential integers to generate.
  27. * @param {SchedulerLike} [scheduler] A {@link SchedulerLike} to use for scheduling
  28. * the emissions of the notifications.
  29. * @return {Observable} An Observable of numbers that emits a finite range of
  30. * sequential integers.
  31. * @static true
  32. * @name range
  33. * @owner Observable
  34. */
  35. export declare function range(start?: number, count?: number, scheduler?: SchedulerLike): Observable<number>;
  36. /** @internal */
  37. export declare function dispatch(this: SchedulerAction<any>, state: any): void;