diff --git a/lodash/index.d.ts b/lodash/index.d.ts index bf19508fa6..54bafe0388 100644 --- a/lodash/index.d.ts +++ b/lodash/index.d.ts @@ -6838,7 +6838,7 @@ declare module _ { collection: List, predicate?: ListIterator, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6847,7 +6847,7 @@ declare module _ { collection: Dictionary, predicate?: DictionaryIterator, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6856,7 +6856,7 @@ declare module _ { collection: List|Dictionary, predicate?: string, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6865,7 +6865,7 @@ declare module _ { collection: List|Dictionary, predicate?: TObject, fromIndex?: number - ): T; + ): T|undefined; } interface LoDashImplicitArrayWrapper { @@ -6875,7 +6875,7 @@ declare module _ { find( predicate?: ListIterator, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6883,7 +6883,7 @@ declare module _ { find( predicate?: string, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6891,7 +6891,7 @@ declare module _ { find( predicate?: TObject, fromIndex?: number - ): T; + ): T|undefined; } interface LoDashImplicitObjectWrapper { @@ -6901,7 +6901,7 @@ declare module _ { find( predicate?: ListIterator|DictionaryIterator, fromIndex?: number - ): TResult; + ): TResult|undefined; /** * @see _.find @@ -6909,7 +6909,7 @@ declare module _ { find( predicate?: string, fromIndex?: number - ): TResult; + ): TResult|undefined; /** * @see _.find @@ -6917,7 +6917,7 @@ declare module _ { find( predicate?: TObject, fromIndex?: number - ): TResult; + ): TResult|undefined; } //_.findLast @@ -6934,7 +6934,7 @@ declare module _ { collection: Array, callback: ListIterator, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6943,7 +6943,7 @@ declare module _ { collection: List, callback: ListIterator, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6952,7 +6952,7 @@ declare module _ { collection: Dictionary, callback: DictionaryIterator, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6962,7 +6962,7 @@ declare module _ { collection: Array, whereValue: W, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6972,7 +6972,7 @@ declare module _ { collection: List, whereValue: W, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6982,7 +6982,7 @@ declare module _ { collection: Dictionary, whereValue: W, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -6992,7 +6992,7 @@ declare module _ { collection: Array, pluckValue: string, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -7002,7 +7002,7 @@ declare module _ { collection: List, pluckValue: string, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.find @@ -7012,7 +7012,7 @@ declare module _ { collection: Dictionary, pluckValue: string, fromIndex?: number - ): T; + ): T|undefined; } interface LoDashImplicitArrayWrapper { @@ -7022,7 +7022,7 @@ declare module _ { findLast( callback: ListIterator, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.findLast * @param _.where style callback @@ -7030,7 +7030,7 @@ declare module _ { findLast( whereValue: W, fromIndex?: number - ): T; + ): T|undefined; /** * @see _.findLast @@ -7039,7 +7039,7 @@ declare module _ { findLast( pluckValue: string, fromIndex?: number - ): T; + ): T|undefined; } //_.flatMap