import { IterableX } from '../../iterable/iterablex.js'; import { max } from '../../iterable/max.js'; import { ExtremaOptions } from '../../iterable/extremaoptions.js'; export function maxProto( this: IterableX, options?: ExtremaOptions ): TResult { return max(this, options); } IterableX.prototype.max = maxProto; declare module '../../iterable/iterablex' { interface IterableX { max: typeof maxProto; } }