diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index faf921c57c..d92a924f36 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2732,6 +2732,11 @@ declare module _ { collection: Array, callback: ListIterator, thisArg?: any): T; + + /** + * Alias of _.find + * @see _.find + **/ detect( collection: Array, callback: ListIterator, @@ -2744,6 +2749,11 @@ declare module _ { collection: List, callback: ListIterator, thisArg?: any): T; + + /** + * Alias of _.find + * @see _.find + **/ detect( collection: List, callback: ListIterator, @@ -2756,6 +2766,11 @@ declare module _ { collection: Dictionary, callback: DictionaryIterator, thisArg?: any): T; + + /** + * Alias of _.find + * @see _.find + **/ detect( collection: Dictionary, callback: DictionaryIterator, @@ -2768,6 +2783,12 @@ declare module _ { find( collection: Array|List|Dictionary, whereValue: W): T; + + /** + * Alias of _.find + * @see _.find + * @param _.matches style callback + **/ detect( collection: Array|List|Dictionary, whereValue: W): T; @@ -2780,6 +2801,12 @@ declare module _ { collection: Array|List|Dictionary, path: string, srcValue: any): T; + + /** + * Alias of _.find + * @see _.find + * @param _.matchesProperty style callback + **/ detect( collection: Array|List|Dictionary, path: string, @@ -2792,6 +2819,12 @@ declare module _ { find( collection: Array|List|Dictionary, pluckValue: string): T; + + /** + * Alias of _.find + * @see _.find + * @param _.property style callback + **/ detect( collection: Array|List|Dictionary, pluckValue: string): T;