diff --git a/types/lodash/ts3.1/common/collection.d.ts b/types/lodash/ts3.1/common/collection.d.ts index ee5f6191c9..6aea8f892f 100644 --- a/types/lodash/ts3.1/common/collection.d.ts +++ b/types/lodash/ts3.1/common/collection.d.ts @@ -1342,7 +1342,7 @@ declare module "../index" { /** * @see _.orderBy */ - orderBy(iteratees?: Many>, orders?: Many): Collection; + orderBy(iteratees?: Many | PropertyName | PartialDeep>, orders?: Many): Collection; } interface Object { /** @@ -1354,7 +1354,7 @@ declare module "../index" { /** * @see _.orderBy */ - orderBy(iteratees?: Many>, orders?: Many): CollectionChain; + orderBy(iteratees?: Many | PropertyName | PartialDeep>, orders?: Many): CollectionChain; } interface ObjectChain { /** diff --git a/types/lodash/ts3.1/lodash-tests.ts b/types/lodash/ts3.1/lodash-tests.ts index e8b9eeacfa..3d33ecc656 100644 --- a/types/lodash/ts3.1/lodash-tests.ts +++ b/types/lodash/ts3.1/lodash-tests.ts @@ -3161,7 +3161,7 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain _.orderBy("acbd", [(value) => 1, (value) => 2], [true, false]); // $ExpectType string[] _.orderBy(list, (value) => 1); // $ExpectType AbcObject[] _.orderBy(list, (value) => 1, true); // $ExpectType AbcObject[] - _.orderBy(list, [(value) => 1, (value) => 2], [true, false]); // $ExpectType AbcObject[] + _.orderBy(list, [(value) => 1, 'third', (value) => 2], [true, false]); // $ExpectType AbcObject[] _.orderBy(dictionary, (value) => 1); // $ExpectType AbcObject[] _.orderBy(dictionary, (value) => 1, true); // $ExpectType AbcObject[] _.orderBy(numericDictionary, (value) => 1); // $ExpectType AbcObject[] @@ -3177,7 +3177,7 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain _.chain(list).orderBy((value) => 1); // $ExpectType CollectionChain _.chain(list).orderBy((value) => 1, true); // $ExpectType CollectionChain - _.chain(list).orderBy([(value) => 1, (value) => 2], true); // $ExpectType CollectionChain + _.chain(list).orderBy([(value) => 1, 'third', (value) => 2], true); // $ExpectType CollectionChain _.chain(dictionary).orderBy((value) => 1); // $ExpectType CollectionChain _.chain(dictionary).orderBy((value) => 1, true); // $ExpectType CollectionChain _.chain(numericDictionary).orderBy((value) => 1); // $ExpectType CollectionChain