@dxyl/utils 1.3.0 → 1.3.2

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 (423) hide show
  1. package/dist/index.es.js +7305 -6683
  2. package/dist/index.umd.js +26 -26
  3. package/lib/glslang/glslang.d.ts +14 -14
  4. package/lib/glslang/glslang.js +112 -112
  5. package/lib/twgsl/twgsl.js +53 -53
  6. package/package.json +51 -51
  7. package/types/Disposable.d.ts +25 -0
  8. package/types/PluginService.d.ts +27 -19
  9. package/types/Pool.d.ts +90 -0
  10. package/types/StackCursor.d.ts +6 -0
  11. package/types/Transaction.d.ts +25 -0
  12. package/types/data/alien-signals/index.d.ts +22 -0
  13. package/types/data/alien-signals/system.d.ts +36 -0
  14. package/types/data/immer.d.ts +262 -262
  15. package/types/data/immutable.d.ts +5127 -5127
  16. package/types/data/mobx.d.ts +2 -2
  17. package/types/data/signals.d.ts +36 -17
  18. package/types/events/event_emiter.d.ts +43 -43
  19. package/types/fast-deep-equal.d.ts +1 -1
  20. package/types/index.d.ts +5 -0
  21. package/types/lodash/add.d.ts +2 -1
  22. package/types/lodash/after.d.ts +2 -1
  23. package/types/lodash/array.d.ts +3 -1
  24. package/types/lodash/array.default.d.ts +70 -68
  25. package/types/lodash/ary.d.ts +2 -1
  26. package/types/lodash/assign.d.ts +2 -1
  27. package/types/lodash/assignIn.d.ts +2 -1
  28. package/types/lodash/assignInWith.d.ts +2 -1
  29. package/types/lodash/assignWith.d.ts +2 -1
  30. package/types/lodash/at.d.ts +2 -1
  31. package/types/lodash/attempt.d.ts +2 -1
  32. package/types/lodash/augment.d.ts +2 -2
  33. package/types/lodash/before.d.ts +2 -1
  34. package/types/lodash/bind.d.ts +2 -1
  35. package/types/lodash/bindAll.d.ts +2 -1
  36. package/types/lodash/bindKey.d.ts +2 -1
  37. package/types/lodash/cache.d.ts +14 -14
  38. package/types/lodash/camelCase.d.ts +2 -1
  39. package/types/lodash/capitalize.d.ts +2 -1
  40. package/types/lodash/castArray.d.ts +2 -1
  41. package/types/lodash/ceil.d.ts +2 -1
  42. package/types/lodash/chain.d.ts +2 -1
  43. package/types/lodash/chunk.d.ts +2 -1
  44. package/types/lodash/clamp.d.ts +2 -1
  45. package/types/lodash/clear-animation-frame.d.ts +1 -1
  46. package/types/lodash/clone.d.ts +2 -1
  47. package/types/lodash/cloneDeep.d.ts +2 -1
  48. package/types/lodash/cloneDeepWith.d.ts +2 -1
  49. package/types/lodash/cloneWith.d.ts +2 -1
  50. package/types/lodash/collection.d.ts +3 -1
  51. package/types/lodash/collection.default.d.ts +33 -31
  52. package/types/lodash/compact.d.ts +2 -1
  53. package/types/lodash/concat.d.ts +2 -1
  54. package/types/lodash/cond.d.ts +2 -1
  55. package/types/lodash/conforms.d.ts +2 -1
  56. package/types/lodash/conformsTo.d.ts +2 -1
  57. package/types/lodash/constant.d.ts +2 -1
  58. package/types/lodash/contains.d.ts +2 -2
  59. package/types/lodash/countBy.d.ts +2 -1
  60. package/types/lodash/create.d.ts +2 -1
  61. package/types/lodash/curry.d.ts +2 -1
  62. package/types/lodash/curryRight.d.ts +2 -1
  63. package/types/lodash/date.d.ts +3 -1
  64. package/types/lodash/date.default.d.ts +6 -4
  65. package/types/lodash/debounce.d.ts +4 -2
  66. package/types/lodash/deburr.d.ts +2 -1
  67. package/types/lodash/deep-mix.d.ts +2 -2
  68. package/types/lodash/defaultTo.d.ts +2 -1
  69. package/types/lodash/defaults.d.ts +2 -1
  70. package/types/lodash/defaultsDeep.d.ts +2 -1
  71. package/types/lodash/defer.d.ts +2 -1
  72. package/types/lodash/delay.d.ts +2 -1
  73. package/types/lodash/difference.d.ts +2 -1
  74. package/types/lodash/differenceBy.d.ts +2 -1
  75. package/types/lodash/differenceWith.d.ts +2 -1
  76. package/types/lodash/divide.d.ts +2 -1
  77. package/types/lodash/drop.d.ts +2 -1
  78. package/types/lodash/dropRight.d.ts +2 -1
  79. package/types/lodash/dropRightWhile.d.ts +2 -1
  80. package/types/lodash/dropWhile.d.ts +2 -1
  81. package/types/lodash/each.d.ts +2 -1
  82. package/types/lodash/eachRight.d.ts +2 -1
  83. package/types/lodash/ends-with.d.ts +3 -3
  84. package/types/lodash/endsWith.d.ts +2 -1
  85. package/types/lodash/entries.d.ts +2 -1
  86. package/types/lodash/entriesIn.d.ts +2 -1
  87. package/types/lodash/eq.d.ts +2 -1
  88. package/types/lodash/escape.d.ts +2 -1
  89. package/types/lodash/escapeRegExp.d.ts +2 -1
  90. package/types/lodash/every.d.ts +2 -1
  91. package/types/lodash/extend.d.ts +2 -1
  92. package/types/lodash/extendWith.d.ts +2 -1
  93. package/types/lodash/fill.d.ts +2 -1
  94. package/types/lodash/filter.d.ts +2 -1
  95. package/types/lodash/find-index.d.ts +2 -2
  96. package/types/lodash/find.d.ts +2 -1
  97. package/types/lodash/findIndex.d.ts +2 -1
  98. package/types/lodash/findKey.d.ts +2 -1
  99. package/types/lodash/findLast.d.ts +2 -1
  100. package/types/lodash/findLastIndex.d.ts +2 -1
  101. package/types/lodash/findLastKey.d.ts +2 -1
  102. package/types/lodash/first-value.d.ts +2 -2
  103. package/types/lodash/first.d.ts +2 -1
  104. package/types/lodash/fixed-base.d.ts +2 -2
  105. package/types/lodash/flatMap.d.ts +2 -1
  106. package/types/lodash/flatMapDeep.d.ts +2 -1
  107. package/types/lodash/flatMapDepth.d.ts +2 -1
  108. package/types/lodash/flatten-deep.d.ts +12 -12
  109. package/types/lodash/flatten.d.ts +2 -1
  110. package/types/lodash/flattenDeep.d.ts +2 -1
  111. package/types/lodash/flattenDepth.d.ts +2 -1
  112. package/types/lodash/flip.d.ts +2 -1
  113. package/types/lodash/floor.d.ts +2 -1
  114. package/types/lodash/flow.d.ts +2 -1
  115. package/types/lodash/flowRight.d.ts +2 -1
  116. package/types/lodash/for-in.d.ts +2 -2
  117. package/types/lodash/forEach.d.ts +2 -1
  118. package/types/lodash/forEachRight.d.ts +2 -1
  119. package/types/lodash/forIn.d.ts +2 -1
  120. package/types/lodash/forInRight.d.ts +2 -1
  121. package/types/lodash/forOwn.d.ts +2 -1
  122. package/types/lodash/forOwnRight.d.ts +2 -1
  123. package/types/lodash/fromPairs.d.ts +2 -1
  124. package/types/lodash/function.d.ts +3 -1
  125. package/types/lodash/function.default.d.ts +28 -26
  126. package/types/lodash/functions.d.ts +2 -1
  127. package/types/lodash/functionsIn.d.ts +2 -1
  128. package/types/lodash/get-range.d.ts +6 -6
  129. package/types/lodash/get-type.d.ts +2 -2
  130. package/types/lodash/get-wrap-behavior.d.ts +9 -9
  131. package/types/lodash/get.d.ts +2 -1
  132. package/types/lodash/group-by.d.ts +6 -6
  133. package/types/lodash/group-to-map.d.ts +8 -8
  134. package/types/lodash/group.d.ts +2 -2
  135. package/types/lodash/groupBy.d.ts +2 -1
  136. package/types/lodash/gt.d.ts +2 -1
  137. package/types/lodash/gte.d.ts +2 -1
  138. package/types/lodash/has-key.d.ts +2 -2
  139. package/types/lodash/has-value.d.ts +2 -2
  140. package/types/lodash/has.d.ts +2 -1
  141. package/types/lodash/hasIn.d.ts +2 -1
  142. package/types/lodash/head.d.ts +2 -1
  143. package/types/lodash/identity.d.ts +2 -1
  144. package/types/lodash/inRange.d.ts +2 -1
  145. package/types/lodash/includes.d.ts +2 -1
  146. package/types/lodash/index-of.d.ts +2 -2
  147. package/types/lodash/index.d.ts +304 -304
  148. package/types/lodash/indexOf.d.ts +2 -1
  149. package/types/lodash/initial.d.ts +2 -1
  150. package/types/lodash/intersection.d.ts +2 -1
  151. package/types/lodash/intersectionBy.d.ts +2 -1
  152. package/types/lodash/intersectionWith.d.ts +2 -1
  153. package/types/lodash/invert.d.ts +2 -1
  154. package/types/lodash/invertBy.d.ts +2 -1
  155. package/types/lodash/invoke.d.ts +2 -1
  156. package/types/lodash/invokeMap.d.ts +2 -1
  157. package/types/lodash/is-arguments.d.ts +2 -2
  158. package/types/lodash/is-array-like.d.ts +2 -2
  159. package/types/lodash/is-array.d.ts +2 -2
  160. package/types/lodash/is-boolean.d.ts +2 -2
  161. package/types/lodash/is-date.d.ts +2 -2
  162. package/types/lodash/is-decimal.d.ts +2 -2
  163. package/types/lodash/is-element.d.ts +6 -6
  164. package/types/lodash/is-empty.d.ts +2 -2
  165. package/types/lodash/is-equal-with.d.ts +24 -24
  166. package/types/lodash/is-equal.d.ts +2 -2
  167. package/types/lodash/is-error.d.ts +2 -2
  168. package/types/lodash/is-even.d.ts +2 -2
  169. package/types/lodash/is-finite.d.ts +1 -1
  170. package/types/lodash/is-function.d.ts +2 -2
  171. package/types/lodash/is-integer.d.ts +2 -2
  172. package/types/lodash/is-match.d.ts +2 -2
  173. package/types/lodash/is-negative.d.ts +2 -2
  174. package/types/lodash/is-nil.d.ts +2 -2
  175. package/types/lodash/is-null.d.ts +2 -2
  176. package/types/lodash/is-number-equal.d.ts +1 -1
  177. package/types/lodash/is-number.d.ts +2 -2
  178. package/types/lodash/is-object-like.d.ts +2 -2
  179. package/types/lodash/is-object.d.ts +2 -2
  180. package/types/lodash/is-odd.d.ts +2 -2
  181. package/types/lodash/is-plain-object.d.ts +2 -2
  182. package/types/lodash/is-positive.d.ts +2 -2
  183. package/types/lodash/is-prototype.d.ts +2 -2
  184. package/types/lodash/is-reg-exp.d.ts +2 -2
  185. package/types/lodash/is-segment-equal.d.ts +2 -2
  186. package/types/lodash/is-string.d.ts +2 -2
  187. package/types/lodash/is-type.d.ts +2 -2
  188. package/types/lodash/is-undefined.d.ts +2 -2
  189. package/types/lodash/isArguments.d.ts +2 -1
  190. package/types/lodash/isArray.d.ts +2 -1
  191. package/types/lodash/isArrayBuffer.d.ts +2 -1
  192. package/types/lodash/isArrayLike.d.ts +2 -1
  193. package/types/lodash/isArrayLikeObject.d.ts +2 -1
  194. package/types/lodash/isBoolean.d.ts +2 -1
  195. package/types/lodash/isBuffer.d.ts +2 -1
  196. package/types/lodash/isDate.d.ts +2 -1
  197. package/types/lodash/isElement.d.ts +2 -1
  198. package/types/lodash/isEmpty.d.ts +2 -1
  199. package/types/lodash/isEqual.d.ts +2 -1
  200. package/types/lodash/isEqualWith.d.ts +2 -1
  201. package/types/lodash/isError.d.ts +2 -1
  202. package/types/lodash/isFinite.d.ts +2 -1
  203. package/types/lodash/isFunction.d.ts +2 -1
  204. package/types/lodash/isInteger.d.ts +2 -1
  205. package/types/lodash/isLength.d.ts +2 -1
  206. package/types/lodash/isMap.d.ts +2 -1
  207. package/types/lodash/isMatch.d.ts +2 -1
  208. package/types/lodash/isMatchWith.d.ts +2 -1
  209. package/types/lodash/isNaN.d.ts +2 -1
  210. package/types/lodash/isNative.d.ts +2 -1
  211. package/types/lodash/isNil.d.ts +2 -1
  212. package/types/lodash/isNull.d.ts +2 -1
  213. package/types/lodash/isNumber.d.ts +2 -1
  214. package/types/lodash/isObject.d.ts +2 -1
  215. package/types/lodash/isObjectLike.d.ts +2 -1
  216. package/types/lodash/isPlainObject.d.ts +2 -1
  217. package/types/lodash/isRegExp.d.ts +2 -1
  218. package/types/lodash/isSafeInteger.d.ts +2 -1
  219. package/types/lodash/isSet.d.ts +2 -1
  220. package/types/lodash/isString.d.ts +2 -1
  221. package/types/lodash/isSymbol.d.ts +2 -1
  222. package/types/lodash/isTypedArray.d.ts +2 -1
  223. package/types/lodash/isUndefined.d.ts +2 -1
  224. package/types/lodash/isWeakMap.d.ts +2 -1
  225. package/types/lodash/isWeakSet.d.ts +2 -1
  226. package/types/lodash/iteratee.d.ts +2 -1
  227. package/types/lodash/join.d.ts +2 -1
  228. package/types/lodash/kebabCase.d.ts +2 -1
  229. package/types/lodash/keyBy.d.ts +2 -1
  230. package/types/lodash/keys.d.ts +2 -1
  231. package/types/lodash/keysIn.d.ts +2 -1
  232. package/types/lodash/lang.d.ts +3 -1
  233. package/types/lodash/lang.default.d.ts +61 -59
  234. package/types/lodash/last.d.ts +2 -1
  235. package/types/lodash/lastIndexOf.d.ts +2 -1
  236. package/types/lodash/lower-case.d.ts +2 -2
  237. package/types/lodash/lower-first.d.ts +2 -2
  238. package/types/lodash/lowerCase.d.ts +2 -1
  239. package/types/lodash/lowerFirst.d.ts +2 -1
  240. package/types/lodash/lt.d.ts +2 -1
  241. package/types/lodash/lte.d.ts +2 -1
  242. package/types/lodash/map-values.d.ts +6 -6
  243. package/types/lodash/map.d.ts +2 -1
  244. package/types/lodash/mapKeys.d.ts +2 -1
  245. package/types/lodash/mapValues.d.ts +2 -1
  246. package/types/lodash/matches.d.ts +2 -1
  247. package/types/lodash/matchesProperty.d.ts +2 -1
  248. package/types/lodash/math.d.ts +3 -1
  249. package/types/lodash/math.default.d.ts +20 -18
  250. package/types/lodash/max-by.d.ts +16 -16
  251. package/types/lodash/max.d.ts +2 -1
  252. package/types/lodash/maxBy.d.ts +2 -1
  253. package/types/lodash/mean.d.ts +2 -1
  254. package/types/lodash/meanBy.d.ts +2 -1
  255. package/types/lodash/memoize.d.ts +2 -1
  256. package/types/lodash/merge.d.ts +2 -1
  257. package/types/lodash/mergeWith.d.ts +2 -1
  258. package/types/lodash/method.d.ts +2 -1
  259. package/types/lodash/methodOf.d.ts +2 -1
  260. package/types/lodash/min-by.d.ts +16 -16
  261. package/types/lodash/min.d.ts +2 -1
  262. package/types/lodash/minBy.d.ts +2 -1
  263. package/types/lodash/mix.d.ts +1 -1
  264. package/types/lodash/mixin.d.ts +2 -1
  265. package/types/lodash/mod.d.ts +2 -2
  266. package/types/lodash/multiply.d.ts +2 -1
  267. package/types/lodash/negate.d.ts +2 -1
  268. package/types/lodash/noop.d.ts +2 -1
  269. package/types/lodash/now.d.ts +2 -1
  270. package/types/lodash/nth.d.ts +2 -1
  271. package/types/lodash/nthArg.d.ts +2 -1
  272. package/types/lodash/number.d.ts +3 -1
  273. package/types/lodash/number.default.d.ts +8 -6
  274. package/types/lodash/number2color.d.ts +2 -2
  275. package/types/lodash/object.d.ts +3 -1
  276. package/types/lodash/object.default.d.ts +52 -50
  277. package/types/lodash/omit.d.ts +2 -1
  278. package/types/lodash/omitBy.d.ts +2 -1
  279. package/types/lodash/once.d.ts +2 -1
  280. package/types/lodash/orderBy.d.ts +2 -1
  281. package/types/lodash/over.d.ts +2 -1
  282. package/types/lodash/overArgs.d.ts +2 -1
  283. package/types/lodash/overEvery.d.ts +2 -1
  284. package/types/lodash/overSome.d.ts +2 -1
  285. package/types/lodash/pad.d.ts +2 -1
  286. package/types/lodash/padEnd.d.ts +2 -1
  287. package/types/lodash/padStart.d.ts +2 -1
  288. package/types/lodash/parse-radius.d.ts +9 -9
  289. package/types/lodash/parseInt.d.ts +2 -1
  290. package/types/lodash/partial.d.ts +2 -1
  291. package/types/lodash/partialRight.d.ts +2 -1
  292. package/types/lodash/partition.d.ts +2 -1
  293. package/types/lodash/pick.d.ts +2 -1
  294. package/types/lodash/pickBy.d.ts +2 -1
  295. package/types/lodash/property.d.ts +4 -2
  296. package/types/lodash/propertyOf.d.ts +2 -1
  297. package/types/lodash/pull-at.d.ts +2 -2
  298. package/types/lodash/pull.d.ts +2 -1
  299. package/types/lodash/pullAll.d.ts +2 -1
  300. package/types/lodash/pullAllBy.d.ts +2 -1
  301. package/types/lodash/pullAllWith.d.ts +2 -1
  302. package/types/lodash/pullAt.d.ts +2 -1
  303. package/types/lodash/random.d.ts +2 -1
  304. package/types/lodash/range.d.ts +2 -1
  305. package/types/lodash/rangeRight.d.ts +2 -1
  306. package/types/lodash/rearg.d.ts +2 -1
  307. package/types/lodash/reduce.d.ts +2 -1
  308. package/types/lodash/reduceRight.d.ts +2 -1
  309. package/types/lodash/reject.d.ts +2 -1
  310. package/types/lodash/remove.d.ts +2 -1
  311. package/types/lodash/repeat.d.ts +2 -1
  312. package/types/lodash/replace.d.ts +2 -1
  313. package/types/lodash/request-animation-frame.d.ts +1 -1
  314. package/types/lodash/rest.d.ts +2 -1
  315. package/types/lodash/result.d.ts +2 -1
  316. package/types/lodash/reverse.d.ts +2 -1
  317. package/types/lodash/round.d.ts +2 -1
  318. package/types/lodash/sample.d.ts +2 -1
  319. package/types/lodash/sampleSize.d.ts +2 -1
  320. package/types/lodash/set.d.ts +2 -1
  321. package/types/lodash/setWith.d.ts +2 -1
  322. package/types/lodash/shuffle.d.ts +2 -1
  323. package/types/lodash/size.d.ts +2 -1
  324. package/types/lodash/slice.d.ts +2 -1
  325. package/types/lodash/snakeCase.d.ts +2 -1
  326. package/types/lodash/some.d.ts +2 -1
  327. package/types/lodash/sort-by.d.ts +7 -7
  328. package/types/lodash/sortBy.d.ts +2 -1
  329. package/types/lodash/sortedIndex.d.ts +2 -1
  330. package/types/lodash/sortedIndexBy.d.ts +2 -1
  331. package/types/lodash/sortedIndexOf.d.ts +2 -1
  332. package/types/lodash/sortedLastIndex.d.ts +2 -1
  333. package/types/lodash/sortedLastIndexBy.d.ts +2 -1
  334. package/types/lodash/sortedLastIndexOf.d.ts +2 -1
  335. package/types/lodash/sortedUniq.d.ts +2 -1
  336. package/types/lodash/sortedUniqBy.d.ts +2 -1
  337. package/types/lodash/split.d.ts +2 -1
  338. package/types/lodash/spread.d.ts +2 -1
  339. package/types/lodash/startCase.d.ts +2 -1
  340. package/types/lodash/starts-with.d.ts +3 -3
  341. package/types/lodash/startsWith.d.ts +2 -1
  342. package/types/lodash/string.d.ts +3 -1
  343. package/types/lodash/string.default.d.ts +36 -34
  344. package/types/lodash/stubArray.d.ts +2 -1
  345. package/types/lodash/stubFalse.d.ts +2 -1
  346. package/types/lodash/stubObject.d.ts +2 -1
  347. package/types/lodash/stubString.d.ts +2 -1
  348. package/types/lodash/stubTrue.d.ts +2 -1
  349. package/types/lodash/substitute.d.ts +5 -5
  350. package/types/lodash/subtract.d.ts +2 -1
  351. package/types/lodash/sum.d.ts +2 -1
  352. package/types/lodash/sumBy.d.ts +2 -1
  353. package/types/lodash/tail.d.ts +2 -1
  354. package/types/lodash/take.d.ts +2 -1
  355. package/types/lodash/takeRight.d.ts +2 -1
  356. package/types/lodash/takeRightWhile.d.ts +2 -1
  357. package/types/lodash/takeWhile.d.ts +2 -1
  358. package/types/lodash/tap.d.ts +2 -1
  359. package/types/lodash/template.d.ts +2 -1
  360. package/types/lodash/templateSettings.d.ts +2 -1
  361. package/types/lodash/throttle.d.ts +4 -2
  362. package/types/lodash/thru.d.ts +2 -1
  363. package/types/lodash/times.d.ts +2 -1
  364. package/types/lodash/to-array.d.ts +2 -2
  365. package/types/lodash/to-degree.d.ts +2 -2
  366. package/types/lodash/to-integer.d.ts +1 -1
  367. package/types/lodash/to-radian.d.ts +2 -2
  368. package/types/lodash/to-string.d.ts +2 -2
  369. package/types/lodash/toArray.d.ts +2 -1
  370. package/types/lodash/toFinite.d.ts +2 -1
  371. package/types/lodash/toInteger.d.ts +2 -1
  372. package/types/lodash/toLength.d.ts +2 -1
  373. package/types/lodash/toLower.d.ts +2 -1
  374. package/types/lodash/toNumber.d.ts +2 -1
  375. package/types/lodash/toPairs.d.ts +2 -1
  376. package/types/lodash/toPairsIn.d.ts +2 -1
  377. package/types/lodash/toPath.d.ts +2 -1
  378. package/types/lodash/toPlainObject.d.ts +2 -1
  379. package/types/lodash/toSafeInteger.d.ts +2 -1
  380. package/types/lodash/toString.d.ts +2 -1
  381. package/types/lodash/toUpper.d.ts +2 -1
  382. package/types/lodash/transform.d.ts +2 -1
  383. package/types/lodash/trim.d.ts +2 -1
  384. package/types/lodash/trimEnd.d.ts +2 -1
  385. package/types/lodash/trimStart.d.ts +2 -1
  386. package/types/lodash/truncate.d.ts +2 -1
  387. package/types/lodash/types/index.d.ts +3 -3
  388. package/types/lodash/unary.d.ts +2 -1
  389. package/types/lodash/unescape.d.ts +2 -1
  390. package/types/lodash/union.d.ts +2 -1
  391. package/types/lodash/unionBy.d.ts +2 -1
  392. package/types/lodash/unionWith.d.ts +2 -1
  393. package/types/lodash/uniq.d.ts +2 -1
  394. package/types/lodash/uniqBy.d.ts +2 -1
  395. package/types/lodash/uniqWith.d.ts +2 -1
  396. package/types/lodash/unique-id.d.ts +2 -2
  397. package/types/lodash/uniqueId.d.ts +2 -1
  398. package/types/lodash/unset.d.ts +2 -1
  399. package/types/lodash/unzip.d.ts +2 -1
  400. package/types/lodash/unzipWith.d.ts +2 -1
  401. package/types/lodash/update.d.ts +2 -1
  402. package/types/lodash/updateWith.d.ts +2 -1
  403. package/types/lodash/upper-case.d.ts +2 -2
  404. package/types/lodash/upper-first.d.ts +2 -2
  405. package/types/lodash/upperCase.d.ts +2 -1
  406. package/types/lodash/upperFirst.d.ts +2 -1
  407. package/types/lodash/util.d.ts +3 -1
  408. package/types/lodash/util.default.d.ts +37 -35
  409. package/types/lodash/values-of-key.d.ts +2 -2
  410. package/types/lodash/values.d.ts +2 -1
  411. package/types/lodash/valuesIn.d.ts +2 -1
  412. package/types/lodash/without.d.ts +2 -1
  413. package/types/lodash/words.d.ts +2 -1
  414. package/types/lodash/wrap-behavior.d.ts +9 -9
  415. package/types/lodash/wrap.d.ts +2 -1
  416. package/types/lodash/xor.d.ts +2 -1
  417. package/types/lodash/xorBy.d.ts +2 -1
  418. package/types/lodash/xorWith.d.ts +2 -1
  419. package/types/lodash/zip.d.ts +2 -1
  420. package/types/lodash/zipObject.d.ts +2 -1
  421. package/types/lodash/zipObjectDeep.d.ts +2 -1
  422. package/types/lodash/zipWith.d.ts +2 -1
  423. package/types/stats.module.d.ts +3 -3
