From c7c8a5ec56b7b289abebc82a2272cbf603b00e33 Mon Sep 17 00:00:00 2001 From: Ailrun Date: Mon, 17 Jul 2017 02:18:16 -0400 Subject: [PATCH] fix lodash type for orderBy --- types/lodash/index.d.ts | 51 ++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index 5945f00035..a55cb6106c 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -1,6 +1,11 @@ // Type definitions for Lo-Dash 4.14 // Project: http://lodash.com/ -// Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk , Eric L Anderson , AJ Richardson +// Definitions by: Brian Zengel , +// Ilya Mochalov , +// Stepan Mikhaylyuk , +// Eric L Anderson , +// AJ Richardson , +// Junyoung Clare Jang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -9876,7 +9881,7 @@ declare namespace _ { */ orderBy( collection: List | null | undefined, - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): T[]; @@ -9885,7 +9890,7 @@ declare namespace _ { */ orderBy( collection: List | null | undefined, - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): T[]; @@ -9894,7 +9899,7 @@ declare namespace _ { */ orderBy( collection: NumericDictionary | null | undefined, - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): T[]; @@ -9903,7 +9908,7 @@ declare namespace _ { */ orderBy( collection: NumericDictionary | null | undefined, - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): T[]; @@ -9912,7 +9917,7 @@ declare namespace _ { */ orderBy( collection: Dictionary | null | undefined, - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): T[]; @@ -9921,7 +9926,7 @@ declare namespace _ { */ orderBy( collection: Dictionary | null | undefined, - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): T[]; } @@ -9931,7 +9936,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string>, + iteratees?: Many|string>, orders?: Many ): LoDashImplicitArrayWrapper; } @@ -9941,7 +9946,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): LoDashImplicitArrayWrapper; } @@ -9951,7 +9956,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): LoDashImplicitArrayWrapper; @@ -9959,7 +9964,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): LoDashImplicitArrayWrapper; @@ -9967,7 +9972,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): LoDashImplicitArrayWrapper; @@ -9975,7 +9980,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): LoDashImplicitArrayWrapper; @@ -9983,7 +9988,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): LoDashImplicitArrayWrapper; @@ -9991,7 +9996,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): LoDashImplicitArrayWrapper; } @@ -10001,7 +10006,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string>, + iteratees?: Many|string>, orders?: Many ): LoDashExplicitArrayWrapper; } @@ -10011,7 +10016,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|W|(ListIterator|string|W)>, + iteratees?: Many|string|W|(ListIterator|string|W)>, orders?: Many ): LoDashExplicitArrayWrapper; } @@ -10021,7 +10026,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): LoDashExplicitArrayWrapper; @@ -10029,7 +10034,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): LoDashExplicitArrayWrapper; @@ -10037,7 +10042,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): LoDashExplicitArrayWrapper; @@ -10045,7 +10050,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): LoDashExplicitArrayWrapper; @@ -10053,7 +10058,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|W>, + iteratees?: Many|string|W>, orders?: Many ): LoDashExplicitArrayWrapper; @@ -10061,7 +10066,7 @@ declare namespace _ { * @see _.orderBy */ orderBy( - iteratees: Many|string|Object>, + iteratees?: Many|string|Object>, orders?: Many ): LoDashExplicitArrayWrapper; }