@types/lodash 4.14.100 → 4.14.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. lodash/README.md +2 -2
  2. lodash/common/array.d.ts +3845 -0
  3. lodash/common/collection.d.ts +3091 -0
  4. lodash/common/common.d.ts +3 -3
  5. lodash/{date/now.d.ts → common/date.d.ts} +3 -1
  6. lodash/common/function.d.ts +1367 -0
  7. lodash/common/lang.d.ts +1937 -0
  8. lodash/common/math.d.ts +536 -0
  9. lodash/{number/random.d.ts → common/number.d.ts} +98 -1
  10. lodash/common/object.d.ts +3653 -0
  11. lodash/common/seq.d.ts +198 -0
  12. lodash/common/string.d.ts +1059 -0
  13. lodash/common/util.d.ts +1455 -0
  14. lodash/index.d.ts +11 -338
  15. lodash/package.json +2 -7
  16. lodash/array/chunk.d.ts +0 -37
  17. lodash/array/compact.d.ts +0 -27
  18. lodash/array/concat.d.ts +0 -39
  19. lodash/array/difference.d.ts +0 -37
  20. lodash/array/differenceBy.d.ts +0 -243
  21. lodash/array/differenceWith.d.ts +0 -132
  22. lodash/array/drop.d.ts +0 -27
  23. lodash/array/dropRight.d.ts +0 -30
  24. lodash/array/dropRightWhile.d.ts +0 -47
  25. lodash/array/dropWhile.d.ts +0 -47
  26. lodash/array/fill.d.ts +0 -124
  27. lodash/array/findIndex.d.ts +0 -50
  28. lodash/array/findLastIndex.d.ts +0 -49
  29. lodash/array/first.d.ts +0 -23
  30. lodash/array/flatten.d.ts +0 -43
  31. lodash/array/flattenDeep.d.ts +0 -26
  32. lodash/array/flattenDepth.d.ts +0 -27
  33. lodash/array/fromPairs.d.ts +0 -59
  34. lodash/array/head.d.ts +0 -28
  35. lodash/array/indexOf.d.ts +0 -53
  36. lodash/array/initial.d.ts +0 -26
  37. lodash/array/intersection.d.ts +0 -33
  38. lodash/array/intersectionBy.d.ts +0 -134
  39. lodash/array/intersectionWith.d.ts +0 -133
  40. lodash/array/join.d.ts +0 -30
  41. lodash/array/last.d.ts +0 -26
  42. lodash/array/lastIndexOf.d.ts +0 -40
  43. lodash/array/nth.d.ts +0 -36
  44. lodash/array/pull.d.ts +0 -46
  45. lodash/array/pullAll.d.ts +0 -54
  46. lodash/array/pullAllBy.d.ts +0 -77
  47. lodash/array/pullAllWith.d.ts +0 -77
  48. lodash/array/pullAt.d.ts +0 -34
  49. lodash/array/remove.d.ts +0 -49
  50. lodash/array/reverse.d.ts +0 -27
  51. lodash/array/slice.d.ts +0 -40
  52. lodash/array/sortedIndex.d.ts +0 -45
  53. lodash/array/sortedIndexBy.d.ts +0 -97
  54. lodash/array/sortedIndexOf.d.ts +0 -42
  55. lodash/array/sortedLastIndex.d.ts +0 -43
  56. lodash/array/sortedLastIndexBy.d.ts +0 -48
  57. lodash/array/sortedLastIndexOf.d.ts +0 -42
  58. lodash/array/sortedUniq.d.ts +0 -34
  59. lodash/array/sortedUniqBy.d.ts +0 -66
  60. lodash/array/tail.d.ts +0 -26
  61. lodash/array/take.d.ts +0 -36
  62. lodash/array/takeRight.d.ts +0 -36
  63. lodash/array/takeRightWhile.d.ts +0 -47
  64. lodash/array/takeWhile.d.ts +0 -47
  65. lodash/array/union.d.ts +0 -33
  66. lodash/array/unionBy.d.ts +0 -164
  67. lodash/array/unionWith.d.ts +0 -103
  68. lodash/array/uniq.d.ts +0 -36
  69. lodash/array/uniqBy.d.ts +0 -71
  70. lodash/array/uniqWith.d.ts +0 -45
  71. lodash/array/unzip.d.ts +0 -27
  72. lodash/array/unzipWith.d.ts +0 -60
  73. lodash/array/without.d.ts +0 -36
  74. lodash/array/xor.d.ts +0 -32
  75. lodash/array/xorBy.d.ts +0 -104
  76. lodash/array/xorWith.d.ts +0 -103
  77. lodash/array/zip.d.ts +0 -129
  78. lodash/array/zipObject.d.ts +0 -58
  79. lodash/array/zipObjectDeep.d.ts +0 -36
  80. lodash/array/zipWith.d.ts +0 -187
  81. lodash/collection/countBy.d.ts +0 -121
  82. lodash/collection/each.d.ts +0 -40
  83. lodash/collection/eachRight.d.ts +0 -40
  84. lodash/collection/every.d.ts +0 -85
  85. lodash/collection/filter.d.ts +0 -143
  86. lodash/collection/find.d.ts +0 -131
  87. lodash/collection/findLast.d.ts +0 -121
  88. lodash/collection/flatMap.d.ts +0 -164
  89. lodash/collection/flatMapDeep.d.ts +0 -164
  90. lodash/collection/flatMapDepth.d.ts +0 -180
  91. lodash/collection/forEach.d.ts +0 -113
  92. lodash/collection/forEachRight.d.ts +0 -108
  93. lodash/collection/groupBy.d.ts +0 -121
  94. lodash/collection/includes.d.ts +0 -41
  95. lodash/collection/invokeMap.d.ts +0 -58
  96. lodash/collection/keyBy.d.ts +0 -121
  97. lodash/collection/map.d.ts +0 -180
  98. lodash/collection/orderBy.d.ts +0 -192
  99. lodash/collection/partition.d.ts +0 -72
  100. lodash/collection/reduce.d.ts +0 -220
  101. lodash/collection/reduceRight.d.ts +0 -217
  102. lodash/collection/reject.d.ts +0 -86
  103. lodash/collection/sample.d.ts +0 -74
  104. lodash/collection/sampleSize.d.ts +0 -60
  105. lodash/collection/shuffle.d.ts +0 -41
  106. lodash/collection/size.d.ts +0 -27
  107. lodash/collection/some.d.ts +0 -85
  108. lodash/collection/sortBy.d.ts +0 -84
  109. lodash/function/after.d.ts +0 -30
  110. lodash/function/ary.d.ts +0 -30
  111. lodash/function/before.d.ts +0 -32
  112. lodash/function/bind.d.ts +0 -50
  113. lodash/function/bindKey.d.ts +0 -51
  114. lodash/function/curry.d.ts +0 -203
  115. lodash/function/curryRight.d.ts +0 -132
  116. lodash/function/debounce.d.ts +0 -67
  117. lodash/function/defer.d.ts +0 -31
  118. lodash/function/delay.d.ts +0 -38
  119. lodash/function/flip.d.ts +0 -28
  120. lodash/function/memoize.d.ts +0 -37
  121. lodash/function/negate.d.ts +0 -20
  122. lodash/function/once.d.ts +0 -20
  123. lodash/function/overArgs.d.ts +0 -31
  124. lodash/function/partial.d.ts +0 -159
  125. lodash/function/partialRight.d.ts +0 -150
  126. lodash/function/rearg.d.ts +0 -28
  127. lodash/function/rest.d.ts +0 -33
  128. lodash/function/spread.d.ts +0 -44
  129. lodash/function/throttle.d.ts +0 -58
  130. lodash/function/unary.d.ts +0 -32
  131. lodash/function/wrap.d.ts +0 -61
  132. lodash/lang/castArray.d.ts +0 -26
  133. lodash/lang/clone.d.ts +0 -31
  134. lodash/lang/cloneDeep.d.ts +0 -26
  135. lodash/lang/cloneDeepWith.d.ts +0 -51
  136. lodash/lang/cloneWith.d.ts +0 -74
  137. lodash/lang/conformsTo.d.ts +0 -31
  138. lodash/lang/eq.d.ts +0 -55
  139. lodash/lang/gt.d.ts +0 -30
  140. lodash/lang/gte.d.ts +0 -30
  141. lodash/lang/isArguments.d.ts +0 -26
  142. lodash/lang/isArray.d.ts +0 -31
  143. lodash/lang/isArrayBuffer.d.ts +0 -26
  144. lodash/lang/isArrayLike.d.ts +0 -52
  145. lodash/lang/isArrayLikeObject.d.ts +0 -53
  146. lodash/lang/isBoolean.d.ts +0 -26
  147. lodash/lang/isBuffer.d.ts +0 -26
  148. lodash/lang/isDate.d.ts +0 -26
  149. lodash/lang/isElement.d.ts +0 -26
  150. lodash/lang/isEmpty.d.ts +0 -27
  151. lodash/lang/isEqual.d.ts +0 -52
  152. lodash/lang/isEqualWith.d.ts +0 -61
  153. lodash/lang/isError.d.ts +0 -27
  154. lodash/lang/isFinite.d.ts +0 -28
  155. lodash/lang/isFunction.d.ts +0 -26
  156. lodash/lang/isInteger.d.ts +0 -42
  157. lodash/lang/isLength.d.ts +0 -42
  158. lodash/lang/isMap.d.ts +0 -26
  159. lodash/lang/isMatch.d.ts +0 -42
  160. lodash/lang/isMatchWith.d.ts +0 -51
  161. lodash/lang/isNaN.d.ts +0 -28
  162. lodash/lang/isNative.d.ts +0 -26
  163. lodash/lang/isNil.d.ts +0 -37
  164. lodash/lang/isNull.d.ts +0 -26
  165. lodash/lang/isNumber.d.ts +0 -28
  166. lodash/lang/isObject.d.ts +0 -27
  167. lodash/lang/isObjectLike.d.ts +0 -41
  168. lodash/lang/isPlainObject.d.ts +0 -29
  169. lodash/lang/isRegExp.d.ts +0 -26
  170. lodash/lang/isSafeInteger.d.ts +0 -43
  171. lodash/lang/isSet.d.ts +0 -26
  172. lodash/lang/isString.d.ts +0 -26
  173. lodash/lang/isSymbol.d.ts +0 -34
  174. lodash/lang/isTypedArray.d.ts +0 -26
  175. lodash/lang/isUndefined.d.ts +0 -26
  176. lodash/lang/isWeakMap.d.ts +0 -26
  177. lodash/lang/isWeakSet.d.ts +0 -26
  178. lodash/lang/lt.d.ts +0 -30
  179. lodash/lang/lte.d.ts +0 -30
  180. lodash/lang/toArray.d.ts +0 -46
  181. lodash/lang/toFinite.d.ts +0 -41
  182. lodash/lang/toInteger.d.ts +0 -42
  183. lodash/lang/toLength.d.ts +0 -43
  184. lodash/lang/toNumber.d.ts +0 -40
  185. lodash/lang/toPlainObject.d.ts +0 -27
  186. lodash/lang/toSafeInteger.d.ts +0 -41
  187. lodash/lang/toString.d.ts +0 -24
  188. lodash/math/add.d.ts +0 -30
  189. lodash/math/ceil.d.ts +0 -30
  190. lodash/math/divide.d.ts +0 -30
  191. lodash/math/floor.d.ts +0 -30
  192. lodash/math/max.d.ts +0 -30
  193. lodash/math/maxBy.d.ts +0 -49
  194. lodash/math/mean.d.ts +0 -33
  195. lodash/math/meanBy.d.ts +0 -41
  196. lodash/math/min.d.ts +0 -30
  197. lodash/math/minBy.d.ts +0 -49
  198. lodash/math/multiply.d.ts +0 -29
  199. lodash/math/round.d.ts +0 -30
  200. lodash/math/subtract.d.ts +0 -39
  201. lodash/math/sum.d.ts +0 -31
  202. lodash/math/sumBy.d.ts +0 -53
  203. lodash/number/clamp.d.ts +0 -56
  204. lodash/number/inRange.d.ts +0 -39
  205. lodash/object/assign.d.ts +0 -172
  206. lodash/object/assignIn.d.ts +0 -171
  207. lodash/object/assignInWith.d.ts +0 -183
  208. lodash/object/assignWith.d.ts +0 -180
  209. lodash/object/at.d.ts +0 -61
  210. lodash/object/create.d.ts +0 -31
  211. lodash/object/defaults.d.ts +0 -155
  212. lodash/object/defaultsDeep.d.ts +0 -28
  213. lodash/object/entries.d.ts +0 -38
  214. lodash/object/entriesIn.d.ts +0 -38
  215. lodash/object/extend.d.ts +0 -147
  216. lodash/object/extendWith.d.ts +0 -159
  217. lodash/object/findKey.d.ts +0 -47
  218. lodash/object/findLastKey.d.ts +0 -46
  219. lodash/object/forIn.d.ts +0 -37
  220. lodash/object/forInRight.d.ts +0 -35
  221. lodash/object/forOwn.d.ts +0 -37
  222. lodash/object/forOwnRight.d.ts +0 -35
  223. lodash/object/functions.d.ts +0 -39
  224. lodash/object/functionsIn.d.ts +0 -39
  225. lodash/object/get.d.ts +0 -238
  226. lodash/object/has.d.ts +0 -47
  227. lodash/object/hasIn.d.ts +0 -46
  228. lodash/object/invert.d.ts +0 -30
  229. lodash/object/invertBy.d.ts +0 -62
  230. lodash/object/invoke.d.ts +0 -33
  231. lodash/object/keys.d.ts +0 -28
  232. lodash/object/keysIn.d.ts +0 -28
  233. lodash/object/mapKeys.d.ts +0 -86
  234. lodash/object/mapValues.d.ts +0 -189
  235. lodash/object/merge.d.ts +0 -156
  236. lodash/object/mergeWith.d.ts +0 -133
  237. lodash/object/omit.d.ts +0 -69
  238. lodash/object/omitBy.d.ts +0 -45
  239. lodash/object/pick.d.ts +0 -68
  240. lodash/object/pickBy.d.ts +0 -44
  241. lodash/object/result.d.ts +0 -39
  242. lodash/object/set.d.ts +0 -65
  243. lodash/object/setWith.d.ts +0 -71
  244. lodash/object/toPairs.d.ts +0 -41
  245. lodash/object/toPairsIn.d.ts +0 -41
  246. lodash/object/transform.d.ts +0 -163
  247. lodash/object/unset.d.ts +0 -32
  248. lodash/object/update.d.ts +0 -39
  249. lodash/object/updateWith.d.ts +0 -83
  250. lodash/object/values.d.ts +0 -56
  251. lodash/object/valuesIn.d.ts +0 -41
  252. lodash/seq/chain.d.ts +0 -26
  253. lodash/seq/prototype.at.d.ts +0 -12
  254. lodash/seq/prototype.chain.d.ts +0 -26
  255. lodash/seq/prototype.commit.d.ts +0 -11
  256. lodash/seq/prototype.plant.d.ts +0 -18
  257. lodash/seq/prototype.reverse.d.ts +0 -14
  258. lodash/seq/prototype.toJSON.d.ts +0 -9
  259. lodash/seq/prototype.toString.d.ts +0 -11
  260. lodash/seq/prototype.value.d.ts +0 -13
  261. lodash/seq/prototype.valueOf.d.ts +0 -9
  262. lodash/seq/tap.d.ts +0 -28
  263. lodash/seq/thru.d.ts +0 -31
  264. lodash/string/camelCase.d.ts +0 -26
  265. lodash/string/capitalize.d.ts +0 -26
  266. lodash/string/deburr.d.ts +0 -27
  267. lodash/string/endsWith.d.ts +0 -38
  268. lodash/string/escape.d.ts +0 -37
  269. lodash/string/escapeRegExp.d.ts +0 -27
  270. lodash/string/kebabCase.d.ts +0 -26
  271. lodash/string/lowerCase.d.ts +0 -26
  272. lodash/string/lowerFirst.d.ts +0 -26
  273. lodash/string/pad.d.ts +0 -39
  274. lodash/string/padEnd.d.ts +0 -39
  275. lodash/string/padStart.d.ts +0 -39
  276. lodash/string/parseInt.d.ts +0 -33
  277. lodash/string/repeat.d.ts +0 -32
  278. lodash/string/replace.d.ts +0 -59
  279. lodash/string/snakeCase.d.ts +0 -26
  280. lodash/string/split.d.ts +0 -56
  281. lodash/string/startCase.d.ts +0 -26
  282. lodash/string/startsWith.d.ts +0 -38
  283. lodash/string/template.d.ts +0 -61
  284. lodash/string/toLower.d.ts +0 -26
  285. lodash/string/toUpper.d.ts +0 -26
  286. lodash/string/trim.d.ts +0 -44
  287. lodash/string/trimEnd.d.ts +0 -44
  288. lodash/string/trimStart.d.ts +0 -44
  289. lodash/string/truncate.d.ts +0 -40
  290. lodash/string/unescape.d.ts +0 -30
  291. lodash/string/upperCase.d.ts +0 -26
  292. lodash/string/upperFirst.d.ts +0 -26
  293. lodash/string/words.d.ts +0 -44
  294. lodash/util/attempt.d.ts +0 -27
  295. lodash/util/bindAll.d.ts +0 -28
  296. lodash/util/cond.d.ts +0 -33
  297. lodash/util/conforms.d.ts +0 -28
  298. lodash/util/constant.d.ts +0 -26
  299. lodash/util/defaultTo.d.ts +0 -53
  300. lodash/util/flow.d.ts +0 -171
  301. lodash/util/flowRight.d.ts +0 -156
  302. lodash/util/identity.d.ts +0 -31
  303. lodash/util/iteratee.d.ts +0 -58
  304. lodash/util/matches.d.ts +0 -36
  305. lodash/util/matchesProperty.d.ts +0 -59
  306. lodash/util/method.d.ts +0 -31
  307. lodash/util/methodOf.d.ts +0 -35
  308. lodash/util/mixin.d.ts +0 -69
  309. lodash/util/noConflict.d.ts +0 -25
  310. lodash/util/noop.d.ts +0 -25
  311. lodash/util/nthArg.d.ts +0 -26
  312. lodash/util/over.d.ts +0 -33
  313. lodash/util/overEvery.d.ts +0 -27
  314. lodash/util/overSome.d.ts +0 -27
  315. lodash/util/property.d.ts +0 -26
  316. lodash/util/propertyOf.d.ts +0 -27
  317. lodash/util/range.d.ts +0 -56
  318. lodash/util/rangeRight.d.ts +0 -77
  319. lodash/util/runInContext.d.ts +0 -19
  320. lodash/util/stubArray.d.ts +0 -25
  321. lodash/util/stubFalse.d.ts +0 -25
  322. lodash/util/stubObject.d.ts +0 -25
  323. lodash/util/stubString.d.ts +0 -25
  324. lodash/util/stubTrue.d.ts +0 -25
  325. lodash/util/times.d.ts +0 -50
  326. lodash/util/toPath.d.ts +0 -43
  327. lodash/util/uniqueId.d.ts +0 -26