@@ -1,2 +1,2 @@
1
- export { IObservable, IDepTreeNode, Reaction, IReactionPublic, IReactionDisposer, untracked, IAtom, createAtom, spy, IComputedValue, IEqualsComparer, comparer, IEnhancer, IInterceptable, IInterceptor, IListenable, IObjectWillChange, IObjectDidChange, isObservableObject, IValueDidChange, IValueWillChange, IObservableValue, isObservableValue as isBoxedObservable, IObservableArray, IArrayWillChange, IArrayWillSplice, IArraySplice, IArrayUpdate, IArrayDidChange, isObservableArray, IKeyValueMap, ObservableMap, IMapEntries, IMapEntry, IMapWillChange, IMapDidChange, isObservableMap, IObservableMapInitialValues, ObservableSet, isObservableSet, ISetDidChange, ISetWillChange, IObservableSetInitialValues, transaction, observable, IObservableFactory, CreateObservableOptions, computed, IComputedFactory, isObservable, isObservableProp, isComputed, isComputedProp, extendObservable, observe, intercept, autorun, IAutorunOptions, reaction, IReactionOptions, when, IWhenOptions, action, isAction, runInAction, IActionFactory, keys, values, entries, set, remove, has, get, apiOwnKeys as ownKeys, apiDefineProperty as defineProperty, configure, onBecomeObserved, onBecomeUnobserved, flow, isFlow, flowResult, FlowCancellationError, isFlowCancellationError, toJS, trace, IObserverTree, IDependencyTree, getDependencyTree, getObserverTree, resetGlobalState as _resetGlobalState, getGlobalState as _getGlobalState, getDebugName, getAtom, getAdministration as _getAdministration, allowStateChanges as _allowStateChanges, runInAction as _allowStateChangesInsideComputed, // This has become the default behavior in Mobx 6
2
- Lambda, $mobx, isComputingDerivation as _isComputingDerivation, onReactionError, interceptReads as _interceptReads, IComputedValueOptions, IActionRunInfo, _startAction, _endAction, allowStateReadsStart as _allowStateReadsStart, allowStateReadsEnd as _allowStateReadsEnd, makeObservable, makeAutoObservable, autoAction as _autoAction, AnnotationsMap, AnnotationMapEntry, override } from './mobx/internal';
1
+ export { IObservable, IDepTreeNode, Reaction, IReactionPublic, IReactionDisposer, untracked, IAtom, createAtom, spy, IComputedValue, IEqualsComparer, comparer, IEnhancer, IInterceptable, IInterceptor, IListenable, IObjectWillChange, IObjectDidChange, isObservableObject, IValueDidChange, IValueWillChange, IObservableValue, isObservableValue as isBoxedObservable, IObservableArray, IArrayWillChange, IArrayWillSplice, IArraySplice, IArrayUpdate, IArrayDidChange, isObservableArray, IKeyValueMap, ObservableMap, IMapEntries, IMapEntry, IMapWillChange, IMapDidChange, isObservableMap, IObservableMapInitialValues, ObservableSet, isObservableSet, ISetDidChange, ISetWillChange, IObservableSetInitialValues, transaction, observable, IObservableFactory, CreateObservableOptions, computed, IComputedFactory, isObservable, isObservableProp, isComputed, isComputedProp, extendObservable, observe, intercept, autorun, IAutorunOptions, reaction, IReactionOptions, when, IWhenOptions, action, isAction, runInAction, IActionFactory, keys, values, entries, set, remove, has, get, apiOwnKeys as ownKeys, apiDefineProperty as defineProperty, configure, onBecomeObserved, onBecomeUnobserved, flow, isFlow, flowResult, FlowCancellationError, isFlowCancellationError, toJS, trace, IObserverTree, IDependencyTree, getDependencyTree, getObserverTree, resetGlobalState as _resetGlobalState, getGlobalState as _getGlobalState, getDebugName, getAtom, getAdministration as _getAdministration, allowStateChanges as _allowStateChanges, runInAction as _allowStateChangesInsideComputed, // This has become the default behavior in Mobx 6
2
+ Lambda, $mobx, isComputingDerivation as _isComputingDerivation, onReactionError, interceptReads as _interceptReads, IComputedValueOptions, IActionRunInfo, _startAction, _endAction, allowStateReadsStart as _allowStateReadsStart, allowStateReadsEnd as _allowStateReadsEnd, makeObservable, makeAutoObservable, autoAction as _autoAction, AnnotationsMap, AnnotationMapEntry, override } from './mobx/internal';
@@ -1,8 +1,3 @@
1
- /**
2
- * @desc 信息
3
- * @ref preact-signals
4
-
5
- */
6
1
  declare const BRAND_SYMBOL: unique symbol;
