Lazy.js (v0.5.1) - missing parameter on .uniq method (#34631)

* Lazy.js missing parameter on .uniq method

As per the official docs unit should be able to accept the key of the unit that will be used to determine unicity

* Updated file header

* Added typescript version header

* Typescript goes under the header

* missing the optional param
This commit is contained in:
gablorquet 2019-04-17 18:24:13 -04:00 committed by Armando Aguirre
parent dccd225d52
commit 9dccfb693f

View File

@ -1,7 +1,10 @@
// Type definitions for Lazy.js 0.3.4
// Type definitions for Lazy.js 0.5.1
// Project: https://github.com/dtao/lazy.js/
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Mike Doughty <https://github.com/miso440>
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Mike Doughty <https://github.com/miso440>
// Gabriel Lorquet <https://github.com/gablorquet>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
declare namespace LazyJS {
interface LazyStatic {
@ -168,7 +171,7 @@ declare namespace LazyJS {
toArray(): T[];
toObject(): any;
union(var_args: T[]): Sequence<T>;
uniq(): Sequence<T>;
uniq(key?: keyof T): Sequence<T>;
where(properties: any): Sequence<T>;
without(...var_args: T[]): Sequence<T>;
without(var_args: T[]): Sequence<T>;
@ -284,4 +287,4 @@ declare namespace LazyJS {
declare module 'lazy.js' {
export = Lazy;
}