lodash/array/xorWith.d.ts DELETED
@@ -1,103 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like `_.xor` except that it accepts `comparator` which is
6
- * invoked to compare elements of `arrays`. The comparator is invoked with
7
- * two arguments: (arrVal, othVal).
8
- *
9
- * @category Array
10
- * @param [arrays] The arrays to inspect.
11
- * @param [comparator] The comparator invoked per element.
12
- * @returns Returns the new array of values.
13
- * @example
14
- *
15
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
16
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
17
- *
18
- * _.xorWith(objects, others, _.isEqual);
19
- * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
20
- */
21
- xorWith<T>(
22
- arrays: List<T> | null | undefined,
23
- comparator?: Comparator<T>
24
- ): T[];
25
-
26
- /**
27
- * @see _.xorWith
28
- */
29
- xorWith<T>(
30
- arrays: List<T> | null | undefined,
31
- arrays2: List<T> | null | undefined,
32
- comparator?: Comparator<T>
33
- ): T[];
34
-
35
- /**
36
- * @see _.xorWith
37
- */
38
- xorWith<T>(
39
- arrays: List<T> | null | undefined,
40
- arrays2: List<T> | null | undefined,
41
- arrays3: List<T> | null | undefined,
42
- ...comparator: Array<Comparator<T> | List<T> | null | undefined>
43
- ): T[];
44
- }
45
-
46
- interface LoDashImplicitWrapper<TValue> {
47
- /**
48
- * @see _.xorWith
49
- */
50
- xorWith<T>(
51
- this: LoDashImplicitWrapper<List<T> | null | undefined>,
52
- comparator?: Comparator<T>
53
- ): LoDashImplicitWrapper<T[]>;
54
-
55
- /**
56
- * @see _.xorWith
57
- */
58
- xorWith<T>(
59
- this: LoDashImplicitWrapper<List<T> | null | undefined>,
60
- arrays2: List<T> | null | undefined,
61
- comparator?: Comparator<T>
62
- ): LoDashImplicitWrapper<T[]>;
63
-
64
- /**
65
- * @see _.xorWith
66
- */
67
- xorWith<T>(
68
- this: LoDashImplicitWrapper<List<T> | null | undefined>,
69
- arrays2: List<T> | null | undefined,
70
- arrays3: List<T> | null | undefined,
71
- ...comparator: Array<Comparator<T> | List<T> | null | undefined>
72
- ): LoDashImplicitWrapper<T[]>;
73
- }
74
-
75
- interface LoDashExplicitWrapper<TValue> {
76
- /**
77
- * @see _.xorWith
78
- */
79
- xorWith<T>(
80
- this: LoDashExplicitWrapper<List<T> | null | undefined>,
81
- comparator?: Comparator<T>
82
- ): LoDashExplicitWrapper<T[]>;
83
-
84
- /**
85
- * @see _.xorWith
86
- */
87
- xorWith<T>(
88
- this: LoDashExplicitWrapper<List<T> | null | undefined>,
89
- arrays2: List<T> | null | undefined,
90
- comparator?: Comparator<T>
91
- ): LoDashExplicitWrapper<T[]>;
92
-
93
- /**
94
- * @see _.xorWith
95
- */
96
- xorWith<T>(
97
- this: LoDashExplicitWrapper<List<T> | null | undefined>,
98
- arrays2: List<T> | null | undefined,
99
- arrays3: List<T> | null | undefined,
100
- ...comparator: Array<Comparator<T> | List<T> | null | undefined>
101
- ): LoDashExplicitWrapper<T[]>;
102
- }
103
- }
lodash/array/zip.d.ts DELETED
@@ -1,129 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates an array of grouped elements, the first of which contains the first elements of the given arrays,
6
- * the second of which contains the second elements of the given arrays, and so on.
7
- *
8
- * @param arrays The arrays to process.
9
- * @return Returns the new array of grouped elements.
10
- */
11
- zip<T1, T2>(arrays1: List<T1>, arrays2: List<T2>): Array<[T1 | undefined, T2 | undefined]>;
12
-
13
- /**
14
- * @see _.zip
15
- */
16
- zip<T1, T2, T3>(arrays1: List<T1>, arrays2: List<T2>, arrays3: List<T3>): Array<[T1 | undefined, T2 | undefined, T3 | undefined]>;
17
-
18
- /**
19
- * @see _.zip
20
- */
21
- zip<T1, T2, T3, T4>(arrays1: List<T1>, arrays2: List<T2>, arrays3: List<T3>, arrays4: List<T4>): Array<[T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined]>;
22
-
23
- /**
24
- * @see _.zip
25
- */
26
- zip<T1, T2, T3, T4, T5>(arrays1: List<T1>, arrays2: List<T2>, arrays3: List<T3>, arrays4: List<T4>, arrays5: List<T5>): Array<[T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined, T5 | undefined]>;
27
-
28
- /**
29
- * @see _.zip
30
- */
31
- zip<T>(...arrays: Array<List<T> | null | undefined>): (T | undefined)[][];
32
- }
33
-
34
- interface LoDashImplicitWrapper<TValue> {
35
- /**
36
- * @see _.zip
37
- */
38
- zip<T1, T2>(
39
- this: LoDashImplicitWrapper<List<T1>>,
40
- arrays2: List<T2>,
41
- ): LoDashImplicitWrapper<Array<[T1 | undefined, T2 | undefined]>>;
42
-
43
- /**
44
- * @see _.zip
45
- */
46
- zip<T1, T2, T3>(
47
- this: LoDashImplicitWrapper<List<T1>>,
48
- arrays2: List<T2>,
49
- arrays3: List<T3>,
50
- ): LoDashImplicitWrapper<Array<[T1 | undefined, T2 | undefined, T3 | undefined]>>;
51
-
52
- /**
53
- * @see _.zip
54
- */
55
- zip<T1, T2, T3, T4>(
56
- this: LoDashImplicitWrapper<List<T1>>,
57
- arrays2: List<T2>,
58
- arrays3: List<T3>,
59
- arrays4: List<T4>,
60
- ): LoDashImplicitWrapper<Array<[T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined]>>;
61
-
62
- /**
63
- * @see _.zip
64
- */
65
- zip<T1, T2, T3, T4, T5>(
66
- this: LoDashImplicitWrapper<List<T1>>,
67
- arrays2: List<T2>,
68
- arrays3: List<T3>,
69
- arrays4: List<T4>,
70
- arrays5: List<T5>,
71
- ): LoDashImplicitWrapper<Array<[T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined, T5 | undefined]>>;
72
-
73
- /**
74
- * @see _.zip
75
- */
76
- zip<T>(
77
- this: LoDashImplicitWrapper<List<T> | null | undefined>,
78
- ...arrays: Array<List<T> | null | undefined>
79
- ): LoDashImplicitWrapper<Array<Array<T | undefined>>>;
80
- }
81
-
82
- interface LoDashExplicitWrapper<TValue> {
83
- /**
84
- * @see _.zip
85
- */
86
- zip<T1, T2>(
87
- this: LoDashExplicitWrapper<List<T1>>,
88
- arrays2: List<T2>,
89
- ): LoDashExplicitWrapper<Array<[T1 | undefined, T2 | undefined]>>;
90
-
91
- /**
92
- * @see _.zip
93
- */
94
- zip<T1, T2, T3>(
95
- this: LoDashExplicitWrapper<List<T1>>,
96
- arrays2: List<T2>,
97
- arrays3: List<T3>,
98
- ): LoDashExplicitWrapper<Array<[T1 | undefined, T2 | undefined, T3 | undefined]>>;
99
-
100
- /**
101
- * @see _.zip
102
- */
103
- zip<T1, T2, T3, T4>(
104
- this: LoDashExplicitWrapper<List<T1>>,
105
- arrays2: List<T2>,
106
- arrays3: List<T3>,
107
- arrays4: List<T4>,
108
- ): LoDashExplicitWrapper<Array<[T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined]>>;
109
-
110
- /**
111
- * @see _.zip
112
- */
113
- zip<T1, T2, T3, T4, T5>(
114
- this: LoDashExplicitWrapper<List<T1>>,
115
- arrays2: List<T2>,
116
- arrays3: List<T3>,
117
- arrays4: List<T4>,
118
- arrays5: List<T5>,
119
- ): LoDashExplicitWrapper<Array<[T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined, T5 | undefined]>>;
120
-
121
- /**
122
- * @see _.zip
123
- */
124
- zip<T>(
125
- this: LoDashExplicitWrapper<List<T> | null | undefined>,
126
- ...arrays: Array<List<T> | null | undefined>
127
- ): LoDashExplicitWrapper<Array<Array<T | undefined>>>;
128
- }
129
- }
@@ -1,58 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like _.fromPairs except that it accepts two arrays, one of property
6
- * identifiers and one of corresponding values.
7
- *
8
- * @param props The property names.
9
- * @param values The property values.
10
- * @return Returns the new object.
11
- */
12
- zipObject<T>(
13
- props: List<PropertyName>,
14
- values: List<T>
15
- ): Dictionary<T>;
16
-
17
- /**
18
- * @see _.zipObject
19
- */
20
- zipObject(
21
- props?: List<PropertyName>
22
- ): Dictionary<undefined>;
23
- }
24
-
25
- interface LoDashImplicitWrapper<TValue> {
26
- /**
27
- * @see _.zipObject
28
- */
29
- zipObject<T>(
30
- this: LoDashImplicitWrapper<List<PropertyName>>,
31
- values: List<T>
32
- ): LoDashImplicitWrapper<Dictionary<T>>;
33
-
34
- /**
35
- * @see _.zipObject
36
- */
37
- zipObject(
38
- this: LoDashImplicitWrapper<List<PropertyName>>
39
- ): LoDashImplicitWrapper<Dictionary<undefined>>;
40
- }
41
-
42
- interface LoDashExplicitWrapper<TValue> {
43
- /**
44
- * @see _.zipObject
45
- */
46
- zipObject<T>(
47
- this: LoDashExplicitWrapper<List<PropertyName>>,
48
- values: List<T>
49
- ): LoDashExplicitWrapper<Dictionary<T>>;
50
-
51
- /**
52
- * @see _.zipObject
53
- */
54
- zipObject(
55
- this: LoDashExplicitWrapper<List<PropertyName>>
56
- ): LoDashExplicitWrapper<Dictionary<undefined>>;
57
- }
58
- }
@@ -1,36 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like _.zipObject except that it supports property paths.
6
- *
7
- * @param paths The property names.
8
- * @param values The property values.
9
- * @return Returns the new object.
10
- */
11
- zipObjectDeep(
12
- paths?: List<PropertyPath>,
13
- values?: List<any>
14
- ): object;
15
- }
16
-
17
- interface LoDashImplicitWrapper<TValue> {
18
- /**
19
- * @see _.zipObjectDeep
20
- */
21
- zipObjectDeep(
22
- this: LoDashImplicitWrapper<List<PropertyPath>>,
23
- values?: List<any>
24
- ): LoDashImplicitWrapper<object>;
25
- }
26
-
27
- interface LoDashExplicitWrapper<TValue> {
28
- /**
29
- * @see _.zipObjectDeep
30
- */
31
- zipObjectDeep(
32
- this: LoDashExplicitWrapper<List<PropertyPath>>,
33
- values?: List<any>
34
- ): LoDashExplicitWrapper<object>;
35
- }
36
- }
lodash/array/zipWith.d.ts DELETED
@@ -1,187 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like _.zip except that it accepts an iteratee to specify how grouped values should be
6
- * combined. The iteratee is bound to thisArg and invoked with four arguments: (accumulator, value, index,
7
- * group).
8
- * @param [arrays] The arrays to process.
9
- * @param [iteratee] The function to combine grouped values.
10
- * @param [thisArg] The `this` binding of `iteratee`.
11
- * @return Returns the new array of grouped elements.
12
- */
13
- zipWith<T, TResult>(
14
- arrays: List<T>,
15
- iteratee: (value1: T) => TResult
16
- ): TResult[];
17
-
18
- /**
19
- * @see _.zipWith
20
- */
21
- zipWith<T1, T2, TResult>(
22
- arrays1: List<T1>,
23
- arrays2: List<T2>,
24
- iteratee: (value1: T1, value2: T2) => TResult
25
- ): TResult[];
26
-
27
- /**
28
- * @see _.zipWith
29
- */
30
- zipWith<T1, T2, T3, TResult>(
31
- arrays1: List<T1>,
32
- arrays2: List<T2>,
33
- arrays3: List<T3>,
34
- iteratee: (value1: T1, value2: T2, value3: T3) => TResult
35
- ): TResult[];
36
-
37
- /**
38
- * @see _.zipWith
39
- */
40
- zipWith<T1, T2, T3, T4, TResult>(
41
- arrays1: List<T1>,
42
- arrays2: List<T2>,
43
- arrays3: List<T3>,
44
- arrays4: List<T4>,
45
- iteratee: (value1: T1, value2: T2, value3: T3, value4: T4) => TResult
46
- ): TResult[];
47
-
48
- /**
49
- * @see _.zipWith
50
- */
51
- zipWith<T1, T2, T3, T4, T5, TResult>(
52
- arrays1: List<T1>,
53
- arrays2: List<T2>,
54
- arrays3: List<T3>,
55
- arrays4: List<T4>,
56
- arrays5: List<T5>,
57
- iteratee: (value1: T1, value2: T2, value3: T3, value4: T4, value5: T5) => TResult
58
- ): TResult[];
59
-
60
- /**
61
- * @see _.zipWith
62
- */
63
- zipWith<T, TResult>(
64
- ...iteratee: Array<((...group: T[]) => TResult) | List<T> | null | undefined>
65
- ): TResult[];
66
- }
67
-
68
- interface LoDashImplicitWrapper<TValue> {
69
- /**
70
- * @see _.zipWith
71
- */
72
- zipWith<T, TResult>(
73
- this: LoDashImplicitWrapper<List<T>>,
74
- iteratee: (value1: T) => TResult
75
- ): LoDashImplicitWrapper<TResult[]>;
76
-
77
- /**
78
- * @see _.zipWith
79
- */
80
- zipWith<T1, T2, TResult>(
81
- this: LoDashImplicitWrapper<List<T1>>,
82
- arrays2: List<T2>,
83
- iteratee: (value1: T1, value2: T2) => TResult
84
- ): LoDashImplicitWrapper<TResult[]>;
85
-
86
- /**
87
- * @see _.zipWith
88
- */
89
- zipWith<T1, T2, T3, TResult>(
90
- this: LoDashImplicitWrapper<List<T1>>,
91
- arrays2: List<T2>,
92
- arrays3: List<T3>,
93
- iteratee: (value1: T1, value2: T2, value3: T3) => TResult
94
- ): LoDashImplicitWrapper<TResult[]>;
95
-
96
- /**
97
- * @see _.zipWith
98
- */
99
- zipWith<T1, T2, T3, T4, TResult>(
100
- this: LoDashImplicitWrapper<List<T1>>,
101
- arrays2: List<T2>,
102
- arrays3: List<T3>,
103
- arrays4: List<T4>,
104
- iteratee: (value1: T1, value2: T2, value3: T3, value4: T4) => TResult
105
- ): LoDashImplicitWrapper<TResult[]>;
106
-
107
- /**
108
- * @see _.zipWith
109
- */
110
- zipWith<T1, T2, T3, T4, T5, TResult>(
111
- this: LoDashImplicitWrapper<List<T1>>,
112
- arrays2: List<T2>,
113
- arrays3: List<T3>,
114
- arrays4: List<T4>,
115
- arrays5: List<T5>,
116
- iteratee: (value1: T1, value2: T2, value3: T3, value4: T4, value5: T5) => TResult
117
- ): LoDashImplicitWrapper<TResult[]>;
118
-
119
- /**
120
- * @see _.zipWith
121
- */
122
- zipWith<T, TResult>(
123
- this: LoDashImplicitWrapper<List<T> | null | undefined>,
124
- ...iteratee: Array<((...group: T[]) => TResult) | List<T> | null | undefined>
125
- ): LoDashImplicitWrapper<TResult[]>;
126
- }
127
-
128
- interface LoDashExplicitWrapper<TValue> {
129
- /**
130
- * @see _.zipWith
131
- */
132
- zipWith<T, TResult>(
133
- this: LoDashExplicitWrapper<List<T>>,
134
- iteratee: (value1: T) => TResult
135
- ): LoDashExplicitWrapper<TResult[]>;
136
-
137
- /**
138
- * @see _.zipWith
139
- */
140
- zipWith<T1, T2, TResult>(
141
- this: LoDashExplicitWrapper<List<T1>>,
142
- arrays2: List<T2>,
143
- iteratee: (value1: T1, value2: T2) => TResult
144
- ): LoDashExplicitWrapper<TResult[]>;
145
-
146
- /**
147
- * @see _.zipWith
148
- */
149
- zipWith<T1, T2, T3, TResult>(
150
- this: LoDashExplicitWrapper<List<T1>>,
151
- arrays2: List<T2>,
152
- arrays3: List<T3>,
153
- iteratee: (value1: T1, value2: T2, value3: T3) => TResult
154
- ): LoDashExplicitWrapper<TResult[]>;
155
-
156
- /**
157
- * @see _.zipWith
158
- */
159
- zipWith<T1, T2, T3, T4, TResult>(
160
- this: LoDashExplicitWrapper<List<T1>>,
161
- arrays2: List<T2>,
162
- arrays3: List<T3>,
163
- arrays4: List<T4>,
164
- iteratee: (value1: T1, value2: T2, value3: T3, value4: T4) => TResult
165
- ): LoDashExplicitWrapper<TResult[]>;
166
-
167
- /**
168
- * @see _.zipWith
169
- */
170
- zipWith<T1, T2, T3, T4, T5, TResult>(
171
- this: LoDashExplicitWrapper<List<T1>>,
172
- arrays2: List<T2>,
173
- arrays3: List<T3>,
174
- arrays4: List<T4>,
175
- arrays5: List<T5>,
176
- iteratee: (value1: T1, value2: T2, value3: T3, value4: T4, value5: T5) => TResult
177
- ): LoDashExplicitWrapper<TResult[]>;
178
-
179
- /**
180
- * @see _.zipWith
181
- */
182
- zipWith<T, TResult>(
183
- this: LoDashExplicitWrapper<List<T> | null | undefined>,
184
- ...iteratee: Array<((...group: T[]) => TResult) | List<T> | null | undefined>
185
- ): LoDashExplicitWrapper<TResult[]>;
186
- }
187
- }
@@ -1,121 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates an object composed of keys generated from the results of running each element of collection through
6
- * iteratee. The corresponding value of each key is the number of times the key was returned by iteratee. The
7
- * iteratee is bound to thisArg and invoked with three arguments:
8
- * (value, index|key, collection).
9
- *
10
- * If a property name is provided for iteratee the created _.property style callback returns the property
11
- * value of the given element.
12
- *
13
- * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for
14
- * elements that have a matching property value, else false.
15
- *
16
- * If an object is provided for iteratee the created _.matches style callback returns true for elements that
17
- * have the properties of the given object, else false.
18
- *
19
- * @param collection The collection to iterate over.
20
- * @param iteratee The function invoked per iteration.
21
- * @param thisArg The this binding of iteratee.
22
- * @return Returns the composed aggregate object.
23
- */
24
- countBy<T>(
25
- collection: string | null | undefined,
26
- iteratee?: StringIterator<T>
27
- ): Dictionary<number>;
28
-
29
- /**
30
- * @see _.countBy
31
- */
32
- countBy<T>(
33
- collection: List<T> | null | undefined,
34
- iteratee?: ListIteratee<T>
35
- ): Dictionary<number>;
36
-
37
- /**
38
- * @see _.countBy
39
- */
40
- countBy<T>(
41
- collection: NumericDictionary<T> | null | undefined,
42
- iteratee?: NumericDictionaryIteratee<T>
43
- ): Dictionary<number>;
44
-
45
- /**
46
- * @see _.countBy
47
- */
48
- countBy<T extends object>(
49
- collection: T | null | undefined,
50
- iteratee?: ObjectIteratee<T>
51
- ): Dictionary<number>;
52
- }
53
-
54
- interface LoDashImplicitWrapper<TValue> {
55
- /**
56
- * @see _.countBy
57
- */
58
- countBy<T>(
59
- this: LoDashImplicitWrapper<string | null | undefined>,
60
- iteratee?: StringIterator<T>
61
- ): LoDashImplicitWrapper<Dictionary<number>>;
62
-
63
- /**
64
- * @see _.countBy
65
- */
66
- countBy<T>(
67
- this: LoDashImplicitWrapper<List<T> | null | undefined>,
68
- iteratee?: ListIteratee<T>
69
- ): LoDashImplicitWrapper<Dictionary<number>>;
70
-
71
- /**
72
- * @see _.countBy
73
- */
74
- countBy<T extends object>(
75
- this: LoDashImplicitWrapper<T | null | undefined>,
76
- iteratee?: ObjectIteratee<T>
77
- ): LoDashImplicitWrapper<Dictionary<number>>;
78
-
79
- /**
80
- * @see _.countBy
81
- */
82
- countBy<T>(
83
- this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
84
- iteratee?: NumericDictionaryIteratee<T>
85
- ): LoDashImplicitWrapper<Dictionary<number>>;
86
- }
87
-
88
- interface LoDashExplicitWrapper<TValue> {
89
- /**
90
- * @see _.countBy
91
- */
92
- countBy<T>(
93
- this: LoDashExplicitWrapper<string | null | undefined>,
94
- iteratee?: StringIterator<T>
95
- ): LoDashExplicitWrapper<Dictionary<number>>;
96
-
97
- /**
98
- * @see _.countBy
99
- */
100
- countBy<T>(
101
- this: LoDashExplicitWrapper<List<T> | null | undefined>,
102
- iteratee?: ListIteratee<T>
103
- ): LoDashExplicitWrapper<Dictionary<number>>;
104
-
105
- /**
106
- * @see _.countBy
107
- */
108
- countBy<T extends object>(
109
- this: LoDashExplicitWrapper<T | null | undefined>,
110
- iteratee?: ObjectIteratee<T>
111
- ): LoDashExplicitWrapper<Dictionary<number>>;
112
-
113
- /**
114
- * @see _.countBy
115
- */
116
- countBy<T>(
117
- this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
118
- iteratee?: NumericDictionaryIteratee<T>
119
- ): LoDashExplicitWrapper<Dictionary<number>>;
120
- }
121
- }
@@ -1,40 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- each: typeof _.forEach; // tslint:disable-line:no-unnecessary-qualifier
5
- }
6
-
7
- interface LoDashWrapper<TValue> {
8
- /**
9
- * @see _.forEach
10
- */
11
- each<T>(
12
- this: LoDashWrapper<T[] | null | undefined>,
13
- iteratee?: ArrayIterator<T, any>
14
- ): this;
15
-
16
- /**
17
- * @see _.forEach
18
- */
19
- each(
20
- this: LoDashWrapper<string | null | undefined>,
21
- iteratee?: StringIterator<any>
22
- ): this;
23
-
24
- /**
25
- * @see _.forEach
26
- */
27
- each<T>(
28
- this: LoDashWrapper<List<T> | null | undefined>,
29
- iteratee?: ListIterator<T, any>
30
- ): this;
31
-
32
- /**
33
- * @see _.forEach
34
- */
35
- each<T extends object>(
36
- this: LoDashWrapper<T | null | undefined>,
37
- iteratee?: ObjectIterator<T, any>
38
- ): this;
39
- }
40
- }