Debian Codegraph @

node/rxjs/src/internal/operators/zipAll.ts

raw
1 import { OperatorFunction, ObservableInput } from '../types';
2 import { zip } from '../observable/zip';
3 import { joinAllInternals } from './joinAllInternals';
4
5 /**
6 * Collects all observable inner sources from the source, once the source completes,
7 * it will subscribe to all inner sources, combining their values by index and emitting
8 * them.
9 *
10 * @see {@link zipWith}
11 * @see {@link zip}
12 */
13 export function zipAll<T>(): OperatorFunction<ObservableInput<T>, T[]>;
14 export function zipAll<T>(): OperatorFunction<any, T[]>;
15 export function zipAll<T, R>(project: (...values: T[]) => R): OperatorFunction<ObservableInput<T>, R>;
16 export function zipAll<R>(project: (...values: Array<any>) => R): OperatorFunction<any, R>;
17
18 export function zipAll<T, R>(project?: (...values: T[]) => R) {
19 return joinAllInternals(zip, project);
20 }