diff --git a/types/lodash/common/collection.d.ts b/types/lodash/common/collection.d.ts index 641a4f92f7..d8ddc97197 100644 --- a/types/lodash/common/collection.d.ts +++ b/types/lodash/common/collection.d.ts @@ -257,7 +257,7 @@ declare module "../index" { * @see _.filter */ filter( - this: LoDashImplicitWrapper, + this: LoDashImplicitWrapper, predicate?: StringIterator ): LoDashImplicitWrapper; @@ -299,7 +299,7 @@ declare module "../index" { * @see _.filter */ filter( - this: LoDashExplicitWrapper, + this: LoDashExplicitWrapper, predicate?: StringIterator ): LoDashExplicitWrapper; diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index 15feece064..32b7b3fba6 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -1766,7 +1766,7 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType LoDashExplicitWrapper s === "a")(["a", "b"]); // $ExpectType string[] // Test filtering with type guard const a2: Array | null | undefined = anything; diff --git a/types/lowdb/_lodash.d.ts b/types/lowdb/_lodash.d.ts index c332a229c6..7267aab0d9 100644 --- a/types/lowdb/_lodash.d.ts +++ b/types/lowdb/_lodash.d.ts @@ -459,7 +459,7 @@ declare module "./index" { predicate?: _.ObjectIterateeCustom ): LoDashExplicitSyncWrapper; filter( - this: LoDashExplicitSyncWrapper, + this: LoDashExplicitSyncWrapper, predicate?: _.StringIterator ): LoDashExplicitSyncWrapper; filter( @@ -2055,7 +2055,7 @@ declare module "./index" { predicate?: _.ObjectIterateeCustom ): LoDashExplicitAsyncWrapper; filter( - this: LoDashExplicitAsyncWrapper, + this: LoDashExplicitAsyncWrapper, predicate?: _.StringIterator ): LoDashExplicitAsyncWrapper; filter(