@dxyl/utils 1.0.1 → 1.1.1

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 (872) hide show
  1. package/dist/index.es.js +13039 -0
  2. package/dist/index.umd.js +63 -0
  3. package/lib/glslang/glslang.d.ts +14 -0
  4. package/lib/glslang/glslang.js +113 -0
  5. package/lib/glslang/glslang.wasm +0 -0
  6. package/lib/twgsl/twgsl.js +53 -0
  7. package/lib/twgsl/twgsl.wasm +0 -0
  8. package/package.json +27 -31
  9. package/readme.md +0 -0
  10. package/types/Color.d.ts +69 -0
  11. package/types/Options.d.ts +70 -0
  12. package/types/antv-util/color/arr2rgb.d.ts +12 -0
  13. package/types/antv-util/color/gradient.d.ts +6 -0
  14. package/types/antv-util/color/index.d.ts +4 -0
  15. package/types/antv-util/color/rgb2arr.d.ts +6 -0
  16. package/types/antv-util/color/tocssgradient.d.ts +1 -0
  17. package/types/antv-util/color/torgb.d.ts +6 -0
  18. package/types/antv-util/helper/index.d.ts +2 -0
  19. package/types/antv-util/helper/mod.d.ts +1 -0
  20. package/types/antv-util/helper/to-radian.d.ts +1 -0
  21. package/types/antv-util/index.d.ts +3 -0
  22. package/types/antv-util/matrix/index.d.ts +27 -0
  23. package/types/antv-util/path/convert/path-2-absolute.d.ts +2 -0
  24. package/types/antv-util/path/convert/path-2-curve.d.ts +2 -0
  25. package/types/antv-util/path/convert/path-2-string.d.ts +6 -0
  26. package/types/antv-util/path/index.d.ts +17 -0
  27. package/types/antv-util/path/parser/finalize-segment.d.ts +5 -0
  28. package/types/antv-util/path/parser/is-arc-command.d.ts +4 -0
  29. package/types/antv-util/path/parser/is-digit-start.d.ts +6 -0
  30. package/types/antv-util/path/parser/is-path-command.d.ts +4 -0
  31. package/types/antv-util/path/parser/is-space.d.ts +4 -0
  32. package/types/antv-util/path/parser/params-count.d.ts +13 -0
  33. package/types/antv-util/path/parser/params-parser.d.ts +10 -0
  34. package/types/antv-util/path/parser/parse-path-string.d.ts +6 -0
  35. package/types/antv-util/path/parser/path-parser.d.ts +16 -0
  36. package/types/antv-util/path/parser/scan-flag.d.ts +6 -0
  37. package/types/antv-util/path/parser/scan-param.d.ts +6 -0
  38. package/types/antv-util/path/parser/scan-segment.d.ts +6 -0
  39. package/types/antv-util/path/parser/skip-spaces.d.ts +7 -0
  40. package/types/antv-util/path/process/arc-2-cubic.d.ts +7 -0
  41. package/types/antv-util/path/process/clone-path.d.ts +2 -0
  42. package/types/antv-util/path/process/fix-arc.d.ts +2 -0
  43. package/types/antv-util/path/process/line-2-cubic.d.ts +1 -0
  44. package/types/antv-util/path/process/normalize-path.d.ts +8 -0
  45. package/types/antv-util/path/process/normalize-segment.d.ts +6 -0
  46. package/types/antv-util/path/process/quad-2-cubic.d.ts +1 -0
  47. package/types/antv-util/path/process/reverse-curve.d.ts +2 -0
  48. package/types/antv-util/path/process/round-path.d.ts +6 -0
  49. package/types/antv-util/path/process/segment-2-cubic.d.ts +2 -0
  50. package/types/antv-util/path/types.d.ts +122 -0
  51. package/types/antv-util/path/util/distance-square-root.d.ts +1 -0
  52. package/types/antv-util/path/util/equalize-segments.d.ts +2 -0
  53. package/types/antv-util/path/util/get-draw-direction.d.ts +2 -0
  54. package/types/antv-util/path/util/get-path-area.d.ts +8 -0
  55. package/types/antv-util/path/util/get-path-bbox-total-length.d.ts +5 -0
  56. package/types/antv-util/path/util/get-path-bbox.d.ts +5 -0
  57. package/types/antv-util/path/util/get-point-at-length.d.ts +5 -0
  58. package/types/antv-util/path/util/get-properties-at-length.d.ts +6 -0
  59. package/types/antv-util/path/util/get-properties-at-point.d.ts +7 -0
  60. package/types/antv-util/path/util/get-rotated-curve.d.ts +2 -0
  61. package/types/antv-util/path/util/get-total-length.d.ts +8 -0
  62. package/types/antv-util/path/util/is-absolute-array.d.ts +6 -0
  63. package/types/antv-util/path/util/is-curve-array.d.ts +9 -0
  64. package/types/antv-util/path/util/is-normalized-array.d.ts +7 -0
  65. package/types/antv-util/path/util/is-path-array.d.ts +5 -0
  66. package/types/antv-util/path/util/is-point-in-stroke.d.ts +5 -0
  67. package/types/antv-util/path/util/mid-point.d.ts +1 -0
  68. package/types/antv-util/path/util/path-length-factory.d.ts +7 -0
  69. package/types/antv-util/path/util/rotate-vector.d.ts +4 -0
  70. package/types/antv-util/path/util/segment-arc-factory.d.ts +6 -0
  71. package/types/antv-util/path/util/segment-cubic-factory.d.ts +6 -0
  72. package/types/antv-util/path/util/segment-line-factory.d.ts +6 -0
  73. package/types/antv-util/path/util/segment-quad-factory.d.ts +6 -0
  74. package/types/callbacks.d.ts +30 -0
  75. package/types/color/colord/src/colorModels/cmyk.d.ts +23 -0
  76. package/types/color/colord/src/colorModels/cmykString.d.ts +7 -0
  77. package/types/color/colord/src/colorModels/hex.d.ts +5 -0
  78. package/types/color/colord/src/colorModels/hsl.d.ts +8 -0
  79. package/types/color/colord/src/colorModels/hslString.d.ts +7 -0
  80. package/types/color/colord/src/colorModels/hsv.d.ts +6 -0
  81. package/types/color/colord/src/colorModels/hwb.d.ts +6 -0
  82. package/types/color/colord/src/colorModels/hwbString.d.ts +7 -0
  83. package/types/color/colord/src/colorModels/lab.d.ts +18 -0
  84. package/types/color/colord/src/colorModels/lch.d.ts +19 -0
  85. package/types/color/colord/src/colorModels/lchString.d.ts +7 -0
  86. package/types/color/colord/src/colorModels/rgb.d.ts +13 -0
  87. package/types/color/colord/src/colorModels/rgbString.d.ts +7 -0
  88. package/types/color/colord/src/colorModels/xyz.d.ts +30 -0
  89. package/types/color/colord/src/colord.d.ts +103 -0
  90. package/types/color/colord/src/constants.d.ts +10 -0
  91. package/types/color/colord/src/extend.d.ts +4 -0
  92. package/types/color/colord/src/get/getBrightness.d.ts +7 -0
  93. package/types/color/colord/src/get/getContrast.d.ts +6 -0
  94. package/types/color/colord/src/get/getLuminance.d.ts +6 -0
  95. package/types/color/colord/src/get/getPerceivedDifference.d.ts +24 -0
  96. package/types/color/colord/src/helpers.d.ts +20 -0
  97. package/types/color/colord/src/index.d.ts +5 -0
  98. package/types/color/colord/src/manipulate/changeAlpha.d.ts +2 -0
  99. package/types/color/colord/src/manipulate/invert.d.ts +2 -0
  100. package/types/color/colord/src/manipulate/lighten.d.ts +2 -0
  101. package/types/color/colord/src/manipulate/mix.d.ts +2 -0
  102. package/types/color/colord/src/manipulate/saturate.d.ts +2 -0
  103. package/types/color/colord/src/parse.d.ts +8 -0
  104. package/types/color/colord/src/plugins/a11y.d.ts +38 -0
  105. package/types/color/colord/src/plugins/cmyk.d.ts +24 -0
  106. package/types/color/colord/src/plugins/harmonies.d.ts +16 -0
  107. package/types/color/colord/src/plugins/hwb.d.ts +23 -0
  108. package/types/color/colord/src/plugins/lab.d.ts +23 -0
  109. package/types/color/colord/src/plugins/lch.d.ts +24 -0
  110. package/types/color/colord/src/plugins/minify.d.ts +20 -0
  111. package/types/color/colord/src/plugins/mix.d.ts +27 -0
  112. package/types/color/colord/src/plugins/names.d.ts +19 -0
  113. package/types/color/colord/src/plugins/xyz.d.ts +14 -0
  114. package/types/color/colord/src/random.d.ts +2 -0
  115. package/types/color/colord/src/types.d.ts +67 -0
  116. package/types/data/immer.d.ts +262 -0
  117. package/types/data/immutable.d.ts +5127 -0
  118. package/types/data/mobx.d.ts +154 -0
  119. package/types/data/reactivity.d.ts +755 -0
  120. package/types/data/signals.d.ts +144 -0
  121. package/types/deepmerge.d.ts +16 -0
  122. package/types/events/eventTarget.d.ts +93 -0
  123. package/types/events/event_emiter.d.ts +43 -0
  124. package/types/events/eventemitter3.d.ts +135 -0
  125. package/types/events/mitt.d.ts +21 -0
  126. package/types/fast-deep-equal.d.ts +1 -0
  127. package/types/index.d.ts +20 -0
  128. package/types/ismobilejs.d.ts +46 -0
  129. package/types/lodash/_DataView.d.ts +2 -0
  130. package/types/lodash/_Hash.d.ts +29 -0
  131. package/types/lodash/_LazyWrapper.d.ts +26 -0
  132. package/types/lodash/_ListCache.d.ts +29 -0
  133. package/types/lodash/_LodashWrapper.d.ts +24 -0
  134. package/types/lodash/_Map.d.ts +2 -0
  135. package/types/lodash/_MapCache.d.ts +29 -0
  136. package/types/lodash/_Promise.d.ts +2 -0
  137. package/types/lodash/_Set.d.ts +2 -0
  138. package/types/lodash/_SetCache.d.ts +28 -0
  139. package/types/lodash/_Stack.d.ts +32 -0
  140. package/types/lodash/_Symbol.d.ts +3 -0
  141. package/types/lodash/_Uint8Array.d.ts +3 -0
  142. package/types/lodash/_WeakMap.d.ts +2 -0
  143. package/types/lodash/_addMapEntry.d.ts +10 -0
  144. package/types/lodash/_addSetEntry.d.ts +10 -0
  145. package/types/lodash/_apply.d.ts +12 -0
  146. package/types/lodash/_arrayAggregator.d.ts +12 -0
  147. package/types/lodash/_arrayEach.d.ts +11 -0
  148. package/types/lodash/_arrayEachRight.d.ts +11 -0
  149. package/types/lodash/_arrayEvery.d.ts +12 -0
  150. package/types/lodash/_arrayFilter.d.ts +11 -0
  151. package/types/lodash/_arrayIncludes.d.ts +11 -0
  152. package/types/lodash/_arrayIncludesWith.d.ts +11 -0
  153. package/types/lodash/_arrayLikeKeys.d.ts +10 -0
  154. package/types/lodash/_arrayMap.d.ts +11 -0
  155. package/types/lodash/_arrayPush.d.ts +10 -0
  156. package/types/lodash/_arrayReduce.d.ts +14 -0
  157. package/types/lodash/_arrayReduceRight.d.ts +14 -0
  158. package/types/lodash/_arraySample.d.ts +9 -0
  159. package/types/lodash/_arraySampleSize.d.ts +10 -0
  160. package/types/lodash/_arrayShuffle.d.ts +9 -0
  161. package/types/lodash/_arraySome.d.ts +12 -0
  162. package/types/lodash/_asciiSize.d.ts +9 -0
  163. package/types/lodash/_asciiToArray.d.ts +9 -0
  164. package/types/lodash/_asciiWords.d.ts +9 -0
  165. package/types/lodash/_assignMergeValue.d.ts +11 -0
  166. package/types/lodash/_assignValue.d.ts +12 -0
  167. package/types/lodash/_assocIndexOf.d.ts +10 -0
  168. package/types/lodash/_baseAggregator.d.ts +13 -0
  169. package/types/lodash/_baseAssign.d.ts +11 -0
  170. package/types/lodash/_baseAssignIn.d.ts +11 -0
  171. package/types/lodash/_baseAssignValue.d.ts +11 -0
  172. package/types/lodash/_baseAt.d.ts +10 -0
  173. package/types/lodash/_baseClamp.d.ts +11 -0
  174. package/types/lodash/_baseClone.d.ts +18 -0
  175. package/types/lodash/_baseConforms.d.ts +9 -0
  176. package/types/lodash/_baseConformsTo.d.ts +10 -0
  177. package/types/lodash/_baseCreate.d.ts +2 -0
  178. package/types/lodash/_baseDelay.d.ts +12 -0
  179. package/types/lodash/_baseDifference.d.ts +13 -0
  180. package/types/lodash/_baseEach.d.ts +10 -0
  181. package/types/lodash/_baseEachRight.d.ts +10 -0
  182. package/types/lodash/_baseEvery.d.ts +11 -0
  183. package/types/lodash/_baseExtremum.d.ts +12 -0
  184. package/types/lodash/_baseFill.d.ts +12 -0
  185. package/types/lodash/_baseFilter.d.ts +10 -0
  186. package/types/lodash/_baseFindIndex.d.ts +13 -0
  187. package/types/lodash/_baseFindKey.d.ts +13 -0
  188. package/types/lodash/_baseFlatten.d.ts +13 -0
  189. package/types/lodash/_baseFor.d.ts +13 -0
  190. package/types/lodash/_baseForOwn.d.ts +10 -0
  191. package/types/lodash/_baseForOwnRight.d.ts +10 -0
  192. package/types/lodash/_baseForRight.d.ts +12 -0
  193. package/types/lodash/_baseFunctions.d.ts +11 -0
  194. package/types/lodash/_baseGet.d.ts +10 -0
  195. package/types/lodash/_baseGetAllKeys.d.ts +13 -0
  196. package/types/lodash/_baseGetTag.d.ts +9 -0
  197. package/types/lodash/_baseGt.d.ts +11 -0
  198. package/types/lodash/_baseHas.d.ts +10 -0
  199. package/types/lodash/_baseHasIn.d.ts +10 -0
  200. package/types/lodash/_baseInRange.d.ts +11 -0
  201. package/types/lodash/_baseIndexOf.d.ts +11 -0
  202. package/types/lodash/_baseIndexOfWith.d.ts +12 -0
  203. package/types/lodash/_baseIntersection.d.ts +12 -0
  204. package/types/lodash/_baseInverter.d.ts +13 -0
  205. package/types/lodash/_baseInvoke.d.ts +12 -0
  206. package/types/lodash/_baseIsArguments.d.ts +9 -0
  207. package/types/lodash/_baseIsArrayBuffer.d.ts +9 -0
  208. package/types/lodash/_baseIsDate.d.ts +9 -0
  209. package/types/lodash/_baseIsEqual.d.ts +16 -0
  210. package/types/lodash/_baseIsEqualDeep.d.ts +16 -0
  211. package/types/lodash/_baseIsMap.d.ts +9 -0
  212. package/types/lodash/_baseIsMatch.d.ts +12 -0
  213. package/types/lodash/_baseIsNaN.d.ts +9 -0
  214. package/types/lodash/_baseIsNative.d.ts +10 -0
  215. package/types/lodash/_baseIsRegExp.d.ts +9 -0
  216. package/types/lodash/_baseIsSet.d.ts +9 -0
  217. package/types/lodash/_baseIsTypedArray.d.ts +9 -0
  218. package/types/lodash/_baseIteratee.d.ts +9 -0
  219. package/types/lodash/_baseKeys.d.ts +9 -0
  220. package/types/lodash/_baseKeysIn.d.ts +9 -0
  221. package/types/lodash/_baseLodash.d.ts +7 -0
  222. package/types/lodash/_baseLt.d.ts +11 -0
  223. package/types/lodash/_baseMap.d.ts +10 -0
  224. package/types/lodash/_baseMatches.d.ts +9 -0
  225. package/types/lodash/_baseMatchesProperty.d.ts +10 -0
  226. package/types/lodash/_baseMean.d.ts +11 -0
  227. package/types/lodash/_baseMerge.d.ts +13 -0
  228. package/types/lodash/_baseMergeDeep.d.ts +17 -0
  229. package/types/lodash/_baseNth.d.ts +10 -0
  230. package/types/lodash/_baseOrderBy.d.ts +11 -0
  231. package/types/lodash/_basePick.d.ts +11 -0
  232. package/types/lodash/_basePickBy.d.ts +11 -0
  233. package/types/lodash/_baseProperty.d.ts +9 -0
  234. package/types/lodash/_basePropertyDeep.d.ts +9 -0
  235. package/types/lodash/_basePropertyOf.d.ts +9 -0
  236. package/types/lodash/_basePullAll.d.ts +13 -0
  237. package/types/lodash/_basePullAt.d.ts +11 -0
  238. package/types/lodash/_baseRandom.d.ts +11 -0
  239. package/types/lodash/_baseRange.d.ts +13 -0
  240. package/types/lodash/_baseReduce.d.ts +15 -0
  241. package/types/lodash/_baseRepeat.d.ts +10 -0
  242. package/types/lodash/_baseRest.d.ts +10 -0
  243. package/types/lodash/_baseSample.d.ts +9 -0
  244. package/types/lodash/_baseSampleSize.d.ts +10 -0
  245. package/types/lodash/_baseSet.d.ts +12 -0
  246. package/types/lodash/_baseSetData.d.ts +10 -0
  247. package/types/lodash/_baseSetToString.d.ts +10 -0
  248. package/types/lodash/_baseShuffle.d.ts +9 -0
  249. package/types/lodash/_baseSlice.d.ts +11 -0
  250. package/types/lodash/_baseSome.d.ts +11 -0
  251. package/types/lodash/_baseSortBy.d.ts +12 -0
  252. package/types/lodash/_baseSortedIndex.d.ts +14 -0
  253. package/types/lodash/_baseSortedIndexBy.d.ts +15 -0
  254. package/types/lodash/_baseSortedUniq.d.ts +11 -0
  255. package/types/lodash/_baseSum.d.ts +11 -0
  256. package/types/lodash/_baseTimes.d.ts +11 -0
  257. package/types/lodash/_baseToNumber.d.ts +10 -0
  258. package/types/lodash/_baseToPairs.d.ts +11 -0
  259. package/types/lodash/_baseToString.d.ts +10 -0
  260. package/types/lodash/_baseTrim.d.ts +9 -0
  261. package/types/lodash/_baseUnary.d.ts +9 -0
  262. package/types/lodash/_baseUniq.d.ts +11 -0
  263. package/types/lodash/_baseUnset.d.ts +10 -0
  264. package/types/lodash/_baseUpdate.d.ts +12 -0
  265. package/types/lodash/_baseValues.d.ts +12 -0
  266. package/types/lodash/_baseWhile.d.ts +13 -0
  267. package/types/lodash/_baseWrapperValue.d.ts +12 -0
  268. package/types/lodash/_baseXor.d.ts +12 -0
  269. package/types/lodash/_baseZipObject.d.ts +11 -0
  270. package/types/lodash/_cacheHas.d.ts +10 -0
  271. package/types/lodash/_castArrayLikeObject.d.ts +9 -0
  272. package/types/lodash/_castFunction.d.ts +9 -0
  273. package/types/lodash/_castPath.d.ts +10 -0
  274. package/types/lodash/_castRest.d.ts +11 -0
  275. package/types/lodash/_castSlice.d.ts +11 -0
  276. package/types/lodash/_charsEndIndex.d.ts +11 -0
  277. package/types/lodash/_charsStartIndex.d.ts +11 -0
  278. package/types/lodash/_cloneArrayBuffer.d.ts +9 -0
  279. package/types/lodash/_cloneBuffer.d.ts +10 -0
  280. package/types/lodash/_cloneDataView.d.ts +10 -0
  281. package/types/lodash/_cloneMap.d.ts +11 -0
  282. package/types/lodash/_cloneRegExp.d.ts +9 -0
  283. package/types/lodash/_cloneSet.d.ts +11 -0
  284. package/types/lodash/_cloneSymbol.d.ts +9 -0
  285. package/types/lodash/_cloneTypedArray.d.ts +10 -0
  286. package/types/lodash/_compareAscending.d.ts +10 -0
  287. package/types/lodash/_compareMultiple.d.ts +16 -0
  288. package/types/lodash/_composeArgs.d.ts +13 -0
  289. package/types/lodash/_composeArgsRight.d.ts +13 -0
  290. package/types/lodash/_copyArray.d.ts +10 -0
  291. package/types/lodash/_copyObject.d.ts +12 -0
  292. package/types/lodash/_copySymbols.d.ts +10 -0
  293. package/types/lodash/_copySymbolsIn.d.ts +10 -0
  294. package/types/lodash/_coreJsData.d.ts +3 -0
  295. package/types/lodash/_countHolders.d.ts +10 -0
  296. package/types/lodash/_createAggregator.d.ts +10 -0
  297. package/types/lodash/_createAssigner.d.ts +9 -0
  298. package/types/lodash/_createBaseEach.d.ts +10 -0
  299. package/types/lodash/_createBaseFor.d.ts +9 -0
  300. package/types/lodash/_createBind.d.ts +12 -0
  301. package/types/lodash/_createCaseFirst.d.ts +9 -0
  302. package/types/lodash/_createCompounder.d.ts +9 -0
  303. package/types/lodash/_createCtor.d.ts +10 -0
  304. package/types/lodash/_createCurry.d.ts +11 -0
  305. package/types/lodash/_createFind.d.ts +9 -0
  306. package/types/lodash/_createFlow.d.ts +9 -0
  307. package/types/lodash/_createHybrid.d.ts +21 -0
  308. package/types/lodash/_createInverter.d.ts +10 -0
  309. package/types/lodash/_createMathOperation.d.ts +10 -0
  310. package/types/lodash/_createOver.d.ts +9 -0
  311. package/types/lodash/_createPadding.d.ts +11 -0
  312. package/types/lodash/_createPartial.d.ts +14 -0
  313. package/types/lodash/_createRange.d.ts +9 -0
  314. package/types/lodash/_createRecurry.d.ts +19 -0
  315. package/types/lodash/_createRelationalOperation.d.ts +9 -0
  316. package/types/lodash/_createRound.d.ts +9 -0
  317. package/types/lodash/_createSet.d.ts +9 -0
  318. package/types/lodash/_createToPairs.d.ts +9 -0
  319. package/types/lodash/_createWrap.d.ts +27 -0
  320. package/types/lodash/_customDefaultsAssignIn.d.ts +14 -0
  321. package/types/lodash/_customDefaultsMerge.d.ts +16 -0
  322. package/types/lodash/_customOmitClone.d.ts +11 -0
  323. package/types/lodash/_deburrLetter.d.ts +10 -0
  324. package/types/lodash/_defineProperty.d.ts +2 -0
  325. package/types/lodash/_equalArrays.d.ts +15 -0
  326. package/types/lodash/_equalByTag.d.ts +19 -0
  327. package/types/lodash/_equalObjects.d.ts +15 -0
  328. package/types/lodash/_escapeHtmlChar.d.ts +9 -0
  329. package/types/lodash/_escapeStringChar.d.ts +9 -0
  330. package/types/lodash/_flatRest.d.ts +9 -0
  331. package/types/lodash/_freeGlobal.d.ts +3 -0
  332. package/types/lodash/_getAllKeys.d.ts +9 -0
  333. package/types/lodash/_getAllKeysIn.d.ts +10 -0
  334. package/types/lodash/_getData.d.ts +9 -0
  335. package/types/lodash/_getFuncName.d.ts +9 -0
  336. package/types/lodash/_getHolder.d.ts +9 -0
  337. package/types/lodash/_getMapData.d.ts +10 -0
  338. package/types/lodash/_getMatchData.d.ts +9 -0
  339. package/types/lodash/_getNative.d.ts +10 -0
  340. package/types/lodash/_getPrototype.d.ts +3 -0
  341. package/types/lodash/_getRawTag.d.ts +9 -0
  342. package/types/lodash/_getSymbols.d.ts +9 -0
  343. package/types/lodash/_getSymbolsIn.d.ts +9 -0
  344. package/types/lodash/_getTag.d.ts +10 -0
  345. package/types/lodash/_getValue.d.ts +10 -0
  346. package/types/lodash/_getView.d.ts +12 -0
  347. package/types/lodash/_getWrapDetails.d.ts +9 -0
  348. package/types/lodash/_hasPath.d.ts +11 -0
  349. package/types/lodash/_hasUnicode.d.ts +9 -0
  350. package/types/lodash/_hasUnicodeWord.d.ts +9 -0
  351. package/types/lodash/_hashClear.d.ts +13 -0
  352. package/types/lodash/_hashDelete.d.ts +12 -0
  353. package/types/lodash/_hashGet.d.ts +11 -0
  354. package/types/lodash/_hashHas.d.ts +11 -0
  355. package/types/lodash/_hashSet.d.ts +12 -0
  356. package/types/lodash/_initCloneArray.d.ts +9 -0
  357. package/types/lodash/_initCloneByTag.d.ts +14 -0
  358. package/types/lodash/_initCloneObject.d.ts +9 -0
  359. package/types/lodash/_insertWrapDetails.d.ts +10 -0
  360. package/types/lodash/_isFlattenable.d.ts +9 -0
  361. package/types/lodash/_isIndex.d.ts +10 -0
  362. package/types/lodash/_isIterateeCall.d.ts +12 -0
  363. package/types/lodash/_isKey.d.ts +10 -0
  364. package/types/lodash/_isKeyable.d.ts +9 -0
  365. package/types/lodash/_isLaziable.d.ts +10 -0
  366. package/types/lodash/_isMaskable.d.ts +9 -0
  367. package/types/lodash/_isMasked.d.ts +9 -0
  368. package/types/lodash/_isPrototype.d.ts +9 -0
  369. package/types/lodash/_isStrictComparable.d.ts +10 -0
  370. package/types/lodash/_iteratorToArray.d.ts +9 -0
  371. package/types/lodash/_lazyClone.d.ts +10 -0
  372. package/types/lodash/_lazyReverse.d.ts +10 -0
  373. package/types/lodash/_lazyValue.d.ts +10 -0
  374. package/types/lodash/_listCacheClear.d.ts +13 -0
  375. package/types/lodash/_listCacheDelete.d.ts +11 -0
  376. package/types/lodash/_listCacheGet.d.ts +11 -0
  377. package/types/lodash/_listCacheHas.d.ts +11 -0
  378. package/types/lodash/_listCacheSet.d.ts +12 -0
  379. package/types/lodash/_mapCacheClear.d.ts +18 -0
  380. package/types/lodash/_mapCacheDelete.d.ts +11 -0
  381. package/types/lodash/_mapCacheGet.d.ts +11 -0
  382. package/types/lodash/_mapCacheHas.d.ts +11 -0
  383. package/types/lodash/_mapCacheSet.d.ts +12 -0
  384. package/types/lodash/_mapToArray.d.ts +9 -0
  385. package/types/lodash/_matchesStrictComparable.d.ts +11 -0
  386. package/types/lodash/_memoizeCapped.d.ts +10 -0
  387. package/types/lodash/_mergeData.d.ts +18 -0
  388. package/types/lodash/_metaMap.d.ts +3 -0
  389. package/types/lodash/_nativeCreate.d.ts +2 -0
  390. package/types/lodash/_nativeKeys.d.ts +2 -0
  391. package/types/lodash/_nativeKeysIn.d.ts +11 -0
  392. package/types/lodash/_nodeUtil.d.ts +3 -0
  393. package/types/lodash/_objectToString.d.ts +9 -0
  394. package/types/lodash/_overArg.d.ts +10 -0
  395. package/types/lodash/_overRest.d.ts +11 -0
  396. package/types/lodash/_parent.d.ts +10 -0
  397. package/types/lodash/_reEscape.d.ts +3 -0
  398. package/types/lodash/_reEvaluate.d.ts +3 -0
  399. package/types/lodash/_reInterpolate.d.ts +3 -0
  400. package/types/lodash/_realNames.d.ts +3 -0
  401. package/types/lodash/_reorder.d.ts +12 -0
  402. package/types/lodash/_replaceHolders.d.ts +11 -0
  403. package/types/lodash/_root.d.ts +3 -0
  404. package/types/lodash/_safeGet.d.ts +10 -0
  405. package/types/lodash/_setCacheAdd.d.ts +12 -0
  406. package/types/lodash/_setCacheHas.d.ts +11 -0
  407. package/types/lodash/_setData.d.ts +16 -0
  408. package/types/lodash/_setToArray.d.ts +9 -0
  409. package/types/lodash/_setToPairs.d.ts +9 -0
  410. package/types/lodash/_setToString.d.ts +10 -0
  411. package/types/lodash/_setWrapToString.d.ts +12 -0
  412. package/types/lodash/_shortOut.d.ts +11 -0
  413. package/types/lodash/_shuffleSelf.d.ts +10 -0
  414. package/types/lodash/_stackClear.d.ts +14 -0
  415. package/types/lodash/_stackDelete.d.ts +24 -0
  416. package/types/lodash/_stackGet.d.ts +11 -0
  417. package/types/lodash/_stackHas.d.ts +11 -0
  418. package/types/lodash/_stackSet.d.ts +28 -0
  419. package/types/lodash/_strictIndexOf.d.ts +12 -0
  420. package/types/lodash/_strictLastIndexOf.d.ts +12 -0
  421. package/types/lodash/_stringSize.d.ts +9 -0
  422. package/types/lodash/_stringToArray.d.ts +9 -0
  423. package/types/lodash/_stringToPath.d.ts +9 -0
  424. package/types/lodash/_toKey.d.ts +9 -0
  425. package/types/lodash/_toSource.d.ts +9 -0
  426. package/types/lodash/_trimmedEndIndex.d.ts +10 -0
  427. package/types/lodash/_unescapeHtmlChar.d.ts +9 -0
  428. package/types/lodash/_unicodeSize.d.ts +9 -0
  429. package/types/lodash/_unicodeToArray.d.ts +9 -0
  430. package/types/lodash/_unicodeWords.d.ts +9 -0
  431. package/types/lodash/_updateWrapDetails.d.ts +10 -0
  432. package/types/lodash/_wrapperClone.d.ts +9 -0
  433. package/types/lodash/add.d.ts +2 -0
  434. package/types/lodash/after.d.ts +2 -0
  435. package/types/lodash/array.d.ts +66 -0
  436. package/types/lodash/array.default.d.ts +133 -0
  437. package/types/lodash/ary.d.ts +2 -0
  438. package/types/lodash/assign.d.ts +2 -0
  439. package/types/lodash/assignIn.d.ts +2 -0
  440. package/types/lodash/assignInWith.d.ts +2 -0
  441. package/types/lodash/assignWith.d.ts +2 -0
  442. package/types/lodash/at.d.ts +2 -0
  443. package/types/lodash/attempt.d.ts +2 -0
  444. package/types/lodash/augment.d.ts +2 -0
  445. package/types/lodash/before.d.ts +2 -0
  446. package/types/lodash/bind.d.ts +2 -0
  447. package/types/lodash/bindAll.d.ts +2 -0
  448. package/types/lodash/bindKey.d.ts +2 -0
  449. package/types/lodash/cache.d.ts +14 -0
  450. package/types/lodash/camelCase.d.ts +2 -0
  451. package/types/lodash/capitalize.d.ts +2 -0
  452. package/types/lodash/castArray.d.ts +2 -0
  453. package/types/lodash/ceil.d.ts +2 -0
  454. package/types/lodash/chain.d.ts +2 -0
  455. package/types/lodash/chunk.d.ts +2 -0
  456. package/types/lodash/clamp.d.ts +2 -0
  457. package/types/lodash/clear-animation-frame.d.ts +1 -0
  458. package/types/lodash/clone.d.ts +2 -0
  459. package/types/lodash/cloneDeep.d.ts +2 -0
  460. package/types/lodash/cloneDeepWith.d.ts +2 -0
  461. package/types/lodash/cloneWith.d.ts +2 -0
  462. package/types/lodash/collection.d.ts +29 -0
  463. package/types/lodash/collection.default.d.ts +59 -0
  464. package/types/lodash/commit.d.ts +28 -0
  465. package/types/lodash/compact.d.ts +2 -0
  466. package/types/lodash/concat.d.ts +2 -0
  467. package/types/lodash/cond.d.ts +2 -0
  468. package/types/lodash/conforms.d.ts +2 -0
  469. package/types/lodash/conformsTo.d.ts +2 -0
  470. package/types/lodash/constant.d.ts +2 -0
  471. package/types/lodash/contains.d.ts +2 -0
  472. package/types/lodash/countBy.d.ts +2 -0
  473. package/types/lodash/create.d.ts +2 -0
  474. package/types/lodash/curry.d.ts +2 -0
  475. package/types/lodash/curryRight.d.ts +2 -0
  476. package/types/lodash/date.d.ts +2 -0
  477. package/types/lodash/date.default.d.ts +5 -0
  478. package/types/lodash/debounce.d.ts +3 -0
  479. package/types/lodash/deburr.d.ts +2 -0
  480. package/types/lodash/deep-mix.d.ts +2 -0
  481. package/types/lodash/defaultTo.d.ts +2 -0
  482. package/types/lodash/defaults.d.ts +2 -0
  483. package/types/lodash/defaultsDeep.d.ts +2 -0
  484. package/types/lodash/defer.d.ts +2 -0
  485. package/types/lodash/delay.d.ts +2 -0
  486. package/types/lodash/difference.d.ts +2 -0
  487. package/types/lodash/differenceBy.d.ts +2 -0
  488. package/types/lodash/differenceWith.d.ts +2 -0
  489. package/types/lodash/divide.d.ts +2 -0
  490. package/types/lodash/drop.d.ts +2 -0
  491. package/types/lodash/dropRight.d.ts +2 -0
  492. package/types/lodash/dropRightWhile.d.ts +2 -0
  493. package/types/lodash/dropWhile.d.ts +2 -0
  494. package/types/lodash/each.d.ts +2 -0
  495. package/types/lodash/eachRight.d.ts +2 -0
  496. package/types/lodash/ends-with.d.ts +3 -0
  497. package/types/lodash/endsWith.d.ts +2 -0
  498. package/types/lodash/entries.d.ts +2 -0
  499. package/types/lodash/entriesIn.d.ts +2 -0
  500. package/types/lodash/eq.d.ts +2 -0
  501. package/types/lodash/escape.d.ts +2 -0
  502. package/types/lodash/escapeRegExp.d.ts +2 -0
  503. package/types/lodash/every.d.ts +2 -0
  504. package/types/lodash/extend.d.ts +2 -0
  505. package/types/lodash/extendWith.d.ts +2 -0
  506. package/types/lodash/fill.d.ts +2 -0
  507. package/types/lodash/filter.d.ts +2 -0
  508. package/types/lodash/find-index.d.ts +2 -0
  509. package/types/lodash/find.d.ts +2 -0
  510. package/types/lodash/findIndex.d.ts +2 -0
  511. package/types/lodash/findKey.d.ts +2 -0
  512. package/types/lodash/findLast.d.ts +2 -0
  513. package/types/lodash/findLastIndex.d.ts +2 -0
  514. package/types/lodash/findLastKey.d.ts +2 -0
  515. package/types/lodash/first-value.d.ts +2 -0
  516. package/types/lodash/first.d.ts +2 -0
  517. package/types/lodash/fixed-base.d.ts +2 -0
  518. package/types/lodash/flatMap.d.ts +2 -0
  519. package/types/lodash/flatMapDeep.d.ts +2 -0
  520. package/types/lodash/flatMapDepth.d.ts +2 -0
  521. package/types/lodash/flatten-deep.d.ts +12 -0
  522. package/types/lodash/flatten.d.ts +2 -0
  523. package/types/lodash/flattenDeep.d.ts +2 -0
  524. package/types/lodash/flattenDepth.d.ts +2 -0
  525. package/types/lodash/flip.d.ts +2 -0
  526. package/types/lodash/floor.d.ts +2 -0
  527. package/types/lodash/flow.d.ts +2 -0
  528. package/types/lodash/flowRight.d.ts +2 -0
  529. package/types/lodash/for-in.d.ts +2 -0
  530. package/types/lodash/forEach.d.ts +2 -0
  531. package/types/lodash/forEachRight.d.ts +2 -0
  532. package/types/lodash/forIn.d.ts +2 -0
  533. package/types/lodash/forInRight.d.ts +2 -0
  534. package/types/lodash/forOwn.d.ts +2 -0
  535. package/types/lodash/forOwnRight.d.ts +2 -0
  536. package/types/lodash/fromPairs.d.ts +2 -0
  537. package/types/lodash/function.d.ts +24 -0
  538. package/types/lodash/function.default.d.ts +49 -0
  539. package/types/lodash/functions.d.ts +2 -0
  540. package/types/lodash/functionsIn.d.ts +2 -0
  541. package/types/lodash/get-range.d.ts +6 -0
  542. package/types/lodash/get-type.d.ts +2 -0
  543. package/types/lodash/get-wrap-behavior.d.ts +9 -0
  544. package/types/lodash/get.d.ts +2 -0
  545. package/types/lodash/group-by.d.ts +6 -0
  546. package/types/lodash/group-to-map.d.ts +8 -0
  547. package/types/lodash/group.d.ts +2 -0
  548. package/types/lodash/groupBy.d.ts +2 -0
  549. package/types/lodash/gt.d.ts +2 -0
  550. package/types/lodash/gte.d.ts +2 -0
  551. package/types/lodash/has-key.d.ts +2 -0
  552. package/types/lodash/has-value.d.ts +2 -0
  553. package/types/lodash/has.d.ts +2 -0
  554. package/types/lodash/hasIn.d.ts +2 -0
  555. package/types/lodash/head.d.ts +2 -0
  556. package/types/lodash/identity.d.ts +2 -0
  557. package/types/lodash/inRange.d.ts +2 -0
  558. package/types/lodash/includes.d.ts +2 -0
  559. package/types/lodash/index-of.d.ts +2 -0
  560. package/types/lodash/index.d.ts +304 -0
  561. package/types/lodash/indexOf.d.ts +2 -0
  562. package/types/lodash/initial.d.ts +2 -0
  563. package/types/lodash/intersection.d.ts +2 -0
  564. package/types/lodash/intersectionBy.d.ts +2 -0
  565. package/types/lodash/intersectionWith.d.ts +2 -0
  566. package/types/lodash/invert.d.ts +2 -0
  567. package/types/lodash/invertBy.d.ts +2 -0
  568. package/types/lodash/invoke.d.ts +2 -0
  569. package/types/lodash/invokeMap.d.ts +2 -0
  570. package/types/lodash/is-arguments.d.ts +2 -0
  571. package/types/lodash/is-array-like.d.ts +2 -0
  572. package/types/lodash/is-array.d.ts +2 -0
  573. package/types/lodash/is-boolean.d.ts +2 -0
  574. package/types/lodash/is-date.d.ts +2 -0
  575. package/types/lodash/is-decimal.d.ts +2 -0
  576. package/types/lodash/is-element.d.ts +6 -0
  577. package/types/lodash/is-empty.d.ts +2 -0
  578. package/types/lodash/is-equal-with.d.ts +24 -0
  579. package/types/lodash/is-equal.d.ts +2 -0
  580. package/types/lodash/is-error.d.ts +2 -0
  581. package/types/lodash/is-even.d.ts +2 -0
  582. package/types/lodash/is-finite.d.ts +1 -0
  583. package/types/lodash/is-function.d.ts +2 -0
  584. package/types/lodash/is-integer.d.ts +2 -0
  585. package/types/lodash/is-match.d.ts +2 -0
  586. package/types/lodash/is-negative.d.ts +2 -0
  587. package/types/lodash/is-nil.d.ts +2 -0
  588. package/types/lodash/is-null.d.ts +2 -0
  589. package/types/lodash/is-number-equal.d.ts +1 -0
  590. package/types/lodash/is-number.d.ts +2 -0
  591. package/types/lodash/is-object-like.d.ts +2 -0
  592. package/types/lodash/is-object.d.ts +2 -0
  593. package/types/lodash/is-odd.d.ts +2 -0
  594. package/types/lodash/is-plain-object.d.ts +2 -0
  595. package/types/lodash/is-positive.d.ts +2 -0
  596. package/types/lodash/is-prototype.d.ts +2 -0
  597. package/types/lodash/is-reg-exp.d.ts +2 -0
  598. package/types/lodash/is-segment-equal.d.ts +2 -0
  599. package/types/lodash/is-string.d.ts +2 -0
  600. package/types/lodash/is-type.d.ts +2 -0
  601. package/types/lodash/is-undefined.d.ts +2 -0
  602. package/types/lodash/isArguments.d.ts +2 -0
  603. package/types/lodash/isArray.d.ts +2 -0
  604. package/types/lodash/isArrayBuffer.d.ts +2 -0
  605. package/types/lodash/isArrayLike.d.ts +2 -0
  606. package/types/lodash/isArrayLikeObject.d.ts +2 -0
  607. package/types/lodash/isBoolean.d.ts +2 -0
  608. package/types/lodash/isBuffer.d.ts +2 -0
  609. package/types/lodash/isDate.d.ts +2 -0
  610. package/types/lodash/isElement.d.ts +2 -0
  611. package/types/lodash/isEmpty.d.ts +2 -0
  612. package/types/lodash/isEqual.d.ts +2 -0
  613. package/types/lodash/isEqualWith.d.ts +2 -0
  614. package/types/lodash/isError.d.ts +2 -0
  615. package/types/lodash/isFinite.d.ts +2 -0
  616. package/types/lodash/isFunction.d.ts +2 -0
  617. package/types/lodash/isInteger.d.ts +2 -0
  618. package/types/lodash/isLength.d.ts +2 -0
  619. package/types/lodash/isMap.d.ts +2 -0
  620. package/types/lodash/isMatch.d.ts +2 -0
  621. package/types/lodash/isMatchWith.d.ts +2 -0
  622. package/types/lodash/isNaN.d.ts +2 -0
  623. package/types/lodash/isNative.d.ts +2 -0
  624. package/types/lodash/isNil.d.ts +2 -0
  625. package/types/lodash/isNull.d.ts +2 -0
  626. package/types/lodash/isNumber.d.ts +2 -0
  627. package/types/lodash/isObject.d.ts +2 -0
  628. package/types/lodash/isObjectLike.d.ts +2 -0
  629. package/types/lodash/isPlainObject.d.ts +2 -0
  630. package/types/lodash/isRegExp.d.ts +2 -0
  631. package/types/lodash/isSafeInteger.d.ts +2 -0
  632. package/types/lodash/isSet.d.ts +2 -0
  633. package/types/lodash/isString.d.ts +2 -0
  634. package/types/lodash/isSymbol.d.ts +2 -0
  635. package/types/lodash/isTypedArray.d.ts +2 -0
  636. package/types/lodash/isUndefined.d.ts +2 -0
  637. package/types/lodash/isWeakMap.d.ts +2 -0
  638. package/types/lodash/isWeakSet.d.ts +2 -0
  639. package/types/lodash/iteratee.d.ts +2 -0
  640. package/types/lodash/join.d.ts +2 -0
  641. package/types/lodash/kebabCase.d.ts +2 -0
  642. package/types/lodash/keyBy.d.ts +2 -0
  643. package/types/lodash/keys.d.ts +2 -0
  644. package/types/lodash/keysIn.d.ts +2 -0
  645. package/types/lodash/lang.d.ts +57 -0
  646. package/types/lodash/lang.default.d.ts +115 -0
  647. package/types/lodash/last.d.ts +2 -0
  648. package/types/lodash/lastIndexOf.d.ts +2 -0
  649. package/types/lodash/lodash.d.ts +317 -0
  650. package/types/lodash/lodash.default.d.ts +2 -0
  651. package/types/lodash/lower-case.d.ts +2 -0
  652. package/types/lodash/lower-first.d.ts +2 -0
  653. package/types/lodash/lowerCase.d.ts +2 -0
  654. package/types/lodash/lowerFirst.d.ts +2 -0
  655. package/types/lodash/lt.d.ts +2 -0
  656. package/types/lodash/lte.d.ts +2 -0
  657. package/types/lodash/map-values.d.ts +6 -0
  658. package/types/lodash/map.d.ts +2 -0
  659. package/types/lodash/mapKeys.d.ts +2 -0
  660. package/types/lodash/mapValues.d.ts +2 -0
  661. package/types/lodash/matches.d.ts +2 -0
  662. package/types/lodash/matchesProperty.d.ts +2 -0
  663. package/types/lodash/math.d.ts +16 -0
  664. package/types/lodash/math.default.d.ts +33 -0
  665. package/types/lodash/max-by.d.ts +16 -0
  666. package/types/lodash/max.d.ts +2 -0
  667. package/types/lodash/maxBy.d.ts +2 -0
  668. package/types/lodash/mean.d.ts +2 -0
  669. package/types/lodash/meanBy.d.ts +2 -0
  670. package/types/lodash/memoize.d.ts +2 -0
  671. package/types/lodash/merge.d.ts +2 -0
  672. package/types/lodash/mergeWith.d.ts +2 -0
  673. package/types/lodash/method.d.ts +2 -0
  674. package/types/lodash/methodOf.d.ts +2 -0
  675. package/types/lodash/min-by.d.ts +16 -0
  676. package/types/lodash/min.d.ts +2 -0
  677. package/types/lodash/minBy.d.ts +2 -0
  678. package/types/lodash/mix.d.ts +1 -0
  679. package/types/lodash/mixin.d.ts +2 -0
  680. package/types/lodash/mod.d.ts +2 -0
  681. package/types/lodash/multiply.d.ts +2 -0
  682. package/types/lodash/negate.d.ts +2 -0
  683. package/types/lodash/next.d.ts +27 -0
  684. package/types/lodash/noop.d.ts +2 -0
  685. package/types/lodash/now.d.ts +2 -0
  686. package/types/lodash/nth.d.ts +2 -0
  687. package/types/lodash/nthArg.d.ts +2 -0
  688. package/types/lodash/number.d.ts +4 -0
  689. package/types/lodash/number.default.d.ts +9 -0
  690. package/types/lodash/number2color.d.ts +2 -0
  691. package/types/lodash/object.d.ts +48 -0
  692. package/types/lodash/object.default.d.ts +97 -0
  693. package/types/lodash/omit.d.ts +2 -0
  694. package/types/lodash/omitBy.d.ts +2 -0
  695. package/types/lodash/once.d.ts +2 -0
  696. package/types/lodash/orderBy.d.ts +2 -0
  697. package/types/lodash/over.d.ts +2 -0
  698. package/types/lodash/overArgs.d.ts +2 -0
  699. package/types/lodash/overEvery.d.ts +2 -0
  700. package/types/lodash/overSome.d.ts +2 -0
  701. package/types/lodash/pad.d.ts +2 -0
  702. package/types/lodash/padEnd.d.ts +2 -0
  703. package/types/lodash/padStart.d.ts +2 -0
  704. package/types/lodash/parse-radius.d.ts +9 -0
  705. package/types/lodash/parseInt.d.ts +2 -0
  706. package/types/lodash/partial.d.ts +2 -0
  707. package/types/lodash/partialRight.d.ts +2 -0
  708. package/types/lodash/partition.d.ts +2 -0
  709. package/types/lodash/pick.d.ts +2 -0
  710. package/types/lodash/pickBy.d.ts +2 -0
  711. package/types/lodash/plant.d.ts +26 -0
  712. package/types/lodash/property.d.ts +3 -0
  713. package/types/lodash/propertyOf.d.ts +2 -0
  714. package/types/lodash/pull-at.d.ts +2 -0
  715. package/types/lodash/pull.d.ts +2 -0
  716. package/types/lodash/pullAll.d.ts +2 -0
  717. package/types/lodash/pullAllBy.d.ts +2 -0
  718. package/types/lodash/pullAllWith.d.ts +2 -0
  719. package/types/lodash/pullAt.d.ts +2 -0
  720. package/types/lodash/random.d.ts +2 -0
  721. package/types/lodash/range.d.ts +2 -0
  722. package/types/lodash/rangeRight.d.ts +2 -0
  723. package/types/lodash/rearg.d.ts +2 -0
  724. package/types/lodash/reduce.d.ts +2 -0
  725. package/types/lodash/reduceRight.d.ts +2 -0
  726. package/types/lodash/reject.d.ts +2 -0
  727. package/types/lodash/remove.d.ts +2 -0
  728. package/types/lodash/repeat.d.ts +2 -0
  729. package/types/lodash/replace.d.ts +2 -0
  730. package/types/lodash/request-animation-frame.d.ts +1 -0
  731. package/types/lodash/rest.d.ts +2 -0
  732. package/types/lodash/result.d.ts +2 -0
  733. package/types/lodash/reverse.d.ts +2 -0
  734. package/types/lodash/round.d.ts +2 -0
  735. package/types/lodash/sample.d.ts +2 -0
  736. package/types/lodash/sampleSize.d.ts +2 -0
  737. package/types/lodash/seq.d.ts +15 -0
  738. package/types/lodash/seq.default.d.ts +31 -0
  739. package/types/lodash/set.d.ts +2 -0
  740. package/types/lodash/setWith.d.ts +2 -0
  741. package/types/lodash/shuffle.d.ts +2 -0
  742. package/types/lodash/size.d.ts +2 -0
  743. package/types/lodash/slice.d.ts +2 -0
  744. package/types/lodash/snakeCase.d.ts +2 -0
  745. package/types/lodash/some.d.ts +2 -0
  746. package/types/lodash/sort-by.d.ts +7 -0
  747. package/types/lodash/sortBy.d.ts +2 -0
  748. package/types/lodash/sortedIndex.d.ts +2 -0
  749. package/types/lodash/sortedIndexBy.d.ts +2 -0
  750. package/types/lodash/sortedIndexOf.d.ts +2 -0
  751. package/types/lodash/sortedLastIndex.d.ts +2 -0
  752. package/types/lodash/sortedLastIndexBy.d.ts +2 -0
  753. package/types/lodash/sortedLastIndexOf.d.ts +2 -0
  754. package/types/lodash/sortedUniq.d.ts +2 -0
  755. package/types/lodash/sortedUniqBy.d.ts +2 -0
  756. package/types/lodash/split.d.ts +2 -0
  757. package/types/lodash/spread.d.ts +2 -0
  758. package/types/lodash/startCase.d.ts +2 -0
  759. package/types/lodash/starts-with.d.ts +3 -0
  760. package/types/lodash/startsWith.d.ts +2 -0
  761. package/types/lodash/string.d.ts +32 -0
  762. package/types/lodash/string.default.d.ts +65 -0
  763. package/types/lodash/stubArray.d.ts +2 -0
  764. package/types/lodash/stubFalse.d.ts +2 -0
  765. package/types/lodash/stubObject.d.ts +2 -0
  766. package/types/lodash/stubString.d.ts +2 -0
  767. package/types/lodash/stubTrue.d.ts +2 -0
  768. package/types/lodash/substitute.d.ts +5 -0
  769. package/types/lodash/subtract.d.ts +2 -0
  770. package/types/lodash/sum.d.ts +2 -0
  771. package/types/lodash/sumBy.d.ts +2 -0
  772. package/types/lodash/tail.d.ts +2 -0
  773. package/types/lodash/take.d.ts +2 -0
  774. package/types/lodash/takeRight.d.ts +2 -0
  775. package/types/lodash/takeRightWhile.d.ts +2 -0
  776. package/types/lodash/takeWhile.d.ts +2 -0
  777. package/types/lodash/tap.d.ts +2 -0
  778. package/types/lodash/template.d.ts +2 -0
  779. package/types/lodash/templateSettings.d.ts +2 -0
  780. package/types/lodash/throttle.d.ts +3 -0
  781. package/types/lodash/thru.d.ts +2 -0
  782. package/types/lodash/times.d.ts +2 -0
  783. package/types/lodash/to-array.d.ts +2 -0
  784. package/types/lodash/to-degree.d.ts +2 -0
  785. package/types/lodash/to-integer.d.ts +1 -0
  786. package/types/lodash/to-radian.d.ts +2 -0
  787. package/types/lodash/to-string.d.ts +2 -0
  788. package/types/lodash/toArray.d.ts +2 -0
  789. package/types/lodash/toFinite.d.ts +2 -0
  790. package/types/lodash/toInteger.d.ts +2 -0
  791. package/types/lodash/toIterator.d.ts +20 -0
  792. package/types/lodash/toJSON.d.ts +1 -0
  793. package/types/lodash/toLength.d.ts +2 -0
  794. package/types/lodash/toLower.d.ts +2 -0
  795. package/types/lodash/toNumber.d.ts +2 -0
  796. package/types/lodash/toPairs.d.ts +2 -0
  797. package/types/lodash/toPairsIn.d.ts +2 -0
  798. package/types/lodash/toPath.d.ts +2 -0
  799. package/types/lodash/toPlainObject.d.ts +2 -0
  800. package/types/lodash/toSafeInteger.d.ts +2 -0
  801. package/types/lodash/toString.d.ts +2 -0
  802. package/types/lodash/toUpper.d.ts +2 -0
  803. package/types/lodash/transform.d.ts +2 -0
  804. package/types/lodash/trim.d.ts +2 -0
  805. package/types/lodash/trimEnd.d.ts +2 -0
  806. package/types/lodash/trimStart.d.ts +2 -0
  807. package/types/lodash/truncate.d.ts +2 -0
  808. package/types/lodash/types/index.d.ts +3 -0
  809. package/types/lodash/unary.d.ts +2 -0
  810. package/types/lodash/unescape.d.ts +2 -0
  811. package/types/lodash/union.d.ts +2 -0
  812. package/types/lodash/unionBy.d.ts +2 -0
  813. package/types/lodash/unionWith.d.ts +2 -0
  814. package/types/lodash/uniq.d.ts +2 -0
  815. package/types/lodash/uniqBy.d.ts +2 -0
  816. package/types/lodash/uniqWith.d.ts +2 -0
  817. package/types/lodash/unique-id.d.ts +2 -0
  818. package/types/lodash/uniqueId.d.ts +2 -0
  819. package/types/lodash/unset.d.ts +2 -0
  820. package/types/lodash/unzip.d.ts +2 -0
  821. package/types/lodash/unzipWith.d.ts +2 -0
  822. package/types/lodash/update.d.ts +2 -0
  823. package/types/lodash/updateWith.d.ts +2 -0
  824. package/types/lodash/upper-case.d.ts +2 -0
  825. package/types/lodash/upper-first.d.ts +2 -0
  826. package/types/lodash/upperCase.d.ts +2 -0
  827. package/types/lodash/upperFirst.d.ts +2 -0
  828. package/types/lodash/util.d.ts +33 -0
  829. package/types/lodash/util.default.d.ts +67 -0
  830. package/types/lodash/value.d.ts +1 -0
  831. package/types/lodash/valueOf.d.ts +1 -0
  832. package/types/lodash/values-of-key.d.ts +2 -0
  833. package/types/lodash/values.d.ts +2 -0
  834. package/types/lodash/valuesIn.d.ts +2 -0
  835. package/types/lodash/without.d.ts +2 -0
  836. package/types/lodash/words.d.ts +2 -0
  837. package/types/lodash/wrap-behavior.d.ts +9 -0
  838. package/types/lodash/wrap.d.ts +2 -0
  839. package/types/lodash/wrapperAt.d.ts +18 -0
  840. package/types/lodash/wrapperChain.d.ts +29 -0
  841. package/types/lodash/wrapperLodash.d.ts +239 -0
  842. package/types/lodash/wrapperReverse.d.ts +22 -0
  843. package/types/lodash/wrapperValue.d.ts +16 -0
  844. package/types/lodash/xor.d.ts +2 -0
  845. package/types/lodash/xorBy.d.ts +2 -0
  846. package/types/lodash/xorWith.d.ts +2 -0
  847. package/types/lodash/zip.d.ts +2 -0
  848. package/types/lodash/zipObject.d.ts +2 -0
  849. package/types/lodash/zipObjectDeep.d.ts +2 -0
  850. package/types/lodash/zipWith.d.ts +2 -0
  851. package/types/parse-svg-path.d.ts +19 -0
  852. package/types/priority_queue.d.ts +41 -0
  853. package/types/radash/array.d.ts +209 -0
  854. package/types/radash/async.d.ts +99 -0
  855. package/types/radash/curry.d.ts +113 -0
  856. package/types/radash/index.d.ts +10 -0
  857. package/types/radash/number.d.ts +27 -0
  858. package/types/radash/object.d.ts +112 -0
  859. package/types/radash/random.d.ts +11 -0
  860. package/types/radash/series.d.ts +13 -0
  861. package/types/radash/string.d.ts +71 -0
  862. package/types/radash/typed.d.ts +26 -0
  863. package/types/stats.module.d.ts +3 -0
  864. package/README.md +0 -1
  865. package/dist/cjs/index.js +0 -19
  866. package/dist/umd/index.js +0 -23
  867. package/esm/extend.js +0 -3
  868. package/esm/index.js +0 -3
  869. package/lib/extend.js +0 -6
  870. package/lib/index.js +0 -6
  871. package/src/extend.ts +0 -6
  872. package/src/index.ts +0 -6