7
2
  type Node = {
8
3
  _source: Signal;
@@ -51,14 +46,19 @@ declare class Signal<T = any> {
51
46
  _node?: Node;
52
47
  /** @internal */
53
48
  _targets?: Node;
54
- constructor(value?: T);
49
+ constructor(value?: T, options?: SignalOptions<T>);
55
50
  /** @internal */
56
51
  _refresh(): boolean;
57
52
  /** @internal */
58
53
  _subscribe(node: Node): void;
59
54
  /** @internal */
60
55
  _unsubscribe(node: Node): void;
56
+ /** @internal */
57
+ _watched?(this: Signal<T>): void;
58
+ /** @internal */
59
+ _unwatched?(this: Signal<T>): void;
61
60
  subscribe(fn: (value: T) => void): () => void;
61
+ name?: string;
62
62
  valueOf(): T;
63
63
  toString(): string;
64
64
  toJSON(): T;
@@ -67,26 +67,35 @@ declare class Signal<T = any> {
67
67
  get value(): T;
68
68
  set value(value: T);
69
69
  }
70
+ export interface SignalOptions<T = any> {
71
+ watched?: (this: Signal<T>) => void;
72
+ unwatched?: (this: Signal<T>) => void;
73
+ name?: string;
74
+ }
70
75
  /** @internal */
71
- declare function Signal(this: Signal, value?: unknown): void;
76
+ declare function Signal(this: Signal, value?: unknown, options?: SignalOptions): void;
72
77
  /**
73
78
  * Create a new plain signal.
74
79
  *
75
80
  * @param value The initial value for the signal.
76
81
  * @returns A new signal.
77
82
  */
78
- export declare function signal<T>(value: T): Signal<T>;
83
+ export declare function signal<T>(value: T, options?: SignalOptions<T>): Signal<T>;
79
84
  export declare function signal<T = undefined>(): Signal<T | undefined>;
85
+ /**
86
+ * The base class for computed signals.
87
+ */
80
88
  declare class Computed<T = any> extends Signal<T> {
81
89
  _fn: () => T;
82
90
  _sources?: Node;
83
91
  _globalVersion: number;
84
92
  _flags: number;
85
- constructor(fn: () => T);
93
+ constructor(fn: () => T, options?: SignalOptions<T>);
86
94
  _notify(): void;
87
95
  get value(): T;
88
96
  }
89
- declare function Computed(this: Computed, fn: () => unknown): void;
97
+ /** @internal */
98
+ declare function Computed(this: Computed, fn: () => unknown, options?: SignalOptions): void;
90
99
  declare namespace Computed {
91
100
  var prototype: Computed<any>;
92
101
  }
@@ -111,21 +120,32 @@ interface ReadonlySignal<T = any> {
111
120
  * @param fn The effect callback.
112
121
  * @returns A new read-only signal.
113
122
  */
114
- declare function computed<T>(fn: () => T): ReadonlySignal<T>;
115
- type EffectFn = () => void | (() => void);
123
+ declare function computed<T>(fn: () => T, options?: SignalOptions<T>): ReadonlySignal<T>;
124
+ type EffectFn = ((this: {
125
+ dispose: () => void;
126
+ }) => void | (() => void)) | (() => void | (() => void));
127
+ /**
128
+ * The base class for reactive effects.
129
+ */
116
130
  declare class Effect {
117
131
  _fn?: EffectFn;
118
132
  _cleanup?: () => void;
119
133
  _sources?: Node;
120
134
  _nextBatchedEffect?: Effect;
121
135
  _flags: number;
122
- constructor(fn: EffectFn);
136
+ name?: string;
137
+ constructor(fn: EffectFn, options?: EffectOptions);
123
138
  _callback(): void;
124
139
  _start(): () => void;
125
140
  _notify(): void;
126
141
  _dispose(): void;
142
+ dispose(): void;
127
143
  }
128
- declare function Effect(this: Effect, fn: EffectFn): void;
144
+ export interface EffectOptions {
145
+ name?: string;
146
+ }
147
+ /** @internal */
148
+ declare function Effect(this: Effect, fn: EffectFn, options?: EffectOptions): void;
129
149
  /**
130
150
  * Create an effect to run arbitrary code in response to signal changes.
131
151
  *
@@ -139,6 +159,5 @@ declare function Effect(this: Effect, fn: EffectFn): void;
139
159
  * @param fn The effect callback.
140
160
  * @returns A function for disposing the effect.
141
161
  */
142
- declare function effect(fn: EffectFn): () => void;
143
- export { computed, effect, batch, untracked, Signal };
144
- export type { ReadonlySignal };
162
+ declare function effect(fn: EffectFn, options?: EffectOptions): () => void;
163
+ export { computed, effect, batch, untracked, Signal, ReadonlySignal, Effect, Computed, };
@@ -1,43 +1,43 @@
1
- type EventData = {
2
- [Key: string]: any;
3
- };
4
- type ListenerFunc<D extends EventData> = (e: EmitterEvent<D>) => void;
5
- type ListenerObject<D extends EventData> = {
6
- handleEvent(e: EmitterEvent<D>): void;
7
- };
8
- type ListenerFuncOrObject<D extends EventData> = ListenerFunc<D> | ListenerObject<D>;
9
- type ListenerData<D extends EventData> = {
10
- once: boolean;
11
- listener: ListenerFuncOrObject<D>;
12
- };
13
- export declare class EmitterEvent<Data extends EventData> {
14
- static NONE: number;
15
- static AT_TARGET: number;
16
- static BUBBLING_PHASE: number;
17
- static new(type: string, data: any): EmitterEvent<any>;
18
- type: string;
19
- eventPhase: number;
20
- data: Data;
21
- target: EventEmitter<any> | null;
22
- currentTarget: EventEmitter<any> | null;
23
- composedPath: EventEmitter<any>[];
24
- bubbles: boolean;
25
- propagationStopped: boolean;
26
- immediatePropagationStopped: boolean;
27
- constructor(type: string, data: Data);
28
- reset(): void;
29
- stopPropagation(): void;
30
- stopImmediatePropagation(): void;
31
- }
32
- declare const isEventEmitter_Property: unique symbol;
33
- export declare class EventEmitter<EventListeners extends Record<string, EventData> = {}> {
34
- static createEvent(type: string, data: any): EmitterEvent<any>;
35
- [isEventEmitter_Property]: boolean;
36
- parent?: EventEmitter;
37
- listeners: Map<string, ListenerData<EventData>[]>;
38
- hasEvent(type: string): boolean;
39
- on<Type extends Extract<keyof EventListeners, string>>(type: Type, listener: ListenerFuncOrObject<EventListeners[Type]>, once?: boolean): boolean;
40
- off<Type extends Extract<keyof EventListeners, string>>(type?: Type, listener?: ListenerFuncOrObject<EventListeners[Type]>): boolean;
41
- emit(event: EmitterEvent<EventListeners[keyof EventListeners]>): void;
42
- }
43
- export {};
1
+ type EventData = {
2
+ [Key: string]: any;
3
+ };
4
+ type ListenerFunc<D extends EventData> = (e: EmitterEvent<D>) => void;
5
+ type ListenerObject<D extends EventData> = {
6
+ handleEvent(e: EmitterEvent<D>): void;
7
+ };
8
+ type ListenerFuncOrObject<D extends EventData> = ListenerFunc<D> | ListenerObject<D>;
9
+ type ListenerData<D extends EventData> = {
10
+ once: boolean;
11
+ listener: ListenerFuncOrObject<D>;
12
+ };
13
+ export declare class EmitterEvent<Data extends EventData> {
14
+ static NONE: number;
15
+ static AT_TARGET: number;
16
+ static BUBBLING_PHASE: number;
17
+ static new(type: string, data: any): EmitterEvent<any>;
18
+ type: string;
19
+ eventPhase: number;
20
+ data: Data;
21
+ target: EventEmitter<any> | null;
22
+ currentTarget: EventEmitter<any> | null;
23
+ composedPath: EventEmitter<any>[];
24
+ bubbles: boolean;
25
+ propagationStopped: boolean;
26
+ immediatePropagationStopped: boolean;
27
+ constructor(type: string, data: Data);
28
+ reset(): void;
29
+ stopPropagation(): void;
30
+ stopImmediatePropagation(): void;
31
+ }
32
+ declare const isEventEmitter_Property: unique symbol;
33
+ export declare class EventEmitter<EventListeners extends Record<string, EventData> = {}> {
34
+ static createEvent(type: string, data: any): EmitterEvent<any>;
35
+ [isEventEmitter_Property]: boolean;
36
+ parent?: EventEmitter;
37
+ listeners: Map<string, ListenerData<EventData>[]>;
38
+ hasEvent(type: string): boolean;
39
+ on<Type extends Extract<keyof EventListeners, string>>(type: Type, listener: ListenerFuncOrObject<EventListeners[Type]>, once?: boolean): boolean;
40
+ off<Type extends Extract<keyof EventListeners, string>>(type?: Type, listener?: ListenerFuncOrObject<EventListeners[Type]>): boolean;
41
+ emit(event: EmitterEvent<EventListeners[keyof EventListeners]>): void;
42
+ }
43
+ export {};
@@ -1 +1 @@
1
- export default function equal(a: any, b: any): boolean;
1
+ export default function equal(a: any, b: any): boolean;
package/types/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export * as reactivity from './data/reactivity';
19
19
  export * as signals from './data/signals';
20
20
  export * as redux from './data/redux';
21
21
  export * as mobx from './data/mobx';
22
+ export * as alienSignals from './data/alien-signals';
22
23
  export * as tapable from './tapable';
23
24
  export { Options } from './Options';
24
25
  export { default as compose } from './compose';
@@ -31,3 +32,7 @@ export { default as fastDeepEqual } from './fast/fast-deep-equal';
31
32
  export { default as fastDiff } from './fast/fast-diff';
32
33
  export * as fastJsonPatch from './fast/fast-json-patch/core';
33
34
  export * as QuillDelta from './text/quill-delta/Delta';
35
+ export * from './Transaction';
36
+ export * from './StackCursor';
37
+ export * from './Pool';
38
+ export * from './Disposable';
@@ -1,2 +1,3 @@
1
1
  import { add } from 'lodash';
2
- export default add;
2
+
3
+ export default add;
@@ -1,2 +1,3 @@
1
1
  import { after } from 'lodash';
2
- export default after;
2
+
3
+ export default after;
@@ -63,4 +63,6 @@ import { default as zip } from './zip';
63
63
  import { default as zipObject } from './zipObject';
64
64
  import { default as zipObjectDeep } from './zipObjectDeep';
65
65
  import { default as zipWith } from './zipWith';
66
- export { default } from './array.default';
66
+
67
+
68
+ export { default } from './array.default';
@@ -63,71 +63,73 @@ import { default as zip } from './zip';
63
63
  import { default as zipObject } from './zipObject';
64
64
  import { default as zipObjectDeep } from './zipObjectDeep';
65
65
  import { default as zipWith } from './zipWith';
66
- declare const defaultExport: {
67
- chunk: typeof chunk;
68
- compact: typeof compact;
69
- concat: typeof concat;
70
- difference: typeof difference;
71
- differenceBy: typeof differenceBy;
72
- differenceWith: typeof differenceWith;
73
- drop: typeof drop;
74
- dropRight: typeof dropRight;
75
- dropRightWhile: typeof dropRightWhile;
76
- dropWhile: typeof dropWhile;
77
- fill: typeof fill;
78
- findIndex: typeof findIndex;
79
- findLastIndex: typeof findLastIndex;
80
- first: typeof first;
81
- flatten: typeof flatten;
82
- flattenDeep: typeof flattenDeep;
83
- flattenDepth: typeof flattenDepth;
84
- fromPairs: typeof fromPairs;
85
- head: typeof head;
86
- indexOf: typeof indexOf;
87
- initial: typeof initial;
88
- intersection: typeof intersection;
89
- intersectionBy: typeof intersectionBy;
90
- intersectionWith: typeof intersectionWith;
91
- join: typeof join;
92
- last: typeof last;
93
- lastIndexOf: typeof lastIndexOf;
94
- nth: typeof nth;
95
- pull: typeof pull;
96
- pullAll: typeof pullAll;
97
- pullAllBy: typeof pullAllBy;
98
- pullAllWith: typeof pullAllWith;
99
- pullAt: typeof pullAt;
100
- remove: typeof remove;
101
- reverse: typeof reverse;
102
- slice: typeof slice;
103
- sortedIndex: typeof sortedIndex;
104
- sortedIndexBy: typeof sortedIndexBy;
105
- sortedIndexOf: typeof sortedIndexOf;
106
- sortedLastIndex: typeof sortedLastIndex;
107
- sortedLastIndexBy: typeof sortedLastIndexBy;
108
- sortedLastIndexOf: typeof sortedLastIndexOf;
109
- sortedUniq: typeof sortedUniq;
110
- sortedUniqBy: typeof sortedUniqBy;
111
- tail: typeof tail;
112
- take: typeof take;
113
- takeRight: typeof takeRight;
114
- takeRightWhile: typeof takeRightWhile;
115
- takeWhile: typeof takeWhile;
116
- union: typeof union;
117
- unionBy: typeof unionBy;
118
- unionWith: typeof unionWith;
119
- uniq: typeof uniq;
120
- uniqBy: typeof uniqBy;
121
- uniqWith: typeof uniqWith;
122
- unzip: typeof unzip;
123
- unzipWith: typeof unzipWith;
124
- without: typeof without;
125
- xor: typeof xor;
126
- xorBy: typeof xorBy;
127
- xorWith: typeof xorWith;
128
- zip: typeof zip;
129
- zipObject: typeof zipObject;
130
- zipObjectDeep: typeof zipObjectDeep;
131
- zipWith: typeof zipWith;
132
- };
133
- export default defaultExport;
66
+
67
+
68
+ declare const defaultExport: {
69
+ chunk: typeof chunk;
70
+ compact: typeof compact;
71
+ concat: typeof concat;
72
+ difference: typeof difference;
73
+ differenceBy: typeof differenceBy;
74
+ differenceWith: typeof differenceWith;
75
+ drop: typeof drop;
76
+ dropRight: typeof dropRight;
77
+ dropRightWhile: typeof dropRightWhile;
78
+ dropWhile: typeof dropWhile;
79
+ fill: typeof fill;
80
+ findIndex: typeof findIndex;
81
+ findLastIndex: typeof findLastIndex;
82
+ first: typeof first;
83
+ flatten: typeof flatten;
84
+ flattenDeep: typeof flattenDeep;
85
+ flattenDepth: typeof flattenDepth;
86
+ fromPairs: typeof fromPairs;
87
+ head: typeof head;
88
+ indexOf: typeof indexOf;
89
+ initial: typeof initial;
90
+ intersection: typeof intersection;
91
+ intersectionBy: typeof intersectionBy;
92
+ intersectionWith: typeof intersectionWith;
93
+ join: typeof join;
94
+ last: typeof last;
95
+ lastIndexOf: typeof lastIndexOf;
96
+ nth: typeof nth;
97
+ pull: typeof pull;
98
+ pullAll: typeof pullAll;
99
+ pullAllBy: typeof pullAllBy;
100
+ pullAllWith: typeof pullAllWith;
101
+ pullAt: typeof pullAt;
102
+ remove: typeof remove;
103
+ reverse: typeof reverse;
104
+ slice: typeof slice;
105
+ sortedIndex: typeof sortedIndex;
106
+ sortedIndexBy: typeof sortedIndexBy;
107
+ sortedIndexOf: typeof sortedIndexOf;
108
+ sortedLastIndex: typeof sortedLastIndex;
109
+ sortedLastIndexBy: typeof sortedLastIndexBy;
110
+ sortedLastIndexOf: typeof sortedLastIndexOf;
111
+ sortedUniq: typeof sortedUniq;
112
+ sortedUniqBy: typeof sortedUniqBy;
113
+ tail: typeof tail;
114
+ take: typeof take;
115
+ takeRight: typeof takeRight;
116
+ takeRightWhile: typeof takeRightWhile;
117
+ takeWhile: typeof takeWhile;
118
+ union: typeof union;
119
+ unionBy: typeof unionBy;
120
+ unionWith: typeof unionWith;
121
+ uniq: typeof uniq;
122
+ uniqBy: typeof uniqBy;
123
+ uniqWith: typeof uniqWith;
124
+ unzip: typeof unzip;
125
+ unzipWith: typeof unzipWith;
126
+ without: typeof without;
127
+ xor: typeof xor;
128
+ xorBy: typeof xorBy;
129
+ xorWith: typeof xorWith;
130
+ zip: typeof zip;
131
+ zipObject: typeof zipObject;
132
+ zipObjectDeep: typeof zipObjectDeep;
133
+ zipWith: typeof zipWith;
134
+ };
135
+ export default defaultExport;
@@ -1,2 +1,3 @@
1
1
  import { ary } from 'lodash';
2
- export default ary;
2
+
3
+ export default ary;
@@ -1,2 +1,3 @@
1
1
  import { assign } from 'lodash';
2
- export default assign;
2
+
3
+ export default assign;
@@ -1,2 +1,3 @@
1
1
  import { assignIn } from 'lodash';
2
- export default assignIn;
2
+
3
+ export default assignIn;
@@ -1,2 +1,3 @@
1
1
  import { assignInWith } from 'lodash';
2
- export default assignInWith;
2
+
3
+ export default assignInWith;
@@ -1,2 +1,3 @@
1
1
  import { assignWith } from 'lodash';
2
- export default assignWith;
2
+
3
+ export default assignWith;
@@ -1,2 +1,3 @@
1
1
  import { at } from 'lodash';
2
- export default at;
2
+
3
+ export default at;
@@ -1,2 +1,3 @@
1
1
  import { attempt } from 'lodash';
2
- export default attempt;
2
+
3
+ export default attempt;
@@ -1,2 +1,2 @@
1
- declare const augment: (...args: any[]) => void;
2
- export default augment;
1
+ declare const augment: (...args: any[]) => void;
2
+ export default augment;
@@ -1,2 +1,3 @@
1
1
  import { before } from 'lodash';
2
- export default before;
2
+
3
+ export default before;
@@ -1,2 +1,3 @@
1
1
  import { bind } from 'lodash';
2
- export default bind;
2
+
3
+ export default bind;
@@ -1,2 +1,3 @@
1
1
  import { bindAll } from 'lodash';
2
- export default bindAll;
2
+
3
+ export default bindAll;
@@ -1,2 +1,3 @@
1
1
  import { bindKey } from 'lodash';
2
- export default bindKey;
2
+
3
+ export default bindKey;
@@ -1,14 +1,14 @@
1
- /**
2
- * k-v 存储
3
- */
4
- export default class<T> {
5
- map: {
6
- [key: string]: T;
7
- };
8
- has(key: string): boolean;
9
- get(key: string, def?: T): T | undefined;
10
- set(key: string, value: T): void;
11
- clear(): void;
12
- delete(key: string): void;
13
- size(): number;
14
- }
1
+ /**
2
+ * k-v 存储
3
+ */
4
+ export default class<T> {
5
+ map: {
6
+ [key: string]: T;
7
+ };
8
+ has(key: string): boolean;
9
+ get(key: string, def?: T): T | undefined;
10
+ set(key: string, value: T): void;
11
+ clear(): void;
12
+ delete(key: string): void;
13
+ size(): number;
14
+ }
@@ -1,2 +1,3 @@
1
1
  import { camelCase } from 'lodash';
2
- export default camelCase;
2
+
3
+ export default camelCase;
@@ -1,2 +1,3 @@
1
1
  import { capitalize } from 'lodash';
2
- export default capitalize;
2
+
3
+ export default capitalize;
@@ -1,2 +1,3 @@
1
1
  import { castArray } from 'lodash';
2
- export default castArray;
2
+
3
+ export default castArray;
@@ -1,2 +1,3 @@
1
1
  import { ceil } from 'lodash';
2
- export default ceil;
2
+
3
+ export default ceil;
@@ -1,2 +1,3 @@
1
1
  import { chain } from 'lodash';
2
- export default chain;
2
+
3
+ export default chain;
@@ -1,2 +1,3 @@
1
1
  import { chunk } from 'lodash';
2
- export default chunk;
2
+
3
+ export default chunk;
@@ -1,2 +1,3 @@
1
1
  import { clamp } from 'lodash';
2
- export default clamp;
2
+
3
+ export default clamp;
@@ -1 +1 @@
1
- export default function cancelAnimationFrame(handler: number): void;
1
+ export default function cancelAnimationFrame(handler: number): void;
@@ -1,2 +1,3 @@
1
1
  import { clone } from 'lodash';
2
- export default clone;
2
+
3
+ export default clone;
@@ -1,2 +1,3 @@
1
1
  import { cloneDeep } from 'lodash';
2
- export default cloneDeep;
2
+
3
+ export default cloneDeep;
@@ -1,2 +1,3 @@
1
1
  import { cloneDeepWith } from 'lodash';
2
- export default cloneDeepWith;
2
+
3
+ export default cloneDeepWith;
@@ -1,2 +1,3 @@
1
1
  import { cloneWith } from 'lodash';
2
- export default cloneWith;
2
+
3
+ export default cloneWith;
@@ -26,4 +26,6 @@ import { default as shuffle } from './shuffle';
26
26
  import { default as size } from './size';
27
27
  import { default as some } from './some';
28
28
  import { default as sortBy } from './sortBy';
29
- export { default } from './collection.default';
29
+
30
+
31
+ export { default } from './collection.default';