@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/object/pickBy.d.ts DELETED
@@ -1,44 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates an object composed of the `object` properties `predicate` returns
6
- * truthy for. The predicate is invoked with two arguments: (value, key).
7
- *
8
- * @category Object
9
- * @param object The source object.
10
- * @param [predicate=_.identity] The function invoked per property.
11
- * @returns Returns the new object.
12
- * @example
13
- *
14
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
15
- *
16
- * _.pickBy(object, _.isNumber);
17
- * // => { 'a': 1, 'c': 3 }
18
- */
19
- pickBy<T extends object>(
20
- object: T | null | undefined,
21
- predicate?: ValueKeyIteratee<T[keyof T]>
22
- ): PartialObject<T>;
23
- }
24
-
25
- interface LoDashImplicitWrapper<TValue> {
26
- /**
27
- * @see _.pickBy
28
- */
29
- pickBy<T extends object>(
30
- this: LoDashImplicitWrapper<T | null | undefined>,
31
- predicate?: ValueKeyIteratee<T[keyof T]>
32
- ): LoDashImplicitWrapper<PartialObject<T>>;
33
- }
34
-
35
- interface LoDashExplicitWrapper<TValue> {
36
- /**
37
- * @see _.pickBy
38
- */
39
- pickBy<T extends object>(
40
- this: LoDashExplicitWrapper<T | null | undefined>,
41
- predicate?: ValueKeyIteratee<T[keyof T]>
42
- ): LoDashExplicitWrapper<PartialObject<T>>;
43
- }
44
- }
lodash/object/result.d.ts DELETED
@@ -1,39 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like _.get except that if the resolved value is a function it’s invoked with the this binding
6
- * of its parent object and its result is returned.
7
- *
8
- * @param object The object to query.
9
- * @param path The path of the property to resolve.
10
- * @param defaultValue The value returned if the resolved value is undefined.
11
- * @return Returns the resolved value.
12
- */
13
- result<TResult>(
14
- object: any,
15
- path: PropertyPath,
16
- defaultValue?: TResult|((...args: any[]) => TResult)
17
- ): TResult;
18
- }
19
-
20
- interface LoDashImplicitWrapper<TValue> {
21
- /**
22
- * @see _.result
23
- */
24
- result<TResult>(
25
- path: PropertyPath,
26
- defaultValue?: TResult|((...args: any[]) => TResult)
27
- ): TResult;
28
- }
29
-
30
- interface LoDashExplicitWrapper<TValue> {
31
- /**
32
- * @see _.result
33
- */
34
- result<TResult>(
35
- path: PropertyPath,
36
- defaultValue?: TResult|((...args: any[]) => TResult)
37
- ): LoDashExplicitWrapper<TResult>;
38
- }
39
- }
lodash/object/set.d.ts DELETED
@@ -1,65 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Sets the value at path of object. If a portion of path doesn’t exist it’s created. Arrays are created for
6
- * missing index properties while objects are created for all other missing properties. Use _.setWith to
7
- * customize path creation.
8
- *
9
- * @param object The object to modify.
10
- * @param path The path of the property to set.
11
- * @param value The value to set.
12
- * @return Returns object.
13
- */
14
- set<T extends object>(
15
- object: T,
16
- path: PropertyPath,
17
- value: any
18
- ): T;
19
-
20
- /**
21
- * @see _.set
22
- */
23
- set<TResult>(
24
- object: object,
25
- path: PropertyPath,
26
- value: any
27
- ): TResult;
28
- }
29
-
30
- interface LoDashImplicitWrapper<TValue> {
31
- /**
32
- * @see _.set
33
- */
34
- set(
35
- path: PropertyPath,
36
- value: any
37
- ): this;
38
-
39
- /**
40
- * @see _.set
41
- */
42
- set<TResult>(
43
- path: PropertyPath,
44
- value: any
45
- ): LoDashImplicitWrapper<TResult>;
46
- }
47
-
48
- interface LoDashExplicitWrapper<TValue> {
49
- /**
50
- * @see _.set
51
- */
52
- set(
53
- path: PropertyPath,
54
- value: any
55
- ): this;
56
-
57
- /**
58
- * @see _.set
59
- */
60
- set<TResult>(
61
- path: PropertyPath,
62
- value: any
63
- ): LoDashExplicitWrapper<TResult>;
64
- }
65
- }
@@ -1,71 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- type SetWithCustomizer<T> = (nsValue: any, key: string, nsObject: T) => any;
4
-
5
- interface LoDashStatic {
6
- /**
7
- * This method is like _.set except that it accepts customizer which is invoked to produce the objects of
8
- * path. If customizer returns undefined path creation is handled by the method instead. The customizer is
9
- * invoked with three arguments: (nsValue, key, nsObject).
10
- *
11
- * @param object The object to modify.
12
- * @param path The path of the property to set.
13
- * @param value The value to set.
14
- * @parem customizer The function to customize assigned values.
15
- * @return Returns object.
16
- */
17
- setWith<T extends object>(
18
- object: T,
19
- path: PropertyPath,
20
- value: any,
21
- customizer?: SetWithCustomizer<T>
22
- ): T;
23
-
24
- setWith<T extends object, TResult>(
25
- object: T,
26
- path: PropertyPath,
27
- value: any,
28
- customizer?: SetWithCustomizer<T>
29
- ): TResult;
30
- }
31
-
32
- interface LoDashImplicitWrapper<TValue> {
33
- /**
34
- * @see _.setWith
35
- */
36
- setWith(
37
- path: PropertyPath,
38
- value: any,
39
- customizer?: SetWithCustomizer<TValue>
40
- ): this;
41
-
42
- /**
43
- * @see _.setWith
44
- */
45
- setWith<TResult>(
46
- path: PropertyPath,
47
- value: any,
48
- customizer?: SetWithCustomizer<TValue>
49
- ): LoDashImplicitWrapper<TResult>;
50
- }
51
-
52
- interface LoDashExplicitWrapper<TValue> {
53
- /**
54
- * @see _.setWith
55
- */
56
- setWith(
57
- path: PropertyPath,
58
- value: any,
59
- customizer?: SetWithCustomizer<TValue>
60
- ): this;
61
-
62
- /**
63
- * @see _.setWith
64
- */
65
- setWith<TResult>(
66
- path: PropertyPath,
67
- value: any,
68
- customizer?: SetWithCustomizer<TValue>
69
- ): LoDashExplicitWrapper<TResult>;
70
- }
71
- }
@@ -1,41 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates an array of own enumerable key-value pairs for object.
6
- *
7
- * @param object The object to query.
8
- * @return Returns the new array of key-value pairs.
9
- */
10
- toPairs<T>(object?: Dictionary<T>): Array<[string, T]>;
11
-
12
- /**
13
- * @see _.toPairs
14
- */
15
- toPairs(object?: object): Array<[string, any]>;
16
- }
17
-
18
- interface LoDashImplicitWrapper<TValue> {
19
- /**
20
- * @see _.toPairs
21
- */
22
- toPairs<T>(this: LoDashImplicitWrapper<Dictionary<T>>): LoDashImplicitWrapper<Array<[string, T]>>;
23
-
24
- /**
25
- * @see _.toPairs
26
- */
27
- toPairs(): LoDashImplicitWrapper<Array<[string, any]>>;
28
- }
29
-
30
- interface LoDashExplicitWrapper<TValue> {
31
- /**
32
- * @see _.toPairs
33
- */
34
- toPairs<T>(this: LoDashExplicitWrapper<Dictionary<T>>): LoDashExplicitWrapper<Array<[string, T]>>;
35
-
36
- /**
37
- * @see _.toPairs
38
- */
39
- toPairs(): LoDashExplicitWrapper<Array<[string, any]>>;
40
- }
41
- }
@@ -1,41 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates an array of own and inherited enumerable key-value pairs for object.
6
- *
7
- * @param object The object to query.
8
- * @return Returns the new array of key-value pairs.
9
- */
10
- toPairsIn<T>(object?: Dictionary<T>): Array<[string, T]>;
11
-
12
- /**
13
- * @see _.toPairsIn
14
- */
15
- toPairsIn(object?: object): Array<[string, any]>;
16
- }
17
-
18
- interface LoDashImplicitWrapper<TValue> {
19
- /**
20
- * @see _.toPairsIn
21
- */
22
- toPairsIn<T>(this: LoDashImplicitWrapper<Dictionary<T>>): LoDashImplicitWrapper<Array<[string, T]>>;
23
-
24
- /**
25
- * @see _.toPairsIn
26
- */
27
- toPairsIn(): LoDashImplicitWrapper<Array<[string, any]>>;
28
- }
29
-
30
- interface LoDashExplicitWrapper<TValue> {
31
- /**
32
- * @see _.toPairsIn
33
- */
34
- toPairsIn<T>(this: LoDashExplicitWrapper<Dictionary<T>>): LoDashExplicitWrapper<Array<[string, T]>>;
35
-
36
- /**
37
- * @see _.toPairsIn
38
- */
39
- toPairsIn(): LoDashExplicitWrapper<Array<[string, any]>>;
40
- }
41
- }
@@ -1,163 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * An alternative to _.reduce; this method transforms object to a new accumulator object which is the result of
6
- * running each of its own enumerable properties through iteratee, with each invocation potentially mutating
7
- * the accumulator object. The iteratee is bound to thisArg and invoked with four arguments: (accumulator,
8
- * value, key, object). Iteratee functions may exit iteration early by explicitly returning false.
9
- *
10
- * @param object The object to iterate over.
11
- * @param iteratee The function invoked per iteration.
12
- * @param accumulator The custom accumulator value.
13
- * @param thisArg The this binding of iteratee.
14
- * @return Returns the accumulated value.
15
- */
16
- transform<T, TResult>(
17
- object: T[],
18
- iteratee: MemoVoidArrayIterator<T, TResult[]>,
19
- accumulator?: TResult[]
20
- ): TResult[];
21
-
22
- /**
23
- * @see _.transform
24
- */
25
- transform<T, TResult>(
26
- object: T[],
27
- iteratee: MemoVoidArrayIterator<T, Dictionary<TResult>>,
28
- accumulator: Dictionary<TResult>
29
- ): Dictionary<TResult>;
30
-
31
- /**
32
- * @see _.transform
33
- */
34
- transform<T, TResult>(
35
- object: Dictionary<T>,
36
- iteratee: MemoVoidDictionaryIterator<T, Dictionary<TResult>>,
37
- accumulator?: Dictionary<TResult>
38
- ): Dictionary<TResult>;
39
-
40
- /**
41
- * @see _.transform
42
- */
43
- transform<T, TResult>(
44
- object: Dictionary<T>,
45
- iteratee: MemoVoidDictionaryIterator<T, TResult[]>,
46
- accumulator: TResult[]
47
- ): TResult[];
48
-
49
- /**
50
- * @see _.transform
51
- */
52
- transform(
53
- object: any[],
54
- ): any[];
55
-
56
- /**
57
- * @see _.transform
58
- */
59
- transform(
60
- object: object,
61
- ): Dictionary<any>;
62
- }
63
-
64
- interface LoDashImplicitWrapper<TValue> {
65
- /**
66
- * @see _.transform
67
- */
68
- transform<T, TResult>(
69
- this: LoDashImplicitWrapper<T[]>,
70
- iteratee: MemoVoidArrayIterator<T, TResult[]>,
71
- accumulator?: TResult[]
72
- ): LoDashImplicitWrapper<TResult[]>;
73
-
74
- /**
75
- * @see _.transform
76
- */
77
- transform<T, TResult>(
78
- this: LoDashImplicitWrapper<T[]>,
79
- iteratee: MemoVoidArrayIterator<T, Dictionary<TResult>>,
80
- accumulator: Dictionary<TResult>
81
- ): LoDashImplicitWrapper<Dictionary<TResult>>;
82
-
83
- /**
84
- * @see _.transform
85
- */
86
- transform<T, TResult>(
87
- this: LoDashImplicitWrapper<Dictionary<T>>,
88
- iteratee: MemoVoidDictionaryIterator<T, Dictionary<TResult>>,
89
- accumulator?: Dictionary<TResult>
90
- ): LoDashImplicitWrapper<Dictionary<TResult>>;
91
-
92
- /**
93
- * @see _.transform
94
- */
95
- transform<T, TResult>(
96
- this: LoDashImplicitWrapper<Dictionary<T>>,
97
- iteratee: MemoVoidDictionaryIterator<T, TResult[]>,
98
- accumulator: TResult[]
99
- ): LoDashImplicitWrapper<TResult[]>;
100
-
101
- /**
102
- * @see _.transform
103
- */
104
- transform(
105
- this: LoDashImplicitWrapper<any[]>,
106
- ): LoDashImplicitWrapper<any[]>;
107
-
108
- /**
109
- * @see _.transform
110
- */
111
- transform(): LoDashImplicitWrapper<Dictionary<any>>;
112
- }
113
-
114
- interface LoDashExplicitWrapper<TValue> {
115
- /**
116
- * @see _.transform
117
- */
118
- transform<T, TResult>(
119
- this: LoDashExplicitWrapper<T[]>,
120
- iteratee: MemoVoidArrayIterator<T, TResult[]>,
121
- accumulator?: TResult[]
122
- ): LoDashExplicitWrapper<TResult[]>;
123
-
124
- /**
125
- * @see _.transform
126
- */
127
- transform<T, TResult>(
128
- this: LoDashExplicitWrapper<T[]>,
129
- iteratee: MemoVoidArrayIterator<T, Dictionary<TResult>>,
130
- accumulator?: Dictionary<TResult>
131
- ): LoDashExplicitWrapper<Dictionary<TResult>>;
132
-
133
- /**
134
- * @see _.transform
135
- */
136
- transform<T, TResult>(
137
- this: LoDashExplicitWrapper<Dictionary<T>>,
138
- iteratee: MemoVoidDictionaryIterator<T, Dictionary<TResult>>,
139
- accumulator?: Dictionary<TResult>
140
- ): LoDashExplicitWrapper<Dictionary<TResult>>;
141
-
142
- /**
143
- * @see _.transform
144
- */
145
- transform<T, TResult>(
146
- this: LoDashExplicitWrapper<Dictionary<T>>,
147
- iteratee: MemoVoidDictionaryIterator<T, TResult[]>,
148
- accumulator?: TResult[]
149
- ): LoDashExplicitWrapper<TResult[]>;
150
-
151
- /**
152
- * @see _.transform
153
- */
154
- transform(
155
- this: LoDashExplicitWrapper<any[]>,
156
- ): LoDashExplicitWrapper<any[]>;
157
-
158
- /**
159
- * @see _.transform
160
- */
161
- transform(): LoDashExplicitWrapper<Dictionary<any>>;
162
- }
163
- }
lodash/object/unset.d.ts DELETED
@@ -1,32 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Removes the property at path of object.
6
- *
7
- * Note: This method mutates object.
8
- *
9
- * @param object The object to modify.
10
- * @param path The path of the property to unset.
11
- * @return Returns true if the property is deleted, else false.
12
- */
13
- unset(
14
- object: any,
15
- path: PropertyPath
16
- ): boolean;
17
- }
18
-
19
- interface LoDashImplicitWrapper<TValue> {
20
- /**
21
- * @see _.unset
22
- */
23
- unset(path: PropertyPath): LoDashImplicitWrapper<boolean>;
24
- }
25
-
26
- interface LoDashExplicitWrapper<TValue> {
27
- /**
28
- * @see _.unset
29
- */
30
- unset(path: PropertyPath): LoDashExplicitWrapper<boolean>;
31
- }
32
- }
lodash/object/update.d.ts DELETED
@@ -1,39 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like _.set except that accepts updater to produce the value to set. Use _.updateWith to
6
- * customize path creation. The updater is invoked with one argument: (value).
7
- *
8
- * @param object The object to modify.
9
- * @param path The path of the property to set.
10
- * @param updater The function to produce the updated value.
11
- * @return Returns object.
12
- */
13
- update(
14
- object: object,
15
- path: PropertyPath,
16
- updater: (value: any) => any
17
- ): any;
18
- }
19
-
20
- interface LoDashImplicitWrapper<TValue> {
21
- /**
22
- * @see _.update
23
- */
24
- update(
25
- path: PropertyPath,
26
- updater: (value: any) => any
27
- ): LoDashImplicitWrapper<any>;
28
- }
29
-
30
- interface LoDashExplicitWrapper<TValue> {
31
- /**
32
- * @see _.update
33
- */
34
- update(
35
- path: PropertyPath,
36
- updater: (value: any) => any
37
- ): LoDashExplicitWrapper<any>;
38
- }
39
- }
@@ -1,83 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like `_.update` except that it accepts `customizer` which is
6
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
7
- * path creation is handled by the method instead. The `customizer` is invoked
8
- * with three arguments: (nsValue, key, nsObject).
9
- *
10
- * **Note:** This method mutates `object`.
11
- *
12
- * @since 4.6.0
13
- * @category Object
14
- * @param object The object to modify.
15
- * @param path The path of the property to set.
16
- * @param updater The function to produce the updated value.
17
- * @param [customizer] The function to customize assigned values.
18
- * @returns Returns `object`.
19
- * @example
20
- *
21
- * var object = {};
22
- *
23
- * _.updateWith(object, '[0][1]', _.constant('a'), Object);
24
- * // => { '0': { '1': 'a' } }
25
- */
26
- updateWith<T extends object>(
27
- object: T,
28
- path: PropertyPath,
29
- updater: (oldValue: any) => any,
30
- customizer?: SetWithCustomizer<T>
31
- ): T;
32
-
33
- /**
34
- * @see _.updateWith
35
- */
36
- updateWith<T extends object, TResult>(
37
- object: T,
38
- path: PropertyPath,
39
- updater: (oldValue: any) => any,
40
- customizer?: SetWithCustomizer<T>
41
- ): TResult;
42
- }
43
-
44
- interface LoDashImplicitWrapper<TValue> {
45
- /**
46
- * @see _.updateWith
47
- */
48
- updateWith(
49
- path: PropertyPath,
50
- updater: (oldValue: any) => any,
51
- customizer?: SetWithCustomizer<TValue>
52
- ): this;
53
-
54
- /**
55
- * @see _.updateWith
56
- */
57
- updateWith<TResult>(
58
- path: PropertyPath,
59
- updater: (oldValue: any) => any,
60
- customizer?: SetWithCustomizer<TValue>
61
- ): LoDashImplicitWrapper<TResult>;
62
- }
63
-
64
- interface LoDashExplicitWrapper<TValue> {
65
- /**
66
- * @see _.updateWith
67
- */
68
- updateWith(
69
- path: PropertyPath,
70
- updater: (oldValue: any) => any,
71
- customizer?: SetWithCustomizer<TValue>
72
- ): this;
73
-
74
- /**
75
- * @see _.updateWith
76
- */
77
- updateWith<TResult>(
78
- path: PropertyPath,
79
- updater: (oldValue: any) => any,
80
- customizer?: SetWithCustomizer<TValue>
81
- ): LoDashExplicitWrapper<TResult>;
82
- }
83
- }
lodash/object/values.d.ts DELETED
@@ -1,56 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates an array of the own enumerable property values of object.
6
- *
7
- * @param object The object to query.
8
- * @return Returns an array of property values.
9
- */
10
- values<T>(object: Dictionary<T>|NumericDictionary<T>|List<T> | null | undefined): T[];
11
-
12
- /**
13
- * @see _.values
14
- */
15
- values<T extends object>(object: T | null | undefined): Array<T[keyof T]>;
16
-
17
- /**
18
- * @see _.values
19
- */
20
- values(object: any): any[];
21
- }
22
-
23
- interface LoDashImplicitWrapper<TValue> {
24
- /**
25
- * @see _.values
26
- */
27
- values<T>(this: LoDashImplicitWrapper<Dictionary<T> | NumericDictionary<T> | List<T> | null | undefined>): LoDashImplicitWrapper<T[]>;
28
-
29
- /**
30
- * @see _.values
31
- */
32
- values<T extends object>(this: LoDashImplicitWrapper<T | null | undefined>): LoDashImplicitWrapper<Array<T[keyof T]>>;
33
-
34
- /**
35
- * @see _.values
36
- */
37
- values(): LoDashImplicitWrapper<any[]>;
38
- }
39
-
40
- interface LoDashExplicitWrapper<TValue> {
41
- /**
42
- * @see _.values
43
- */
44
- values<T>(this: LoDashExplicitWrapper<Dictionary<T> | NumericDictionary<T> | List<T> | null | undefined>): LoDashExplicitWrapper<T[]>;
45
-
46
- /**
47
- * @see _.values
48
- */
49
- values<T extends object>(this: LoDashExplicitWrapper<T | null | undefined>): LoDashExplicitWrapper<Array<T[keyof T]>>;
50
-
51
- /**
52
- * @see _.values
53
- */
54
- values(): LoDashExplicitWrapper<any[]>;
55
- }
56
- }