UNPKG

437 BTypeScriptView Raw
1declare module "@extra-lists/range" {
2import type { compareFn, mapFn, Lists } from './_types';
3/**
4 * Finds smallest and largest entries.
5 * @param x lists
6 * @param fc compare function (a, b)
7 * @param fm map function (v, k, x)
8 * @returns [smallest, largest]
9 */
10declare function range<T, U, V = U>(x: Lists<T, U>, fc?: compareFn<U | V>, fm?: mapFn<T, U, U | V>): [[T, U], [T, U]];
11export = range;
12//# sourceMappingURL=range.d.ts.map}