@vinicunca/perkakas 1.0.2 → 1.0.3

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 (390) hide show
  1. package/dist/add-prop.spec-d.cjs +1 -0
  2. package/dist/add-prop.spec-d.d.cts +2 -0
  3. package/dist/add-prop.spec-d.d.ts +2 -0
  4. package/dist/add-prop.spec-d.js +1 -0
  5. package/dist/chunk-2ADWP73S.js +1 -0
  6. package/dist/chunk-2VLHCBHJ.js +1 -0
  7. package/dist/chunk-HU67VIVI.js +1 -0
  8. package/dist/chunk-J5PNUDDU.js +1 -0
  9. package/dist/chunk-MZWACWOX.js +1 -0
  10. package/dist/chunk-QHGCU3LJ.js +1 -0
  11. package/dist/chunk-T7S2RC5M.cjs +1 -0
  12. package/dist/chunk-TRIZIXDA.cjs +1 -0
  13. package/dist/chunk-ULMOKABQ.cjs +1 -0
  14. package/dist/chunk-UVAWCZB6.js +1 -0
  15. package/dist/chunk-VAUOPMAN.cjs +1 -0
  16. package/dist/chunk-XSYAC5NV.cjs +1 -0
  17. package/dist/chunk-ZJGZ2TEC.cjs +1 -0
  18. package/dist/chunk.spec-d.cjs +1 -0
  19. package/dist/chunk.spec-d.d.cts +2 -0
  20. package/dist/chunk.spec-d.d.ts +2 -0
  21. package/dist/chunk.spec-d.js +1 -0
  22. package/dist/conditional.spec-d.cjs +1 -0
  23. package/dist/conditional.spec-d.d.cts +2 -0
  24. package/dist/conditional.spec-d.d.ts +2 -0
  25. package/dist/conditional.spec-d.js +1 -0
  26. package/dist/constant.spec-d.cjs +1 -0
  27. package/dist/constant.spec-d.d.cts +2 -0
  28. package/dist/constant.spec-d.d.ts +2 -0
  29. package/dist/constant.spec-d.js +1 -0
  30. package/dist/{curry-order-rules-BOMf1JS7.d.cts → curry-order-rules-DETxSzle.d.cts} +1 -1
  31. package/dist/{curry-order-rules-BOMf1JS7.d.ts → curry-order-rules-DETxSzle.d.ts} +1 -1
  32. package/dist/debounce.spec-d.cjs +1 -0
  33. package/dist/debounce.spec-d.d.cts +2 -0
  34. package/dist/debounce.spec-d.d.ts +2 -0
  35. package/dist/debounce.spec-d.js +1 -0
  36. package/dist/do-nothing.spec-d.cjs +1 -0
  37. package/dist/do-nothing.spec-d.d.cts +2 -0
  38. package/dist/do-nothing.spec-d.d.ts +2 -0
  39. package/dist/do-nothing.spec-d.js +1 -0
  40. package/dist/drop-first-by.d.cts +1 -1
  41. package/dist/drop-first-by.d.ts +1 -1
  42. package/dist/entries.spec-d.cjs +1 -0
  43. package/dist/entries.spec-d.d.cts +2 -0
  44. package/dist/entries.spec-d.d.ts +2 -0
  45. package/dist/entries.spec-d.js +1 -0
  46. package/dist/evolve.spec-d.cjs +1 -0
  47. package/dist/evolve.spec-d.d.cts +2 -0
  48. package/dist/evolve.spec-d.d.ts +2 -0
  49. package/dist/evolve.spec-d.js +1 -0
  50. package/dist/filter.spec-d.cjs +1 -0
  51. package/dist/filter.spec-d.d.cts +2 -0
  52. package/dist/filter.spec-d.d.ts +2 -0
  53. package/dist/filter.spec-d.js +1 -0
  54. package/dist/find.spec-d.cjs +1 -0
  55. package/dist/find.spec-d.d.cts +2 -0
  56. package/dist/find.spec-d.d.ts +2 -0
  57. package/dist/find.spec-d.js +1 -0
  58. package/dist/first-by.cjs +1 -1
  59. package/dist/first-by.d.cts +1 -1
  60. package/dist/first-by.d.ts +1 -1
  61. package/dist/first-by.js +1 -1
  62. package/dist/first-by.spec-d.cjs +1 -0
  63. package/dist/first-by.spec-d.d.cts +2 -0
  64. package/dist/first-by.spec-d.d.ts +2 -0
  65. package/dist/first-by.spec-d.js +1 -0
  66. package/dist/first.spec-d.cjs +1 -0
  67. package/dist/first.spec-d.d.cts +2 -0
  68. package/dist/first.spec-d.d.ts +2 -0
  69. package/dist/first.spec-d.js +1 -0
  70. package/dist/flat.spec-d.cjs +1 -0
  71. package/dist/flat.spec-d.d.cts +2 -0
  72. package/dist/flat.spec-d.d.ts +2 -0
  73. package/dist/flat.spec-d.js +1 -0
  74. package/dist/for-each-obj.spec-d.cjs +1 -0
  75. package/dist/for-each-obj.spec-d.d.cts +2 -0
  76. package/dist/for-each-obj.spec-d.d.ts +2 -0
  77. package/dist/for-each-obj.spec-d.js +1 -0
  78. package/dist/for-each.spec-d.cjs +1 -0
  79. package/dist/for-each.spec-d.d.cts +2 -0
  80. package/dist/for-each.spec-d.d.ts +2 -0
  81. package/dist/for-each.spec-d.js +1 -0
  82. package/dist/from-entries.spec-d.cjs +1 -0
  83. package/dist/from-entries.spec-d.d.cts +2 -0
  84. package/dist/from-entries.spec-d.d.ts +2 -0
  85. package/dist/from-entries.spec-d.js +1 -0
  86. package/dist/from-keys.spec-d.cjs +1 -0
  87. package/dist/from-keys.spec-d.d.cts +2 -0
  88. package/dist/from-keys.spec-d.d.ts +2 -0
  89. package/dist/from-keys.spec-d.js +1 -0
  90. package/dist/group-by.spec-d.cjs +1 -0
  91. package/dist/group-by.spec-d.d.cts +2 -0
  92. package/dist/group-by.spec-d.d.ts +2 -0
  93. package/dist/group-by.spec-d.js +1 -0
  94. package/dist/has-at-least.spec-d.cjs +1 -0
  95. package/dist/has-at-least.spec-d.d.cts +2 -0
  96. package/dist/has-at-least.spec-d.d.ts +2 -0
  97. package/dist/has-at-least.spec-d.js +1 -0
  98. package/dist/has-sub-object.spec-d.cjs +1 -0
  99. package/dist/has-sub-object.spec-d.d.cts +2 -0
  100. package/dist/has-sub-object.spec-d.d.ts +2 -0
  101. package/dist/has-sub-object.spec-d.js +1 -0
  102. package/dist/identity.spec-d.cjs +1 -0
  103. package/dist/identity.spec-d.d.cts +2 -0
  104. package/dist/identity.spec-d.d.ts +2 -0
  105. package/dist/identity.spec-d.js +1 -0
  106. package/dist/index-by.spec-d.cjs +1 -0
  107. package/dist/index-by.spec-d.d.cts +2 -0
  108. package/dist/index-by.spec-d.d.ts +2 -0
  109. package/dist/index-by.spec-d.js +1 -0
  110. package/dist/index.cjs +1 -1
  111. package/dist/index.d.cts +3 -1
  112. package/dist/index.d.ts +3 -1
  113. package/dist/index.js +1 -1
  114. package/dist/intersection.spec-d.cjs +1 -0
  115. package/dist/intersection.spec-d.d.cts +2 -0
  116. package/dist/intersection.spec-d.d.ts +2 -0
  117. package/dist/intersection.spec-d.js +1 -0
  118. package/dist/invert.spec-d.cjs +1 -0
  119. package/dist/invert.spec-d.d.cts +2 -0
  120. package/dist/invert.spec-d.d.ts +2 -0
  121. package/dist/invert.spec-d.js +1 -0
  122. package/dist/is-array.spec-d.cjs +1 -0
  123. package/dist/is-array.spec-d.d.cts +2 -0
  124. package/dist/is-array.spec-d.d.ts +2 -0
  125. package/dist/is-array.spec-d.js +1 -0
  126. package/dist/is-big-int.spec-d.cjs +1 -0
  127. package/dist/is-big-int.spec-d.d.cts +2 -0
  128. package/dist/is-big-int.spec-d.d.ts +2 -0
  129. package/dist/is-big-int.spec-d.js +1 -0
  130. package/dist/is-boolean.spec-d.cjs +1 -0
  131. package/dist/is-boolean.spec-d.d.cts +2 -0
  132. package/dist/is-boolean.spec-d.d.ts +2 -0
  133. package/dist/is-boolean.spec-d.js +1 -0
  134. package/dist/is-date.spec-d.cjs +1 -0
  135. package/dist/is-date.spec-d.d.cts +2 -0
  136. package/dist/is-date.spec-d.d.ts +2 -0
  137. package/dist/is-date.spec-d.js +1 -0
  138. package/dist/is-deep-equal.d.cts +26 -10
  139. package/dist/is-deep-equal.d.ts +26 -10
  140. package/dist/is-deep-equal.spec-d.cjs +1 -0
  141. package/dist/is-deep-equal.spec-d.d.cts +2 -0
  142. package/dist/is-deep-equal.spec-d.d.ts +2 -0
  143. package/dist/is-deep-equal.spec-d.js +1 -0
  144. package/dist/is-defined.spec-d.cjs +1 -0
  145. package/dist/is-defined.spec-d.d.cts +2 -0
  146. package/dist/is-defined.spec-d.d.ts +2 -0
  147. package/dist/is-defined.spec-d.js +1 -0
  148. package/dist/is-empty.cjs +1 -1
  149. package/dist/is-empty.js +1 -1
  150. package/dist/is-empty.spec-d.cjs +1 -0
  151. package/dist/is-empty.spec-d.d.cts +2 -0
  152. package/dist/is-empty.spec-d.d.ts +2 -0
  153. package/dist/is-empty.spec-d.js +1 -0
  154. package/dist/is-error.spec-d.cjs +1 -0
  155. package/dist/is-error.spec-d.d.cts +2 -0
  156. package/dist/is-error.spec-d.d.ts +2 -0
  157. package/dist/is-error.spec-d.js +1 -0
  158. package/dist/is-function.spec-d.cjs +1 -0
  159. package/dist/is-function.spec-d.d.cts +2 -0
  160. package/dist/is-function.spec-d.d.ts +2 -0
  161. package/dist/is-function.spec-d.js +1 -0
  162. package/dist/is-included-in.spec-d.cjs +1 -0
  163. package/dist/is-included-in.spec-d.d.cts +2 -0
  164. package/dist/is-included-in.spec-d.d.ts +2 -0
  165. package/dist/is-included-in.spec-d.js +1 -0
  166. package/dist/is-non-null.spec-d.cjs +1 -0
  167. package/dist/is-non-null.spec-d.d.cts +2 -0
  168. package/dist/is-non-null.spec-d.d.ts +2 -0
  169. package/dist/is-non-null.spec-d.js +1 -0
  170. package/dist/is-non-nullish.spec-d.cjs +1 -0
  171. package/dist/is-non-nullish.spec-d.d.cts +2 -0
  172. package/dist/is-non-nullish.spec-d.d.ts +2 -0
  173. package/dist/is-non-nullish.spec-d.js +1 -0
  174. package/dist/is-not.spec-d.cjs +1 -0
  175. package/dist/is-not.spec-d.d.cts +2 -0
  176. package/dist/is-not.spec-d.d.ts +2 -0
  177. package/dist/is-not.spec-d.js +1 -0
  178. package/dist/is-nullish.spec-d.cjs +1 -0
  179. package/dist/is-nullish.spec-d.d.cts +2 -0
  180. package/dist/is-nullish.spec-d.d.ts +2 -0
  181. package/dist/is-nullish.spec-d.js +1 -0
  182. package/dist/is-number.spec-d.cjs +1 -0
  183. package/dist/is-number.spec-d.d.cts +2 -0
  184. package/dist/is-number.spec-d.d.ts +2 -0
  185. package/dist/is-number.spec-d.js +1 -0
  186. package/dist/is-object-type.spec-d.cjs +1 -0
  187. package/dist/is-object-type.spec-d.d.cts +2 -0
  188. package/dist/is-object-type.spec-d.d.ts +2 -0
  189. package/dist/is-object-type.spec-d.js +1 -0
  190. package/dist/is-plain-object.spec-d.cjs +1 -0
  191. package/dist/is-plain-object.spec-d.d.cts +2 -0
  192. package/dist/is-plain-object.spec-d.d.ts +2 -0
  193. package/dist/is-plain-object.spec-d.js +1 -0
  194. package/dist/is-promise.spec-d.cjs +1 -0
  195. package/dist/is-promise.spec-d.d.cts +2 -0
  196. package/dist/is-promise.spec-d.d.ts +2 -0
  197. package/dist/is-promise.spec-d.js +1 -0
  198. package/dist/is-shallow-equal.cjs +1 -0
  199. package/dist/is-shallow-equal.d.cts +69 -0
  200. package/dist/is-shallow-equal.d.ts +69 -0
  201. package/dist/is-shallow-equal.js +1 -0
  202. package/dist/is-shallow-equal.spec-d.cjs +1 -0
  203. package/dist/is-shallow-equal.spec-d.d.cts +2 -0
  204. package/dist/is-shallow-equal.spec-d.d.ts +2 -0
  205. package/dist/is-shallow-equal.spec-d.js +1 -0
  206. package/dist/is-strict-equal.cjs +1 -0
  207. package/dist/is-strict-equal.d.cts +65 -0
  208. package/dist/is-strict-equal.d.ts +65 -0
  209. package/dist/is-strict-equal.js +1 -0
  210. package/dist/is-strict-equal.spec-d.cjs +1 -0
  211. package/dist/is-strict-equal.spec-d.d.cts +2 -0
  212. package/dist/is-strict-equal.spec-d.d.ts +2 -0
  213. package/dist/is-strict-equal.spec-d.js +1 -0
  214. package/dist/is-string.spec-d.cjs +1 -0
  215. package/dist/is-string.spec-d.d.cts +2 -0
  216. package/dist/is-string.spec-d.d.ts +2 -0
  217. package/dist/is-string.spec-d.js +1 -0
  218. package/dist/is-symbol.spec-d.cjs +1 -0
  219. package/dist/is-symbol.spec-d.d.cts +2 -0
  220. package/dist/is-symbol.spec-d.d.ts +2 -0
  221. package/dist/is-symbol.spec-d.js +1 -0
  222. package/dist/is-truthy.spec-d.cjs +1 -0
  223. package/dist/is-truthy.spec-d.d.cts +2 -0
  224. package/dist/is-truthy.spec-d.d.ts +2 -0
  225. package/dist/is-truthy.spec-d.js +1 -0
  226. package/dist/join.spec-d.cjs +1 -0
  227. package/dist/join.spec-d.d.cts +2 -0
  228. package/dist/join.spec-d.d.ts +2 -0
  229. package/dist/join.spec-d.js +1 -0
  230. package/dist/keys.spec-d.cjs +1 -0
  231. package/dist/keys.spec-d.d.cts +2 -0
  232. package/dist/keys.spec-d.d.ts +2 -0
  233. package/dist/keys.spec-d.js +1 -0
  234. package/dist/last.spec-d.cjs +1 -0
  235. package/dist/last.spec-d.d.cts +2 -0
  236. package/dist/last.spec-d.d.ts +2 -0
  237. package/dist/last.spec-d.js +1 -0
  238. package/dist/map-keys.spec-d.cjs +1 -0
  239. package/dist/map-keys.spec-d.d.cts +2 -0
  240. package/dist/map-keys.spec-d.d.ts +2 -0
  241. package/dist/map-keys.spec-d.js +1 -0
  242. package/dist/map-values.spec-d.cjs +1 -0
  243. package/dist/map-values.spec-d.d.cts +2 -0
  244. package/dist/map-values.spec-d.d.ts +2 -0
  245. package/dist/map-values.spec-d.js +1 -0
  246. package/dist/map-with-feedback.spec-d.cjs +1 -0
  247. package/dist/map-with-feedback.spec-d.d.cts +2 -0
  248. package/dist/map-with-feedback.spec-d.d.ts +2 -0
  249. package/dist/map-with-feedback.spec-d.js +1 -0
  250. package/dist/map.spec-d.cjs +1 -0
  251. package/dist/map.spec-d.d.cts +2 -0
  252. package/dist/map.spec-d.d.ts +2 -0
  253. package/dist/map.spec-d.js +1 -0
  254. package/dist/merge-deep.spec-d.cjs +1 -0
  255. package/dist/merge-deep.spec-d.d.cts +2 -0
  256. package/dist/merge-deep.spec-d.d.ts +2 -0
  257. package/dist/merge-deep.spec-d.js +1 -0
  258. package/dist/merge.spec-d.cjs +1 -0
  259. package/dist/merge.spec-d.d.cts +2 -0
  260. package/dist/merge.spec-d.d.ts +2 -0
  261. package/dist/merge.spec-d.js +1 -0
  262. package/dist/nth-by.d.cts +1 -1
  263. package/dist/nth-by.d.ts +1 -1
  264. package/dist/nth-by.spec-d.cjs +1 -0
  265. package/dist/nth-by.spec-d.d.cts +2 -0
  266. package/dist/nth-by.spec-d.d.ts +2 -0
  267. package/dist/nth-by.spec-d.js +1 -0
  268. package/dist/omit-by.spec-d.cjs +1 -0
  269. package/dist/omit-by.spec-d.d.cts +2 -0
  270. package/dist/omit-by.spec-d.d.ts +2 -0
  271. package/dist/omit-by.spec-d.js +1 -0
  272. package/dist/omit.spec-d.cjs +1 -0
  273. package/dist/omit.spec-d.d.cts +2 -0
  274. package/dist/omit.spec-d.d.ts +2 -0
  275. package/dist/omit.spec-d.js +1 -0
  276. package/dist/only.spec-d.cjs +1 -0
  277. package/dist/only.spec-d.d.cts +2 -0
  278. package/dist/only.spec-d.d.ts +2 -0
  279. package/dist/only.spec-d.js +1 -0
  280. package/dist/partition.spec-d.cjs +1 -0
  281. package/dist/partition.spec-d.d.cts +2 -0
  282. package/dist/partition.spec-d.d.ts +2 -0
  283. package/dist/partition.spec-d.js +1 -0
  284. package/dist/pick-by.spec-d.cjs +1 -0
  285. package/dist/pick-by.spec-d.d.cts +2 -0
  286. package/dist/pick-by.spec-d.d.ts +2 -0
  287. package/dist/pick-by.spec-d.js +1 -0
  288. package/dist/pick.spec-d.cjs +1 -0
  289. package/dist/pick.spec-d.d.cts +2 -0
  290. package/dist/pick.spec-d.d.ts +2 -0
  291. package/dist/pick.spec-d.js +1 -0
  292. package/dist/product.spec-d.cjs +1 -0
  293. package/dist/product.spec-d.d.cts +2 -0
  294. package/dist/product.spec-d.d.ts +2 -0
  295. package/dist/product.spec-d.js +1 -0
  296. package/dist/prop.spec-d.cjs +1 -0
  297. package/dist/prop.spec-d.d.cts +2 -0
  298. package/dist/prop.spec-d.d.ts +2 -0
  299. package/dist/prop.spec-d.js +1 -0
  300. package/dist/pull-object.spec-d.cjs +1 -0
  301. package/dist/pull-object.spec-d.d.cts +2 -0
  302. package/dist/pull-object.spec-d.d.ts +2 -0
  303. package/dist/pull-object.spec-d.js +1 -0
  304. package/dist/rank-by.d.cts +1 -1
  305. package/dist/rank-by.d.ts +1 -1
  306. package/dist/reverse.spec-d.cjs +1 -0
  307. package/dist/reverse.spec-d.d.cts +2 -0
  308. package/dist/reverse.spec-d.d.ts +2 -0
  309. package/dist/reverse.spec-d.js +1 -0
  310. package/dist/sample.spec-d.cjs +1 -0
  311. package/dist/sample.spec-d.d.cts +2 -0
  312. package/dist/sample.spec-d.d.ts +2 -0
  313. package/dist/sample.spec-d.js +1 -0
  314. package/dist/set-path.cjs +1 -1
  315. package/dist/set-path.d.cts +4 -4
  316. package/dist/set-path.d.ts +4 -4
  317. package/dist/set-path.js +1 -1
  318. package/dist/set-path.spec-d.cjs +1 -0
  319. package/dist/set-path.spec-d.d.cts +2 -0
  320. package/dist/set-path.spec-d.d.ts +2 -0
  321. package/dist/set-path.spec-d.js +1 -0
  322. package/dist/set.spec-d.cjs +1 -0
  323. package/dist/set.spec-d.d.cts +2 -0
  324. package/dist/set.spec-d.d.ts +2 -0
  325. package/dist/set.spec-d.js +1 -0
  326. package/dist/sort-by.d.cts +1 -1
  327. package/dist/sort-by.d.ts +1 -1
  328. package/dist/sort-by.spec-d.cjs +1 -0
  329. package/dist/sort-by.spec-d.d.cts +2 -0
  330. package/dist/sort-by.spec-d.d.ts +2 -0
  331. package/dist/sort-by.spec-d.js +1 -0
  332. package/dist/sort.spec-d.cjs +1 -0
  333. package/dist/sort.spec-d.d.cts +2 -0
  334. package/dist/sort.spec-d.d.ts +2 -0
  335. package/dist/sort.spec-d.js +1 -0
  336. package/dist/splice.spec-d.cjs +1 -0
  337. package/dist/splice.spec-d.d.cts +2 -0
  338. package/dist/splice.spec-d.d.ts +2 -0
  339. package/dist/splice.spec-d.js +1 -0
  340. package/dist/split.spec-d.cjs +1 -0
  341. package/dist/split.spec-d.d.cts +2 -0
  342. package/dist/split.spec-d.d.ts +2 -0
  343. package/dist/split.spec-d.js +1 -0
  344. package/dist/string-to-path.spec-d.cjs +1 -0
  345. package/dist/string-to-path.spec-d.d.cts +2 -0
  346. package/dist/string-to-path.spec-d.d.ts +2 -0
  347. package/dist/string-to-path.spec-d.js +1 -0
  348. package/dist/sum.spec-d.cjs +1 -0
  349. package/dist/sum.spec-d.d.cts +2 -0
  350. package/dist/sum.spec-d.d.ts +2 -0
  351. package/dist/sum.spec-d.js +1 -0
  352. package/dist/swap-props.spec-d.cjs +1 -0
  353. package/dist/swap-props.spec-d.d.cts +2 -0
  354. package/dist/swap-props.spec-d.d.ts +2 -0
  355. package/dist/swap-props.spec-d.js +1 -0
  356. package/dist/take-first-by.d.cts +1 -1
  357. package/dist/take-first-by.d.ts +1 -1
  358. package/dist/tap.spec-d.cjs +1 -0
  359. package/dist/tap.spec-d.d.cts +2 -0
  360. package/dist/tap.spec-d.d.ts +2 -0
  361. package/dist/tap.spec-d.js +1 -0
  362. package/dist/times.cjs +1 -1
  363. package/dist/times.d.cts +21 -5
  364. package/dist/times.d.ts +21 -5
  365. package/dist/times.js +1 -1
  366. package/dist/times.spec-d.cjs +1 -0
  367. package/dist/times.spec-d.d.cts +2 -0
  368. package/dist/times.spec-d.d.ts +2 -0
  369. package/dist/times.spec-d.js +1 -0
  370. package/dist/values.spec-d.cjs +1 -0
  371. package/dist/values.spec-d.d.cts +2 -0
  372. package/dist/values.spec-d.d.ts +2 -0
  373. package/dist/values.spec-d.js +1 -0
  374. package/dist/zip-with.spec-d.cjs +1 -0
  375. package/dist/zip-with.spec-d.d.cts +2 -0
  376. package/dist/zip-with.spec-d.d.ts +2 -0
  377. package/dist/zip-with.spec-d.js +1 -0
  378. package/dist/zip.spec-d.cjs +1 -0
  379. package/dist/zip.spec-d.d.cts +2 -0
  380. package/dist/zip.spec-d.d.ts +2 -0
  381. package/dist/zip.spec-d.js +1 -0
  382. package/package.json +15 -14
  383. package/dist/chunk-4XRKXTOK.js +0 -1
  384. package/dist/chunk-CXRG2GSY.js +0 -1
  385. package/dist/chunk-EDKMZBZ3.cjs +0 -1
  386. package/dist/chunk-NNU5DU4F.cjs +0 -1
  387. package/dist/chunk-NQR6HZYF.js +0 -1
  388. package/dist/chunk-UH3TDC4T.cjs +0 -1
  389. package/dist/chunk-ZW3IUWYO.js +0 -1
  390. /package/dist/{chunk-XJRGE7WL.cjs → chunk-DHNCWVVT.cjs} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";var _chunkFFIQSVSTcjs = require('./chunk-FFIQSVST.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("allows redefining prop types",()=>{let t=_chunkFFIQSVSTcjs.a.call(void 0, {},"a",1);expectTypeOf(t).toEqualTypeOf()});it("makes optional fields required",()=>{let t=_chunkFFIQSVSTcjs.a.call(void 0, {},"a","hello");expectTypeOf(t).toEqualTypeOf()});it("allows setting an unknown prop",()=>{let t=_chunkFFIQSVSTcjs.a.call(void 0, {a:"foo"},"b","bar");expectTypeOf(t).toEqualTypeOf()});it("sets literal unions as optional",()=>{let t=_chunkFFIQSVSTcjs.a.call(void 0, {},"b",123);expectTypeOf(t).toEqualTypeOf()});it("keeps the prop optional when the key isn't literal",()=>{let t=_chunkFFIQSVSTcjs.a.call(void 0, {},"a","foo");expectTypeOf(t).toEqualTypeOf()});it("works on simple objects",()=>{let t=_chunkFFIQSVSTcjs.a.call(void 0, {},"a","foo");expectTypeOf(t).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-7JDXDFFQ.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("allows redefining prop types",()=>{let t=e({},"a",1);expectTypeOf(t).toEqualTypeOf()});it("makes optional fields required",()=>{let t=e({},"a","hello");expectTypeOf(t).toEqualTypeOf()});it("allows setting an unknown prop",()=>{let t=e({a:"foo"},"b","bar");expectTypeOf(t).toEqualTypeOf()});it("sets literal unions as optional",()=>{let t=e({},"b",123);expectTypeOf(t).toEqualTypeOf()});it("keeps the prop optional when the key isn't literal",()=>{let t=e({},"a","foo");expectTypeOf(t).toEqualTypeOf()});it("works on simple objects",()=>{let t=e({},"a","foo");expectTypeOf(t).toEqualTypeOf()});
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-JFXZ246Y.js";function c(...e){return a(u,e)}function u(e,n){if(e===n||Object.is(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map)return s(e,n);if(e instanceof Set&&n instanceof Set)return f(e,n);let t=Object.keys(e);if(t.length!==Object.keys(n).length)return!1;for(let o of t){if(!Object.prototype.hasOwnProperty.call(n,o))return!1;let{[o]:l}=e,{[o]:r}=n;if(l!==r||!Object.is(l,r))return!1}return!0}function s(e,n){if(e.size!==n.size)return!1;for(let[t,o]of e){let l=n.get(t);if(o!==l||!Object.is(o,l))return!1}return!0}function f(e,n){if(e.size!==n.size)return!1;for(let t of e)if(!n.has(t))return!1;return!0}export{c as a};
@@ -0,0 +1 @@
1
+ var e=class{get foo(){return"a"}},r={array:[1,2,3],bigint:1n,boolean:!1,date:new Date("1985-07-24T07:40:00.000Z"),error:new Error("asd"),function:()=>{},instance:new e,map:new Map,null:null,number:5,object:{a:"asd"},promise:Promise.resolve(5),regex:/test/gu,set:new Set,string:"text",symbol:Symbol("symbol"),tuple:[1,2,3],typedArray:new Uint8Array(1),undefined:void 0},t=Object.values(r);export{r as a,t as b};
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-JFXZ246Y.js";function o(...t){return n(r,t)}function r(t,e){return t===e||Object.is(t,e)}export{o as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-JXXXUJM5.js";import{a as t}from"./chunk-73BYESBE.js";function l(...e){return o(i,e)}function i(e,y){if(!t(e,2))return e[0];let[n]=e,[,...u]=e;for(let r of u)y(r,n)<0&&(n=r);return n}export{l as a};
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-JFXZ246Y.js";function a(...e){return i(T,e)}function T(e,m){if(e<1)return[];let r=Number.isInteger(e)?e:Math.floor(e),t=new Array(r);for(let n=0;n<r;n++)t[n]=m(n);return t}export{a};
@@ -0,0 +1 @@
1
+ import{a as P}from"./chunk-JFXZ246Y.js";function s(...e){return P(r,e)}function r(e,u,t){let[n,...a]=u;if(n===void 0)return t;if(Array.isArray(e)){let o=[...e];return o[n]=r(e[n],a,t),o}let{[n]:T,...y}=e;return{...y,[n]:r(T,a,t)}}export{s as a,r as b};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function c(...e){return _chunkY74ER22Ocjs.a.call(void 0, u,e)}function u(e,n){if(e===n||Object.is(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map)return s(e,n);if(e instanceof Set&&n instanceof Set)return f(e,n);let t=Object.keys(e);if(t.length!==Object.keys(n).length)return!1;for(let o of t){if(!Object.prototype.hasOwnProperty.call(n,o))return!1;let{[o]:l}=e,{[o]:r}=n;if(l!==r||!Object.is(l,r))return!1}return!0}function s(e,n){if(e.size!==n.size)return!1;for(let[t,o]of e){let l=n.get(t);if(o!==l||!Object.is(o,l))return!1}return!0}function f(e,n){if(e.size!==n.size)return!1;for(let t of e)if(!n.has(t))return!1;return!0}exports.a = c;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});function n(e){return e===void 0?!0:typeof e=="string"||Array.isArray(e)?e.length===0:Object.keys(e).length===0}exports.a = n;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function s(...e){return _chunkY74ER22Ocjs.a.call(void 0, r,e)}function r(e,u,t){let[n,...a]=u;if(n===void 0)return t;if(Array.isArray(e)){let o=[...e];return o[n]=r(e[n],a,t),o}let{[n]:T,...y}=e;return{...y,[n]:r(T,a,t)}}exports.a = s; exports.b = r;
@@ -0,0 +1 @@
1
+ function n(e){return e===void 0?!0:typeof e=="string"||Array.isArray(e)?e.length===0:Object.keys(e).length===0}export{n as a};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function o(...t){return _chunkY74ER22Ocjs.a.call(void 0, r,t)}function r(t,e){return t===e||Object.is(t,e)}exports.a = o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function a(...e){return _chunkY74ER22Ocjs.a.call(void 0, T,e)}function T(e,m){if(e<1)return[];let r=Number.isInteger(e)?e:Math.floor(e),t=new Array(r);for(let n=0;n<r;n++)t[n]=m(n);return t}exports.a = a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var e=class{get foo(){return"a"}},r= exports.a ={array:[1,2,3],bigint:1n,boolean:!1,date:new Date("1985-07-24T07:40:00.000Z"),error:new Error("asd"),function:()=>{},instance:new e,map:new Map,null:null,number:5,object:{a:"asd"},promise:Promise.resolve(5),regex:/test/gu,set:new Set,string:"text",symbol:Symbol("symbol"),tuple:[1,2,3],typedArray:new Uint8Array(1),undefined:void 0},t= exports.b =Object.values(r);exports.a = r; exports.b = t;
@@ -0,0 +1 @@
1
+ "use strict";var _chunkVNLOBA2Bcjs = require('./chunk-VNLOBA2B.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("empty tuple",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [],2);expectTypeOf(t).toEqualTypeOf()});test("readonly empty tuple",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [],2);expectTypeOf(t).toEqualTypeOf()});test("array",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [],2);expectTypeOf(t).toEqualTypeOf()});test("readonly array",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [],2);expectTypeOf(t).toEqualTypeOf()});test("tuple",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [123,456,789],2);expectTypeOf(t).toEqualTypeOf()});test("readonly tuple",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [123,456,789],2);expectTypeOf(t).toEqualTypeOf()});test("tuple with rest tail",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [123,456],2);expectTypeOf(t).toEqualTypeOf()});test("readonly tuple with rest tail",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [123,456],2);expectTypeOf(t).toEqualTypeOf()});test("tuple with rest middle",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [123,456],2);expectTypeOf(t).toEqualTypeOf()});test("readonly tuple with rest middle",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [123,456],2);expectTypeOf(t).toEqualTypeOf()});test("tuple with rest head",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [123,456],2);expectTypeOf(t).toEqualTypeOf()});test("readonly tuple with rest head",()=>{let t=_chunkVNLOBA2Bcjs.a.call(void 0, [123,456],2);expectTypeOf(t).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-TR5T6KUC.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("empty tuple",()=>{let t=e([],2);expectTypeOf(t).toEqualTypeOf()});test("readonly empty tuple",()=>{let t=e([],2);expectTypeOf(t).toEqualTypeOf()});test("array",()=>{let t=e([],2);expectTypeOf(t).toEqualTypeOf()});test("readonly array",()=>{let t=e([],2);expectTypeOf(t).toEqualTypeOf()});test("tuple",()=>{let t=e([123,456,789],2);expectTypeOf(t).toEqualTypeOf()});test("readonly tuple",()=>{let t=e([123,456,789],2);expectTypeOf(t).toEqualTypeOf()});test("tuple with rest tail",()=>{let t=e([123,456],2);expectTypeOf(t).toEqualTypeOf()});test("readonly tuple with rest tail",()=>{let t=e([123,456],2);expectTypeOf(t).toEqualTypeOf()});test("tuple with rest middle",()=>{let t=e([123,456],2);expectTypeOf(t).toEqualTypeOf()});test("readonly tuple with rest middle",()=>{let t=e([123,456],2);expectTypeOf(t).toEqualTypeOf()});test("tuple with rest head",()=>{let t=e([123,456],2);expectTypeOf(t).toEqualTypeOf()});test("readonly tuple with rest head",()=>{let t=e([123,456],2);expectTypeOf(t).toEqualTypeOf()});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkXUEOOIR6cjs = require('./chunk-XUEOOIR6.cjs');var _chunkYWTY4X2Rcjs = require('./chunk-YWTY4X2R.cjs');var _chunkDAFN5EJRcjs = require('./chunk-DAFN5EJR.cjs');var _chunkSXTSJOEEcjs = require('./chunk-SXTSJOEE.cjs');var _chunkEHJK4JRFcjs = require('./chunk-EHJK4JRF.cjs');var _chunkDHNCWVVTcjs = require('./chunk-DHNCWVVT.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-FWQYL4Y4.cjs');require('./chunk-G66EZBJS.cjs');var _chunkE6JSDI5Scjs = require('./chunk-E6JSDI5S.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("data-first",()=>{it("narrows types in the transformers",()=>{_chunkE6JSDI5Scjs.a.call(void 0, 3,[_chunkEHJK4JRFcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkYWTY4X2Rcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkXUEOOIR6cjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkDAFN5EJRcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[e=>e===3,e=>{expectTypeOf(e).toEqualTypeOf()}])}),it("narrows types when using `isNullish`/`isNonNullish` with complex data",()=>{let t=_chunkDHNCWVVTcjs.a.call(void 0, [{x:10},{x:20}],_chunkSXTSJOEEcjs.a.call(void 0, "x"));_chunkE6JSDI5Scjs.a.call(void 0, t,[_chunkXUEOOIR6cjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkDAFN5EJRcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}])}),it("passes the trivial defaultCase's type to the output",()=>{let t=_chunkE6JSDI5Scjs.a.call(void 0, "Jokic",[_chunkEHJK4JRFcjs.a,()=>"hello"],_chunkE6JSDI5Scjs.a.defaultCase());expectTypeOf(t).toEqualTypeOf()}),it("passes the defaultCase's type to the output",()=>{let t=_chunkE6JSDI5Scjs.a.call(void 0, "Jokic",[_chunkEHJK4JRFcjs.a,()=>"hello"],_chunkE6JSDI5Scjs.a.defaultCase(()=>123));expectTypeOf(t).toEqualTypeOf()})});describe("data-last",()=>{it("narrows types in the transformers",()=>{_chunkI6VXEY44cjs.a.call(void 0, 3,_chunkE6JSDI5Scjs.a.call(void 0, [_chunkEHJK4JRFcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkYWTY4X2Rcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkXUEOOIR6cjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkDAFN5EJRcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[e=>e===3,e=>{expectTypeOf(e).toEqualTypeOf()}]))}),it("narrows types when using `isNullish`/`isNonNullish` with complex data",()=>{_chunkI6VXEY44cjs.a.call(void 0, [{x:10},{x:20}],_chunkDHNCWVVTcjs.a.call(void 0, _chunkSXTSJOEEcjs.a.call(void 0, "x")),_chunkE6JSDI5Scjs.a.call(void 0, [_chunkXUEOOIR6cjs.a,t=>{expectTypeOf(t).toEqualTypeOf()}],[_chunkDAFN5EJRcjs.a,t=>{expectTypeOf(t).toEqualTypeOf()}]))}),it("passes the trivial defaultCase's type to the output",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, "Jokic",_chunkE6JSDI5Scjs.a.call(void 0, [_chunkEHJK4JRFcjs.a,()=>"hello"],_chunkE6JSDI5Scjs.a.defaultCase()));expectTypeOf(t).toEqualTypeOf()}),it("passes the defaultCase's type to the output",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, "Jokic",_chunkE6JSDI5Scjs.a.call(void 0, [_chunkEHJK4JRFcjs.a,()=>"hello"],_chunkE6JSDI5Scjs.a.defaultCase(()=>123)));expectTypeOf(t).toEqualTypeOf()})});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-TBXEXWSK.js";import{a as r}from"./chunk-Q2HW4RVT.js";import{a as o}from"./chunk-QPP664N4.js";import{a as f}from"./chunk-USNHLUEU.js";import{a as p}from"./chunk-UYLVIAK4.js";import{a as l}from"./chunk-J5PNUDDU.js";import{a as i}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JXXXUJM5.js";import"./chunk-73BYESBE.js";import{a as s}from"./chunk-H2E5GCCP.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("data-first",()=>{it("narrows types in the transformers",()=>{s(3,[p,e=>{expectTypeOf(e).toEqualTypeOf()}],[r,e=>{expectTypeOf(e).toEqualTypeOf()}],[a,e=>{expectTypeOf(e).toEqualTypeOf()}],[o,e=>{expectTypeOf(e).toEqualTypeOf()}],[e=>e===3,e=>{expectTypeOf(e).toEqualTypeOf()}])}),it("narrows types when using `isNullish`/`isNonNullish` with complex data",()=>{let t=l([{x:10},{x:20}],f("x"));s(t,[a,e=>{expectTypeOf(e).toEqualTypeOf()}],[o,e=>{expectTypeOf(e).toEqualTypeOf()}])}),it("passes the trivial defaultCase's type to the output",()=>{let t=s("Jokic",[p,()=>"hello"],s.defaultCase());expectTypeOf(t).toEqualTypeOf()}),it("passes the defaultCase's type to the output",()=>{let t=s("Jokic",[p,()=>"hello"],s.defaultCase(()=>123));expectTypeOf(t).toEqualTypeOf()})});describe("data-last",()=>{it("narrows types in the transformers",()=>{i(3,s([p,e=>{expectTypeOf(e).toEqualTypeOf()}],[r,e=>{expectTypeOf(e).toEqualTypeOf()}],[a,e=>{expectTypeOf(e).toEqualTypeOf()}],[o,e=>{expectTypeOf(e).toEqualTypeOf()}],[e=>e===3,e=>{expectTypeOf(e).toEqualTypeOf()}]))}),it("narrows types when using `isNullish`/`isNonNullish` with complex data",()=>{i([{x:10},{x:20}],l(f("x")),s([a,t=>{expectTypeOf(t).toEqualTypeOf()}],[o,t=>{expectTypeOf(t).toEqualTypeOf()}]))}),it("passes the trivial defaultCase's type to the output",()=>{let t=i("Jokic",s([p,()=>"hello"],s.defaultCase()));expectTypeOf(t).toEqualTypeOf()}),it("passes the defaultCase's type to the output",()=>{let t=i("Jokic",s([p,()=>"hello"],s.defaultCase(()=>123)));expectTypeOf(t).toEqualTypeOf()})});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkWLNQOMKLcjs = require('./chunk-WLNQOMKL.cjs');test("supported in any api",()=>{_chunkWLNQOMKLcjs.a.call(void 0, 1),_chunkWLNQOMKLcjs.a.call(void 0, !0),_chunkWLNQOMKLcjs.a.call(void 0, "cat")});test("doesn't break return typing",()=>{_chunkWLNQOMKLcjs.a.call(void 0, "hello"),_chunkWLNQOMKLcjs.a.call(void 0, 123),_chunkWLNQOMKLcjs.a.call(void 0, "mouse")});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-T5XG33UI.js";test("supported in any api",()=>{a(1),a(!0),a("cat")});test("doesn't break return typing",()=>{a("hello"),a(123),a("mouse")});
@@ -1,6 +1,6 @@
1
1
  declare const COMPARATORS: {
2
2
  readonly asc: <T>(x: T, y: T) => boolean;
3
- readonly desc: <T_1>(x: T_1, y: T_1) => boolean;
3
+ readonly desc: <T>(x: T, y: T) => boolean;
4
4
  };