@@ -0,0 +1,113 @@
1
+ export declare function chain<T1 extends any[], T2, T3>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3): (...arg: T1) => T3;
2
+ export declare function chain<T1 extends any[], T2, T3, T4>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3, f3: (arg: T3) => T4): (...arg: T1) => T4;
3
+ export declare function chain<T1 extends any[], T2, T3, T4, T5>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3, f3: (arg: T3) => T4, f4: (arg: T3) => T5): (...arg: T1) => T5;
4
+ export declare function chain<T1 extends any[], T2, T3, T4, T5, T6>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3, f3: (arg: T3) => T4, f4: (arg: T3) => T5, f5: (arg: T3) => T6): (...arg: T1) => T6;
5
+ export declare function chain<T1 extends any[], T2, T3, T4, T5, T6, T7>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3, f3: (arg: T3) => T4, f4: (arg: T3) => T5, f5: (arg: T3) => T6, f6: (arg: T3) => T7): (...arg: T1) => T7;
6
+ export declare function chain<T1 extends any[], T2, T3, T4, T5, T6, T7, T8>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3, f3: (arg: T3) => T4, f4: (arg: T3) => T5, f5: (arg: T3) => T6, f6: (arg: T3) => T7, f7: (arg: T3) => T8): (...arg: T1) => T8;
7
+ export declare function chain<T1 extends any[], T2, T3, T4, T5, T6, T7, T8, T9>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3, f3: (arg: T3) => T4, f4: (arg: T3) => T5, f5: (arg: T3) => T6, f6: (arg: T3) => T7, f7: (arg: T3) => T8, f8: (arg: T3) => T9): (...arg: T1) => T9;
8
+ export declare function chain<T1 extends any[], T2, T3, T4, T5, T6, T7, T8, T9, T10>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3, f3: (arg: T3) => T4, f4: (arg: T3) => T5, f5: (arg: T3) => T6, f6: (arg: T3) => T7, f7: (arg: T3) => T8, f8: (arg: T3) => T9, f9: (arg: T3) => T10): (...arg: T1) => T10;
9
+ export declare function chain<T1 extends any[], T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(f1: (...arg: T1) => T2, f2: (arg: T2) => T3, f3: (arg: T3) => T4, f4: (arg: T3) => T5, f5: (arg: T3) => T6, f6: (arg: T3) => T7, f7: (arg: T3) => T8, f8: (arg: T3) => T9, f9: (arg: T3) => T10, f10: (arg: T3) => T11): (...arg: T1) => T11;
10
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], LastResult>(f1: (next: (...args: F1NextArgs) => LastResult) => (...args: F1Args) => F1Result, last: (...args: F1NextArgs) => LastResult): (...args: F1Args) => F1Result;
11
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], F2Result, F2NextArgs extends any[], LastResult>(f1: (next: (...args: F1NextArgs) => F2Result) => (...args: F1Args) => F1Result, f2: (next: (...args: F2NextArgs) => LastResult) => (...args: F1NextArgs) => F2Result, last: (...args: F2NextArgs) => LastResult): (...args: F1Args) => F1Result;
12
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], F2NextArgs extends any[], F2Result, F3NextArgs extends any[], F3Result, LastResult>(f1: (next: (...args: F1NextArgs) => F2Result) => (...args: F1Args) => F1Result, f2: (next: (...args: F2NextArgs) => F3Result) => (...args: F1NextArgs) => F2Result, f3: (next: (...args: F3NextArgs) => LastResult) => (...args: F2NextArgs) => F3Result, last: (...args: F3NextArgs) => LastResult): (...args: F1Args) => F1Result;
13
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], F2NextArgs extends any[], F2Result, F3NextArgs extends any[], F3Result, F4NextArgs extends any[], F4Result, LastResult>(f1: (next: (...args: F1NextArgs) => F2Result) => (...args: F1Args) => F1Result, f2: (next: (...args: F2NextArgs) => F3Result) => (...args: F1NextArgs) => F2Result, f3: (next: (...args: F3NextArgs) => F4Result) => (...args: F2NextArgs) => F3Result, f4: (next: (...args: F4NextArgs) => LastResult) => (...args: F3NextArgs) => F4Result, last: (...args: F4NextArgs) => LastResult): (...args: F1Args) => F1Result;
14
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], F2NextArgs extends any[], F2Result, F3NextArgs extends any[], F3Result, F4NextArgs extends any[], F4Result, F5NextArgs extends any[], F5Result, LastResult>(f1: (next: (...args: F1NextArgs) => F2Result) => (...args: F1Args) => F1Result, f2: (next: (...args: F2NextArgs) => F3Result) => (...args: F1NextArgs) => F2Result, f3: (next: (...args: F3NextArgs) => F4Result) => (...args: F2NextArgs) => F3Result, f4: (next: (...args: F4NextArgs) => F5Result) => (...args: F3NextArgs) => F4Result, f5: (next: (...args: F5NextArgs) => LastResult) => (...args: F4NextArgs) => F5Result, last: (...args: F5NextArgs) => LastResult): (...args: F1Args) => F1Result;
15
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], F2NextArgs extends any[], F2Result, F3NextArgs extends any[], F3Result, F4NextArgs extends any[], F4Result, F5NextArgs extends any[], F5Result, F6NextArgs extends any[], F6Result, LastResult>(f1: (next: (...args: F1NextArgs) => F2Result) => (...args: F1Args) => F1Result, f2: (next: (...args: F2NextArgs) => F3Result) => (...args: F1NextArgs) => F2Result, f3: (next: (...args: F3NextArgs) => F4Result) => (...args: F2NextArgs) => F3Result, f4: (next: (...args: F4NextArgs) => F5Result) => (...args: F3NextArgs) => F4Result, f5: (next: (...args: F5NextArgs) => F6Result) => (...args: F4NextArgs) => F5Result, f6: (next: (...args: F6NextArgs) => LastResult) => (...args: F5NextArgs) => F6Result, last: (...args: F6NextArgs) => LastResult): (...args: F1Args) => F1Result;
16
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], F2NextArgs extends any[], F2Result, F3NextArgs extends any[], F3Result, F4NextArgs extends any[], F4Result, F5NextArgs extends any[], F5Result, F6NextArgs extends any[], F6Result, F7NextArgs extends any[], F7Result, LastResult>(f1: (next: (...args: F1NextArgs) => F2Result) => (...args: F1Args) => F1Result, f2: (next: (...args: F2NextArgs) => F3Result) => (...args: F1NextArgs) => F2Result, f3: (next: (...args: F3NextArgs) => F4Result) => (...args: F2NextArgs) => F3Result, f4: (next: (...args: F4NextArgs) => F5Result) => (...args: F3NextArgs) => F4Result, f5: (next: (...args: F5NextArgs) => F6Result) => (...args: F4NextArgs) => F5Result, f6: (next: (...args: F6NextArgs) => F7Result) => (...args: F5NextArgs) => F6Result, f7: (next: (...args: F7NextArgs) => LastResult) => (...args: F6NextArgs) => F7Result, last: (...args: F7NextArgs) => LastResult): (...args: F1Args) => F1Result;
17
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], F2NextArgs extends any[], F2Result, F3NextArgs extends any[], F3Result, F4NextArgs extends any[], F4Result, F5NextArgs extends any[], F5Result, F6NextArgs extends any[], F6Result, F7NextArgs extends any[], F7Result, F8NextArgs extends any[], F8Result, LastResult>(f1: (next: (...args: F1NextArgs) => F2Result) => (...args: F1Args) => F1Result, f2: (next: (...args: F2NextArgs) => F3Result) => (...args: F1NextArgs) => F2Result, f3: (next: (...args: F3NextArgs) => F4Result) => (...args: F2NextArgs) => F3Result, f4: (next: (...args: F4NextArgs) => F5Result) => (...args: F3NextArgs) => F4Result, f5: (next: (...args: F5NextArgs) => F6Result) => (...args: F4NextArgs) => F5Result, f6: (next: (...args: F6NextArgs) => F7Result) => (...args: F5NextArgs) => F6Result, f7: (next: (...args: F7NextArgs) => LastResult) => (...args: F6NextArgs) => F7Result, f8: (next: (...args: F8NextArgs) => LastResult) => (...args: F7NextArgs) => F8Result, last: (...args: F8NextArgs) => LastResult): (...args: F1Args) => F1Result;
18
+ export declare function compose<F1Result, F1Args extends any[], F1NextArgs extends any[], F2NextArgs extends any[], F2Result, F3NextArgs extends any[], F3Result, F4NextArgs extends any[], F4Result, F5NextArgs extends any[], F5Result, F6NextArgs extends any[], F6Result, F7NextArgs extends any[], F7Result, F8NextArgs extends any[], F8Result, F9NextArgs extends any[], F9Result, LastResult>(f1: (next: (...args: F1NextArgs) => F2Result) => (...args: F1Args) => F1Result, f2: (next: (...args: F2NextArgs) => F3Result) => (...args: F1NextArgs) => F2Result, f3: (next: (...args: F3NextArgs) => F4Result) => (...args: F2NextArgs) => F3Result, f4: (next: (...args: F4NextArgs) => F5Result) => (...args: F3NextArgs) => F4Result, f5: (next: (...args: F5NextArgs) => F6Result) => (...args: F4NextArgs) => F5Result, f6: (next: (...args: F6NextArgs) => F7Result) => (...args: F5NextArgs) => F6Result, f7: (next: (...args: F7NextArgs) => LastResult) => (...args: F6NextArgs) => F7Result, f8: (next: (...args: F8NextArgs) => LastResult) => (...args: F7NextArgs) => F8Result, f9: (next: (...args: F9NextArgs) => LastResult) => (...args: F8NextArgs) => F9Result, last: (...args: F9NextArgs) => LastResult): (...args: F1Args) => F1Result;
19
+ /**
20
+ * This type produces the type array of TItems with all the type items
21
+ * in TItemsToRemove removed from the start of the array type.
22
+ *
23
+ * @example
24
+ * ```
25
+ * RemoveItemsInFront<[number, number], [number]> = [number]
26
+ * RemoveItemsInFront<[File, number, string], [File, number]> = [string]
27
+ * ```
28
+ */
29
+ type RemoveItemsInFront<TItems extends any[], TItemsToRemove extends any[]> = TItems extends [...TItemsToRemove, ...infer TRest] ? TRest : TItems;
30
+ export declare const partial: <T extends any[], TA extends Partial<T>, R>(fn: (...args: T) => R, ...args: TA) => (...rest: RemoveItemsInFront<T, TA>) => R;
31
+ /**
32
+ * Like partial but for unary functions that accept
33
+ * a single object argument
34
+ */
35
+ export declare const partob: <T, K, PartialArgs extends Partial<T>>(fn: (args: T) => K, argobj: PartialArgs) => (restobj: Omit<T, keyof PartialArgs>) => K;
36
+ /**
37
+ * Creates a Proxy object that will dynamically
38
+ * call the handler argument when attributes are
39
+ * accessed
40
+ */
41
+ export declare const proxied: <T, K>(handler: (propertyName: T) => K) => Record<string, K>;
42
+ /**
43
+ * Creates a memoized function. The returned function
44
+ * will only execute the source function when no value
45
+ * has previously been computed. If a ttl (milliseconds)
46
+ * is given previously computed values will be checked
47
+ * for expiration before being returned.
48
+ */
49
+ export declare const memo: <TArgs extends any[], TResult>(func: (...args: TArgs) => TResult, options?: {
50
+ key?: (...args: TArgs) => string;
51
+ ttl?: number;
52
+ }) => (...args: TArgs) => TResult;
53
+ export type DebounceFunction<TArgs extends any[]> = {
54
+ (...args: TArgs): void;
55
+ /**
56
+ * Cancels the debounced function
57
+ */
58
+ cancel(): void;
59
+ /**
60
+ * Checks if there is any invocation debounced
61
+ */
62
+ isPending(): boolean;
63
+ /**
64
+ * Runs the debounced function immediately
65
+ */
66
+ flush(...args: TArgs): void;
67
+ };
68
+ export type ThrottledFunction<TArgs extends any[]> = {
69
+ (...args: TArgs): void;
70
+ /**
71
+ * Checks if there is any invocation throttled
72
+ */
73
+ isThrottled(): boolean;
74
+ };
75
+ /**
76
+ * Given a delay and a function returns a new function
77
+ * that will only call the source function after delay
78
+ * milliseconds have passed without any invocations.
79
+ *
80
+ * The debounce function comes with a `cancel` method
81
+ * to cancel delayed `func` invocations and a `flush`
82
+ * method to invoke them immediately
83
+ */
84
+ export declare const debounce: <TArgs extends any[]>({ delay }: {
85
+ delay: number;
86
+ }, func: (...args: TArgs) => any) => DebounceFunction<TArgs>;
87
+ /**
88
+ * Given an interval and a function returns a new function
89
+ * that will only call the source function if interval milliseconds
90
+ * have passed since the last invocation
91
+ */
92
+ export declare const throttle: <TArgs extends any[]>({ interval }: {
93
+ interval: number;
94
+ }, func: (...args: TArgs) => any) => ThrottledFunction<TArgs>;
95
+ /**
96
+ * Make an object callable. Given an object and a function
97
+ * the returned object will be a function with all the
98
+ * objects properties.
99
+ *
100
+ * @example
101
+ * ```typescript
102
+ * const car = callable({
103
+ * wheels: 2
104
+ * }, self => () => {
105
+ * return 'driving'
106
+ * })
107
+ *
108
+ * car.wheels // => 2
109
+ * car() // => 'driving'
110
+ * ```
111
+ */
112
+ export declare const callable: <TValue, TObj extends Record<string | number | symbol, TValue>, TFunc extends (...args: any) => any>(obj: TObj, fn: (self: TObj) => TFunc) => TObj & TFunc;
113
+ export {};
@@ -0,0 +1,10 @@
1
+ export { alphabetical, boil, cluster, counting, diff, first, flat, fork, group, intersects, iterate, last, list, max, merge, min, objectify, range, replace, replaceOrAppend, select, shift, sift, sort, sum, toggle, unique, zip, zipToObject } from './array';
2
+ export { all, defer, guard, map, parallel, reduce, retry, sleep, tryit as try, tryit } from './async';
3
+ export type { AggregateError } from './async';
4
+ export { callable, chain, compose, debounce, memo, partial, partob, proxied, throttle } from './curry';
5
+ export { inRange, toFloat, toInt } from './number';
6
+ export { assign, clone, construct, crush, get, invert, keys, listify, lowerize, mapEntries, mapKeys, mapValues, omit, pick, set, shake, upperize } from './object';
7
+ export { draw, random, shuffle, uid } from './random';
8
+ export { series } from './series';
9
+ export { camel, capitalize, dash, pascal, snake, template, title, trim } from './string';
10
+ export { isArray, isDate, isEmpty, isEqual, isFloat, isFunction, isInt, isNumber, isObject, isPrimitive, isPromise, isString, isSymbol } from './typed';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Checks if the given number is between zero (0) and the ending number. 0 is inclusive.
3
+ *
4
+ * * Numbers can be negative or positive.
5
+ * * Ending number is exclusive.
6
+ *
7
+ * @param {number} number The number to check.
8
+ * @param {number} end The end of the range. Exclusive.
9
+ * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
10
+ */
11
+ export declare function inRange(number: number, end: number): boolean;
12
+ /**
13
+ * Checks if the given number is between two numbers.
14
+ *
15
+ * * Numbers can be negative or positive.
16
+ * * Starting number is inclusive.
17
+ * * Ending number is exclusive.
18
+ * * The start and the end of the range can be ascending OR descending order.
19
+ *
20
+ * @param {number} number The number to check.
21
+ * @param {number} start The start of the range. Inclusive.
22
+ * @param {number} end The end of the range. Exclusive.
23
+ * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
24
+ */
25
+ export declare function inRange(number: number, start: number, end: number): boolean;
26
+ export declare const toFloat: <T extends number | null = number>(value: any, defaultValue?: T) => number | T;
27
+ export declare const toInt: <T extends number | null = number>(value: any, defaultValue?: T) => number | T;
@@ -0,0 +1,112 @@
1
+ type LowercasedKeys<T extends Record<string, any>> = {
2
+ [P in keyof T & string as Lowercase<P>]: T[P];
3
+ };
4
+ type UppercasedKeys<T extends Record<string, any>> = {
5
+ [P in keyof T & string as Uppercase<P>]: T[P];
6
+ };
7
+ /**
8
+ * Removes (shakes out) undefined entries from an
9
+ * object. Optional second argument shakes out values
10
+ * by custom evaluation.
11
+ */
12
+ export declare const shake: <RemovedKeys extends string, T>(obj: T, filter?: (value: any) => boolean) => Omit<T, RemovedKeys>;
13
+ /**
14
+ * Map over all the keys of an object to return
15
+ * a new object
16
+ */
17
+ export declare const mapKeys: <TValue, TKey extends string | number | symbol, TNewKey extends string | number | symbol>(obj: Record<TKey, TValue>, mapFunc: (key: TKey, value: TValue) => TNewKey) => Record<TNewKey, TValue>;
18
+ /**
19
+ * Map over all the keys to create a new object
20
+ */
21
+ export declare const mapValues: <TValue, TKey extends string | number | symbol, TNewValue>(obj: Record<TKey, TValue>, mapFunc: (value: TValue, key: TKey) => TNewValue) => Record<TKey, TNewValue>;
22
+ /**
23
+ * Map over all the keys to create a new object
24
+ */
25
+ export declare const mapEntries: <TKey extends string | number | symbol, TValue, TNewKey extends string | number | symbol, TNewValue>(obj: Record<TKey, TValue>, toEntry: (key: TKey, value: TValue) => [TNewKey, TNewValue]) => Record<TNewKey, TNewValue>;
26
+ /**
27
+ * Returns an object with { [keys]: value }
28
+ * inverted as { [value]: key }
29
+ */
30
+ export declare const invert: <TKey extends string | number | symbol, TValue extends string | number | symbol>(obj: Record<TKey, TValue>) => Record<TValue, TKey>;
31
+ /**
32
+ * Convert all keys in an object to lower case
33
+ */
34
+ export declare const lowerize: <T extends Record<string, any>>(obj: T) => LowercasedKeys<T>;
35
+ /**
36
+ * Convert all keys in an object to upper case
37
+ */
38
+ export declare const upperize: <T extends Record<string, any>>(obj: T) => UppercasedKeys<T>;
39
+ /**
40
+ * Creates a shallow copy of the given obejct/value.
41
+ * @param {*} obj value to clone
42
+ * @returns {*} shallow clone of the given value
43
+ */
44
+ export declare const clone: <T>(obj: T) => T;
45
+ /**
46
+ * Convert an object to a list, mapping each entry
47
+ * into a list item
48
+ */
49
+ export declare const listify: <TValue, TKey extends string | number | symbol, KResult>(obj: Record<TKey, TValue>, toItem: (key: TKey, value: TValue) => KResult) => KResult[];
50
+ /**
51
+ * Pick a list of properties from an object
52
+ * into a new object
53
+ */
54
+ export declare const pick: <T extends object, TKeys extends keyof T>(obj: T, keys: TKeys[]) => Pick<T, TKeys>;
55
+ /**
56
+ * Omit a list of properties from an object
57
+ * returning a new object with the properties
58
+ * that remain
59
+ */
60
+ export declare const omit: <T, TKeys extends keyof T>(obj: T, keys: TKeys[]) => Omit<T, TKeys>;
61
+ /**
62
+ * Dynamically get a nested value from an array or
63
+ * object with a string.
64
+ *
65
+ * @example get(person, 'friends[0].name')
66
+ */
67
+ export declare const get: <TDefault = unknown>(value: any, path: string, defaultValue?: TDefault) => TDefault;
68
+ /**
69
+ * Opposite of get, dynamically set a nested value into
70
+ * an object using a key path. Does not modify the given
71
+ * initial object.
72
+ *
73
+ * @example
74
+ * set({}, 'name', 'ra') // => { name: 'ra' }
75
+ * set({}, 'cards[0].value', 2) // => { cards: [{ value: 2 }] }
76
+ */
77
+ export declare const set: <T extends object, K>(initial: T, path: string, value: K) => T;
78
+ /**
79
+ * Merges two objects together recursivly into a new
80
+ * object applying values from right to left.
81
+ * Recursion only applies to child object properties.
82
+ */
83
+ export declare const assign: <X extends Record<string | symbol | number, any>>(initial: X, override: X) => X;
84
+ /**
85
+ * Get a string list of all key names that exist in
86
+ * an object (deep).
87
+ *
88
+ * @example
89
+ * keys({ name: 'ra' }) // ['name']
90
+ * keys({ name: 'ra', children: [{ name: 'hathor' }] }) // ['name', 'children.0.name']
91
+ */
92
+ export declare const keys: <TValue extends object>(value: TValue) => string[];
93
+ /**
94
+ * Flattens a deep object to a single demension, converting
95
+ * the keys to dot notation.
96
+ *
97
+ * @example
98
+ * crush({ name: 'ra', children: [{ name: 'hathor' }] })
99
+ * // { name: 'ra', 'children.0.name': 'hathor' }
100
+ */
101
+ export declare const crush: <TValue extends object>(value: TValue) => object;
102
+ /**
103
+ * The opposite of crush, given an object that was
104
+ * crushed into key paths and values will return
105
+ * the original object reconstructed.
106
+ *
107
+ * @example
108
+ * construct({ name: 'ra', 'children.0.name': 'hathor' })
109
+ * // { name: 'ra', children: [{ name: 'hathor' }] }
110
+ */
111
+ export declare const construct: <TObject extends object>(obj: TObject) => object;
112
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generates a random number between min and max
3
+ */
4
+ export declare const random: (min: number, max: number) => number;
5
+ /**
6
+ * Draw a random item from a list. Returns
7
+ * null if the list is empty
8
+ */
9
+ export declare const draw: <T>(array: readonly T[]) => T | null;
10
+ export declare const shuffle: <T>(array: readonly T[]) => T[];
11
+ export declare const uid: (length: number, specials?: string) => string;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Creates a series object around a list of values
3
+ * that should be treated with order.
4
+ */
5
+ export declare const series: <T>(items: T[], toKey?: (item: T) => string | symbol) => {
6
+ min: (a: T, b: T) => T;
7
+ max: (a: T, b: T) => T;
8
+ first: () => T;
9
+ last: () => T;
10
+ next: (current: T, defaultValue?: T) => T;
11
+ previous: (current: T, defaultValue?: T) => T;
12
+ spin: (current: T, num: number) => T;
13
+ };
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Capitalize the first word of the string
3
+ *
4
+ * capitalize('hello') -> 'Hello'
5
+ * capitalize('va va voom') -> 'Va va voom'
6
+ */
7
+ export declare const capitalize: (str: string) => string;
8
+ /**
9
+ * Formats the given string in camel case fashion
10
+ *
11
+ * camel('hello world') -> 'helloWorld'
12
+ * camel('va va-VOOM') -> 'vaVaVoom'
13
+ * camel('helloWorld') -> 'helloWorld'
14
+ */
15
+ export declare const camel: (str: string) => string;
16
+ /**
17
+ * Formats the given string in snake case fashion
18
+ *
19
+ * snake('hello world') -> 'hello_world'
20
+ * snake('va va-VOOM') -> 'va_va_voom'
21
+ * snake('helloWord') -> 'hello_world'
22
+ */
23
+ export declare const snake: (str: string, options?: {
24
+ splitOnNumber?: boolean;
25
+ }) => string;
26
+ /**
27
+ * Formats the given string in dash case fashion
28
+ *
29
+ * dash('hello world') -> 'hello-world'
30
+ * dash('va va_VOOM') -> 'va-va-voom'
31
+ * dash('helloWord') -> 'hello-word'
32
+ */
33
+ export declare const dash: (str: string) => string;
34
+ /**
35
+ * Formats the given string in pascal case fashion
36
+ *
37
+ * pascal('hello world') -> 'HelloWorld'
38
+ * pascal('va va boom') -> 'VaVaBoom'
39
+ */
40
+ export declare const pascal: (str: string) => string;
41
+ /**
42
+ * Formats the given string in title case fashion
43
+ *
44
+ * title('hello world') -> 'Hello World'
45
+ * title('va_va_boom') -> 'Va Va Boom'
46
+ * title('root-hook') -> 'Root Hook'
47
+ * title('queryItems') -> 'Query Items'
48
+ */
49
+ export declare const title: (str: string | null | undefined) => string;
50
+ /**
51
+ * template is used to replace data by name in template strings.
52
+ * The default expression looks for {{name}} to identify names.
53
+ *
54
+ * Ex. template('Hello, {{name}}', { name: 'ray' })
55
+ * Ex. template('Hello, <name>', { name: 'ray' }, /<(.+?)>/g)
56
+ */
57
+ export declare const template: (str: string, data: Record<string, any>, regex?: RegExp) => string;
58
+ /**
59
+ * Trims all prefix and suffix characters from the given
60
+ * string. Like the builtin trim function but accepts
61
+ * other characters you would like to trim and trims
62
+ * multiple characters.
63
+ *
64
+ * ```typescript
65
+ * trim(' hello ') // => 'hello'
66
+ * trim('__hello__', '_') // => 'hello'
67
+ * trim('/repos/:owner/:repo/', '/') // => 'repos/:owner/:repo'
68
+ * trim('222222__hello__1111111', '12_') // => 'hello'
69
+ * ```
70
+ */
71
+ export declare const trim: (str: string | null | undefined, charsToTrim?: string) => string;
@@ -0,0 +1,26 @@
1
+ export declare const isSymbol: (value: any) => value is symbol;
2
+ export declare const isArray: (arg: any) => arg is any[];
3
+ export declare const isObject: (value: any) => value is object;
4
+ /**
5
+ * Checks if the given value is primitive.
6
+ *
7
+ * Primitive Types: number , string , boolean , symbol, bigint, undefined, null
8
+ *
9
+ * @param {*} value value to check
10
+ * @returns {boolean} result
11
+ */
12
+ export declare const isPrimitive: (value: any) => boolean;
13
+ export declare const isFunction: (value: any) => value is Function;
14
+ export declare const isString: (value: any) => value is string;
15
+ export declare const isInt: (value: any) => value is number;
16
+ export declare const isFloat: (value: any) => value is number;
17
+ export declare const isNumber: (value: any) => value is number;
18
+ export declare const isDate: (value: any) => value is Date;
19
+ /**
20
+ * This is really a _best guess_ promise checking. You
21
+ * should probably use Promise.resolve(value) to be 100%
22
+ * sure you're handling it correctly.
23
+ */
24
+ export declare const isPromise: (value: any) => value is Promise<any>;
25
+ export declare const isEmpty: (value: any) => boolean;
26
+ export declare const isEqual: <TType>(x: TType, y: TType) => boolean;
@@ -0,0 +1,3 @@
1
+ import Stats = require("stats.js");
2
+
3
+ export default Stats;
package/README.md DELETED
@@ -1 +0,0 @@
1
- # @dxyl/utils
package/dist/cjs/index.js DELETED
@@ -1,19 +0,0 @@
1
- /*@desc utils */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
7
-
8
- var lodash = _interopDefault(require('lodash'));
9
-
10
- function extend() {
11
- return 'f';
12
- }
13
- function getDef() {
14
- return 'd';
15
- }
16
-
17
- exports._ = lodash;
18
- exports.extend = extend;
19
- exports.getDef = getDef;
package/dist/umd/index.js DELETED
@@ -1,23 +0,0 @@
1
- /*@desc utils */
2
- (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash')) :
4
- typeof define === 'function' && define.amd ? define(['exports', 'lodash'], factory) :
5
- (global = global || self, factory((global.Dx = global.Dx || {}, global.Dx.utils = {}), global._));
6
- }(this, (function (exports, lodash) { 'use strict';
7
-
8
- lodash = lodash && Object.prototype.hasOwnProperty.call(lodash, 'default') ? lodash['default'] : lodash;
9
-
10
- function extend() {
11
- return 'f';
12
- }
13
- function getDef() {
14
- return 'd';
15
- }
16
-
17
- exports._ = lodash;
18
- exports.extend = extend;
19
- exports.getDef = getDef;
20
-
21
- Object.defineProperty(exports, '__esModule', { value: true });
22
-
23
- })));
package/esm/extend.js DELETED
@@ -1,3 +0,0 @@
1
- export default function extend() {
2
- return 'f';
3
- }
package/esm/index.js DELETED
@@ -1,3 +0,0 @@
1
- import _ from 'lodash';
2
- export * from './extend';
3
- export default _;
package/lib/extend.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function extend() {
4
- return 'f';
5
- }
6
- exports.default = extend;
package/lib/index.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var lodash_1 = tslib_1.__importDefault(require("lodash"));
5
- tslib_1.__exportStar(require("./extend"), exports);
6
- exports.default = lodash_1.default;
package/src/extend.ts DELETED
@@ -1,6 +0,0 @@
1
- export function extend(){
2
- return 'f'
3
- }
4
- export default function getDef(){
5
- return 'd'
6
- }
package/src/index.ts DELETED
@@ -1,6 +0,0 @@
1
- import _ from 'lodash';
2
- export * from './extend';
3
- export {default as getDef} from './extend';
4
- export {
5
- _
6
- };