@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
@@ -1,183 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- type AssignCustomizer = (objectValue: any, sourceValue: any, key?: string, object?: {}, source?: {}) => any;
4
-
5
- interface LoDashStatic {
6
- /**
7
- * This method is like `_.assignIn` except that it accepts `customizer` which
8
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
9
- * assignment is handled by the method instead. The `customizer` is invoked
10
- * with five arguments: (objValue, srcValue, key, object, source).
11
- *
12
- * **Note:** This method mutates `object`.
13
- *
14
- * @alias extendWith
15
- * @category Object
16
- * @param object The destination object.
17
- * @param sources The source objects.
18
- * @param [customizer] The function to customize assigned values.
19
- * @returns Returns `object`.
20
- * @example
21
- *
22
- * function customizer(objValue, srcValue) {
23
- * return _.isUndefined(objValue) ? srcValue : objValue;
24
- * }
25
- *
26
- * var defaults = _.partialRight(_.assignInWith, customizer);
27
- *
28
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
29
- * // => { 'a': 1, 'b': 2 }
30
- */
31
- assignInWith<TObject, TSource>(
32
- object: TObject,
33
- source: TSource,
34
- customizer: AssignCustomizer
35
- ): TObject & TSource;
36
-
37
- /**
38
- * @see assignInWith
39
- */
40
- assignInWith<TObject, TSource1, TSource2>(
41
- object: TObject,
42
- source1: TSource1,
43
- source2: TSource2,
44
- customizer: AssignCustomizer
45
- ): TObject & TSource1 & TSource2;
46
-
47
- /**
48
- * @see assignInWith
49
- */
50
- assignInWith<TObject, TSource1, TSource2, TSource3>(
51
- object: TObject,
52
- source1: TSource1,
53
- source2: TSource2,
54
- source3: TSource3,
55
- customizer: AssignCustomizer
56
- ): TObject & TSource1 & TSource2 & TSource3;
57
-
58
- /**
59
- * @see assignInWith
60
- */
61
- assignInWith<TObject, TSource1, TSource2, TSource3, TSource4>(
62
- object: TObject,
63
- source1: TSource1,
64
- source2: TSource2,
65
- source3: TSource3,
66
- source4: TSource4,
67
- customizer: AssignCustomizer
68
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
69
-
70
- /**
71
- * @see _.assignInWith
72
- */
73
- assignInWith<TObject>(object: TObject): TObject;
74
-
75
- /**
76
- * @see _.assignInWith
77
- */
78
- assignInWith<TResult>(
79
- object: any,
80
- ...otherArgs: any[]
81
- ): TResult;
82
- }
83
-
84
- interface LoDashImplicitWrapper<TValue> {
85
- /**
86
- * @see _.assignInWith
87
- */
88
- assignInWith<TSource>(
89
- source: TSource,
90
- customizer: AssignCustomizer
91
- ): LoDashImplicitWrapper<TValue & TSource>;
92
-
93
- /**
94
- * @see assignInWith
95
- */
96
- assignInWith<TSource1, TSource2>(
97
- source1: TSource1,
98
- source2: TSource2,
99
- customizer: AssignCustomizer
100
- ): LoDashImplicitWrapper<TValue & TSource1 & TSource2>;
101
-
102
- /**
103
- * @see assignInWith
104
- */
105
- assignInWith<TSource1, TSource2, TSource3>(
106
- source1: TSource1,
107
- source2: TSource2,
108
- source3: TSource3,
109
- customizer: AssignCustomizer
110
- ): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
111
-
112
- /**
113
- * @see assignInWith
114
- */
115
- assignInWith<TSource1, TSource2, TSource3, TSource4>(
116
- source1: TSource1,
117
- source2: TSource2,
118
- source3: TSource3,
119
- source4: TSource4,
120
- customizer: AssignCustomizer
121
- ): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
122
-
123
- /**
124
- * @see _.assignInWith
125
- */
126
- assignInWith(): LoDashImplicitWrapper<TValue>;
127
-
128
- /**
129
- * @see _.assignInWith
130
- */
131
- assignInWith<TResult>(...otherArgs: any[]): LoDashImplicitWrapper<TResult>;
132
- }
133
-
134
- interface LoDashExplicitWrapper<TValue> {
135
- /**
136
- * @see _.assignInWith
137
- */
138
- assignInWith<TSource>(
139
- source: TSource,
140
- customizer: AssignCustomizer
141
- ): LoDashExplicitWrapper<TValue & TSource>;
142
-
143
- /**
144
- * @see assignInWith
145
- */
146
- assignInWith<TSource1, TSource2>(
147
- source1: TSource1,
148
- source2: TSource2,
149
- customizer: AssignCustomizer
150
- ): LoDashExplicitWrapper<TValue & TSource1 & TSource2>;
151
-
152
- /**
153
- * @see assignInWith
154
- */
155
- assignInWith<TSource1, TSource2, TSource3>(
156
- source1: TSource1,
157
- source2: TSource2,
158
- source3: TSource3,
159
- customizer: AssignCustomizer
160
- ): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
161
-
162
- /**
163
- * @see assignInWith
164
- */
165
- assignInWith<TSource1, TSource2, TSource3, TSource4>(
166
- source1: TSource1,
167
- source2: TSource2,
168
- source3: TSource3,
169
- source4: TSource4,
170
- customizer: AssignCustomizer
171
- ): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
172
-
173
- /**
174
- * @see _.assignInWith
175
- */
176
- assignInWith(): LoDashExplicitWrapper<TValue>;
177
-
178
- /**
179
- * @see _.assignInWith
180
- */
181
- assignInWith(...otherArgs: any[]): LoDashExplicitWrapper<any>;
182
- }
183
- }
@@ -1,180 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like `_.assign` except that it accepts `customizer` which
6
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
7
- * assignment is handled by the method instead. The `customizer` is invoked
8
- * with five arguments: (objValue, srcValue, key, object, source).
9
- *
10
- * **Note:** This method mutates `object`.
11
- *
12
- * @category Object
13
- * @param object The destination object.
14
- * @param sources The source objects.
15
- * @param [customizer] The function to customize assigned values.
16
- * @returns Returns `object`.
17
- * @example
18
- *
19
- * function customizer(objValue, srcValue) {
20
- * return _.isUndefined(objValue) ? srcValue : objValue;
21
- * }
22
- *
23
- * var defaults = _.partialRight(_.assignWith, customizer);
24
- *
25
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
26
- * // => { 'a': 1, 'b': 2 }
27
- */
28
- assignWith<TObject, TSource>(
29
- object: TObject,
30
- source: TSource,
31
- customizer: AssignCustomizer
32
- ): TObject & TSource;
33
-
34
- /**
35
- * @see assignWith
36
- */
37
- assignWith<TObject, TSource1, TSource2>(
38
- object: TObject,
39
- source1: TSource1,
40
- source2: TSource2,
41
- customizer: AssignCustomizer
42
- ): TObject & TSource1 & TSource2;
43
-
44
- /**
45
- * @see assignWith
46
- */
47
- assignWith<TObject, TSource1, TSource2, TSource3>(
48
- object: TObject,
49
- source1: TSource1,
50
- source2: TSource2,
51
- source3: TSource3,
52
- customizer: AssignCustomizer
53
- ): TObject & TSource1 & TSource2 & TSource3;
54
-
55
- /**
56
- * @see assignWith
57
- */
58
- assignWith<TObject, TSource1, TSource2, TSource3, TSource4>(
59
- object: TObject,
60
- source1: TSource1,
61
- source2: TSource2,
62
- source3: TSource3,
63
- source4: TSource4,
64
- customizer: AssignCustomizer
65
- ): TObject & TSource1 & TSource2 & TSource3 & TSource4;
66
-
67
- /**
68
- * @see _.assignWith
69
- */
70
- assignWith<TObject>(object: TObject): TObject;
71
-
72
- /**
73
- * @see _.assignWith
74
- */
75
- assignWith<TResult>(
76
- object: any,
77
- ...otherArgs: any[]
78
- ): TResult;
79
- }
80
-
81
- interface LoDashImplicitWrapper<TValue> {
82
- /**
83
- * @see _.assignWith
84
- */
85
- assignWith<TSource>(
86
- source: TSource,
87
- customizer: AssignCustomizer
88
- ): LoDashImplicitWrapper<TValue & TSource>;
89
-
90
- /**
91
- * @see assignWith
92
- */
93
- assignWith<TSource1, TSource2>(
94
- source1: TSource1,
95
- source2: TSource2,
96
- customizer: AssignCustomizer
97
- ): LoDashImplicitWrapper<TValue & TSource1 & TSource2>;
98
-
99
- /**
100
- * @see assignWith
101
- */
102
- assignWith<TSource1, TSource2, TSource3>(
103
- source1: TSource1,
104
- source2: TSource2,
105
- source3: TSource3,
106
- customizer: AssignCustomizer
107
- ): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
108
-
109
- /**
110
- * @see assignWith
111
- */
112
- assignWith<TSource1, TSource2, TSource3, TSource4>(
113
- source1: TSource1,
114
- source2: TSource2,
115
- source3: TSource3,
116
- source4: TSource4,
117
- customizer: AssignCustomizer
118
- ): LoDashImplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
119
-
120
- /**
121
- * @see _.assignWith
122
- */
123
- assignWith(): LoDashImplicitWrapper<TValue>;
124
-
125
- /**
126
- * @see _.assignWith
127
- */
128
- assignWith<TResult>(...otherArgs: any[]): LoDashImplicitWrapper<TResult>;
129
- }
130
-
131
- interface LoDashExplicitWrapper<TValue> {
132
- /**
133
- * @see _.assignWith
134
- */
135
- assignWith<TSource>(
136
- source: TSource,
137
- customizer: AssignCustomizer
138
- ): LoDashExplicitWrapper<TValue & TSource>;
139
-
140
- /**
141
- * @see assignWith
142
- */
143
- assignWith<TSource1, TSource2>(
144
- source1: TSource1,
145
- source2: TSource2,
146
- customizer: AssignCustomizer
147
- ): LoDashExplicitWrapper<TValue & TSource1 & TSource2>;
148
-
149
- /**
150
- * @see assignWith
151
- */
152
- assignWith<TSource1, TSource2, TSource3>(
153
- source1: TSource1,
154
- source2: TSource2,
155
- source3: TSource3,
156
- customizer: AssignCustomizer
157
- ): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3>;
158
-
159
- /**
160
- * @see assignWith
161
- */
162
- assignWith<TSource1, TSource2, TSource3, TSource4>(
163
- source1: TSource1,
164
- source2: TSource2,
165
- source3: TSource3,
166
- source4: TSource4,
167
- customizer: AssignCustomizer
168
- ): LoDashExplicitWrapper<TValue & TSource1 & TSource2 & TSource3 & TSource4>;
169
-
170
- /**
171
- * @see _.assignWith
172
- */
173
- assignWith(): LoDashExplicitWrapper<TValue>;
174
-
175
- /**
176
- * @see _.assignWith
177
- */
178
- assignWith(...otherArgs: any[]): LoDashExplicitWrapper<any>;
179
- }
180
- }
lodash/object/at.d.ts DELETED
@@ -1,61 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates an array of elements corresponding to the given keys, or indexes, of collection. Keys may be
6
- * specified as individual arguments or as arrays of keys.
7
- *
8
- * @param object The object to iterate over.
9
- * @param props The property names or indexes of elements to pick, specified individually or in arrays.
10
- * @return Returns the new array of picked elements.
11
- */
12
- at<T>(
13
- object: List<T> | Dictionary<T> | null | undefined,
14
- ...props: PropertyPath[]
15
- ): T[];
16
-
17
- /**
18
- * @see _.at
19
- */
20
- at<T extends object>(
21
- object: T | null | undefined,
22
- ...props: Array<Many<keyof T>>
23
- ): Array<T[keyof T]>;
24
- }
25
-
26
- interface LoDashImplicitWrapper<TValue> {
27
- /**
28
- * @see _.at
29
- */
30
- at<T>(
31
- this: LoDashImplicitWrapper<List<T> | Dictionary<T> | null | undefined>,
32
- ...props: PropertyPath[]
33
- ): LoDashImplicitWrapper<T[]>;
34
-
35
- /**
36
- * @see _.at
37
- */
38
- at<T extends object>(
39
- this: LoDashImplicitWrapper<T | null | undefined>,
40
- ...props: Array<Many<keyof T>>
41
- ): LoDashImplicitWrapper<Array<T[keyof T]>>;
42
- }
43
-
44
- interface LoDashExplicitWrapper<TValue> {
45
- /**
46
- * @see _.at
47
- */
48
- at<T>(
49
- this: LoDashExplicitWrapper<List<T> | Dictionary<T> | null | undefined>,
50
- ...props: PropertyPath[]
51
- ): LoDashExplicitWrapper<T[]>;
52
-
53
- /**
54
- * @see _.at
55
- */
56
- at<T extends object>(
57
- this: LoDashExplicitWrapper<T | null | undefined>,
58
- ...props: Array<Many<keyof T>>
59
- ): LoDashExplicitWrapper<Array<T[keyof T]>>;
60
- }
61
- }
lodash/object/create.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates an object that inherits from the given prototype object. If a properties object is provided its own
6
- * enumerable properties are assigned to the created object.
7
- *
8
- * @param prototype The object to inherit from.
9
- * @param properties The properties to assign to the object.
10
- * @return Returns the new object.
11
- */
12
- create<T extends object, U extends object>(
13
- prototype: T,
14
- properties?: U
15
- ): T & U;
16
- }
17
-
18
- interface LoDashImplicitWrapper<TValue> {
19
- /**
20
- * @see _.create
21
- */
22
- create<U extends object>(properties?: U): LoDashImplicitWrapper<TValue & U>;
23
- }
24
-
25
- interface LoDashExplicitWrapper<TValue> {
26
- /**
27
- * @see _.create
28
- */
29
- create<U extends object>(properties?: U): LoDashExplicitWrapper<TValue & U>;
30
- }
31
- }
@@ -1,155 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Assigns own enumerable properties of source object(s) to the destination object for all destination
6
- * properties that resolve to undefined. Once a property is set, additional values of the same property are
7
- * ignored.
8
- *
9
- * Note: This method mutates object.
10
- *
11
- * @param object The destination object.
12
- * @param sources The source objects.
13
- * @return The destination object.
14
- */
15
- defaults<TObject, TSource>(
16
- object: TObject,
17
- source: TSource
18
- ): TSource & TObject;
19
-
20
- /**
21
- * @see _.defaults
22
- */
23
- defaults<TObject, TSource1, TSource2>(
24
- object: TObject,
25
- source1: TSource1,
26
- source2: TSource2
27
- ): TSource2 & TSource1 & TObject;
28
-
29
- /**
30
- * @see _.defaults
31
- */
32
- defaults<TObject, TSource1, TSource2, TSource3>(
33
- object: TObject,
34
- source1: TSource1,
35
- source2: TSource2,
36
- source3: TSource3
37
- ): TSource3 & TSource2 & TSource1 & TObject;
38
-
39
- /**
40
- * @see _.defaults
41
- */
42
- defaults<TObject, TSource1, TSource2, TSource3, TSource4>(
43
- object: TObject,
44
- source1: TSource1,
45
- source2: TSource2,
46
- source3: TSource3,
47
- source4: TSource4
48
- ): TSource4 & TSource3 & TSource2 & TSource1 & TObject;
49
-
50
- /**
51
- * @see _.defaults
52
- */
53
- defaults<TObject>(object: TObject): TObject;
54
-
55
- /**
56
- * @see _.defaults
57
- */
58
- defaults(
59
- object: any,
60
- ...sources: any[]
61
- ): any;
62
- }
63
-
64
- interface LoDashImplicitWrapper<TValue> {
65
- /**
66
- * @see _.defaults
67
- */
68
- defaults<TSource>(
69
- source: TSource
70
- ): LoDashImplicitWrapper<TSource & TValue>;
71
-
72
- /**
73
- * @see _.defaults
74
- */
75
- defaults<TSource1, TSource2>(
76
- source1: TSource1,
77
- source2: TSource2
78
- ): LoDashImplicitWrapper<TSource2 & TSource1 & TValue>;
79
-
80
- /**
81
- * @see _.defaults
82
- */
83
- defaults<TSource1, TSource2, TSource3>(
84
- source1: TSource1,
85
- source2: TSource2,
86
- source3: TSource3
87
- ): LoDashImplicitWrapper<TSource3 & TSource2 & TSource1 & TValue>;
88
-
89
- /**
90
- * @see _.defaults
91
- */
92
- defaults<TSource1, TSource2, TSource3, TSource4>(
93
- source1: TSource1,
94
- source2: TSource2,
95
- source3: TSource3,
96
- source4: TSource4
97
- ): LoDashImplicitWrapper<TSource4 & TSource3 & TSource2 & TSource1 & TValue>;
98
-
99
- /**
100
- * @see _.defaults
101
- */
102
- defaults(): LoDashImplicitWrapper<TValue>;
103
-
104
- /**
105
- * @see _.defaults
106
- */
107
- defaults(...sources: any[]): LoDashImplicitWrapper<any>;
108
- }
109
-
110
- interface LoDashExplicitWrapper<TValue> {
111
- /**
112
- * @see _.defaults
113
- */
114
- defaults<TSource>(
115
- source: TSource
116
- ): LoDashExplicitWrapper<TSource & TValue>;
117
-
118
- /**
119
- * @see _.defaults
120
- */
121
- defaults<TSource1, TSource2>(
122
- source1: TSource1,
123
- source2: TSource2
124
- ): LoDashExplicitWrapper<TSource2 & TSource1 & TValue>;
125
-
126
- /**
127
- * @see _.defaults
128
- */
129
- defaults<TSource1, TSource2, TSource3>(
130
- source1: TSource1,
131
- source2: TSource2,
132
- source3: TSource3
133
- ): LoDashExplicitWrapper<TSource3 & TSource2 & TSource1 & TValue>;
134
-
135
- /**
136
- * @see _.defaults
137
- */
138
- defaults<TSource1, TSource2, TSource3, TSource4>(
139
- source1: TSource1,
140
- source2: TSource2,
141
- source3: TSource3,
142
- source4: TSource4
143
- ): LoDashExplicitWrapper<TSource4 & TSource3 & TSource2 & TSource1 & TValue>;
144
-
145
- /**
146
- * @see _.defaults
147
- */
148
- defaults(): LoDashExplicitWrapper<TValue>;
149
-
150
- /**
151
- * @see _.defaults
152
- */
153
- defaults(...sources: any[]): LoDashExplicitWrapper<any>;
154
- }
155
- }
@@ -1,28 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like _.defaults except that it recursively assigns default properties.
6
- * @param object The destination object.
7
- * @param sources The source objects.
8
- * @return Returns object.
9
- **/
10
- defaultsDeep(
11
- object: any,
12
- ...sources: any[]): any;
13
- }
14
-
15
- interface LoDashImplicitWrapper<TValue> {
16
- /**
17
- * @see _.defaultsDeep
18
- **/
19
- defaultsDeep(...sources: any[]): LoDashImplicitWrapper<any>;
20
- }
21
-
22
- interface LoDashExplicitWrapper<TValue> {
23
- /**
24
- * @see _.defaultsDeep
25
- **/
26
- defaultsDeep(...sources: any[]): LoDashExplicitWrapper<any>;
27
- }
28
- }
@@ -1,38 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * @see _.toPairs
6
- */
7
- entries<T>(object?: Dictionary<T>): Array<[string, T]>;
8
-
9
- /**
10
- * @see _.toPairs
11
- */
12
- entries(object?: object): Array<[string, any]>;
13
- }
14
-
15
- interface LoDashImplicitWrapper<TValue> {
16
- /**
17
- * @see _.toPairs
18
- */
19
- entries<T>(this: LoDashImplicitWrapper<Dictionary<T>>): LoDashImplicitWrapper<Array<[string, T]>>;
20
-
21
- /**
22
- * @see _.toPairs
23
- */
24
- entries(): LoDashImplicitWrapper<Array<[string, any]>>;
25
- }
26
-
27
- interface LoDashExplicitWrapper<TValue> {
28
- /**
29
- * @see _.toPairs
30
- */
31
- entries<T>(this: LoDashExplicitWrapper<Dictionary<T>>): LoDashExplicitWrapper<Array<[string, T]>>;
32
-
33
- /**
34
- * @see _.toPairs
35
- */
36
- entries(): LoDashExplicitWrapper<Array<[string, any]>>;
37
- }
38
- }