1 | import { ScanOptions } from './operators/scanoptions';
|
2 | /**
|
3 | * The reduce options which includes an accumulator function, optional seed, and optional abort signal for cancellation.
|
4 | *
|
5 | * @export
|
6 | * @interface ReduceOptions
|
7 | * @extends {ScanOptions<T, R>}
|
8 | * @template T The type of the elements in the source sequence.
|
9 | * @template R The type of the result of the aggregation.
|
10 | */
|
11 | export interface ReduceOptions<T, R> extends ScanOptions<T, R> {
|
12 | /**
|
13 | * An optional abort signal to cancel the operation at any time.
|
14 | *
|
15 | * @type {AbortSignal}
|
16 | * @memberof ReduceOptions
|
17 | */
|
18 | signal?: AbortSignal;
|
19 | }
|