diff --git a/lodash/fb/index.d.ts b/lodash/fb/index.d.ts index 5f90e9e920..df9796d7d7 100644 --- a/lodash/fb/index.d.ts +++ b/lodash/fb/index.d.ts @@ -1,7 +1,2 @@ -// Type definitions for Lo-Dash 4.14 -// Project: http://lodash.com/ -// Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -import * as _ from "../index" +import * as _ from "../index"; export = _; diff --git a/lodash/generate-modules.ts b/lodash/generate-modules.ts index 716f3bb23f..127f1f44c6 100644 --- a/lodash/generate-modules.ts +++ b/lodash/generate-modules.ts @@ -66,6 +66,7 @@ function allModuleNames() { "every", "extend", "extendWith", + "fb", "fill", "filter", "find", @@ -168,6 +169,7 @@ function allModuleNames() { "max", "maxBy", "mean", + "meanBy", "memoize", "merge", "mergeWith", diff --git a/lodash/index.d.ts b/lodash/index.d.ts index bf19508fa6..2e0796930d 100644 --- a/lodash/index.d.ts +++ b/lodash/index.d.ts @@ -241,7 +241,9 @@ export as namespace _; declare var _: _.LoDashStatic; -declare module _ { +declare namespace _ { + type Many = T | T[]; + interface LoDashStatic { /** * Creates a lodash object which wraps the given value to enable intuitive method chaining. @@ -277,8 +279,8 @@ declare module _ { (value: number): LoDashImplicitWrapper; (value: string): LoDashImplicitStringWrapper; (value: boolean): LoDashImplicitWrapper; - (value: Array): LoDashImplicitNumberArrayWrapper; - (value: Array): LoDashImplicitArrayWrapper; + (value: number[]): LoDashImplicitNumberArrayWrapper; + (value: T[]): LoDashImplicitArrayWrapper; (value: T): LoDashImplicitObjectWrapper; (value: any): LoDashImplicitWrapper; @@ -515,7 +517,7 @@ declare module _ { * console.log(array); * // => [1] */ - concat(array: T[]|List, ...values: (T|T[]|List)[]) : T[]; + concat(array: List, ...values: Array>): T[]; } //_.difference @@ -529,8 +531,8 @@ declare module _ { * @return Returns the new array of filtered values. */ difference( - array: T[]|List, - ...values: Array> + array: List, + ...values: Array> ): T[]; } @@ -538,28 +540,28 @@ declare module _ { /** * @see _.difference */ - difference(...values: (T[]|List)[]): LoDashImplicitArrayWrapper; + difference(...values: Array>): LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { /** * @see _.difference */ - difference(...values: (TValue[]|List)[]): LoDashImplicitArrayWrapper; + difference(...values: Array>): LoDashImplicitArrayWrapper; } interface LoDashExplicitArrayWrapper { /** * @see _.difference */ - difference(...values: (T[]|List)[]): LoDashExplicitArrayWrapper; + difference(...values: Array>): LoDashExplicitArrayWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.difference */ - difference(...values: (TValue[]|List)[]): LoDashExplicitArrayWrapper; + difference(...values: Array>): LoDashExplicitArrayWrapper; } //_.differenceBy @@ -575,8 +577,8 @@ declare module _ { * @returns Returns the new array of filtered values. */ differenceBy( - array: T[]|List, - values?: T[]|List, + array: List, + values?: List, iteratee?: ((value: T) => any)|string ): T[]; @@ -584,8 +586,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values?: T[]|List, + array: List, + values?: List, iteratee?: W ): T[]; @@ -593,9 +595,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values1?: T[]|List, - values2?: T[]|List, + array: List, + values1?: List, + values2?: List, iteratee?: ((value: T) => any)|string ): T[]; @@ -603,9 +605,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values1?: T[]|List, - values2?: T[]|List, + array: List, + values1?: List, + values2?: List, iteratee?: W ): T[]; @@ -613,10 +615,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + array: List, + values1?: List, + values2?: List, + values3?: List, iteratee?: ((value: T) => any)|string ): T[]; @@ -624,10 +626,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + array: List, + values1?: List, + values2?: List, + values3?: List, iteratee?: W ): T[]; @@ -635,11 +637,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + array: List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: W ): T[]; @@ -647,11 +649,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + array: List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: ((value: T) => any)|string ): T[]; @@ -659,12 +661,12 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + array: List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: ((value: T) => any)|string ): T[]; @@ -672,12 +674,12 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + array: List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: W ): T[]; @@ -685,7 +687,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - array: T[]|List, + array: List, ...values: any[] ): T[]; } @@ -695,7 +697,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values?: T[]|List, + values?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -703,7 +705,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values?: T[]|List, + values?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -711,8 +713,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, + values1?: List, + values2?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -720,8 +722,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, + values1?: List, + values2?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -729,9 +731,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + values1?: List, + values2?: List, + values3?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -739,9 +741,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + values1?: List, + values2?: List, + values3?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -749,10 +751,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -760,10 +762,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -771,11 +773,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -783,11 +785,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -804,7 +806,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values?: T[]|List, + values?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -812,7 +814,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values?: T[]|List, + values?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -820,8 +822,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, + values1?: List, + values2?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -829,8 +831,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, + values1?: List, + values2?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -838,9 +840,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + values1?: List, + values2?: List, + values3?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -848,9 +850,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + values1?: List, + values2?: List, + values3?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -858,10 +860,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -869,10 +871,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -880,11 +882,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: ((value: T) => any)|string ): LoDashImplicitArrayWrapper; @@ -892,11 +894,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -913,7 +915,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values?: T[]|List, + values?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -921,7 +923,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values?: T[]|List, + values?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -929,8 +931,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, + values1?: List, + values2?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -938,8 +940,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, + values1?: List, + values2?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -947,9 +949,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + values1?: List, + values2?: List, + values3?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -957,9 +959,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + values1?: List, + values2?: List, + values3?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -967,10 +969,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -978,10 +980,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -989,11 +991,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -1001,11 +1003,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -1022,7 +1024,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values?: T[]|List, + values?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -1030,7 +1032,7 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values?: T[]|List, + values?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -1038,8 +1040,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, + values1?: List, + values2?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -1047,8 +1049,8 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, + values1?: List, + values2?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -1056,9 +1058,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + values1?: List, + values2?: List, + values3?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -1066,9 +1068,9 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, + values1?: List, + values2?: List, + values3?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -1076,10 +1078,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -1087,10 +1089,10 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -1098,11 +1100,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: ((value: T) => any)|string ): LoDashExplicitArrayWrapper; @@ -1110,11 +1112,11 @@ declare module _ { * @see _.differenceBy */ differenceBy( - values1?: T[]|List, - values2?: T[]|List, - values3?: T[]|List, - values4?: T[]|List, - values5?: T[]|List, + values1?: List, + values2?: List, + values3?: List, + values4?: List, + values5?: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -1145,7 +1147,7 @@ declare module _ { * // => [3, 1] */ differenceWith( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -1159,7 +1161,7 @@ declare module _ { * @param n The number of elements to drop. * @return Returns the slice of array. */ - drop(array: T[]|List, n?: number): T[]; + drop(array: List, n?: number): T[]; } interface LoDashImplicitArrayWrapper { @@ -1941,7 +1943,7 @@ declare module _ { /** * @see _.flatten */ - flatten(array: List): T[]; + flatten(array: List>): T[]; /** * @see _.flatten @@ -2250,7 +2252,7 @@ declare module _ { * // => [{ 'x': 1 }] */ intersectionBy( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -2277,7 +2279,7 @@ declare module _ { * // => [{ 'x': 1, 'y': 2 }] */ intersectionWith( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -2361,7 +2363,7 @@ declare module _ { * // => [1, 1] */ pullAll( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -2391,7 +2393,7 @@ declare module _ { * // => [{ 'x': 2 }] */ pullAllBy( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -2419,7 +2421,7 @@ declare module _ { * // => [3, 2, 1] */ reverse( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -2531,35 +2533,35 @@ declare module _ { * @param arrays The arrays to inspect. * @return Returns the new array of shared values. */ - intersection(...arrays: (T[]|List)[]): T[]; + intersection(...arrays: Array>): T[]; } interface LoDashImplicitArrayWrapper { /** * @see _.intersection */ - intersection(...arrays: (TResult[]|List)[]): LoDashImplicitArrayWrapper; + intersection(...arrays: Array>): LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { /** * @see _.intersection */ - intersection(...arrays: (TResult[]|List)[]): LoDashImplicitArrayWrapper; + intersection(...arrays: Array>): LoDashImplicitArrayWrapper; } interface LoDashExplicitArrayWrapper { /** * @see _.intersection */ - intersection(...arrays: (TResult[]|List)[]): LoDashExplicitArrayWrapper; + intersection(...arrays: Array>): LoDashExplicitArrayWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.intersection */ - intersection(...arrays: (TResult[]|List)[]): LoDashExplicitArrayWrapper; + intersection(...arrays: Array>): LoDashExplicitArrayWrapper; } //_.last @@ -2739,7 +2741,7 @@ declare module _ { */ pullAt( array: List, - ...indexes: (number|number[])[] + ...indexes: Array> ): T[]; } @@ -2747,28 +2749,28 @@ declare module _ { /** * @see _.pullAt */ - pullAt(...indexes: (number|number[])[]): LoDashImplicitArrayWrapper; + pullAt(...indexes: Array>): LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { /** * @see _.pullAt */ - pullAt(...indexes: (number|number[])[]): LoDashImplicitArrayWrapper; + pullAt(...indexes: Array>): LoDashImplicitArrayWrapper; } interface LoDashExplicitArrayWrapper { /** * @see _.pullAt */ - pullAt(...indexes: (number|number[])[]): LoDashExplicitArrayWrapper; + pullAt(...indexes: Array>): LoDashExplicitArrayWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.pullAt */ - pullAt(...indexes: (number|number[])[]): LoDashExplicitArrayWrapper; + pullAt(...indexes: Array>): LoDashExplicitArrayWrapper; } //_.remove @@ -3768,7 +3770,7 @@ declare module _ { * // => 3 */ sortedLastIndexOf( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -4172,45 +4174,45 @@ declare module _ { * @param arrays The arrays to inspect. * @return Returns the new array of combined values. */ - union(...arrays: List[]): T[]; + union(...arrays: Array>): T[]; } interface LoDashImplicitArrayWrapper { /** * @see _.union */ - union(...arrays: List[]): LoDashImplicitArrayWrapper; + union(...arrays: Array>): LoDashImplicitArrayWrapper; /** * @see _.union */ - union(...arrays: List[]): LoDashImplicitArrayWrapper; + union(...arrays: Array>): LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { /** * @see _.union */ - union(...arrays: List[]): LoDashImplicitArrayWrapper; + union(...arrays: Array>): LoDashImplicitArrayWrapper; } interface LoDashExplicitArrayWrapper { /** * @see _.union */ - union(...arrays: List[]): LoDashExplicitArrayWrapper; + union(...arrays: Array>): LoDashExplicitArrayWrapper; /** * @see _.union */ - union(...arrays: List[]): LoDashExplicitArrayWrapper; + union(...arrays: Array>): LoDashExplicitArrayWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.union */ - union(...arrays: List[]): LoDashExplicitArrayWrapper; + union(...arrays: Array>): LoDashExplicitArrayWrapper; } //_.unionBy @@ -4225,7 +4227,7 @@ declare module _ { * @return Returns the new array of combined values. */ unionBy( - arrays: T[]|List, + arrays: List, iteratee?: (value: T) => any ): T[]; @@ -4233,7 +4235,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays: T[]|List, + arrays: List, iteratee?: W ): T[]; @@ -4241,8 +4243,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays1: T[]|List, - arrays2: T[]|List, + arrays1: List, + arrays2: List, iteratee?: (value: T) => any ): T[]; @@ -4250,8 +4252,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays1: T[]|List, - arrays2: T[]|List, + arrays1: List, + arrays2: List, iteratee?: W ): T[]; @@ -4259,9 +4261,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays1: T[]|List, - arrays2: T[]|List, - arrays3: T[]|List, + arrays1: List, + arrays2: List, + arrays3: List, iteratee?: (value: T) => any ): T[]; @@ -4269,9 +4271,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays1: T[]|List, - arrays2: T[]|List, - arrays3: T[]|List, + arrays1: List, + arrays2: List, + arrays3: List, iteratee?: W ): T[]; @@ -4279,10 +4281,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays1: T[]|List, - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays1: List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: (value: T) => any ): T[]; @@ -4290,10 +4292,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays1: T[]|List, - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays1: List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: W ): T[]; @@ -4301,11 +4303,11 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays1: T[]|List, - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays1: List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: (value: T) => any ): T[]; @@ -4313,11 +4315,11 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays1: T[]|List, - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays1: List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: W ): T[]; @@ -4325,7 +4327,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays: T[]|List, + arrays: List, ...iteratee: any[] ): T[]; } @@ -4349,7 +4351,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, + arrays2: List, iteratee?: (value: T) => any ): LoDashImplicitArrayWrapper; @@ -4357,7 +4359,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, + arrays2: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -4365,8 +4367,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, + arrays2: List, + arrays3: List, iteratee?: (value: T) => any ): LoDashImplicitArrayWrapper; @@ -4374,8 +4376,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, + arrays2: List, + arrays3: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -4383,9 +4385,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: (value: T) => any ): LoDashImplicitArrayWrapper; @@ -4393,9 +4395,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -4403,10 +4405,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: (value: T) => any ): LoDashImplicitArrayWrapper; @@ -4414,10 +4416,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -4448,7 +4450,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, + arrays2: List, iteratee?: (value: T) => any ): LoDashImplicitArrayWrapper; @@ -4456,7 +4458,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, + arrays2: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -4464,8 +4466,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, + arrays2: List, + arrays3: List, iteratee?: (value: T) => any ): LoDashImplicitArrayWrapper; @@ -4473,8 +4475,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, + arrays2: List, + arrays3: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -4482,9 +4484,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: (value: T) => any ): LoDashImplicitArrayWrapper; @@ -4492,9 +4494,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -4502,10 +4504,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: (value: T) => any ): LoDashImplicitArrayWrapper; @@ -4513,10 +4515,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: W ): LoDashImplicitArrayWrapper; @@ -4547,7 +4549,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, + arrays2: List, iteratee?: (value: T) => any ): LoDashExplicitArrayWrapper; @@ -4555,7 +4557,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, + arrays2: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -4563,8 +4565,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, + arrays2: List, + arrays3: List, iteratee?: (value: T) => any ): LoDashExplicitArrayWrapper; @@ -4572,8 +4574,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, + arrays2: List, + arrays3: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -4581,9 +4583,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: (value: T) => any ): LoDashExplicitArrayWrapper; @@ -4591,9 +4593,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -4601,10 +4603,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: (value: T) => any ): LoDashExplicitArrayWrapper; @@ -4612,10 +4614,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -4646,7 +4648,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, + arrays2: List, iteratee?: (value: T) => any ): LoDashExplicitArrayWrapper; @@ -4654,7 +4656,7 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, + arrays2: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -4662,8 +4664,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, + arrays2: List, + arrays3: List, iteratee?: (value: T) => any ): LoDashExplicitArrayWrapper; @@ -4671,8 +4673,8 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, + arrays2: List, + arrays3: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -4680,9 +4682,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: (value: T) => any ): LoDashExplicitArrayWrapper; @@ -4690,9 +4692,9 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -4700,10 +4702,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: (value: T) => any ): LoDashExplicitArrayWrapper; @@ -4711,10 +4713,10 @@ declare module _ { * @see _.unionBy */ unionBy( - arrays2: T[]|List, - arrays3: T[]|List, - arrays4: T[]|List, - arrays5: T[]|List, + arrays2: List, + arrays3: List, + arrays4: List, + arrays5: List, iteratee?: W ): LoDashExplicitArrayWrapper; @@ -5315,7 +5317,7 @@ declare module _ { * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ unionWith( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -5341,7 +5343,7 @@ declare module _ { * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] */ uniqWith( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -5473,35 +5475,35 @@ declare module _ { * @param arrays The arrays to inspect. * @return Returns the new array of values. */ - xor(...arrays: List[]): T[]; + xor(...arrays: Array>): T[]; } interface LoDashImplicitArrayWrapper { /** * @see _.xor */ - xor(...arrays: List[]): LoDashImplicitArrayWrapper; + xor(...arrays: Array>): LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { /** * @see _.xor */ - xor(...arrays: List[]): LoDashImplicitArrayWrapper; + xor(...arrays: Array>): LoDashImplicitArrayWrapper; } interface LoDashExplicitArrayWrapper { /** * @see _.xor */ - xor(...arrays: List[]): LoDashExplicitArrayWrapper; + xor(...arrays: Array>): LoDashExplicitArrayWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.xor */ - xor(...arrays: List[]): LoDashExplicitArrayWrapper; + xor(...arrays: Array>): LoDashExplicitArrayWrapper; } //_.xorBy DUMMY @@ -5527,7 +5529,7 @@ declare module _ { * // => [{ 'x': 2 }] */ xorBy( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -5554,7 +5556,7 @@ declare module _ { * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ xorWith( - array: any[]|List, + array: List, ...values: any[] ): any[]; } @@ -5568,35 +5570,35 @@ declare module _ { * @param arrays The arrays to process. * @return Returns the new array of grouped elements. */ - zip(...arrays: List[]): T[][]; + zip(...arrays: Array>): T[][]; } interface LoDashImplicitArrayWrapper { /** * @see _.zip */ - zip(...arrays: List[]): _.LoDashImplicitArrayWrapper; + zip(...arrays: Array>): _.LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { /** * @see _.zip */ - zip(...arrays: List[]): _.LoDashImplicitArrayWrapper; + zip(...arrays: Array>): _.LoDashImplicitArrayWrapper; } interface LoDashExplicitArrayWrapper { /** * @see _.zip */ - zip(...arrays: List[]): _.LoDashExplicitArrayWrapper; + zip(...arrays: Array>): _.LoDashExplicitArrayWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.zip */ - zip(...arrays: List[]): _.LoDashExplicitArrayWrapper; + zip(...arrays: Array>): _.LoDashExplicitArrayWrapper; } //_.zipObject @@ -5939,24 +5941,24 @@ declare module _ { * @param items * @return Returns the new concatenated array. */ - concat(...items: Array>): LoDashImplicitArrayWrapper; + concat(...items: Array>): LoDashImplicitArrayWrapper; /** * @see _.concat */ - concat(...items: Array>): LoDashImplicitArrayWrapper; + concat(...items: Array>): LoDashImplicitArrayWrapper; } interface LoDashExplicitWrapperBase { /** * @see _.concat */ - concat(...items: Array>): LoDashExplicitArrayWrapper; + concat(...items: Array>): LoDashExplicitArrayWrapper; /** * @see _.concat */ - concat(...items: Array>): LoDashExplicitArrayWrapper; + concat(...items: Array>): LoDashExplicitArrayWrapper; } //_.prototype.plant @@ -6110,7 +6112,7 @@ declare module _ { */ at( collection: List|Dictionary, - ...props: (number|string|(number|string)[])[] + ...props: Array> ): T[]; } @@ -6118,28 +6120,28 @@ declare module _ { /** * @see _.at */ - at(...props: (number|string|(number|string)[])[]): LoDashImplicitArrayWrapper; + at(...props: Array>): LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { /** * @see _.at */ - at(...props: (number|string|(number|string)[])[]): LoDashImplicitArrayWrapper; + at(...props: Array>): LoDashImplicitArrayWrapper; } interface LoDashExplicitArrayWrapper { /** * @see _.at */ - at(...props: (number|string|(number|string)[])[]): LoDashExplicitArrayWrapper; + at(...props: Array>): LoDashExplicitArrayWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.at */ - at(...props: (number|string|(number|string)[])[]): LoDashExplicitArrayWrapper; + at(...props: Array>): LoDashExplicitArrayWrapper; } //_.countBy @@ -6931,7 +6933,7 @@ declare module _ { * @return The found element, else undefined. **/ findLast( - collection: Array, + collection: T[], callback: ListIterator, fromIndex?: number ): T; @@ -6959,7 +6961,7 @@ declare module _ { * @param _.pluck style callback **/ findLast( - collection: Array, + collection: T[], whereValue: W, fromIndex?: number ): T; @@ -6989,7 +6991,7 @@ declare module _ { * @param _.where style callback **/ findLast( - collection: Array, + collection: T[], pluckValue: string, fromIndex?: number ): T; @@ -7055,7 +7057,7 @@ declare module _ { */ flatMap( collection: List, - iteratee?: ListIterator + iteratee?: ListIterator> ): TResult[]; /** @@ -7063,7 +7065,7 @@ declare module _ { */ flatMap( collection: List, - iteratee?: ListIterator + iteratee?: ListIterator> ): TResult[]; /** @@ -7071,7 +7073,7 @@ declare module _ { */ flatMap( collection: Dictionary, - iteratee?: DictionaryIterator + iteratee?: DictionaryIterator> ): TResult[]; /** @@ -7079,7 +7081,7 @@ declare module _ { */ flatMap( collection: Dictionary, - iteratee?: DictionaryIterator + iteratee?: DictionaryIterator> ): TResult[]; /** @@ -7087,7 +7089,7 @@ declare module _ { */ flatMap( collection: NumericDictionary, - iteratee?: NumericDictionaryIterator + iteratee?: NumericDictionaryIterator> ): TResult[]; /** @@ -7095,7 +7097,7 @@ declare module _ { */ flatMap( collection: NumericDictionary, - iteratee?: NumericDictionaryIterator + iteratee?: NumericDictionaryIterator> ): TResult[]; /** @@ -7103,7 +7105,7 @@ declare module _ { */ flatMap( collection: TObject, - iteratee?: ObjectIterator + iteratee?: ObjectIterator> ): TResult[]; /** @@ -7111,7 +7113,7 @@ declare module _ { */ flatMap( collection: Object, - iteratee?: ObjectIterator + iteratee?: ObjectIterator> ): TResult[]; /** @@ -7159,7 +7161,7 @@ declare module _ { * @see _.flatMap */ flatMap( - iteratee: ListIterator + iteratee: ListIterator> ): LoDashImplicitArrayWrapper; /** @@ -7173,7 +7175,7 @@ declare module _ { * @see _.flatMap */ flatMap( - iteratee: ListIterator|string + iteratee: ListIterator>|string ): LoDashImplicitArrayWrapper; /** @@ -7201,14 +7203,14 @@ declare module _ { * @see _.flatMap */ flatMap( - iteratee: ListIterator|DictionaryIterator|NumericDictionaryIterator + iteratee: ListIterator>|DictionaryIterator>|NumericDictionaryIterator> ): LoDashImplicitArrayWrapper; /** * @see _.flatMap */ flatMap( - iteratee: ObjectIterator|string + iteratee: ObjectIterator>|string ): LoDashImplicitArrayWrapper; /** @@ -7236,7 +7238,7 @@ declare module _ { * @see _.flatMap */ flatMap( - iteratee: ListIterator + iteratee: ListIterator> ): LoDashExplicitArrayWrapper; /** @@ -7250,7 +7252,7 @@ declare module _ { * @see _.flatMap */ flatMap( - iteratee: ListIterator|string + iteratee: ListIterator>|string ): LoDashExplicitArrayWrapper; /** @@ -7278,14 +7280,14 @@ declare module _ { * @see _.flatMap */ flatMap( - iteratee: ListIterator|DictionaryIterator|NumericDictionaryIterator + iteratee: ListIterator>|DictionaryIterator>|NumericDictionaryIterator> ): LoDashExplicitArrayWrapper; /** * @see _.flatMap */ flatMap( - iteratee: ObjectIterator|string + iteratee: ObjectIterator>|string ): LoDashExplicitArrayWrapper; /** @@ -8044,7 +8046,7 @@ declare module _ { **/ invoke( object: TObject, - path: StringRepresentable|StringRepresentable[], + path: Many, ...args: any[]): TResult; /** @@ -8052,7 +8054,7 @@ declare module _ { **/ invoke( object: Dictionary|TValue[], - path: StringRepresentable|StringRepresentable[], + path: Many, ...args: any[]): TResult; /** @@ -8060,7 +8062,7 @@ declare module _ { **/ invoke( object: any, - path: StringRepresentable|StringRepresentable[], + path: Many, ...args: any[]): TResult; } @@ -8069,7 +8071,7 @@ declare module _ { * @see _.invoke **/ invoke( - path: StringRepresentable|StringRepresentable[], + path: Many, ...args: any[]): TResult; } @@ -8078,7 +8080,7 @@ declare module _ { * @see _.invoke **/ invoke( - path: StringRepresentable|StringRepresentable[], + path: Many, ...args: any[]): TResult; } @@ -8087,7 +8089,7 @@ declare module _ { * @see _.invoke **/ invoke( - path: StringRepresentable|StringRepresentable[], + path: Many, ...args: any[]): TResult; } @@ -8096,7 +8098,7 @@ declare module _ { * @see _.invoke **/ invoke( - path: StringRepresentable|StringRepresentable[], + path: Many, ...args: any[]): TResult; } @@ -8128,7 +8130,7 @@ declare module _ { * @see _.invokeMap **/ invokeMap( - collection: {}[], + collection: Array<{}>, methodName: string, ...args: any[]): TResult[]; @@ -8160,7 +8162,7 @@ declare module _ { * @see _.invokeMap **/ invokeMap( - collection: {}[], + collection: Array<{}>, method: (...args: any[]) => TResult, ...args: any[]): TResult[]; @@ -8549,7 +8551,7 @@ declare module _ { * @return Returns the accumulated value. **/ reduce( - collection: Array, + collection: T[], callback: MemoIterator, accumulator: TResult): TResult; @@ -8581,7 +8583,7 @@ declare module _ { * @see _.reduce **/ reduce( - collection: Array, + collection: T[], callback: MemoIterator): TResult; /** @@ -8679,7 +8681,7 @@ declare module _ { * @return The accumulated value. **/ reduceRight( - collection: Array, + collection: T[], callback: MemoIterator, accumulator: TResult): TResult; @@ -8703,7 +8705,7 @@ declare module _ { * @see _.reduceRight **/ reduceRight( - collection: Array, + collection: T[], callback: MemoIterator): TResult; /** @@ -9391,15 +9393,15 @@ declare module _ { * @see _.sortBy */ sortBy( - collection: (Array|List), - iteratees: (ListIterator|string|Object)[]): T[]; + collection: List, + iteratees: Array|string|Object>): T[]; /** * @see _.sortBy */ sortBy( - collection: (Array|List), - ...iteratees: (ListIterator|Object|string)[]): T[]; + collection: List, + ...iteratees: Array|Object|string>): T[]; } interface LoDashImplicitArrayWrapper { @@ -9428,12 +9430,12 @@ declare module _ { /** * @see _.sortBy */ - sortBy(...iteratees: (ListIterator|Object|string)[]): LoDashImplicitArrayWrapper; + sortBy(...iteratees: Array|Object|string>): LoDashImplicitArrayWrapper; /** * @see _.sortBy **/ - sortBy(iteratees: (ListIterator|string|Object)[]): LoDashImplicitArrayWrapper; + sortBy(iteratees: Array|string|Object>): LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { @@ -9539,8 +9541,8 @@ declare module _ { */ orderBy( collection: List, - iteratees: ListIterator|string|W|(ListIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): T[]; /** @@ -9548,8 +9550,8 @@ declare module _ { */ orderBy( collection: List, - iteratees: ListIterator|string|Object|(ListIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): T[]; /** @@ -9557,8 +9559,8 @@ declare module _ { */ orderBy( collection: NumericDictionary, - iteratees: NumericDictionaryIterator|string|W|(NumericDictionaryIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): T[]; /** @@ -9566,8 +9568,8 @@ declare module _ { */ orderBy( collection: NumericDictionary, - iteratees: NumericDictionaryIterator|string|Object|(NumericDictionaryIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): T[]; /** @@ -9575,8 +9577,8 @@ declare module _ { */ orderBy( collection: Dictionary, - iteratees: DictionaryIterator|string|W|(DictionaryIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): T[]; /** @@ -9584,8 +9586,8 @@ declare module _ { */ orderBy( collection: Dictionary, - iteratees: DictionaryIterator|string|Object|(DictionaryIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): T[]; } @@ -9594,8 +9596,8 @@ declare module _ { * @see _.orderBy */ orderBy( - iteratees: ListIterator|string|(ListIterator|string)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string>, + orders?: Many ): LoDashImplicitArrayWrapper; } @@ -9604,8 +9606,8 @@ declare module _ { * @see _.orderBy */ orderBy( - iteratees: ListIterator|string|W|(ListIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): LoDashImplicitArrayWrapper; } @@ -9614,48 +9616,48 @@ declare module _ { * @see _.orderBy */ orderBy( - iteratees: ListIterator|string|W|(ListIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): LoDashImplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: ListIterator|string|Object|(ListIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): LoDashImplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: NumericDictionaryIterator|string|W|(NumericDictionaryIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): LoDashImplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: NumericDictionaryIterator|string|Object|(NumericDictionaryIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): LoDashImplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: DictionaryIterator|string|W|(DictionaryIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): LoDashImplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: DictionaryIterator|string|Object|(DictionaryIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): LoDashImplicitArrayWrapper; } @@ -9664,8 +9666,8 @@ declare module _ { * @see _.orderBy */ orderBy( - iteratees: ListIterator|string|(ListIterator|string)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string>, + orders?: Many ): LoDashExplicitArrayWrapper; } @@ -9674,8 +9676,8 @@ declare module _ { * @see _.orderBy */ orderBy( - iteratees: ListIterator|string|W|(ListIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W|(ListIterator|string|W)>, + orders?: Many ): LoDashExplicitArrayWrapper; } @@ -9684,48 +9686,48 @@ declare module _ { * @see _.orderBy */ orderBy( - iteratees: ListIterator|string|W|(ListIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): LoDashExplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: ListIterator|string|Object|(ListIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): LoDashExplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: NumericDictionaryIterator|string|W|(NumericDictionaryIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): LoDashExplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: NumericDictionaryIterator|string|Object|(NumericDictionaryIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): LoDashExplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: DictionaryIterator|string|W|(DictionaryIterator|string|W)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|W>, + orders?: Many ): LoDashExplicitArrayWrapper; /** * @see _.orderBy */ orderBy( - iteratees: DictionaryIterator|string|Object|(DictionaryIterator|string|Object)[], - orders?: boolean|string|(boolean|string)[] + iteratees: Many|string|Object>, + orders?: Many ): LoDashExplicitArrayWrapper; } @@ -9926,7 +9928,7 @@ declare module _ { */ bindAll( object: T, - ...methodNames: (string|string[])[] + ...methodNames: Array> ): T; } @@ -9934,14 +9936,14 @@ declare module _ { /** * @see _.bindAll */ - bindAll(...methodNames: (string|string[])[]): LoDashImplicitObjectWrapper; + bindAll(...methodNames: Array>): LoDashImplicitObjectWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.bindAll */ - bindAll(...methodNames: (string|string[])[]): LoDashExplicitObjectWrapper; + bindAll(...methodNames: Array>): LoDashExplicitObjectWrapper; } //_.bindKey @@ -10472,7 +10474,7 @@ declare module _ { memoize: { (func: T, resolver?: Function): T & MemoizedFunction; Cache: MapCacheConstructor; - } + }; } interface LoDashImplicitObjectWrapper { @@ -10619,21 +10621,11 @@ declare module _ { type PH = LoDashStatic; - interface Function0 { - (): R; - } - interface Function1 { - (t1: T1): R; - } - interface Function2 { - (t1: T1, t2: T2): R; - } - interface Function3 { - (t1: T1, t2: T2, t3: T3): R; - } - interface Function4 { - (t1: T1, t2: T2, t3: T3, t4: T4): R; - } + type Function0 = () => R; + type Function1 = (t1: T1) => R; + type Function2 = (t1: T1, t2: T2) => R; + type Function3 = (t1: T1, t2: T2, t3: T3) => R; + type Function4 = (t1: T1, t2: T2, t3: T3, t4: T4) => R; interface Partial { // arity 0 @@ -10685,7 +10677,7 @@ declare module _ { * @param args Arguments to be partially applied. * @return The new partially applied function. **/ - partialRight: PartialRight + partialRight: PartialRight; } interface PartialRight { @@ -11039,7 +11031,7 @@ declare module _ { * @param value The value to inspect. * @return Returns the cast array. */ - castArray(value?: T | T[]): T[]; + castArray(value?: Many): T[]; } interface LoDashImplicitWrapper { @@ -11198,9 +11190,7 @@ declare module _ { } //_.cloneDeepWith - interface CloneDeepWithCustomizer { - (value: TValue): TResult; - } + type CloneDeepWithCustomizer = (value: TValue) => TResult; interface LoDashStatic { /** @@ -11321,9 +11311,7 @@ declare module _ { } //_.cloneWith - interface CloneWithCustomizer { - (value: TValue): TResult; - } + type CloneWithCustomizer = (value: TValue) => TResult; interface LoDashStatic { /** @@ -11594,14 +11582,14 @@ declare module _ { isArray(value?: any): value is T[]; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapperBase { /** * @see _.isArray */ isArray(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapperBase { /** * @see _.isArray */ @@ -11663,14 +11651,14 @@ declare module _ { isArrayLike(value?: any): value is T[]; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapperBase { /** * @see _.isArrayLike */ isArrayLike(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapperBase { /** * @see _.isArrayLike */ @@ -11706,14 +11694,14 @@ declare module _ { isArrayLikeObject(value?: any): value is T[]; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapperBase { /** * @see _.isArrayLikeObject */ isArrayLikeObject(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapperBase { /** * @see _.isArrayLikeObject */ @@ -11900,9 +11888,7 @@ declare module _ { } // _.isEqualWith - interface IsEqualCustomizer { - (value: any, other: any, indexOrKey?: number|string): boolean; - } + type IsEqualCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean; interface LoDashStatic { /** @@ -12153,9 +12139,7 @@ declare module _ { } //_.isMatch - interface isMatchCustomizer { - (value: any, other: any, indexOrKey?: number|string): boolean; - } + type isMatchCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean; interface LoDashStatic { /** @@ -12191,9 +12175,7 @@ declare module _ { } //_.isMatchWith - interface isMatchWithCustomizer { - (value: any, other: any, indexOrKey?: number|string): boolean; - } + type isMatchWithCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean; interface LoDashStatic { /** @@ -14060,11 +14042,6 @@ declare module _ { assign(...otherArgs: any[]): LoDashExplicitObjectWrapper; } - //_.assignWith - interface AssignCustomizer { - (objectValue: any, sourceValue: any, key?: string, object?: {}, source?: {}): any; - } - interface LoDashStatic { /** * This method is like `_.assign` except that it accepts `customizer` which @@ -14418,9 +14395,7 @@ declare module _ { } //_.assignInWith - interface AssignCustomizer { - (objectValue: any, sourceValue: any, key?: string, object?: {}, source?: {}): any; - } + type AssignCustomizer = (objectValue: any, sourceValue: any, key?: string, object?: {}, source?: {}) => any; interface LoDashStatic { /** @@ -14805,7 +14780,7 @@ declare module _ { /** * @see _.defaultsDeep **/ - defaultsDeep(...sources: any[]): LoDashImplicitObjectWrapper + defaultsDeep(...sources: any[]): LoDashImplicitObjectWrapper; } // _.extend @@ -15595,7 +15570,7 @@ declare module _ { */ get( object: TObject, - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult ): TResult; @@ -15604,7 +15579,7 @@ declare module _ { */ get( object: any, - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult ): TResult; } @@ -15614,7 +15589,7 @@ declare module _ { * @see _.get */ get( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult ): TResult; } @@ -15624,7 +15599,7 @@ declare module _ { * @see _.get */ get( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult ): TResult; } @@ -15634,7 +15609,7 @@ declare module _ { * @see _.get */ get( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult ): TResult; } @@ -15644,7 +15619,7 @@ declare module _ { * @see _.get */ get( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: any ): TResultWrapper; } @@ -15654,7 +15629,7 @@ declare module _ { * @see _.get */ get( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: any ): TResultWrapper; } @@ -15664,7 +15639,7 @@ declare module _ { * @see _.get */ get( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: any ): TResultWrapper; } @@ -15699,7 +15674,7 @@ declare module _ { */ has( object: T, - path: StringRepresentable|StringRepresentable[] + path: Many ): boolean; } @@ -15707,14 +15682,14 @@ declare module _ { /** * @see _.has */ - has(path: StringRepresentable|StringRepresentable[]): boolean; + has(path: Many): boolean; } interface LoDashExplicitObjectWrapper { /** * @see _.has */ - has(path: StringRepresentable|StringRepresentable[]): LoDashExplicitWrapper; + has(path: Many): LoDashExplicitWrapper; } //_.hasIn @@ -15746,7 +15721,7 @@ declare module _ { */ hasIn( object: T, - path: StringRepresentable|StringRepresentable[] + path: Many ): boolean; } @@ -15754,14 +15729,14 @@ declare module _ { /** * @see _.hasIn */ - hasIn(path: StringRepresentable|StringRepresentable[]): boolean; + hasIn(path: Many): boolean; } interface LoDashExplicitObjectWrapper { /** * @see _.hasIn */ - hasIn(path: StringRepresentable|StringRepresentable[]): LoDashExplicitWrapper; + hasIn(path: Many): LoDashExplicitWrapper; } //_.invert @@ -15803,9 +15778,7 @@ declare module _ { } //_.inverBy - interface InvertByIterator { - (value: T): any; - } + type InvertByIterator = (value: T) => any; interface LoDashStatic { /** @@ -16347,9 +16320,7 @@ declare module _ { } //_.mergeWith - interface MergeWithCustomizer { - (value: any, srcValue: any, key?: string, object?: Object, source?: Object): any; - } + type MergeWithCustomizer = (value: any, srcValue: any, key?: string, object?: Object, source?: Object) => any; interface LoDashStatic { /** @@ -16505,7 +16476,7 @@ declare module _ { omit( object: T, - ...predicate: (StringRepresentable|StringRepresentable[])[] + ...predicate: Array> ): TResult; } @@ -16515,7 +16486,7 @@ declare module _ { * @see _.omit */ omit( - ...predicate: (StringRepresentable|StringRepresentable[])[] + ...predicate: Array> ): LoDashImplicitObjectWrapper; } @@ -16525,7 +16496,7 @@ declare module _ { * @see _.omit */ omit( - ...predicate: (StringRepresentable|StringRepresentable[])[] + ...predicate: Array> ): LoDashExplicitObjectWrapper; } @@ -16594,7 +16565,7 @@ declare module _ { */ pick( object: T, - ...predicate: (StringRepresentable|StringRepresentable[])[] + ...predicate: Array> ): TResult; } @@ -16603,7 +16574,7 @@ declare module _ { * @see _.pick */ pick( - ...predicate: (StringRepresentable|StringRepresentable[])[] + ...predicate: Array> ): LoDashImplicitObjectWrapper; } @@ -16612,7 +16583,7 @@ declare module _ { * @see _.pick */ pick( - ...predicate: (StringRepresentable|StringRepresentable[])[] + ...predicate: Array> ): LoDashExplicitObjectWrapper; } @@ -16672,7 +16643,7 @@ declare module _ { */ result( object: TObject, - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult|((...args: any[]) => TResult) ): TResult; @@ -16681,7 +16652,7 @@ declare module _ { */ result( object: any, - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult|((...args: any[]) => TResult) ): TResult; } @@ -16691,7 +16662,7 @@ declare module _ { * @see _.result */ result( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult|((...args: any[]) => TResult) ): TResult; } @@ -16701,7 +16672,7 @@ declare module _ { * @see _.result */ result( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult|((...args: any[]) => TResult) ): TResult; } @@ -16711,7 +16682,7 @@ declare module _ { * @see _.result */ result( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: TResult|((...args: any[]) => TResult) ): TResult; } @@ -16721,7 +16692,7 @@ declare module _ { * @see _.result */ result( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: any ): TResultWrapper; } @@ -16731,7 +16702,7 @@ declare module _ { * @see _.result */ result( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: any ): TResultWrapper; } @@ -16741,7 +16712,7 @@ declare module _ { * @see _.result */ result( - path: StringRepresentable|StringRepresentable[], + path: Many, defaultValue?: any ): TResultWrapper; } @@ -16760,7 +16731,7 @@ declare module _ { */ set( object: Object, - path: StringRepresentable|StringRepresentable[], + path: Many, value: any ): TResult; @@ -16769,7 +16740,7 @@ declare module _ { */ set( object: Object, - path: StringRepresentable|StringRepresentable[], + path: Many, value: V ): TResult; @@ -16778,7 +16749,7 @@ declare module _ { */ set( object: O, - path: StringRepresentable|StringRepresentable[], + path: Many, value: V ): TResult; } @@ -16788,7 +16759,7 @@ declare module _ { * @see _.set */ set( - path: StringRepresentable|StringRepresentable[], + path: Many, value: any ): LoDashImplicitObjectWrapper; @@ -16796,7 +16767,7 @@ declare module _ { * @see _.set */ set( - path: StringRepresentable|StringRepresentable[], + path: Many, value: V ): LoDashImplicitObjectWrapper; } @@ -16806,7 +16777,7 @@ declare module _ { * @see _.set */ set( - path: StringRepresentable|StringRepresentable[], + path: Many, value: any ): LoDashExplicitObjectWrapper; @@ -16814,15 +16785,13 @@ declare module _ { * @see _.set */ set( - path: StringRepresentable|StringRepresentable[], + path: Many, value: V ): LoDashExplicitObjectWrapper; } //_.setWith - interface SetWithCustomizer { - (nsValue: any, key: string, nsObject: T): any; - } + type SetWithCustomizer = (nsValue: any, key: string, nsObject: T) => any; interface LoDashStatic { /** @@ -16838,7 +16807,7 @@ declare module _ { */ setWith( object: Object, - path: StringRepresentable|StringRepresentable[], + path: Many, value: any, customizer?: SetWithCustomizer ): TResult; @@ -16848,7 +16817,7 @@ declare module _ { */ setWith( object: Object, - path: StringRepresentable|StringRepresentable[], + path: Many, value: V, customizer?: SetWithCustomizer ): TResult; @@ -16858,7 +16827,7 @@ declare module _ { */ setWith( object: O, - path: StringRepresentable|StringRepresentable[], + path: Many, value: V, customizer?: SetWithCustomizer ): TResult; @@ -16869,7 +16838,7 @@ declare module _ { * @see _.setWith */ setWith( - path: StringRepresentable|StringRepresentable[], + path: Many, value: any, customizer?: SetWithCustomizer ): LoDashImplicitObjectWrapper; @@ -16878,7 +16847,7 @@ declare module _ { * @see _.setWith */ setWith( - path: StringRepresentable|StringRepresentable[], + path: Many, value: V, customizer?: SetWithCustomizer ): LoDashImplicitObjectWrapper; @@ -16889,7 +16858,7 @@ declare module _ { * @see _.setWith */ setWith( - path: StringRepresentable|StringRepresentable[], + path: Many, value: any, customizer?: SetWithCustomizer ): LoDashExplicitObjectWrapper; @@ -16898,7 +16867,7 @@ declare module _ { * @see _.setWith */ setWith( - path: StringRepresentable|StringRepresentable[], + path: Many, value: V, customizer?: SetWithCustomizer ): LoDashExplicitObjectWrapper; @@ -17055,7 +17024,7 @@ declare module _ { */ unset( object: T, - path: StringRepresentable|StringRepresentable[] + path: Many ): boolean; } @@ -17063,14 +17032,14 @@ declare module _ { /** * @see _.unset */ - unset(path: StringRepresentable|StringRepresentable[]): LoDashImplicitWrapper; + unset(path: Many): LoDashImplicitWrapper; } interface LoDashExplicitObjectWrapper { /** * @see _.unset */ - unset(path: StringRepresentable|StringRepresentable[]): LoDashExplicitWrapper; + unset(path: Many): LoDashExplicitWrapper; } //_.update @@ -17086,7 +17055,7 @@ declare module _ { */ update( object: Object, - path: StringRepresentable|StringRepresentable[], + path: Many, updater: Function ): TResult; @@ -17095,7 +17064,7 @@ declare module _ { */ update( object: Object, - path: StringRepresentable|StringRepresentable[], + path: Many, updater: U ): TResult; @@ -17104,7 +17073,7 @@ declare module _ { */ update( object: O, - path: StringRepresentable|StringRepresentable[], + path: Many, updater: Function ): TResult; @@ -17113,7 +17082,7 @@ declare module _ { */ update( object: O, - path: StringRepresentable|StringRepresentable[], + path: Many, updater: U ): TResult; } @@ -17123,7 +17092,7 @@ declare module _ { * @see _.update */ update( - path: StringRepresentable|StringRepresentable[], + path: Many, updater: any ): LoDashImplicitObjectWrapper; @@ -17131,7 +17100,7 @@ declare module _ { * @see _.update */ update( - path: StringRepresentable|StringRepresentable[], + path: Many, updater: U ): LoDashImplicitObjectWrapper; } @@ -17141,7 +17110,7 @@ declare module _ { * @see _.update */ update( - path: StringRepresentable|StringRepresentable[], + path: Many, updater: any ): LoDashExplicitObjectWrapper; @@ -17149,7 +17118,7 @@ declare module _ { * @see _.update */ update( - path: StringRepresentable|StringRepresentable[], + path: Many, updater: U ): LoDashExplicitObjectWrapper; } @@ -18485,7 +18454,7 @@ declare module _ { * @return Returns the new function. */ matchesProperty( - path: StringRepresentable|StringRepresentable[], + path: Many, srcValue: T ): (value: any) => boolean; @@ -18493,7 +18462,7 @@ declare module _ { * @see _.matchesProperty */ matchesProperty( - path: StringRepresentable|StringRepresentable[], + path: Many, srcValue: T ): (value: V) => boolean; } @@ -18615,7 +18584,7 @@ declare module _ { methodOf( object: TObject, ...args: any[] - ): (path: StringRepresentable|StringRepresentable[]) => TResult; + ): (path: Many) => TResult; /** * @see _.methodOf @@ -18623,7 +18592,7 @@ declare module _ { methodOf( object: {}, ...args: any[] - ): (path: StringRepresentable|StringRepresentable[]) => TResult; + ): (path: Many) => TResult; } interface LoDashImplicitObjectWrapper { @@ -18632,7 +18601,7 @@ declare module _ { */ methodOf( ...args: any[] - ): LoDashImplicitObjectWrapper<(path: StringRepresentable|StringRepresentable[]) => TResult>; + ): LoDashImplicitObjectWrapper<(path: Many) => TResult>; } interface LoDashExplicitObjectWrapper { @@ -18641,7 +18610,7 @@ declare module _ { */ methodOf( ...args: any[] - ): LoDashExplicitObjectWrapper<(path: StringRepresentable|StringRepresentable[]) => TResult>; + ): LoDashExplicitObjectWrapper<(path: Many) => TResult>; } //_.mixin @@ -18794,35 +18763,35 @@ declare module _ { * @param iteratees The iteratees to invoke. * @return Returns the new function. */ - over(...iteratees: (Function|Function[])[]): (...args: any[]) => TResult[]; + over(...iteratees: Array>): (...args: any[]) => TResult[]; } interface LoDashImplicitArrayWrapper { /** * @see _.over */ - over(...iteratees: (Function|Function[])[]): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>; + over(...iteratees: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>; } interface LoDashImplicitObjectWrapper { /** * @see _.over */ - over(...iteratees: (Function|Function[])[]): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>; + over(...iteratees: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>; } interface LoDashExplicitArrayWrapper { /** * @see _.over */ - over(...iteratees: (Function|Function[])[]): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>; + over(...iteratees: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>; } interface LoDashExplicitObjectWrapper { /** * @see _.over */ - over(...iteratees: (Function|Function[])[]): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>; + over(...iteratees: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>; } //_.overEvery @@ -18834,35 +18803,35 @@ declare module _ { * @param predicates The predicates to check. * @return Returns the new function. */ - overEvery(...predicates: (Function|Function[])[]): (...args: any[]) => boolean; + overEvery(...predicates: Array>): (...args: any[]) => boolean; } interface LoDashImplicitArrayWrapper { /** * @see _.overEvery */ - overEvery(...predicates: (Function|Function[])[]): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; + overEvery(...predicates: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; } interface LoDashImplicitObjectWrapper { /** * @see _.overEvery */ - overEvery(...predicates: (Function|Function[])[]): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; + overEvery(...predicates: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; } interface LoDashExplicitArrayWrapper { /** * @see _.overEvery */ - overEvery(...predicates: (Function|Function[])[]): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; + overEvery(...predicates: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; } interface LoDashExplicitObjectWrapper { /** * @see _.overEvery */ - overEvery(...predicates: (Function|Function[])[]): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; + overEvery(...predicates: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; } //_.overSome @@ -18874,35 +18843,35 @@ declare module _ { * @param predicates The predicates to check. * @return Returns the new function. */ - overSome(...predicates: (Function|Function[])[]): (...args: any[]) => boolean; + overSome(...predicates: Array>): (...args: any[]) => boolean; } interface LoDashImplicitArrayWrapper { /** * @see _.overSome */ - overSome(...predicates: (Function|Function[])[]): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; + overSome(...predicates: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; } interface LoDashImplicitObjectWrapper { /** * @see _.overSome */ - overSome(...predicates: (Function|Function[])[]): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; + overSome(...predicates: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; } interface LoDashExplicitArrayWrapper { /** * @see _.overSome */ - overSome(...predicates: (Function|Function[])[]): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; + overSome(...predicates: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; } interface LoDashExplicitObjectWrapper { /** * @see _.overSome */ - overSome(...predicates: (Function|Function[])[]): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; + overSome(...predicates: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; } //_.property @@ -18913,7 +18882,7 @@ declare module _ { * @param path The path of the property to get. * @return Returns the new function. */ - property(path: StringRepresentable|StringRepresentable[]): (obj: TObj) => TResult; + property(path: Many): (obj: TObj) => TResult; } interface LoDashImplicitWrapper { @@ -18953,21 +18922,21 @@ declare module _ { * @param object The object to query. * @return Returns the new function. */ - propertyOf(object: T): (path: string|string[]) => any; + propertyOf(object: T): (path: Many) => any; } interface LoDashImplicitObjectWrapper { /** * @see _.propertyOf */ - propertyOf(): LoDashImplicitObjectWrapper<(path: string|string[]) => any>; + propertyOf(): LoDashImplicitObjectWrapper<(path: Many) => any>; } interface LoDashExplicitObjectWrapper { /** * @see _.propertyOf */ - propertyOf(): LoDashExplicitObjectWrapper<(path: string|string[]) => any>; + propertyOf(): LoDashExplicitObjectWrapper<(path: Many) => any>; } //_.range @@ -19224,41 +19193,22 @@ declare module _ { uniqueId(): LoDashExplicitWrapper; } - interface ListIterator { - (value: T, index: number, collection: List): TResult; - } + type ListIterator = (value: T, index: number, collection: List) => TResult; - interface DictionaryIterator { - (value: T, key?: string, collection?: Dictionary): TResult; - } + type DictionaryIterator = (value: T, key?: string, collection?: Dictionary) => TResult; - interface NumericDictionaryIterator { - (value: T, key?: number, collection?: Dictionary): TResult; - } + type NumericDictionaryIterator = (value: T, key?: number, collection?: Dictionary) => TResult; - interface ObjectIterator { - (element: T, key?: string, collection?: any): TResult; - } + type ObjectIterator = (element: T, key?: string, collection?: any) => TResult; - interface StringIterator { - (char: string, index?: number, string?: string): TResult; - } + type StringIterator = (char: string, index?: number, string?: string) => TResult; - interface MemoVoidIterator { - (prev: TResult, curr: T, indexOrKey?: any, list?: T[]): void; - } - interface MemoIterator { - (prev: TResult, curr: T, indexOrKey?: any, list?: T[]): TResult; - } + type MemoVoidIterator = (prev: TResult, curr: T, indexOrKey?: any, list?: T[]) => void; - interface MemoVoidArrayIterator { - (acc: TResult, curr: T, index?: number, arr?: T[]): void; - } - interface MemoVoidDictionaryIterator { - (acc: TResult, curr: T, key?: string, dict?: Dictionary): void; - } + type MemoIterator = (prev: TResult, curr: T, indexOrKey?: any, list?: T[]) => TResult; - //interface Collection {} + type MemoVoidArrayIterator = (acc: TResult, curr: T, index?: number, arr?: T[]) => void; + type MemoVoidDictionaryIterator = (acc: TResult, curr: T, key?: string, dict?: Dictionary) => void; // Common interface between Arrays and jQuery objects interface List { diff --git a/lodash/meanBy/index.d.ts b/lodash/meanBy/index.d.ts index 0876057523..3004930ef6 100644 --- a/lodash/meanBy/index.d.ts +++ b/lodash/meanBy/index.d.ts @@ -1,8 +1,3 @@ -// Type definitions for Lo-Dash 4.14 -// Project: http://lodash.com/ -// Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -import * as _ from "../index" +import * as _ from "../index"; declare const meanBy: typeof _.meanBy; export = meanBy; diff --git a/lodash/tslint.json b/lodash/tslint.json new file mode 100644 index 0000000000..8bcd32b3b1 --- /dev/null +++ b/lodash/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false, + "no-empty-interface": false, + "unified-signatures": false + } +} \ No newline at end of file