mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
dccd225d52
commit
9dccfb693f
11
types/lazy.js/index.d.ts
vendored
11
types/lazy.js/index.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user