/** * The options for calculating an average. * * @export * @interface MathOptions * @template T The type of elements in the source sequence. */ export interface MathOptions { /** * An optional selector used to get the value to average. * * @memberof MathOptions */ selector?: (x: T, signal?: AbortSignal) => number | Promise; /** * An optional thisArg for the selector. * * @type {*} * @memberof MathOptions */ thisArg?: any; /** * An optional abort signal to cancel the operation at any time. * * @type {AbortSignal} * @memberof MathOptions */ signal?: AbortSignal; }