5
5
  /**
6
6
  * An order rule defines a projection/extractor that returns a comparable from
@@ -1,6 +1,6 @@
1
1
  declare const COMPARATORS: {
2
2
  readonly asc: <T>(x: T, y: T) => boolean;
3
- readonly desc: <T_1>(x: T_1, y: T_1) => boolean;
3
+ readonly desc: <T>(x: T, y: T) => boolean;
4
4
  };
5
5
  /**
6
6
  * An order rule defines a projection/extractor that returns a comparable from
@@ -0,0 +1 @@
1
+ "use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkMLLA7SGZcjs = require('./chunk-MLLA7SGZ.cjs');var _chunkOLZEQGPJcjs = require('./chunk-OLZEQGPJ.cjs');it("returns undefined on 'trailing' timing",()=>{let t=_chunkOLZEQGPJcjs.a.call(void 0, ()=>"Hello, World!",{waitMs:32,timing:"trailing"}).call();expectTypeOf(t).toEqualTypeOf()});it("doesn't return undefined on 'leading' timing",()=>{let t=_chunkOLZEQGPJcjs.a.call(void 0, ()=>"Hello, World!",{waitMs:32,timing:"leading"}).call();expectTypeOf(t).toEqualTypeOf()});it("doesn't return undefined on 'both' timing",()=>{let t=_chunkOLZEQGPJcjs.a.call(void 0, ()=>"Hello, World!",{waitMs:32,timing:"both"}).call();expectTypeOf(t).toEqualTypeOf()});test("argument typing to be good (all required)",()=>{let e=_chunkOLZEQGPJcjs.a.call(void 0, (t,a,l)=>`${t}${a}${l?"y":"n"}`,{});e.call(),e.call("a"),e.call("a",1),e.call(!0,1,!0),e.call("a",1,!0)});test("argument typing to be good (with optional)",()=>{let e=_chunkOLZEQGPJcjs.a.call(void 0, (t,a,l)=>`${t}${_nullishCoalesce(a, () => ("undefined"))}${l===void 0?"undefined":l?"y":"n"}`,{});e.call(),e.call(!0,1,!0),e.call("a"),e.call("a",1),e.call("a",1,!0)});test("argument typing to be good (with defaults)",()=>{let e=_chunkOLZEQGPJcjs.a.call(void 0, (t,a=2,l=!0)=>`${t}${a}${l?"y":"n"}`,{});e.call(),e.call(!0,1,!0),e.call("a"),e.call("a",1),e.call("a",1,!0)});test("argument typing to be good (with rest param)",()=>{let e=_chunkOLZEQGPJcjs.a.call(void 0, (t,...a)=>`${t}${a.map(l=>l?"y":"n").join(",")}`,{timing:"leading"});e.call(),e.call(!0),e.call("a","b"),e.call(!0,"b"),e.call("a"),e.call("a",!0),e.call("a",!0,!1)});it("doesn't accept maxWaitMs when timing is 'leading'",()=>{_chunkOLZEQGPJcjs.a.call(void 0, _chunkMLLA7SGZcjs.a.call(void 0, ),{timing:"trailing",maxWaitMs:32}),_chunkOLZEQGPJcjs.a.call(void 0, _chunkMLLA7SGZcjs.a.call(void 0, ),{timing:"both",maxWaitMs:32}),_chunkOLZEQGPJcjs.a.call(void 0, _chunkMLLA7SGZcjs.a.call(void 0, ),{timing:"leading",maxWaitMs:32})});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-WUAU3LTQ.js";import{a as n}from"./chunk-ENPSKQUH.js";it("returns undefined on 'trailing' timing",()=>{let t=n(()=>"Hello, World!",{waitMs:32,timing:"trailing"}).call();expectTypeOf(t).toEqualTypeOf()});it("doesn't return undefined on 'leading' timing",()=>{let t=n(()=>"Hello, World!",{waitMs:32,timing:"leading"}).call();expectTypeOf(t).toEqualTypeOf()});it("doesn't return undefined on 'both' timing",()=>{let t=n(()=>"Hello, World!",{waitMs:32,timing:"both"}).call();expectTypeOf(t).toEqualTypeOf()});test("argument typing to be good (all required)",()=>{let e=n((t,a,l)=>`${t}${a}${l?"y":"n"}`,{});e.call(),e.call("a"),e.call("a",1),e.call(!0,1,!0),e.call("a",1,!0)});test("argument typing to be good (with optional)",()=>{let e=n((t,a,l)=>`${t}${a??"undefined"}${l===void 0?"undefined":l?"y":"n"}`,{});e.call(),e.call(!0,1,!0),e.call("a"),e.call("a",1),e.call("a",1,!0)});test("argument typing to be good (with defaults)",()=>{let e=n((t,a=2,l=!0)=>`${t}${a}${l?"y":"n"}`,{});e.call(),e.call(!0,1,!0),e.call("a"),e.call("a",1),e.call("a",1,!0)});test("argument typing to be good (with rest param)",()=>{let e=n((t,...a)=>`${t}${a.map(l=>l?"y":"n").join(",")}`,{timing:"leading"});e.call(),e.call(!0),e.call("a","b"),e.call(!0,"b"),e.call("a"),e.call("a",!0),e.call("a",!0,!1)});it("doesn't accept maxWaitMs when timing is 'leading'",()=>{n(i(),{timing:"trailing",maxWaitMs:32}),n(i(),{timing:"both",maxWaitMs:32}),n(i(),{timing:"leading",maxWaitMs:32})});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkNULDWRPDcjs = require('./chunk-NULDWRPD.cjs');test("supported in any api",()=>{_chunkNULDWRPDcjs.a.call(void 0, ),_chunkNULDWRPDcjs.a.call(void 0, ),_chunkNULDWRPDcjs.a.call(void 0, )});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-PHKKU45J.js";test("supported in any api",()=>{o(),o(),o()});
@@ -1,5 +1,5 @@
1
1
  import { N as NonEmptyArray } from './types-BMu1PIvo.cjs';
2
- import { O as OrderRule } from './curry-order-rules-BOMf1JS7.cjs';
2
+ import { O as OrderRule } from './curry-order-rules-DETxSzle.cjs';
3
3
  import 'type-fest';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { N as NonEmptyArray } from './types-BMu1PIvo.js';
2
- import { O as OrderRule } from './curry-order-rules-BOMf1JS7.js';
2
+ import { O as OrderRule } from './curry-order-rules-DETxSzle.js';
3
3
  import 'type-fest';
4
4
 
5
5
  /**
@@ -0,0 +1 @@
1
+ "use strict";var _chunkXXQWPQH3cjs = require('./chunk-XXQWPQH3.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("with known properties",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:1,b:2,c:3});expectTypeOf(t).toEqualTypeOf()});test("with different value types",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:1,b:"2",c:!0});expectTypeOf(t).toEqualTypeOf()});test("with const object",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:1,b:2,c:3});expectTypeOf(t).toEqualTypeOf()});test("with optional properties",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {});expectTypeOf(t).toEqualTypeOf()});test("with undefined properties",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:void 0});expectTypeOf(t).toEqualTypeOf()});test("with unknown properties",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {});expectTypeOf(t).toEqualTypeOf()});test("object with just symbol keys",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {[Symbol("a")]:1,[Symbol("b")]:"world"});expectTypeOf(t).toEqualTypeOf()});test("object with number keys",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {123:"HELLO"});expectTypeOf(t).toEqualTypeOf()});test("object with combined symbols and keys",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:1,[Symbol("b")]:"world",123:!0});expectTypeOf(t).toEqualTypeOf()});test("with known properties",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:1,b:2,c:3});expectTypeOf(t).toEqualTypeOf()});test("with different value types",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:1,b:"2",c:!0});expectTypeOf(t).toEqualTypeOf()});test("with const object",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:1,b:2,c:3});expectTypeOf(t).toEqualTypeOf()});test("with optional properties",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {});expectTypeOf(t).toEqualTypeOf()});test("with undefined properties",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:void 0});expectTypeOf(t).toEqualTypeOf()});test("with unknown properties",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {});expectTypeOf(t).toEqualTypeOf()});test("object with just symbol keys",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {[Symbol("a")]:1,[Symbol("b")]:"world"});expectTypeOf(t).toEqualTypeOf()});test("object with number keys",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {123:"HELLO"});expectTypeOf(t).toEqualTypeOf()});test("object with combined symbols and keys",()=>{let t=_chunkXXQWPQH3cjs.a.call(void 0, {a:1,[Symbol("b")]:"world",123:!0});expectTypeOf(t).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-PWOIVNVI.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("with known properties",()=>{let t=e({a:1,b:2,c:3});expectTypeOf(t).toEqualTypeOf()});test("with different value types",()=>{let t=e({a:1,b:"2",c:!0});expectTypeOf(t).toEqualTypeOf()});test("with const object",()=>{let t=e({a:1,b:2,c:3});expectTypeOf(t).toEqualTypeOf()});test("with optional properties",()=>{let t=e({});expectTypeOf(t).toEqualTypeOf()});test("with undefined properties",()=>{let t=e({a:void 0});expectTypeOf(t).toEqualTypeOf()});test("with unknown properties",()=>{let t=e({});expectTypeOf(t).toEqualTypeOf()});test("object with just symbol keys",()=>{let t=e({[Symbol("a")]:1,[Symbol("b")]:"world"});expectTypeOf(t).toEqualTypeOf()});test("object with number keys",()=>{let t=e({123:"HELLO"});expectTypeOf(t).toEqualTypeOf()});test("object with combined symbols and keys",()=>{let t=e({a:1,[Symbol("b")]:"world",123:!0});expectTypeOf(t).toEqualTypeOf()});test("with known properties",()=>{let t=e({a:1,b:2,c:3});expectTypeOf(t).toEqualTypeOf()});test("with different value types",()=>{let t=e({a:1,b:"2",c:!0});expectTypeOf(t).toEqualTypeOf()});test("with const object",()=>{let t=e({a:1,b:2,c:3});expectTypeOf(t).toEqualTypeOf()});test("with optional properties",()=>{let t=e({});expectTypeOf(t).toEqualTypeOf()});test("with undefined properties",()=>{let t=e({a:void 0});expectTypeOf(t).toEqualTypeOf()});test("with unknown properties",()=>{let t=e({});expectTypeOf(t).toEqualTypeOf()});test("object with just symbol keys",()=>{let t=e({[Symbol("a")]:1,[Symbol("b")]:"world"});expectTypeOf(t).toEqualTypeOf()});test("object with number keys",()=>{let t=e({123:"HELLO"});expectTypeOf(t).toEqualTypeOf()});test("object with combined symbols and keys",()=>{let t=e({a:1,[Symbol("b")]:"world",123:!0});expectTypeOf(t).toEqualTypeOf()});
@@ -0,0 +1 @@
1
+ "use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunk7EJQW5L6cjs = require('./chunk-7EJQW5L6.cjs');var _chunkQVDYQ7ZEcjs = require('./chunk-QVDYQ7ZE.cjs');var _chunkINAPFYB2cjs = require('./chunk-INAPFYB2.cjs');var _chunkWW7P3TAUcjs = require('./chunk-WW7P3TAU.cjs');var _chunkQ4B5JNZScjs = require('./chunk-Q4B5JNZS.cjs');var _chunkMQ3SR4YOcjs = require('./chunk-MQ3SR4YO.cjs');var _chunkMLLA7SGZcjs = require('./chunk-MLLA7SGZ.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-G66EZBJS.cjs');var _chunkSRZSHSZDcjs = require('./chunk-SRZSHSZD.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');var c=_chunkQVDYQ7ZEcjs.a.call(void 0, (e,r)=>_chunkSRZSHSZDcjs.a.call(void 0, e,r),0);describe("data first",()=>{it("creates a new object by evolving the `data` according to the `transformation` functions",()=>{let e=_chunkMQ3SR4YOcjs.a.call(void 0, {id:1,quartile:[1,2,3,4],time:{elapsed:100,remaining:1400}},{id:_chunkSRZSHSZDcjs.a.call(void 0, 1),quartile:c,time:{elapsed:_chunkSRZSHSZDcjs.a.call(void 0, 1),remaining:_chunkSRZSHSZDcjs.a.call(void 0, -1)}});expectTypeOf(e).toEqualTypeOf()}),it("is not destructive and is immutable",()=>{let e=_chunkMQ3SR4YOcjs.a.call(void 0, {n:100},{n:_chunkSRZSHSZDcjs.a.call(void 0, 1)});expectTypeOf(e).toEqualTypeOf()}),it("is recursive",()=>{let e=_chunkMQ3SR4YOcjs.a.call(void 0, {first:1,nested:{second:2,third:3}},{nested:{second:_chunkSRZSHSZDcjs.a.call(void 0, -1),third:_chunkSRZSHSZDcjs.a.call(void 0, 1)}});expectTypeOf(e).toEqualTypeOf()}),it("can handle data that is complex nested objects",()=>{let e=_chunkMQ3SR4YOcjs.a.call(void 0, {array:["1","2","3"],nestedObj:{a:{b:"c"}},objAry:[{a:0,b:0},{a:1,b:1}]},{array:_chunkQ4B5JNZScjs.a.call(void 0, ),nestedObj:{a:r=>_chunk7EJQW5L6cjs.a.call(void 0, r,"b","Set")},objAry:r=>_chunkWW7P3TAUcjs.a.call(void 0, r,_chunkINAPFYB2cjs.a.call(void 0, ["b"]))});expectTypeOf(e).toEqualTypeOf()}),describe("type reflection",()=>{it("can reflect type of data to function of evolver object",()=>{let e=_chunkMQ3SR4YOcjs.a.call(void 0, {id:1,quartile:[1,2,3,4],time:{elapsed:100,remaining:1400}},{count:r=>r,quartile:r=>r,time:r=>r});expectTypeOf(e).toEqualTypeOf()}),it("can reflect type of data to function of nested evolver object",()=>{let e=_chunkMQ3SR4YOcjs.a.call(void 0, {id:1,quartile:[1,2,3,4],time:{elapsed:100,remaining:1400}},{count:r=>r,quartile:r=>r,time:{elapsed:r=>r,remaining:r=>r}});expectTypeOf(e).toEqualTypeOf()})}),it("can detect mismatch of parameters and arguments",()=>{_chunkMQ3SR4YOcjs.a.call(void 0, {number:"1",array:["1","2","3"],nestedObj:{a:{b:"c"}},objAry:[{a:"0",b:0},{a:1,b:1}]},{number:_chunkSRZSHSZDcjs.a.call(void 0, 1),array:e=>e.length,nestedObj:{a:_chunk7EJQW5L6cjs.a.call(void 0, "b",0)},objAry:_chunkWW7P3TAUcjs.a.call(void 0, _chunkINAPFYB2cjs.a.call(void 0, ["b"]))})}),it("does not accept function that require multiple arguments",()=>{_chunkMQ3SR4YOcjs.a.call(void 0, {requiring2Args:1,requiring3Args:1},{requiring2Args:(e,r)=>e+r,requiring3Args:(e,r,i)=>e+(_nullishCoalesce(r, () => (0)))+i})}),it("accept function whose second and subsequent arguments are optional",()=>{let e=_chunkMQ3SR4YOcjs.a.call(void 0, {arg2Optional:1,arg2arg3Optional:1},{arg2Optional:(r,i)=>i===void 0,arg2arg3Optional:(r,i,b)=>i===void 0&&b===void 0});expectTypeOf(e).toEqualTypeOf()}),it("can not handle function arrays.",()=>{_chunkMQ3SR4YOcjs.a.call(void 0, {quartile:[1,2]},{quartile:[_chunkSRZSHSZDcjs.a.call(void 0, 1),_chunkSRZSHSZDcjs.a.call(void 0, -1)]})}),it("doesn't provide typing for symbol key evolvers",()=>{let e=Symbol("a");_chunkMQ3SR4YOcjs.a.call(void 0, {[e]:"hello"},{[e]:_chunkMLLA7SGZcjs.a.call(void 0, )})})});describe("data last",()=>{it("creates a new object by evolving the `data` according to the `transformation` functions",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, {id:1,quartile:[1,2,3,4],time:{elapsed:100,remaining:1400}},_chunkMQ3SR4YOcjs.a.call(void 0, {id:_chunkSRZSHSZDcjs.a.call(void 0, 1),quartile:c,time:{elapsed:_chunkSRZSHSZDcjs.a.call(void 0, 1),remaining:_chunkSRZSHSZDcjs.a.call(void 0, -1)}}));expectTypeOf(e).toEqualTypeOf()}),it("is not destructive and is immutable",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, {n:100},_chunkMQ3SR4YOcjs.a.call(void 0, {n:_chunkSRZSHSZDcjs.a.call(void 0, 1)}));expectTypeOf(e).toEqualTypeOf()}),it("is recursive",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, {first:1,nested:{second:2,third:3}},_chunkMQ3SR4YOcjs.a.call(void 0, {nested:{second:_chunkSRZSHSZDcjs.a.call(void 0, -1),third:_chunkSRZSHSZDcjs.a.call(void 0, 1)}}));expectTypeOf(e).toEqualTypeOf()}),it("ignores undefined transformations",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, {n:0},_chunkMQ3SR4YOcjs.a.call(void 0, {}));expectTypeOf(e).toEqualTypeOf()}),it("can handle data that is complex nested objects",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, {array:["1","2","3"],nestedObj:{a:{b:"c"}},objAry:[{a:0,b:0},{a:1,b:1}]},_chunkMQ3SR4YOcjs.a.call(void 0, {array:_chunkQ4B5JNZScjs.a.call(void 0, ),nestedObj:{a:r=>_chunk7EJQW5L6cjs.a.call(void 0, r,"b","Set")},objAry:r=>_chunkWW7P3TAUcjs.a.call(void 0, r,_chunkINAPFYB2cjs.a.call(void 0, ["b"]))}));expectTypeOf(e).toEqualTypeOf()}),describe("it can detect mismatch of parameters and arguments",()=>{it('detect property "number" are incompatible',()=>{_chunkI6VXEY44cjs.a.call(void 0, {number:"1",array:["1","2","3"]},_chunkMQ3SR4YOcjs.a.call(void 0, {number:_chunkSRZSHSZDcjs.a.call(void 0, 1),array:_chunkQ4B5JNZScjs.a.call(void 0, )}))}),it('detect property "array" are incompatible',()=>{_chunkI6VXEY44cjs.a.call(void 0, {number:1,array:["1","2","3"]},_chunkMQ3SR4YOcjs.a.call(void 0, {number:_chunkSRZSHSZDcjs.a.call(void 0, 1),array:e=>e.length}))})}),it("does not accept function that require multiple arguments",()=>{_chunkI6VXEY44cjs.a.call(void 0, {requiring2Args:1},_chunkMQ3SR4YOcjs.a.call(void 0, {requiring2Args:(e,r)=>e+r}))}),it("accept function whose second and subsequent arguments are optional",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, {arg2Optional:1,arg2arg3Optional:1},_chunkMQ3SR4YOcjs.a.call(void 0, {arg2Optional:(r,i)=>i===void 0,arg2arg3Optional:(r,i,b)=>i===void 0&&b===void 0}));expectTypeOf(e).toEqualTypeOf()}),it("can not handle function arrays.",()=>{_chunkI6VXEY44cjs.a.call(void 0, {quartile:[1,2]},_chunkMQ3SR4YOcjs.a.call(void 0, {quartile:[_chunkSRZSHSZDcjs.a.call(void 0, 1),_chunkSRZSHSZDcjs.a.call(void 0, -1)]}))})});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as s}from"./chunk-QIM2PMWS.js";import{a as l}from"./chunk-7DDJ7DZF.js";import{a as m}from"./chunk-KTMLSQQ7.js";import{a as o}from"./chunk-QRDGUNHT.js";import{a as u}from"./chunk-J6L2AOTY.js";import{a as t}from"./chunk-VJMHXGZD.js";import{a as d}from"./chunk-WUAU3LTQ.js";import{a}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-73BYESBE.js";import{a as n}from"./chunk-SVOK32ZP.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";var c=l((e,r)=>n(e,r),0);describe("data first",()=>{it("creates a new object by evolving the `data` according to the `transformation` functions",()=>{let e=t({id:1,quartile:[1,2,3,4],time:{elapsed:100,remaining:1400}},{id:n(1),quartile:c,time:{elapsed:n(1),remaining:n(-1)}});expectTypeOf(e).toEqualTypeOf()}),it("is not destructive and is immutable",()=>{let e=t({n:100},{n:n(1)});expectTypeOf(e).toEqualTypeOf()}),it("is recursive",()=>{let e=t({first:1,nested:{second:2,third:3}},{nested:{second:n(-1),third:n(1)}});expectTypeOf(e).toEqualTypeOf()}),it("can handle data that is complex nested objects",()=>{let e=t({array:["1","2","3"],nestedObj:{a:{b:"c"}},objAry:[{a:0,b:0},{a:1,b:1}]},{array:u(),nestedObj:{a:r=>s(r,"b","Set")},objAry:r=>o(r,m(["b"]))});expectTypeOf(e).toEqualTypeOf()}),describe("type reflection",()=>{it("can reflect type of data to function of evolver object",()=>{let e=t({id:1,quartile:[1,2,3,4],time:{elapsed:100,remaining:1400}},{count:r=>r,quartile:r=>r,time:r=>r});expectTypeOf(e).toEqualTypeOf()}),it("can reflect type of data to function of nested evolver object",()=>{let e=t({id:1,quartile:[1,2,3,4],time:{elapsed:100,remaining:1400}},{count:r=>r,quartile:r=>r,time:{elapsed:r=>r,remaining:r=>r}});expectTypeOf(e).toEqualTypeOf()})}),it("can detect mismatch of parameters and arguments",()=>{t({number:"1",array:["1","2","3"],nestedObj:{a:{b:"c"}},objAry:[{a:"0",b:0},{a:1,b:1}]},{number:n(1),array:e=>e.length,nestedObj:{a:s("b",0)},objAry:o(m(["b"]))})}),it("does not accept function that require multiple arguments",()=>{t({requiring2Args:1,requiring3Args:1},{requiring2Args:(e,r)=>e+r,requiring3Args:(e,r,i)=>e+(r??0)+i})}),it("accept function whose second and subsequent arguments are optional",()=>{let e=t({arg2Optional:1,arg2arg3Optional:1},{arg2Optional:(r,i)=>i===void 0,arg2arg3Optional:(r,i,b)=>i===void 0&&b===void 0});expectTypeOf(e).toEqualTypeOf()}),it("can not handle function arrays.",()=>{t({quartile:[1,2]},{quartile:[n(1),n(-1)]})}),it("doesn't provide typing for symbol key evolvers",()=>{let e=Symbol("a");t({[e]:"hello"},{[e]:d()})})});describe("data last",()=>{it("creates a new object by evolving the `data` according to the `transformation` functions",()=>{let e=a({id:1,quartile:[1,2,3,4],time:{elapsed:100,remaining:1400}},t({id:n(1),quartile:c,time:{elapsed:n(1),remaining:n(-1)}}));expectTypeOf(e).toEqualTypeOf()}),it("is not destructive and is immutable",()=>{let e=a({n:100},t({n:n(1)}));expectTypeOf(e).toEqualTypeOf()}),it("is recursive",()=>{let e=a({first:1,nested:{second:2,third:3}},t({nested:{second:n(-1),third:n(1)}}));expectTypeOf(e).toEqualTypeOf()}),it("ignores undefined transformations",()=>{let e=a({n:0},t({}));expectTypeOf(e).toEqualTypeOf()}),it("can handle data that is complex nested objects",()=>{let e=a({array:["1","2","3"],nestedObj:{a:{b:"c"}},objAry:[{a:0,b:0},{a:1,b:1}]},t({array:u(),nestedObj:{a:r=>s(r,"b","Set")},objAry:r=>o(r,m(["b"]))}));expectTypeOf(e).toEqualTypeOf()}),describe("it can detect mismatch of parameters and arguments",()=>{it('detect property "number" are incompatible',()=>{a({number:"1",array:["1","2","3"]},t({number:n(1),array:u()}))}),it('detect property "array" are incompatible',()=>{a({number:1,array:["1","2","3"]},t({number:n(1),array:e=>e.length}))})}),it("does not accept function that require multiple arguments",()=>{a({requiring2Args:1},t({requiring2Args:(e,r)=>e+r}))}),it("accept function whose second and subsequent arguments are optional",()=>{let e=a({arg2Optional:1,arg2arg3Optional:1},t({arg2Optional:(r,i)=>i===void 0,arg2arg3Optional:(r,i,b)=>i===void 0&&b===void 0}));expectTypeOf(e).toEqualTypeOf()}),it("can not handle function arrays.",()=>{a({quartile:[1,2]},t({quartile:[n(1),n(-1)]}))})});
@@ -0,0 +1 @@
1
+ "use strict";var _chunk7IYJC2PMcjs = require('./chunk-7IYJC2PM.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("data_first",()=>{it("filter",()=>{let t=_chunk7IYJC2PMcjs.a.call(void 0, [1,2,3],e=>e%2===1);expectTypeOf(t).toEqualTypeOf()}),it("data_first with typescript guard",()=>{let t=_chunk7IYJC2PMcjs.a.call(void 0, [1,2,3,"abc",!0],i);expectTypeOf(t).toEqualTypeOf()}),it("filter indexed",()=>{let t=_chunk7IYJC2PMcjs.a.call(void 0, [1,2,3],(e,a)=>e%2===1&&a!==1);expectTypeOf(t).toEqualTypeOf()})});describe("data_last",()=>{it("filter",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunk7IYJC2PMcjs.a.call(void 0, e=>e%2===1));expectTypeOf(t).toEqualTypeOf()}),it("filter with typescript guard",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3,!1,"text"],_chunk7IYJC2PMcjs.a.call(void 0, i));expectTypeOf(t).toEqualTypeOf()}),it("filter indexed",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunk7IYJC2PMcjs.a.call(void 0, (e,a)=>e%2===1&&a!==1));expectTypeOf(t).toEqualTypeOf()})});function i(t){return typeof t=="number"}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-BGPRJNRQ.js";import{a as s}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("data_first",()=>{it("filter",()=>{let t=r([1,2,3],e=>e%2===1);expectTypeOf(t).toEqualTypeOf()}),it("data_first with typescript guard",()=>{let t=r([1,2,3,"abc",!0],i);expectTypeOf(t).toEqualTypeOf()}),it("filter indexed",()=>{let t=r([1,2,3],(e,a)=>e%2===1&&a!==1);expectTypeOf(t).toEqualTypeOf()})});describe("data_last",()=>{it("filter",()=>{let t=s([1,2,3],r(e=>e%2===1));expectTypeOf(t).toEqualTypeOf()}),it("filter with typescript guard",()=>{let t=s([1,2,3,!1,"text"],r(i));expectTypeOf(t).toEqualTypeOf()}),it("filter indexed",()=>{let t=s([1,2,3],r((e,a)=>e%2===1&&a!==1));expectTypeOf(t).toEqualTypeOf()})});function i(t){return typeof t=="number"}
@@ -0,0 +1 @@
1
+ "use strict";var _chunkU32YSACLcjs = require('./chunk-U32YSACL.cjs');require('./chunk-GPGITOFN.cjs');var _chunkEHJK4JRFcjs = require('./chunk-EHJK4JRF.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("can narrow types",()=>{let r=_chunkU32YSACLcjs.a.call(void 0, [1,"a"],_chunkEHJK4JRFcjs.a);expectTypeOf(r).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-BF6VQFQK.js";import"./chunk-SME5FGMA.js";import{a as t}from"./chunk-UYLVIAK4.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("can narrow types",()=>{let r=e([1,"a"],t);expectTypeOf(r).toEqualTypeOf()});
package/dist/first-by.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXJRGE7WLcjs = require('./chunk-XJRGE7WL.cjs');require('./chunk-FWQYL4Y4.cjs');require('./chunk-G66EZBJS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.firstBy = _chunkXJRGE7WLcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDHNCWVVTcjs = require('./chunk-DHNCWVVT.cjs');require('./chunk-FWQYL4Y4.cjs');require('./chunk-G66EZBJS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.firstBy = _chunkDHNCWVVTcjs.a;
@@ -1,5 +1,5 @@
1
1
  import { I as IterableContainer, N as NonEmptyArray } from './types-BMu1PIvo.cjs';
2
- import { O as OrderRule } from './curry-order-rules-BOMf1JS7.cjs';
2
+ import { O as OrderRule } from './curry-order-rules-DETxSzle.cjs';
3
3
  import 'type-fest';
4
4
 
5
5
  type FirstBy<T extends IterableContainer> = (T extends readonly [unknown, ...ReadonlyArray<unknown>] ? never : T extends readonly [...ReadonlyArray<unknown>, unknown] ? never : undefined) | T[number];
@@ -1,5 +1,5 @@
1
1
  import { I as IterableContainer, N as NonEmptyArray } from './types-BMu1PIvo.js';
2
- import { O as OrderRule } from './curry-order-rules-BOMf1JS7.js';
2
+ import { O as OrderRule } from './curry-order-rules-DETxSzle.js';
3
3
  import 'type-fest';
4
4
 
5
5
  type FirstBy<T extends IterableContainer> = (T extends readonly [unknown, ...ReadonlyArray<unknown>] ? never : T extends readonly [...ReadonlyArray<unknown>, unknown] ? never : undefined) | T[number];
package/dist/first-by.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-CXRG2GSY.js";import"./chunk-JXXXUJM5.js";import"./chunk-73BYESBE.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as firstBy};
1
+ import{a}from"./chunk-J5PNUDDU.js";import"./chunk-JXXXUJM5.js";import"./chunk-73BYESBE.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as firstBy};
@@ -0,0 +1 @@
1
+ "use strict";var _chunkMLLA7SGZcjs = require('./chunk-MLLA7SGZ.cjs');var _chunkDHNCWVVTcjs = require('./chunk-DHNCWVVT.cjs');require('./chunk-FWQYL4Y4.cjs');require('./chunk-G66EZBJS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("can return undefined on arrays",()=>{let t=_chunkDHNCWVVTcjs.a.call(void 0, [1,2,3],_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(t).toBeNullable()});it("can't return undefined on non-empty array",()=>{let t=_chunkDHNCWVVTcjs.a.call(void 0, [1,2,3],_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(t).not.toBeNullable()});it("only returns null on the empty array",()=>{let t=_chunkDHNCWVVTcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a.call(void 0, ));expectTypeOf(t).toBeUndefined()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-WUAU3LTQ.js";import{a as e}from"./chunk-J5PNUDDU.js";import"./chunk-JXXXUJM5.js";import"./chunk-73BYESBE.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("can return undefined on arrays",()=>{let t=e([1,2,3],n());expectTypeOf(t).toBeNullable()});it("can't return undefined on non-empty array",()=>{let t=e([1,2,3],n());expectTypeOf(t).not.toBeNullable()});it("only returns null on the empty array",()=>{let t=e([],n());expectTypeOf(t).toBeUndefined()});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkK2MIPOLQcjs = require('./chunk-K2MIPOLQ.cjs');require('./chunk-GPGITOFN.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("simple empty array",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, []);expectTypeOf(r).toEqualTypeOf()});test("simple array",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1]);expectTypeOf(r).toEqualTypeOf()});test("simple non-empty array",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1]);expectTypeOf(r).toEqualTypeOf()});test("simple tuple",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1,"a"]);expectTypeOf(r).toEqualTypeOf()});test("array with more than one item",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1,2]);expectTypeOf(r).toEqualTypeOf()});test("trivial empty array",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, []);expectTypeOf(r).toEqualTypeOf(void 0)});test("array with last",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1]);expectTypeOf(r).toEqualTypeOf()});test("tuple with last",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, ["a",1]);expectTypeOf(r).toEqualTypeOf()});test("simple empty readonly array",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, []);expectTypeOf(r).toEqualTypeOf()});test("simple readonly array",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1]);expectTypeOf(r).toEqualTypeOf()});test("simple non-empty readonly array",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1]);expectTypeOf(r).toEqualTypeOf()});test("simple readonly tuple",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1,"a"]);expectTypeOf(r).toEqualTypeOf()});test("readonly array with more than one item",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1,2]);expectTypeOf(r).toEqualTypeOf()});test("readonly trivial empty array",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, []);expectTypeOf(r).toEqualTypeOf(void 0)});test("readonly array with last",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, [1]);expectTypeOf(r).toEqualTypeOf()});test("readonly tuple with last",()=>{let r=_chunkK2MIPOLQcjs.a.call(void 0, ["a",1]);expectTypeOf(r).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-LHHGOIQC.js";import"./chunk-SME5FGMA.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("simple empty array",()=>{let r=e([]);expectTypeOf(r).toEqualTypeOf()});test("simple array",()=>{let r=e([1]);expectTypeOf(r).toEqualTypeOf()});test("simple non-empty array",()=>{let r=e([1]);expectTypeOf(r).toEqualTypeOf()});test("simple tuple",()=>{let r=e([1,"a"]);expectTypeOf(r).toEqualTypeOf()});test("array with more than one item",()=>{let r=e([1,2]);expectTypeOf(r).toEqualTypeOf()});test("trivial empty array",()=>{let r=e([]);expectTypeOf(r).toEqualTypeOf(void 0)});test("array with last",()=>{let r=e([1]);expectTypeOf(r).toEqualTypeOf()});test("tuple with last",()=>{let r=e(["a",1]);expectTypeOf(r).toEqualTypeOf()});test("simple empty readonly array",()=>{let r=e([]);expectTypeOf(r).toEqualTypeOf()});test("simple readonly array",()=>{let r=e([1]);expectTypeOf(r).toEqualTypeOf()});test("simple non-empty readonly array",()=>{let r=e([1]);expectTypeOf(r).toEqualTypeOf()});test("simple readonly tuple",()=>{let r=e([1,"a"]);expectTypeOf(r).toEqualTypeOf()});test("readonly array with more than one item",()=>{let r=e([1,2]);expectTypeOf(r).toEqualTypeOf()});test("readonly trivial empty array",()=>{let r=e([]);expectTypeOf(r).toEqualTypeOf(void 0)});test("readonly array with last",()=>{let r=e([1]);expectTypeOf(r).toEqualTypeOf()});test("readonly tuple with last",()=>{let r=e(["a",1]);expectTypeOf(r).toEqualTypeOf()});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkIZZFU26Scjs = require('./chunk-IZZFU26S.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-7T4AVFYJ.cjs');it("works on empty arrays",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],1);expectTypeOf(r).toEqualTypeOf()});it("works on already-flat arrays",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],1);expectTypeOf(r).toEqualTypeOf()});it("works on a single level of nesting",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],1);expectTypeOf(r).toEqualTypeOf()});it("stops after the first level of nesting (depth === 1)",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],1);expectTypeOf(r).toEqualTypeOf()});it("stops after the first level of nesting (depth === 1)",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],1);expectTypeOf(r).toEqualTypeOf()});it("works with mixed types",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],1);expectTypeOf(r).toEqualTypeOf()});it("works with mixed levels of nesting",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],1);expectTypeOf(r).toEqualTypeOf()});it("works when depth is deeper than the array",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],10);expectTypeOf(r).toEqualTypeOf()});it("works when depth is really really really really big",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],9999999);expectTypeOf(r).toEqualTypeOf()});it("keeps the typing of trivial tuples",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [1,2],1);expectTypeOf(r).toEqualTypeOf()});it("Works on simple tuples",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [[1,2],[3,4]],1);expectTypeOf(r).toEqualTypeOf()});it("works on tuples with different levels of nesting",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [1,[2,3],[4,[5,6]]],1);expectTypeOf(r).toEqualTypeOf()});it("works on tuples with depth>1",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [1,[2,3],[4,[5,6]]],2);expectTypeOf(r).toEqualTypeOf()});it("works with tuples with a lot of nesting",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [[[[1]],[[[[2]]]]],[[[[3,4],5]]]],10);expectTypeOf(r).toEqualTypeOf()});it("works with a mix of simple arrays and tuples",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [[]],1);expectTypeOf(r).toEqualTypeOf()});it("works with multiple types nested in a tuple",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [[],[]],1);expectTypeOf(r).toEqualTypeOf()});it("works with a tuple with mixed array and non array items",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [1,[]],1);expectTypeOf(r).toEqualTypeOf()});it("works with a tuple with mixed array and non array items, deeply",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [[1],[]],2);expectTypeOf(r).toEqualTypeOf()});it("works on non-empty arrays",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [[1]],1);expectTypeOf(r).toEqualTypeOf()});it("works on tuples inside arrays",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()});it("works on tuples inside arrays",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [1,[],4],2);expectTypeOf(r).toEqualTypeOf()});it("works with depths beyond 20",()=>{let r=_chunkIZZFU26Scjs.a.call(void 0, [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[1]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]],99);expectTypeOf(r).toEqualTypeOf()});it("doesn't accept non-literal depths",()=>{_chunkIZZFU26Scjs.a.call(void 0, [],1)});it("doesn't accept built-in 'infinite' numbers",()=>{_chunkIZZFU26Scjs.a.call(void 0, [],Number.POSITIVE_INFINITY),_chunkIZZFU26Scjs.a.call(void 0, [],Number.MAX_VALUE),_chunkIZZFU26Scjs.a.call(void 0, [],Number.POSITIVE_INFINITY)});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-A62OZTSJ.js";import"./chunk-MYLYERXO.js";import"./chunk-KQGY2DBY.js";it("works on empty arrays",()=>{let r=t([],1);expectTypeOf(r).toEqualTypeOf()});it("works on already-flat arrays",()=>{let r=t([],1);expectTypeOf(r).toEqualTypeOf()});it("works on a single level of nesting",()=>{let r=t([],1);expectTypeOf(r).toEqualTypeOf()});it("stops after the first level of nesting (depth === 1)",()=>{let r=t([],1);expectTypeOf(r).toEqualTypeOf()});it("stops after the first level of nesting (depth === 1)",()=>{let r=t([],1);expectTypeOf(r).toEqualTypeOf()});it("works with mixed types",()=>{let r=t([],1);expectTypeOf(r).toEqualTypeOf()});it("works with mixed levels of nesting",()=>{let r=t([],1);expectTypeOf(r).toEqualTypeOf()});it("works when depth is deeper than the array",()=>{let r=t([],10);expectTypeOf(r).toEqualTypeOf()});it("works when depth is really really really really big",()=>{let r=t([],9999999);expectTypeOf(r).toEqualTypeOf()});it("keeps the typing of trivial tuples",()=>{let r=t([1,2],1);expectTypeOf(r).toEqualTypeOf()});it("Works on simple tuples",()=>{let r=t([[1,2],[3,4]],1);expectTypeOf(r).toEqualTypeOf()});it("works on tuples with different levels of nesting",()=>{let r=t([1,[2,3],[4,[5,6]]],1);expectTypeOf(r).toEqualTypeOf()});it("works on tuples with depth>1",()=>{let r=t([1,[2,3],[4,[5,6]]],2);expectTypeOf(r).toEqualTypeOf()});it("works with tuples with a lot of nesting",()=>{let r=t([[[[1]],[[[[2]]]]],[[[[3,4],5]]]],10);expectTypeOf(r).toEqualTypeOf()});it("works with a mix of simple arrays and tuples",()=>{let r=t([[]],1);expectTypeOf(r).toEqualTypeOf()});it("works with multiple types nested in a tuple",()=>{let r=t([[],[]],1);expectTypeOf(r).toEqualTypeOf()});it("works with a tuple with mixed array and non array items",()=>{let r=t([1,[]],1);expectTypeOf(r).toEqualTypeOf()});it("works with a tuple with mixed array and non array items, deeply",()=>{let r=t([[1],[]],2);expectTypeOf(r).toEqualTypeOf()});it("works on non-empty arrays",()=>{let r=t([[1]],1);expectTypeOf(r).toEqualTypeOf()});it("works on tuples inside arrays",()=>{let r=t([],2);expectTypeOf(r).toEqualTypeOf()});it("works on tuples inside arrays",()=>{let r=t([1,[],4],2);expectTypeOf(r).toEqualTypeOf()});it("works with depths beyond 20",()=>{let r=t([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[1]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]],99);expectTypeOf(r).toEqualTypeOf()});it("doesn't accept non-literal depths",()=>{t([],1)});it("doesn't accept built-in 'infinite' numbers",()=>{t([],Number.POSITIVE_INFINITY),t([],Number.MAX_VALUE),t([],Number.POSITIVE_INFINITY)});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkKODMZU4Jcjs = require('./chunk-KODMZU4J.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("Typing is sound when only symbol keys",()=>{_chunkKODMZU4Jcjs.a.call(void 0, {[Symbol("a")]:4},(t,e)=>{expectTypeOf(e).toBeNever(),expectTypeOf(t).toBeNever()})});test("Symbol keys are ignored",()=>{_chunkKODMZU4Jcjs.a.call(void 0, {[Symbol("a")]:4,a:"hello",b:!0},(t,e)=>{expectTypeOf(e).toEqualTypeOf(),expectTypeOf(t).toEqualTypeOf()})});test("number keys are translated to strings",()=>{_chunkKODMZU4Jcjs.a.call(void 0, {123:"hello",456:!0},(t,e)=>{expectTypeOf(e).toEqualTypeOf(),expectTypeOf(t).toEqualTypeOf()})});test("union of records",()=>{let t={};_chunkKODMZU4Jcjs.a.call(void 0, t,(e,p)=>{expectTypeOf(p).toEqualTypeOf(),expectTypeOf(e).toEqualTypeOf()}),_chunkI6VXEY44cjs.a.call(void 0, t,_chunkKODMZU4Jcjs.a.call(void 0, (e,p)=>{expectTypeOf(p).toEqualTypeOf(),expectTypeOf(e).toEqualTypeOf()}))});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-HLKCHMAO.js";import{a as r}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("Typing is sound when only symbol keys",()=>{o({[Symbol("a")]:4},(t,e)=>{expectTypeOf(e).toBeNever(),expectTypeOf(t).toBeNever()})});test("Symbol keys are ignored",()=>{o({[Symbol("a")]:4,a:"hello",b:!0},(t,e)=>{expectTypeOf(e).toEqualTypeOf(),expectTypeOf(t).toEqualTypeOf()})});test("number keys are translated to strings",()=>{o({123:"hello",456:!0},(t,e)=>{expectTypeOf(e).toEqualTypeOf(),expectTypeOf(t).toEqualTypeOf()})});test("union of records",()=>{let t={};o(t,(e,p)=>{expectTypeOf(p).toEqualTypeOf(),expectTypeOf(e).toEqualTypeOf()}),r(t,o((e,p)=>{expectTypeOf(p).toEqualTypeOf(),expectTypeOf(e).toEqualTypeOf()}))});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkUHUFGDIScjs = require('./chunk-UHUFGDIS.cjs');var _chunkNULDWRPDcjs = require('./chunk-NULDWRPD.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("doesn't return anything on dataFirst invocations",()=>{let t=_chunkUHUFGDIScjs.a.call(void 0, [1,2,3],_chunkNULDWRPDcjs.a.call(void 0, ));expectTypeOf(t).toEqualTypeOf()});it("passes the item type to the callback",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunkUHUFGDIScjs.a.call(void 0, t=>{expectTypeOf(t).toEqualTypeOf()}))});it("maintains the array shape",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1,"a"],_chunkUHUFGDIScjs.a.call(void 0, _chunkNULDWRPDcjs.a.call(void 0, )),r=>{expectTypeOf(r).toEqualTypeOf()})});it("makes the result mutable",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkUHUFGDIScjs.a.call(void 0, _chunkNULDWRPDcjs.a.call(void 0, )),r=>{expectTypeOf(r).toEqualTypeOf()})});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-T2LJNGWI.js";import{a as o}from"./chunk-PHKKU45J.js";import{a as e}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("doesn't return anything on dataFirst invocations",()=>{let t=a([1,2,3],o());expectTypeOf(t).toEqualTypeOf()});it("passes the item type to the callback",()=>{e([1,2,3],a(t=>{expectTypeOf(t).toEqualTypeOf()}))});it("maintains the array shape",()=>{e([1,"a"],a(o()),r=>{expectTypeOf(r).toEqualTypeOf()})});it("makes the result mutable",()=>{e([],a(o()),r=>{expectTypeOf(r).toEqualTypeOf()})});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkLZOGCJPRcjs = require('./chunk-LZOGCJPR.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("readonly inputs",()=>{test("trivial empty case",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf({})}),test("trivial single entry const case",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("trivial multi entry const case",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1],["b",2],["c",3]]);expectTypeOf(e).toEqualTypeOf()}),test("empty well defined array",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()}),test("mixed tuple with rest (first)",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("mixed tuple with rest (last)",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("empty generic type",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()}),test("mixed literals and generics",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("array with literal keys",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a","d"]]);expectTypeOf(e).toEqualTypeOf()}),test("backwards compatibility (number)",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [[1,123]]);expectTypeOf(e).toEqualTypeOf()}),test("backwards compatibility (string)",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",123]]);expectTypeOf(e).toEqualTypeOf()})});describe("non-readonly inputs",()=>{test("trivial empty case",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf({})}),test("trivial single entry const case",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("trivial multi entry const case",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1],["b",2],["c",3]]);expectTypeOf(e).toEqualTypeOf()}),test("empty well defined array",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()}),test("mixed tuple with rest (first)",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("mixed tuple with rest (last)",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("empty generic type",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()}),test("mixed literals and generics",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("array with literal keys",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a","d"]]);expectTypeOf(e).toEqualTypeOf()}),test("backwards compatibility (number)",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [[1,123]]);expectTypeOf(e).toEqualTypeOf()}),test("backwards compatibility (string)",()=>{let e=_chunkLZOGCJPRcjs.a.call(void 0, [["a",123]]);expectTypeOf(e).toEqualTypeOf()})});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-5ILJAWGC.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("readonly inputs",()=>{test("trivial empty case",()=>{let e=t([]);expectTypeOf(e).toEqualTypeOf({})}),test("trivial single entry const case",()=>{let e=t([["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("trivial multi entry const case",()=>{let e=t([["a",1],["b",2],["c",3]]);expectTypeOf(e).toEqualTypeOf()}),test("empty well defined array",()=>{let e=t([]);expectTypeOf(e).toEqualTypeOf()}),test("mixed tuple with rest (first)",()=>{let e=t([["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("mixed tuple with rest (last)",()=>{let e=t([["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("empty generic type",()=>{let e=t([]);expectTypeOf(e).toEqualTypeOf()}),test("mixed literals and generics",()=>{let e=t([["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("array with literal keys",()=>{let e=t([["a","d"]]);expectTypeOf(e).toEqualTypeOf()}),test("backwards compatibility (number)",()=>{let e=t([[1,123]]);expectTypeOf(e).toEqualTypeOf()}),test("backwards compatibility (string)",()=>{let e=t([["a",123]]);expectTypeOf(e).toEqualTypeOf()})});describe("non-readonly inputs",()=>{test("trivial empty case",()=>{let e=t([]);expectTypeOf(e).toEqualTypeOf({})}),test("trivial single entry const case",()=>{let e=t([["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("trivial multi entry const case",()=>{let e=t([["a",1],["b",2],["c",3]]);expectTypeOf(e).toEqualTypeOf()}),test("empty well defined array",()=>{let e=t([]);expectTypeOf(e).toEqualTypeOf()}),test("mixed tuple with rest (first)",()=>{let e=t([["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("mixed tuple with rest (last)",()=>{let e=t([["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("empty generic type",()=>{let e=t([]);expectTypeOf(e).toEqualTypeOf()}),test("mixed literals and generics",()=>{let e=t([["a",1]]);expectTypeOf(e).toEqualTypeOf()}),test("array with literal keys",()=>{let e=t([["a","d"]]);expectTypeOf(e).toEqualTypeOf()}),test("backwards compatibility (number)",()=>{let e=t([[1,123]]);expectTypeOf(e).toEqualTypeOf()}),test("backwards compatibility (string)",()=>{let e=t([["a",123]]);expectTypeOf(e).toEqualTypeOf()})});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkGUZPDGVHcjs = require('./chunk-GUZPDGVH.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');var _chunkWLNQOMKLcjs = require('./chunk-WLNQOMKL.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("empty array",()=>{let e=[],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()});test("fixed tuple",()=>{let e=["cat","dog"],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()});describe("with simple keys",()=>{test("regular array",()=>{let e=[],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("non-empty array",()=>{let e=["cat"],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("fixed tuple",()=>{let e=["cat","dog"],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()})});describe("with literal union keys",()=>{test("regular array",()=>{let e=[],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("non-empty array",()=>{let e=["cat"],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("fixed tuple",()=>{let e=["cat","mouse"],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()})});describe("with string template keys",()=>{test("regular array",()=>{let e=[],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("non-empty array",()=>{let e=["prefix_1"],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("fixed tuple",()=>{let e=["prefix_1","2_suffix"],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),describe("number keys",()=>{test("regular array",()=>{let e=[],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("non-empty array",()=>{let e=[1],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("fixed tuple",()=>{let e=[1,2],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()}),test("literals",()=>{let e=[1,2,3],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()})})});test("typescript doesn't choke on huge literal unions",()=>{let e=[],r=_chunkGUZPDGVHcjs.a.call(void 0, e,_chunkWLNQOMKLcjs.a.call(void 0, 1));expectTypeOf(r).toEqualTypeOf();let s=_chunkI6VXEY44cjs.a.call(void 0, e,_chunkGUZPDGVHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, 1)));expectTypeOf(s).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-TT2VLICK.js";import{a as o}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import{a as t}from"./chunk-T5XG33UI.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("empty array",()=>{let e=[],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()});test("fixed tuple",()=>{let e=["cat","dog"],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()});describe("with simple keys",()=>{test("regular array",()=>{let e=[],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("non-empty array",()=>{let e=["cat"],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("fixed tuple",()=>{let e=["cat","dog"],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()})});describe("with literal union keys",()=>{test("regular array",()=>{let e=[],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("non-empty array",()=>{let e=["cat"],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("fixed tuple",()=>{let e=["cat","mouse"],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()})});describe("with string template keys",()=>{test("regular array",()=>{let e=[],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("non-empty array",()=>{let e=["prefix_1"],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("fixed tuple",()=>{let e=["prefix_1","2_suffix"],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),describe("number keys",()=>{test("regular array",()=>{let e=[],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("non-empty array",()=>{let e=[1],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("fixed tuple",()=>{let e=[1,2],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()}),test("literals",()=>{let e=[1,2,3],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()})})});test("typescript doesn't choke on huge literal unions",()=>{let e=[],r=a(e,t(1));expectTypeOf(r).toEqualTypeOf();let s=o(e,a(t(1)));expectTypeOf(s).toEqualTypeOf()});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkFZCOVI2Mcjs = require('./chunk-FZCOVI2M.cjs');var _chunkSXTSJOEEcjs = require('./chunk-SXTSJOEE.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("Union of string literals",()=>{let e=_chunkFZCOVI2Mcjs.a.call(void 0, [{a:"cat",b:123},{a:"dog",b:456}],_chunkSXTSJOEEcjs.a.call(void 0, "a"));expectTypeOf(e).toEqualTypeOf()});test("Union of number literals",()=>{let e=_chunkFZCOVI2Mcjs.a.call(void 0, [{a:"cat",b:123},{a:"dog",b:456}],_chunkSXTSJOEEcjs.a.call(void 0, "b"));expectTypeOf(e).toEqualTypeOf()});test("string",()=>{let e=_chunkFZCOVI2Mcjs.a.call(void 0, [{a:"cat",b:123},{a:"dog",b:456}],a=>a.a);expectTypeOf(e).toEqualTypeOf()});test("number",()=>{let e=_chunkFZCOVI2Mcjs.a.call(void 0, [{a:"cat",b:123},{a:"dog",b:456}],a=>a.b);expectTypeOf(e).toEqualTypeOf()});test("string | number",()=>{let e=_chunkFZCOVI2Mcjs.a.call(void 0, [{a:"cat",b:123},{a:"dog",b:456}],a=>a.b);expectTypeOf(e).toEqualTypeOf()});describe("Filtering on undefined grouper result",()=>{test("regular",()=>{let{even:e,...a}=_chunkFZCOVI2Mcjs.a.call(void 0, [0,1,2,3,4,5,6,7,8,9],r=>r%2===0?"even":void 0);expectTypeOf(a).toEqualTypeOf({})}),test("indexed",()=>{let{even:e,...a}=_chunkFZCOVI2Mcjs.a.call(void 0, ["a","b","c","d","e","f","g","h","i","j"],(r,n)=>n%2===0?"even":void 0);expectTypeOf(a).toEqualTypeOf({})})});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-FQ3EXU24.js";import{a as o}from"./chunk-USNHLUEU.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("Union of string literals",()=>{let e=t([{a:"cat",b:123},{a:"dog",b:456}],o("a"));expectTypeOf(e).toEqualTypeOf()});test("Union of number literals",()=>{let e=t([{a:"cat",b:123},{a:"dog",b:456}],o("b"));expectTypeOf(e).toEqualTypeOf()});test("string",()=>{let e=t([{a:"cat",b:123},{a:"dog",b:456}],a=>a.a);expectTypeOf(e).toEqualTypeOf()});test("number",()=>{let e=t([{a:"cat",b:123},{a:"dog",b:456}],a=>a.b);expectTypeOf(e).toEqualTypeOf()});test("string | number",()=>{let e=t([{a:"cat",b:123},{a:"dog",b:456}],a=>a.b);expectTypeOf(e).toEqualTypeOf()});describe("Filtering on undefined grouper result",()=>{test("regular",()=>{let{even:e,...a}=t([0,1,2,3,4,5,6,7,8,9],r=>r%2===0?"even":void 0);expectTypeOf(a).toEqualTypeOf({})}),test("indexed",()=>{let{even:e,...a}=t(["a","b","c","d","e","f","g","h","i","j"],(r,n)=>n%2===0?"even":void 0);expectTypeOf(a).toEqualTypeOf({})})});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkG66EZBJScjs = require('./chunk-G66EZBJS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("dataFirst",()=>{it("narrows on empty checks",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, r,0)&&expectTypeOf(r).toEqualTypeOf()}),it("narrows on non-empty checks",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, r,1)&&expectTypeOf(r).toEqualTypeOf()}),it("narrows on large numbers",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, r,10)&&expectTypeOf(r).toEqualTypeOf()})});describe("dataLast",()=>{it("narrows on empty checks",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, 0)(r)&&expectTypeOf(r).toEqualTypeOf()}),it("narrows on non-empty checks",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, 1)(r)&&expectTypeOf(r).toEqualTypeOf()}),it("narrows on large numbers",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, 10)(r)&&expectTypeOf(r).toEqualTypeOf()}),it("creates narrowing utility functions",()=>{let r=_chunkG66EZBJScjs.a.call(void 0, 12),n=[];r(n)&&expectTypeOf(n).toEqualTypeOf();let a=[];r(a)&&expectTypeOf(a).toEqualTypeOf()})});it("fails on N > array length",()=>{let r=["hello","world"];_chunkG66EZBJScjs.a.call(void 0, r,3)&&expectTypeOf(r).toBeNever()});it("works with interesting tuples",()=>{let r=["hello","world",!0,456,123,"cat"];_chunkG66EZBJScjs.a.call(void 0, r,8)&&expectTypeOf(r).toEqualTypeOf()});it("maintains readonly-ness",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, r,3)&&expectTypeOf(r).toEqualTypeOf()});it("only narrows on literal numbers",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, r,3),expectTypeOf(r).toEqualTypeOf()});it("can narrow on a literal union",()=>{let r=[];_chunkG66EZBJScjs.a.call(void 0, r,3),expectTypeOf(r).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-73BYESBE.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("dataFirst",()=>{it("narrows on empty checks",()=>{let r=[];e(r,0)&&expectTypeOf(r).toEqualTypeOf()}),it("narrows on non-empty checks",()=>{let r=[];e(r,1)&&expectTypeOf(r).toEqualTypeOf()}),it("narrows on large numbers",()=>{let r=[];e(r,10)&&expectTypeOf(r).toEqualTypeOf()})});describe("dataLast",()=>{it("narrows on empty checks",()=>{let r=[];e(0)(r)&&expectTypeOf(r).toEqualTypeOf()}),it("narrows on non-empty checks",()=>{let r=[];e(1)(r)&&expectTypeOf(r).toEqualTypeOf()}),it("narrows on large numbers",()=>{let r=[];e(10)(r)&&expectTypeOf(r).toEqualTypeOf()}),it("creates narrowing utility functions",()=>{let r=e(12),n=[];r(n)&&expectTypeOf(n).toEqualTypeOf();let a=[];r(a)&&expectTypeOf(a).toEqualTypeOf()})});it("fails on N > array length",()=>{let r=["hello","world"];e(r,3)&&expectTypeOf(r).toBeNever()});it("works with interesting tuples",()=>{let r=["hello","world",!0,456,123,"cat"];e(r,8)&&expectTypeOf(r).toEqualTypeOf()});it("maintains readonly-ness",()=>{let r=[];e(r,3)&&expectTypeOf(r).toEqualTypeOf()});it("only narrows on literal numbers",()=>{let r=[];e(r,3),expectTypeOf(r).toEqualTypeOf()});it("can narrow on a literal union",()=>{let r=[];e(r,3),expectTypeOf(r).toEqualTypeOf()});