diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index e0f2b8226..499b53853 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -605,8 +605,10 @@ result = _(foodsCombined).reject({ 'type': 'fruit' }).value(); result = _.sample([1, 2, 3, 4]); result = _.sample([1, 2, 3, 4], 2); -result = <_.LoDashArrayWrapper>_([1, 2, 3, 4]).sample(); +result = <_.LoDashWrapper>_([1, 2, 3, 4]).sample(); result = <_.LoDashArrayWrapper>_([1, 2, 3, 4]).sample(2); +result = _([1, 2, 3, 4]).sample().value(); +result = _([1, 2, 3, 4]).sample(2).value(); result = _.shuffle([1, 2, 3, 4, 5, 6]); result = <_.LoDashArrayWrapper>_([1, 2, 3]).shuffle(); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index a906b907f..e07d320df 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -4568,7 +4568,7 @@ declare module _ { /** * @see _.sample **/ - sample(): LoDashArrayWrapper; + sample(): LoDashWrapper; } //_.shuffle