@types/compare-func
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

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.

/@types/compare-func/

    Package Sidebar

    Install

    npm i @types/compare-func

    Weekly Downloads

    7,332

    Version

    1.3.3

    License

    MIT

    Unpacked Size

    2.99 kB

    Total Files

    5

    Last publish

    Collaborators

    • types