@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,150 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like _.partial except that partial arguments are appended to those provided
6
- * to the new function.
7
- * @param func The function to partially apply arguments to.
8
- * @param args Arguments to be partially applied.
9
- * @return The new partially applied function.
10
- **/
11
- partialRight: PartialRight;
12
- }
13
-
14
- interface LoDashImplicitWrapper<TValue> {
15
- /**
16
- * @see _.partialRight
17
- */
18
- partialRight: ImplicitPartialRight;
19
- }
20
-
21
- interface LoDashExplicitWrapper<TValue> {
22
- /**
23
- * @see _.partialRight
24
- */
25
- partialRight: ExplicitPartialRight;
26
- }
27
-
28
- interface PartialRight {
29
- // arity 0
30
- <R>(func: Function0<R>): Function0<R>;
31
- // arity 1
32
- <T1, R>(func: Function1<T1, R>): Function1<T1, R>;
33
- <T1, R>(func: Function1<T1, R>, arg1: T1): Function0<R>;
34
- // arity 2
35
- <T1, T2, R>(func: Function2<T1, T2, R>): Function2<T1, T2, R>;
36
- <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, plc2: PH): Function1< T2, R>;
37
- <T1, T2, R>(func: Function2<T1, T2, R>, arg2: T2): Function1<T1, R>;
38
- <T1, T2, R>(func: Function2<T1, T2, R>, arg1: T1, arg2: T2): Function0< R>;
39
- // arity 3
40
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>): Function3<T1, T2, T3, R>;
41
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, plc3: PH): Function2< T2, T3, R>;
42
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg2: T2, plc3: PH): Function2<T1, T3, R>;
43
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, plc3: PH): Function1< T3, R>;
44
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg3: T3): Function2<T1, T2, R>;
45
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, plc2: PH, arg3: T3): Function1< T2, R>;
46
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg2: T2, arg3: T3): Function1<T1, R>;
47
- <T1, T2, T3, R>(func: Function3<T1, T2, T3, R>, arg1: T1, arg2: T2, arg3: T3): Function0< R>;
48
- // arity 4
49
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>): Function4<T1, T2, T3, T4, R>;
50
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, plc3: PH, plc4: PH): Function3< T2, T3, T4, R>;
51
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, plc3: PH, plc4: PH): Function3<T1, T3, T4, R>;
52
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): Function2< T3, T4, R>;
53
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg3: T3, plc4: PH): Function3<T1, T2, T4, R>;
54
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): Function2< T2, T4, R>;
55
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, arg3: T3, plc4: PH): Function2<T1, T4, R>;
56
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): Function1< T4, R>;
57
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg4: T4): Function3<T1, T2, T3, R>;
58
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): Function2< T2, T3, R>;
59
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, plc3: PH, arg4: T4): Function2<T1, T3, R>;
60
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): Function1< T3, R>;
61
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg3: T3, arg4: T4): Function2<T1, T2, R>;
62
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): Function1< T2, R>;
63
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg2: T2, arg3: T3, arg4: T4): Function1<T1, R>;
64
- <T1, T2, T3, T4, R>(func: Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): Function0< R>;
65
- // catch-all
66
- (func: (...args: any[]) => any, ...args: any[]): (...args: any[]) => any;
67
- }
68
-
69
- interface ImplicitPartialRight {
70
- // arity 0
71
- <R>(this: LoDashImplicitWrapper<Function0<R>>): LoDashImplicitWrapper<Function0<R>>;
72
- // arity 1
73
- <T1, R>(this: LoDashImplicitWrapper<Function1<T1, R>>): LoDashImplicitWrapper<Function1<T1, R>>;
74
- <T1, R>(this: LoDashImplicitWrapper<Function1<T1, R>>, arg1: T1): LoDashImplicitWrapper<Function0<R>>;
75
- // arity 2
76
- <T1, T2, R>(this: LoDashImplicitWrapper<Function2<T1, T2, R>>): LoDashImplicitWrapper<Function2<T1, T2, R>>;
77
- <T1, T2, R>(this: LoDashImplicitWrapper<Function2<T1, T2, R>>, arg1: T1, plc2: PH): LoDashImplicitWrapper<Function1< T2, R>>;
78
- <T1, T2, R>(this: LoDashImplicitWrapper<Function2<T1, T2, R>>, arg2: T2): LoDashImplicitWrapper<Function1<T1, R>>;
79
- <T1, T2, R>(this: LoDashImplicitWrapper<Function2<T1, T2, R>>, arg1: T1, arg2: T2): LoDashImplicitWrapper<Function0< R>>;
80
- // arity 3
81
- <T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>): LoDashImplicitWrapper<Function3<T1, T2, T3, R>>;
82
- <T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, plc2: PH, plc3: PH): LoDashImplicitWrapper<Function2< T2, T3, R>>;
83
- <T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg2: T2, plc3: PH): LoDashImplicitWrapper<Function2<T1, T3, R>>;
84
- <T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, arg2: T2, plc3: PH): LoDashImplicitWrapper<Function1< T3, R>>;
85
- <T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg3: T3): LoDashImplicitWrapper<Function2<T1, T2, R>>;
86
- <T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, plc2: PH, arg3: T3): LoDashImplicitWrapper<Function1< T2, R>>;
87
- <T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg2: T2, arg3: T3): LoDashImplicitWrapper<Function1<T1, R>>;
88
- <T1, T2, T3, R>(this: LoDashImplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, arg2: T2, arg3: T3): LoDashImplicitWrapper<Function0< R>>;
89
- // arity 4
90
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>): LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>;
91
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, plc3: PH, plc4: PH): LoDashImplicitWrapper<Function3< T2, T3, T4, R>>;
92
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, plc3: PH, plc4: PH): LoDashImplicitWrapper<Function3<T1, T3, T4, R>>;
93
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): LoDashImplicitWrapper<Function2< T3, T4, R>>;
94
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg3: T3, plc4: PH): LoDashImplicitWrapper<Function3<T1, T2, T4, R>>;
95
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): LoDashImplicitWrapper<Function2< T2, T4, R>>;
96
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, arg3: T3, plc4: PH): LoDashImplicitWrapper<Function2<T1, T4, R>>;
97
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): LoDashImplicitWrapper<Function1< T4, R>>;
98
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg4: T4): LoDashImplicitWrapper<Function3<T1, T2, T3, R>>;
99
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): LoDashImplicitWrapper<Function2< T2, T3, R>>;
100
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, plc3: PH, arg4: T4): LoDashImplicitWrapper<Function2<T1, T3, R>>;
101
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): LoDashImplicitWrapper<Function1< T3, R>>;
102
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg3: T3, arg4: T4): LoDashImplicitWrapper<Function2<T1, T2, R>>;
103
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): LoDashImplicitWrapper<Function1< T2, R>>;
104
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, arg3: T3, arg4: T4): LoDashImplicitWrapper<Function1<T1, R>>;
105
- <T1, T2, T3, T4, R>(this: LoDashImplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): LoDashImplicitWrapper<Function0< R>>;
106
- // catch-all
107
- (...args: any[]): LoDashImplicitWrapper<(...args: any[]) => any>;
108
- }
109
-
110
- interface ExplicitPartialRight {
111
- // arity 0
112
- <R>(this: LoDashExplicitWrapper<Function0<R>>): LoDashExplicitWrapper<Function0<R>>;
113
- // arity 1
114
- <T1, R>(this: LoDashExplicitWrapper<Function1<T1, R>>): LoDashExplicitWrapper<Function1<T1, R>>;
115
- <T1, R>(this: LoDashExplicitWrapper<Function1<T1, R>>, arg1: T1): LoDashExplicitWrapper<Function0<R>>;
116
- // arity 2
117
- <T1, T2, R>(this: LoDashExplicitWrapper<Function2<T1, T2, R>>): LoDashExplicitWrapper<Function2<T1, T2, R>>;
118
- <T1, T2, R>(this: LoDashExplicitWrapper<Function2<T1, T2, R>>, arg1: T1, plc2: PH): LoDashExplicitWrapper<Function1< T2, R>>;
119
- <T1, T2, R>(this: LoDashExplicitWrapper<Function2<T1, T2, R>>, arg2: T2): LoDashExplicitWrapper<Function1<T1, R>>;
120
- <T1, T2, R>(this: LoDashExplicitWrapper<Function2<T1, T2, R>>, arg1: T1, arg2: T2): LoDashExplicitWrapper<Function0< R>>;
121
- // arity 3
122
- <T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>): LoDashExplicitWrapper<Function3<T1, T2, T3, R>>;
123
- <T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, plc2: PH, plc3: PH): LoDashExplicitWrapper<Function2< T2, T3, R>>;
124
- <T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg2: T2, plc3: PH): LoDashExplicitWrapper<Function2<T1, T3, R>>;
125
- <T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, arg2: T2, plc3: PH): LoDashExplicitWrapper<Function1< T3, R>>;
126
- <T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg3: T3): LoDashExplicitWrapper<Function2<T1, T2, R>>;
127
- <T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, plc2: PH, arg3: T3): LoDashExplicitWrapper<Function1< T2, R>>;
128
- <T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg2: T2, arg3: T3): LoDashExplicitWrapper<Function1<T1, R>>;
129
- <T1, T2, T3, R>(this: LoDashExplicitWrapper<Function3<T1, T2, T3, R>>, arg1: T1, arg2: T2, arg3: T3): LoDashExplicitWrapper<Function0< R>>;
130
- // arity 4
131
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>): LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>;
132
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, plc3: PH, plc4: PH): LoDashExplicitWrapper<Function3< T2, T3, T4, R>>;
133
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, plc3: PH, plc4: PH): LoDashExplicitWrapper<Function3<T1, T3, T4, R>>;
134
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): LoDashExplicitWrapper<Function2< T3, T4, R>>;
135
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg3: T3, plc4: PH): LoDashExplicitWrapper<Function3<T1, T2, T4, R>>;
136
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): LoDashExplicitWrapper<Function2< T2, T4, R>>;
137
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, arg3: T3, plc4: PH): LoDashExplicitWrapper<Function2<T1, T4, R>>;
138
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): LoDashExplicitWrapper<Function1< T4, R>>;
139
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg4: T4): LoDashExplicitWrapper<Function3<T1, T2, T3, R>>;
140
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): LoDashExplicitWrapper<Function2< T2, T3, R>>;
141
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, plc3: PH, arg4: T4): LoDashExplicitWrapper<Function2<T1, T3, R>>;
142
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): LoDashExplicitWrapper<Function1< T3, R>>;
143
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg3: T3, arg4: T4): LoDashExplicitWrapper<Function2<T1, T2, R>>;
144
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): LoDashExplicitWrapper<Function1< T2, R>>;
145
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg2: T2, arg3: T3, arg4: T4): LoDashExplicitWrapper<Function1<T1, R>>;
146
- <T1, T2, T3, T4, R>(this: LoDashExplicitWrapper<Function4<T1, T2, T3, T4, R>>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): LoDashExplicitWrapper<Function0< R>>;
147
- // catch-all
148
- (...args: any[]): LoDashExplicitWrapper<(...args: any[]) => any>;
149
- }
150
- }
@@ -1,28 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates a function that invokes func with arguments arranged according to the specified indexes where the
6
- * argument value at the first index is provided as the first argument, the argument value at the second index
7
- * is provided as the second argument, and so on.
8
- * @param func The function to rearrange arguments for.
9
- * @param indexes The arranged argument indexes, specified as individual indexes or arrays of indexes.
10
- * @return Returns the new function.
11
- */
12
- rearg(func: (...args: any[]) => any, ...indexes: Array<Many<number>>): (...args: any[]) => any;
13
- }
14
-
15
- interface LoDashImplicitWrapper<TValue> {
16
- /**
17
- * @see _.rearg
18
- */
19
- rearg(...indexes: Array<Many<number>>): LoDashImplicitWrapper<(...args: any[]) => any>;
20
- }
21
-
22
- interface LoDashExplicitWrapper<TValue> {
23
- /**
24
- * @see _.rearg
25
- */
26
- rearg(...indexes: Array<Many<number>>): LoDashExplicitWrapper<(...args: any[]) => any>;
27
- }
28
- }
lodash/function/rest.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates a function that invokes func with the this binding of the created function and arguments from start
6
- * and beyond provided as an array.
7
- *
8
- * Note: This method is based on the rest parameter.
9
- *
10
- * @param func The function to apply a rest parameter to.
11
- * @param start The start position of the rest parameter.
12
- * @return Returns the new function.
13
- */
14
- rest(
15
- func: (...args: any[]) => any,
16
- start?: number
17
- ): (...args: any[]) => any;
18
- }
19
-
20
- interface LoDashImplicitWrapper<TValue> {
21
- /**
22
- * @see _.rest
23
- */
24
- rest(start?: number): LoDashImplicitWrapper<(...args: any[]) => any>;
25
- }
26
-
27
- interface LoDashExplicitWrapper<TValue> {
28
- /**
29
- * @see _.rest
30
- */
31
- rest(start?: number): LoDashExplicitWrapper<(...args: any[]) => any>;
32
- }
33
- }
@@ -1,44 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates a function that invokes func with the this binding of the created function and an array of arguments
6
- * much like Function#apply.
7
- *
8
- * Note: This method is based on the spread operator.
9
- *
10
- * @param func The function to spread arguments over.
11
- * @return Returns the new function.
12
- */
13
- spread<TResult>(func: (...args: any[]) => TResult): (...args: any[]) => TResult;
14
-
15
- /**
16
- * @see _.spread
17
- */
18
- spread<TResult>(func: (...args: any[]) => TResult, start: number): (...args: any[]) => TResult;
19
- }
20
-
21
- interface LoDashImplicitWrapper<TValue> {
22
- /**
23
- * @see _.spread
24
- */
25
- spread<TResult>(this: LoDashImplicitWrapper<(...args: any[]) => TResult>): LoDashImplicitWrapper<(...args: any[]) => TResult>;
26
-
27
- /**
28
- * @see _.spread
29
- */
30
- spread<TResult>(this: LoDashImplicitWrapper<(...args: any[]) => TResult>, start: number): LoDashImplicitWrapper<(...args: any[]) => TResult>;
31
- }
32
-
33
- interface LoDashExplicitWrapper<TValue> {
34
- /**
35
- * @see _.spread
36
- */
37
- spread<TResult>(this: LoDashExplicitWrapper<(...args: any[]) => TResult>): LoDashExplicitWrapper<(...args: any[]) => TResult>;
38
-
39
- /**
40
- * @see _.spread
41
- */
42
- spread<TResult>(this: LoDashExplicitWrapper<(...args: any[]) => TResult>, start: number): LoDashExplicitWrapper<(...args: any[]) => TResult>;
43
- }
44
- }
@@ -1,58 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface ThrottleSettings {
4
- /**
5
- * If you'd like to disable the leading-edge call, pass this as false.
6
- */
7
- leading?: boolean;
8
-
9
- /**
10
- * If you'd like to disable the execution on the trailing-edge, pass false.
11
- */
12
- trailing?: boolean;
13
- }
14
-
15
- interface LoDashStatic {
16
- /**
17
- * Creates a throttled function that only invokes func at most once per every wait milliseconds. The throttled
18
- * function comes with a cancel method to cancel delayed invocations and a flush method to immediately invoke
19
- * them. Provide an options object to indicate that func should be invoked on the leading and/or trailing edge
20
- * of the wait timeout. Subsequent calls to the throttled function return the result of the last func call.
21
- *
22
- * Note: If leading and trailing options are true, func is invoked on the trailing edge of the timeout only if
23
- * the the throttled function is invoked more than once during the wait timeout.
24
- *
25
- * @param func The function to throttle.
26
- * @param wait The number of milliseconds to throttle invocations to.
27
- * @param options The options object.
28
- * @param options.leading Specify invoking on the leading edge of the timeout.
29
- * @param options.trailing Specify invoking on the trailing edge of the timeout.
30
- * @return Returns the new throttled function.
31
- */
32
- throttle<T extends (...args: any[]) => any>(
33
- func: T,
34
- wait?: number,
35
- options?: ThrottleSettings
36
- ): T & Cancelable;
37
- }
38
-
39
- interface LoDashImplicitWrapper<TValue> {
40
- /**
41
- * @see _.throttle
42
- */
43
- throttle(
44
- wait?: number,
45
- options?: ThrottleSettings
46
- ): LoDashImplicitWrapper<TValue & Cancelable>;
47
- }
48
-
49
- interface LoDashExplicitWrapper<TValue> {
50
- /**
51
- * @see _.throttle
52
- */
53
- throttle(
54
- wait?: number,
55
- options?: ThrottleSettings
56
- ): LoDashExplicitWrapper<TValue & Cancelable>;
57
- }
58
- }
@@ -1,32 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates a function that accepts up to one argument, ignoring any
6
- * additional arguments.
7
- *
8
- * @category Function
9
- * @param func The function to cap arguments for.
10
- * @returns Returns the new function.
11
- * @example
12
- *
13
- * _.map(['6', '8', '10'], _.unary(parseInt));
14
- * // => [6, 8, 10]
15
- */
16
- unary<T, TResult>(func: (arg1: T, ...args: any[]) => TResult): (arg1: T) => TResult;
17
- }
18
-
19
- interface LoDashImplicitWrapper<TValue> {
20
- /**
21
- * @see _.unary
22
- */
23
- unary<T, TResult>(this: LoDashImplicitWrapper<(arg1: T, ...args: any[]) => TResult>): LoDashImplicitWrapper<(arg1: T) => TResult>;
24
- }
25
-
26
- interface LoDashExplicitWrapper<TValue> {
27
- /**
28
- * @see _.unary
29
- */
30
- unary<T, TResult>(this: LoDashExplicitWrapper<(arg1: T, ...args: any[]) => TResult>): LoDashExplicitWrapper<(arg1: T) => TResult>;
31
- }
32
- }
lodash/function/wrap.d.ts DELETED
@@ -1,61 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates a function that provides value to the wrapper function as its first argument. Any additional
6
- * arguments provided to the function are appended to those provided to the wrapper function. The wrapper is
7
- * invoked with the this binding of the created function.
8
- *
9
- * @param value The value to wrap.
10
- * @param wrapper The wrapper function.
11
- * @return Returns the new function.
12
- */
13
- wrap<T, TArgs, TResult>(
14
- value: T,
15
- wrapper: (value: T, ...args: TArgs[]) => TResult
16
- ): (...args: TArgs[]) => TResult;
17
-
18
- /**
19
- * @see _.wrap
20
- */
21
- wrap<T, TResult>(
22
- value: T,
23
- wrapper: (value: T, ...args: any[]) => TResult
24
- ): (...args: any[]) => TResult;
25
- }
26
-
27
- interface LoDashImplicitWrapper<TValue> {
28
- /**
29
- * @see _.wrap
30
- */
31
- wrap<TArgs, TResult>(
32
- wrapper: (value: TValue, ...args: TArgs[]) => TResult
33
- ): LoDashImplicitWrapper<(...args: TArgs[]) => TResult>;
34
-
35
- /**
36
- * @see _.wrap
37
- */
38
- wrap<TResult>(
39
- wrapper: (value: TValue, ...args: any[]) => TResult
40
- ): LoDashImplicitWrapper<(...args: any[]) => TResult>;
41
- }
42
-
43
- interface LoDashExplicitWrapper<TValue> {
44
- /**
45
- * @see _.wrap
46
- */
47
- /**
48
- * @see _.wrap
49
- */
50
- wrap<TArgs, TResult>(
51
- wrapper: (value: TValue, ...args: TArgs[]) => TResult
52
- ): LoDashExplicitWrapper<(...args: TArgs[]) => TResult>;
53
-
54
- /**
55
- * @see _.wrap
56
- */
57
- wrap<TResult>(
58
- wrapper: (value: TValue, ...args: any[]) => TResult
59
- ): LoDashExplicitWrapper<(...args: any[]) => TResult>;
60
- }
61
- }
@@ -1,26 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Casts value as an array if it’s not one.
6
- *
7
- * @param value The value to inspect.
8
- * @return Returns the cast array.
9
- */
10
- castArray<T>(value?: Many<T>): T[];
11
- }
12
-
13
- interface LoDashImplicitWrapper<TValue> {
14
- /**
15
- * @see _.castArray
16
- */
17
- castArray<T>(this: LoDashImplicitWrapper<Many<T>>): LoDashImplicitWrapper<T[]>;
18
- }
19
-
20
- interface LoDashExplicitWrapper<TValue> {
21
- /**
22
- * @see _.castArray
23
- */
24
- castArray<T>(this: LoDashExplicitWrapper<Many<T>>): LoDashExplicitWrapper<T[]>;
25
- }
26
- }
lodash/lang/clone.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * Creates a shallow clone of value.
6
- *
7
- * Note: This method is loosely based on the structured clone algorithm and supports cloning arrays,
8
- * array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols,
9
- * and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty
10
- * object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps.
11
- *
12
- * @param value The value to clone.
13
- * @return Returns the cloned value.
14
- */
15
- clone<T>(value: T): T;
16
- }
17
-
18
- interface LoDashImplicitWrapper<TValue> {
19
- /**
20
- * @see _.clone
21
- */
22
- clone(): TValue;
23
- }
24
-
25
- interface LoDashExplicitWrapper<TValue> {
26
- /**
27
- * @see _.clone
28
- */
29
- clone(): this;
30
- }
31
- }
@@ -1,26 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- interface LoDashStatic {
4
- /**
5
- * This method is like _.clone except that it recursively clones value.
6
- *
7
- * @param value The value to recursively clone.
8
- * @return Returns the deep cloned value.
9
- */
10
- cloneDeep<T>(value: T): T;
11
- }
12
-
13
- interface LoDashImplicitWrapper<TValue> {
14
- /**
15
- * @see _.cloneDeep
16
- */
17
- cloneDeep(): TValue;
18
- }
19
-
20
- interface LoDashExplicitWrapper<TValue> {
21
- /**
22
- * @see _.cloneDeep
23
- */
24
- cloneDeep(): this;
25
- }
26
- }
@@ -1,51 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- type CloneDeepWithCustomizer<TObject> = (value: any, key: number | string | undefined, object: TObject | undefined, stack: any) => any;
4
-
5
- interface LoDashStatic {
6
- /**
7
- * This method is like _.cloneWith except that it recursively clones value.
8
- *
9
- * @param value The value to recursively clone.
10
- * @param customizer The function to customize cloning.
11
- * @return Returns the deep cloned value.
12
- */
13
- cloneDeepWith<T>(
14
- value: T,
15
- customizer: CloneDeepWithCustomizer<T>
16
- ): any;
17
-
18
- /**
19
- * @see _.cloneDeepWith
20
- */
21
- cloneDeepWith<T>(value: T): T;
22
- }
23
-
24
- interface LoDashImplicitWrapper<TValue> {
25
- /**
26
- * @see _.cloneDeepWith
27
- */
28
- cloneDeepWith(
29
- customizer: CloneDeepWithCustomizer<TValue>
30
- ): any;
31
-
32
- /**
33
- * @see _.cloneDeepWith
34
- */
35
- cloneDeepWith(): TValue;
36
- }
37
-
38
- interface LoDashExplicitWrapper<TValue> {
39
- /**
40
- * @see _.cloneDeepWith
41
- */
42
- cloneDeepWith(
43
- customizer: CloneDeepWithCustomizer<TValue>
44
- ): LoDashExplicitWrapper<any>;
45
-
46
- /**
47
- * @see _.cloneDeepWith
48
- */
49
- cloneDeepWith(): this;
50
- }
51
- }
@@ -1,74 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
- type CloneWithCustomizer<TValue, TResult> = (value: TValue, key: number | string | undefined, object: any, stack: any) => TResult;
4
-
5
- interface LoDashStatic {
6
- /**
7
- * This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value.
8
- * If customizer returns undefined cloning is handled by the method instead.
9
- *
10
- * @param value The value to clone.
11
- * @param customizer The function to customize cloning.
12
- * @return Returns the cloned value.
13
- */
14
- cloneWith<T, TResult extends object | string | number | boolean | null>(
15
- value: T,
16
- customizer: CloneWithCustomizer<T, TResult>
17
- ): TResult;
18
-
19
- /**
20
- * @see _.cloneWith
21
- */
22
- cloneWith<T, TResult>(
23
- value: T,
24
- customizer: CloneWithCustomizer<T, TResult | undefined>
25
- ): TResult | T;
26
-
27
- /**
28
- * @see _.cloneWith
29
- */
30
- cloneWith<T>(value: T): T;
31
- }
32
-
33
- interface LoDashImplicitWrapper<TValue> {
34
- /**
35
- * @see _.cloneWith
36
- */
37
- cloneWith<TResult extends object | string | number | boolean | null>(
38
- customizer: CloneWithCustomizer<TValue, TResult>
39
- ): TResult;
40
-
41
- /**
42
- * @see _.cloneWith
43
- */
44
- cloneWith<TResult>(
45
- customizer: CloneWithCustomizer<TValue, TResult | undefined>
46
- ): TResult | TValue;
47
-
48
- /**
49
- * @see _.cloneWith
50
- */
51
- cloneWith(): TValue;
52
- }
53
-
54
- interface LoDashExplicitWrapper<TValue> {
55
- /**
56
- * @see _.cloneWith
57
- */
58
- cloneWith<TResult extends object | string | number | boolean | null>(
59
- customizer: CloneWithCustomizer<TValue, TResult>
60
- ): LoDashExplicitWrapper<TResult>;
61
-
62
- /**
63
- * @see _.cloneWith
64
- */
65
- cloneWith<TResult>(
66
- customizer: CloneWithCustomizer<TValue, TResult | undefined>
67
- ): LoDashExplicitWrapper<TResult | TValue>;
68
-
69
- /**
70
- * @see _.cloneWith
71
- */
72
- cloneWith(): this;
73
- }
74
- }
@@ -1,31 +0,0 @@
1
- import * as _ from "../index";
2
- declare module "../index" {
3
-
4
- interface LoDashStatic {
5
- /**
6
- * Checks if object conforms to source by invoking the predicate properties of source with the
7
- * corresponding property values of object.
8
- *
9
- * Note: This method is equivalent to _.conforms when source is partially applied.
10
- */
11
- conformsTo<T>(object: T, source: ConformsPredicateObject<T>): boolean;
12
- }
13
-
14
- interface LoDashImplicitWrapper<TValue> {
15
- /**
16
- * @see _.conformsTo
17
- */
18
- conformsTo<T>(this: LoDashImplicitWrapper<T>, source: ConformsPredicateObject<T>): boolean;
19
- // Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
20
- }
21
-
22
- interface LoDashExplicitWrapper<TValue> {
23
- /**
24
- * @see _.conformsTo
25
- */
26
- conformsTo<T>(this: LoDashImplicitWrapper<T>, source: ConformsPredicateObject<T>): LoDashExplicitWrapper<boolean>;
27
- // Note: we can't use TValue here, because it generates a typescript error when strictFunctionTypes is enabled.
28
- }
29
-
30
- type CondPair<T, R> = [(val: T) => boolean, (val: T) => R]
31
- }