Installation
npm install --save @types/compare-func
Summary
This package contains type definitions for compare-func (https://github.com/stevemao/compare-func).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compare-func.
index.d.ts
type extractFunc<T> = (e: T) => number | string;
declare function compare_func<T>(
prop?: ReadonlyArray<string | extractFunc<T>> | string | extractFunc<T>,
): (e1: T, e2: T) => number;
export = compare_func;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Dogan Fennibay.