1 import { OperatorFunction } from '../types';
3 * Collects all source emissions and emits them as an array when the source completes.
5 * <span class="informal">Get all values inside an array when the source completes</span>
9 * `toArray` will wait until the source Observable completes before emitting
10 * the array containing all emissions. When the source Observable errors no
11 * array will be emitted.
15 * import { interval } from 'rxjs';
16 * import { toArray, take } from 'rxjs/operators';
18 * const source = interval(1000);
19 * const example = source.pipe(
24 * const subscribe = example.subscribe(val => console.log(val));
26 * // output: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
29 * @return An array from an observable sequence.
33 export declare function toArray<T>(): OperatorFunction<T, T[]>;