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

0.0.32 • Public • Published

Installation

npm install --save @types/uniq

Summary

This package contains type definitions for uniq (https://www.npmjs.com/package/uniq).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniq.

index.d.ts

type Compare<T> = (a: T, b: T) => number;

interface Uniq {
    <T>(ip: T[], compare?: Compare<T>, sorted?: boolean): T[];
}

declare var uniq: Uniq;

declare module "uniq" {
    export = uniq;
}

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: none

Credits

These definitions were written by Hans Windhoff.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/uniq

Weekly Downloads

3,615

Version

0.0.32

License

MIT

Unpacked Size

2.9 kB

Total Files

5

Last publish

Collaborators

  • types