diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index d74a4b5de5..5945f00035 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -9232,21 +9232,7 @@ declare namespace _ { * @return Returns the random element. */ sample( - collection: List|Dictionary|NumericDictionary | null | undefined - ): T | undefined; - - /** - * @see _.sample - */ - sample( - collection: O | null | undefined - ): T | undefined; - - /** - * @see _.sample - */ - sample( - collection: Object | null | undefined + collection: List | Dictionary | NumericDictionary | object | null | undefined ): T | undefined; } diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index 4721e9381d..8b8a27e97a 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -5118,7 +5118,7 @@ namespace TestSample { result = _.sample(list); result = _.sample(dictionary); result = _.sample(numericDictionary); - result = _.sample<{a: string}, string>({a: 'foo'}); + result = _.sample({a: 'foo'}); result = _.sample({a: 'foo'}); result = _('abc').sample();