Underscore typings missing IterateePropertyShorthand on uniq (#20537)

* missing comment

* missing comment

* add iteratee property shorthand for uniq in underscore

* undo bad commit
This commit is contained in:
Cassey Lottman
2017-10-27 19:31:34 -05:00
committed by Sheetal Nandi
parent 1fda81f987
commit 084ca6f60c

View File

@@ -1,6 +1,6 @@
// Type definitions for Underscore 1.8
// Project: http://underscorejs.org/
// Definitions by: Boris Yankov <https://github.com/borisyankov>, Josh Baldwin <https://github.com/jbaldwin>, Christopher Currens <https://github.com/ccurrens>
// Definitions by: Boris Yankov <https://github.com/borisyankov>, Josh Baldwin <https://github.com/jbaldwin>, Christopher Currens <https://github.com/ccurrens>, Cassey Lottman <https://github.com/clottman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare var _: _.UnderscoreStatic;
@@ -920,7 +920,7 @@ declare module _ {
**/
uniq<T, TSort>(
array: _.List<T>,
iterator?: _.ListIterator<T, TSort>,
iterator?: _.ListIterator<T, TSort> | _.IterateePropertyShorthand,
context?: any): T[];
/**
@@ -937,7 +937,7 @@ declare module _ {
unique<T, TSort>(
array: _.List<T>,
isSorted?: boolean,
iterator?: _.ListIterator<T, TSort>,
iterator?: _.ListIterator<T, TSort> | _.IterateePropertyShorthand,
context?: any): T[];
@@ -4512,7 +4512,7 @@ declare module _ {
* Wrapped type `any[]`.
* @see _.uniq
**/
uniq(isSorted?: boolean, iterator?: _.ListIterator<T, any>): T[];
uniq(isSorted?: boolean, iterator?: _.ListIterator<T, any> | _.IterateePropertyShorthand): T[];
/**
* Wrapped type `any[]`.
@@ -5472,23 +5472,23 @@ declare module _ {
* Wrapped type `any[]`.
* @see _.uniq
**/
uniq(isSorted?: boolean, iterator?: _.ListIterator<T, any>): _Chain<T>;
uniq(isSorted?: boolean, iterator?: _.ListIterator<T, any> | _.IterateePropertyShorthand): _Chain<T>;
/**
* Wrapped type `any[]`.
* @see _.uniq
**/
uniq<TSort>(iterator?: _.ListIterator<T, TSort>, context?: any): _Chain<T>;
uniq<TSort>(iterator?: _.ListIterator<T, TSort> | _.IterateePropertyShorthand, context?: any): _Chain<T>;
/**
* @see _.uniq
**/
unique<TSort>(isSorted?: boolean, iterator?: _.ListIterator<T, TSort>): _Chain<T>;
unique<TSort>(isSorted?: boolean, iterator?: _.ListIterator<T, TSort> | _.IterateePropertyShorthand): _Chain<T>;
/**
* @see _.uniq
**/
unique<TSort>(iterator?: _.ListIterator<T, TSort>, context?: any): _Chain<T>;
unique<TSort>(iterator?: _.ListIterator<T, TSort> | _.IterateePropertyShorthand, context?: any): _Chain<T>;
/**
* Wrapped type `any[][]`.