UNPKG

@types/uniq

Version:
31 lines (22 loc) 777 B
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniq/index.d.ts) ````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](https://github.com/hansrwindhoff).