DefinitelyTyped/types/array-unique/index.d.ts
2018-03-15 11:06:24 -04:00

13 lines
396 B
TypeScript

// Type definitions for array-unique 0.3
// Project: https://github.com/jonschlinkert/array-unique
// Definitions by: Michaël St-Georges <https://github.com/CSLTech>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function arrayUnique<T>(arr: T[]): T[];
declare namespace arrayUnique {
function immutable<T>(arr: ReadonlyArray<T>): T[];
}
export = arrayUnique;