@vinicunca/perkakas 1.0.2 → 1.0.4

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 (618) hide show
  1. package/dist/add-prop.d.cts +1 -1
  2. package/dist/add-prop.d.ts +1 -1
  3. package/dist/add-prop.spec-d.cjs +1 -0
  4. package/dist/add-prop.spec-d.d.cts +2 -0
  5. package/dist/add-prop.spec-d.d.ts +2 -0
  6. package/dist/add-prop.spec-d.js +1 -0
  7. package/dist/chunk-2ADWP73S.js +1 -0
  8. package/dist/chunk-2VLHCBHJ.js +1 -0
  9. package/dist/chunk-3DFX2FQG.cjs +1 -0
  10. package/dist/chunk-4WU7JGWS.cjs +1 -0
  11. package/dist/chunk-AACZ5UGG.cjs +1 -0
  12. package/dist/chunk-AKGWT6GC.js +1 -0
  13. package/dist/chunk-BT3FI7L7.js +1 -0
  14. package/dist/{chunk-XQOKSJ5R.cjs → chunk-E6RBEL5Z.cjs} +1 -1
  15. package/dist/chunk-EPHUNAE5.js +1 -0
  16. package/dist/chunk-G7BJFBAZ.cjs +1 -0
  17. package/dist/{chunk-YIUDV3OA.cjs → chunk-HTO3K3VA.cjs} +1 -1
  18. package/dist/chunk-HU67VIVI.js +1 -0
  19. package/dist/chunk-IABWIMQT.js +1 -0
  20. package/dist/chunk-IRH6TGG5.js +1 -0
  21. package/dist/chunk-J5PNUDDU.js +1 -0
  22. package/dist/chunk-KAA6IVBL.js +1 -0
  23. package/dist/chunk-MADDQNAR.cjs +1 -0
  24. package/dist/chunk-MZWACWOX.js +1 -0
  25. package/dist/chunk-OJ2QGTFS.js +1 -0
  26. package/dist/chunk-PFLGL4YP.js +1 -0
  27. package/dist/chunk-QHGCU3LJ.js +1 -0
  28. package/dist/chunk-QTQTKNWA.js +1 -0
  29. package/dist/chunk-RCENCAXY.cjs +1 -0
  30. package/dist/chunk-RJAVPEJT.cjs +1 -0
  31. package/dist/chunk-T7S2RC5M.cjs +1 -0
  32. package/dist/chunk-TRIZIXDA.cjs +1 -0
  33. package/dist/chunk-U2BXIRBJ.js +1 -0
  34. package/dist/chunk-ULMOKABQ.cjs +1 -0
  35. package/dist/chunk-UVAWCZB6.js +1 -0
  36. package/dist/chunk-VAUOPMAN.cjs +1 -0
  37. package/dist/chunk-VN2OAM2N.js +1 -0
  38. package/dist/chunk-VPG3W5JH.cjs +1 -0
  39. package/dist/chunk-WQDEYM64.js +1 -0
  40. package/dist/chunk-WRKGH4XX.js +1 -0
  41. package/dist/chunk-XSYAC5NV.cjs +1 -0
  42. package/dist/chunk-Y3WI7FPB.cjs +1 -0
  43. package/dist/chunk-Z5UEQBZP.cjs +1 -0
  44. package/dist/chunk-ZJGZ2TEC.cjs +1 -0
  45. package/dist/chunk-ZO4ND36N.cjs +1 -0
  46. package/dist/chunk.cjs +1 -1
  47. package/dist/chunk.d.cts +91 -5
  48. package/dist/chunk.d.ts +91 -5
  49. package/dist/chunk.js +1 -1
  50. package/dist/chunk.spec-d.cjs +1 -0
  51. package/dist/chunk.spec-d.d.cts +2 -0
  52. package/dist/chunk.spec-d.d.ts +2 -0
  53. package/dist/chunk.spec-d.js +1 -0
  54. package/dist/concat.d.cts +1 -1
  55. package/dist/concat.d.ts +1 -1
  56. package/dist/conditional.d.cts +1 -1
  57. package/dist/conditional.d.ts +1 -1
  58. package/dist/conditional.spec-d.cjs +1 -0
  59. package/dist/conditional.spec-d.d.cts +2 -0
  60. package/dist/conditional.spec-d.d.ts +2 -0
  61. package/dist/conditional.spec-d.js +1 -0
  62. package/dist/constant.spec-d.cjs +1 -0
  63. package/dist/constant.spec-d.d.cts +2 -0
  64. package/dist/constant.spec-d.d.ts +2 -0
  65. package/dist/constant.spec-d.js +1 -0
  66. package/dist/{curry-order-rules-BOMf1JS7.d.cts → curry-order-rules-DETxSzle.d.cts} +1 -1
  67. package/dist/{curry-order-rules-BOMf1JS7.d.ts → curry-order-rules-DETxSzle.d.ts} +1 -1
  68. package/dist/debounce.spec-d.cjs +1 -0
  69. package/dist/debounce.spec-d.d.cts +2 -0
  70. package/dist/debounce.spec-d.d.ts +2 -0
  71. package/dist/debounce.spec-d.js +1 -0
  72. package/dist/do-nothing.spec-d.cjs +1 -0
  73. package/dist/do-nothing.spec-d.d.cts +2 -0
  74. package/dist/do-nothing.spec-d.d.ts +2 -0
  75. package/dist/do-nothing.spec-d.js +1 -0
  76. package/dist/drop-first-by.d.cts +2 -2
  77. package/dist/drop-first-by.d.ts +2 -2
  78. package/dist/drop-last-while.cjs +1 -1
  79. package/dist/drop-last-while.d.cts +5 -2
  80. package/dist/drop-last-while.d.ts +5 -2
  81. package/dist/drop-last-while.js +1 -1
  82. package/dist/drop-last-while.spec-d.cjs +1 -0
  83. package/dist/drop-last-while.spec-d.d.cts +2 -0
  84. package/dist/drop-last-while.spec-d.d.ts +2 -0
  85. package/dist/drop-last-while.spec-d.js +1 -0
  86. package/dist/drop-last.cjs +1 -1
  87. package/dist/drop-last.d.cts +5 -2
  88. package/dist/drop-last.d.ts +5 -2
  89. package/dist/drop-last.js +1 -1
  90. package/dist/drop-last.spec-d.cjs +1 -0
  91. package/dist/drop-last.spec-d.d.cts +2 -0
  92. package/dist/drop-last.spec-d.d.ts +2 -0
  93. package/dist/drop-last.spec-d.js +1 -0
  94. package/dist/drop-while.cjs +1 -1
  95. package/dist/drop-while.d.cts +5 -2
  96. package/dist/drop-while.d.ts +5 -2
  97. package/dist/drop-while.js +1 -1
  98. package/dist/drop-while.spec-d.cjs +1 -0
  99. package/dist/drop-while.spec-d.d.cts +2 -0
  100. package/dist/drop-while.spec-d.d.ts +2 -0
  101. package/dist/drop-while.spec-d.js +1 -0
  102. package/dist/drop.cjs +1 -1
  103. package/dist/drop.d.cts +10 -2
  104. package/dist/drop.d.ts +10 -2
  105. package/dist/drop.js +1 -1
  106. package/dist/drop.spec-d.cjs +1 -0
  107. package/dist/drop.spec-d.d.cts +2 -0
  108. package/dist/drop.spec-d.d.ts +2 -0
  109. package/dist/drop.spec-d.js +1 -0
  110. package/dist/entries.spec-d.cjs +1 -0
  111. package/dist/entries.spec-d.d.cts +2 -0
  112. package/dist/entries.spec-d.d.ts +2 -0
  113. package/dist/entries.spec-d.js +1 -0
  114. package/dist/evolve.d.cts +1 -1
  115. package/dist/evolve.d.ts +1 -1
  116. package/dist/evolve.spec-d.cjs +1 -0
  117. package/dist/evolve.spec-d.d.cts +2 -0
  118. package/dist/evolve.spec-d.d.ts +2 -0
  119. package/dist/evolve.spec-d.js +1 -0
  120. package/dist/filter.spec-d.cjs +1 -0
  121. package/dist/filter.spec-d.d.cts +2 -0
  122. package/dist/filter.spec-d.d.ts +2 -0
  123. package/dist/filter.spec-d.js +1 -0
  124. package/dist/find.spec-d.cjs +1 -0
  125. package/dist/find.spec-d.d.cts +2 -0
  126. package/dist/find.spec-d.d.ts +2 -0
  127. package/dist/find.spec-d.js +1 -0
  128. package/dist/first-by.cjs +1 -1
  129. package/dist/first-by.d.cts +2 -2
  130. package/dist/first-by.d.ts +2 -2
  131. package/dist/first-by.js +1 -1
  132. package/dist/first-by.spec-d.cjs +1 -0
  133. package/dist/first-by.spec-d.d.cts +2 -0
  134. package/dist/first-by.spec-d.d.ts +2 -0
  135. package/dist/first-by.spec-d.js +1 -0
  136. package/dist/first.d.cts +1 -1
  137. package/dist/first.d.ts +1 -1
  138. package/dist/first.spec-d.cjs +1 -0
  139. package/dist/first.spec-d.d.cts +2 -0
  140. package/dist/first.spec-d.d.ts +2 -0
  141. package/dist/first.spec-d.js +1 -0
  142. package/dist/flat.d.cts +1 -1
  143. package/dist/flat.d.ts +1 -1
  144. package/dist/flat.spec-d.cjs +1 -0
  145. package/dist/flat.spec-d.d.cts +2 -0
  146. package/dist/flat.spec-d.d.ts +2 -0
  147. package/dist/flat.spec-d.js +1 -0
  148. package/dist/for-each-obj.d.cts +1 -1
  149. package/dist/for-each-obj.d.ts +1 -1
  150. package/dist/for-each-obj.spec-d.cjs +1 -0
  151. package/dist/for-each-obj.spec-d.d.cts +2 -0
  152. package/dist/for-each-obj.spec-d.d.ts +2 -0
  153. package/dist/for-each-obj.spec-d.js +1 -0
  154. package/dist/for-each.d.cts +1 -1
  155. package/dist/for-each.d.ts +1 -1
  156. package/dist/for-each.spec-d.cjs +1 -0
  157. package/dist/for-each.spec-d.d.cts +2 -0
  158. package/dist/for-each.spec-d.d.ts +2 -0
  159. package/dist/for-each.spec-d.js +1 -0
  160. package/dist/from-entries.d.cts +1 -1
  161. package/dist/from-entries.d.ts +1 -1
  162. package/dist/from-entries.spec-d.cjs +1 -0
  163. package/dist/from-entries.spec-d.d.cts +2 -0
  164. package/dist/from-entries.spec-d.d.ts +2 -0
  165. package/dist/from-entries.spec-d.js +1 -0
  166. package/dist/from-keys.d.cts +1 -1
  167. package/dist/from-keys.d.ts +1 -1
  168. package/dist/from-keys.spec-d.cjs +1 -0
  169. package/dist/from-keys.spec-d.d.cts +2 -0
  170. package/dist/from-keys.spec-d.d.ts +2 -0
  171. package/dist/from-keys.spec-d.js +1 -0
  172. package/dist/group-by.d.cts +1 -1
  173. package/dist/group-by.d.ts +1 -1
  174. package/dist/group-by.spec-d.cjs +1 -0
  175. package/dist/group-by.spec-d.d.cts +2 -0
  176. package/dist/group-by.spec-d.d.ts +2 -0
  177. package/dist/group-by.spec-d.js +1 -0
  178. package/dist/has-at-least.d.cts +1 -1
  179. package/dist/has-at-least.d.ts +1 -1
  180. package/dist/has-at-least.spec-d.cjs +1 -0
  181. package/dist/has-at-least.spec-d.d.cts +2 -0
  182. package/dist/has-at-least.spec-d.d.ts +2 -0
  183. package/dist/has-at-least.spec-d.js +1 -0
  184. package/dist/has-sub-object.d.cts +1 -1
  185. package/dist/has-sub-object.d.ts +1 -1
  186. package/dist/has-sub-object.spec-d.cjs +1 -0
  187. package/dist/has-sub-object.spec-d.d.cts +2 -0
  188. package/dist/has-sub-object.spec-d.d.ts +2 -0
  189. package/dist/has-sub-object.spec-d.js +1 -0
  190. package/dist/identity.spec-d.cjs +1 -0
  191. package/dist/identity.spec-d.d.cts +2 -0
  192. package/dist/identity.spec-d.d.ts +2 -0
  193. package/dist/identity.spec-d.js +1 -0
  194. package/dist/index-by.d.cts +1 -1
  195. package/dist/index-by.d.ts +1 -1
  196. package/dist/index-by.spec-d.cjs +1 -0
  197. package/dist/index-by.spec-d.d.cts +2 -0
  198. package/dist/index-by.spec-d.d.ts +2 -0
  199. package/dist/index-by.spec-d.js +1 -0
  200. package/dist/index.cjs +1 -1
  201. package/dist/index.d.cts +4 -2
  202. package/dist/index.d.ts +4 -2
  203. package/dist/index.js +1 -1
  204. package/dist/intersection.spec-d.cjs +1 -0
  205. package/dist/intersection.spec-d.d.cts +2 -0
  206. package/dist/intersection.spec-d.d.ts +2 -0
  207. package/dist/intersection.spec-d.js +1 -0
  208. package/dist/invert.spec-d.cjs +1 -0
  209. package/dist/invert.spec-d.d.cts +2 -0
  210. package/dist/invert.spec-d.d.ts +2 -0
  211. package/dist/invert.spec-d.js +1 -0
  212. package/dist/is-array.d.cts +1 -1
  213. package/dist/is-array.d.ts +1 -1
  214. package/dist/is-array.spec-d.cjs +1 -0
  215. package/dist/is-array.spec-d.d.cts +2 -0
  216. package/dist/is-array.spec-d.d.ts +2 -0
  217. package/dist/is-array.spec-d.js +1 -0
  218. package/dist/is-big-int.d.cts +1 -1
  219. package/dist/is-big-int.d.ts +1 -1
  220. package/dist/is-big-int.spec-d.cjs +1 -0
  221. package/dist/is-big-int.spec-d.d.cts +2 -0
  222. package/dist/is-big-int.spec-d.d.ts +2 -0
  223. package/dist/is-big-int.spec-d.js +1 -0
  224. package/dist/is-boolean.d.cts +1 -1
  225. package/dist/is-boolean.d.ts +1 -1
  226. package/dist/is-boolean.spec-d.cjs +1 -0
  227. package/dist/is-boolean.spec-d.d.cts +2 -0
  228. package/dist/is-boolean.spec-d.d.ts +2 -0
  229. package/dist/is-boolean.spec-d.js +1 -0
  230. package/dist/is-date.spec-d.cjs +1 -0
  231. package/dist/is-date.spec-d.d.cts +2 -0
  232. package/dist/is-date.spec-d.d.ts +2 -0
  233. package/dist/is-date.spec-d.js +1 -0
  234. package/dist/is-deep-equal.d.cts +26 -10
  235. package/dist/is-deep-equal.d.ts +26 -10
  236. package/dist/is-deep-equal.spec-d.cjs +1 -0
  237. package/dist/is-deep-equal.spec-d.d.cts +2 -0
  238. package/dist/is-deep-equal.spec-d.d.ts +2 -0
  239. package/dist/is-deep-equal.spec-d.js +1 -0
  240. package/dist/is-defined.spec-d.cjs +1 -0
  241. package/dist/is-defined.spec-d.d.cts +2 -0
  242. package/dist/is-defined.spec-d.d.ts +2 -0
  243. package/dist/is-defined.spec-d.js +1 -0
  244. package/dist/is-empty.cjs +1 -1
  245. package/dist/is-empty.d.cts +1 -1
  246. package/dist/is-empty.d.ts +1 -1
  247. package/dist/is-empty.js +1 -1
  248. package/dist/is-empty.spec-d.cjs +1 -0
  249. package/dist/is-empty.spec-d.d.cts +2 -0
  250. package/dist/is-empty.spec-d.d.ts +2 -0
  251. package/dist/is-empty.spec-d.js +1 -0
  252. package/dist/is-error.spec-d.cjs +1 -0
  253. package/dist/is-error.spec-d.d.cts +2 -0
  254. package/dist/is-error.spec-d.d.ts +2 -0
  255. package/dist/is-error.spec-d.js +1 -0
  256. package/dist/is-function.spec-d.cjs +1 -0
  257. package/dist/is-function.spec-d.d.cts +2 -0
  258. package/dist/is-function.spec-d.d.ts +2 -0
  259. package/dist/is-function.spec-d.js +1 -0
  260. package/dist/is-included-in.d.cts +1 -1
  261. package/dist/is-included-in.d.ts +1 -1
  262. package/dist/is-included-in.spec-d.cjs +1 -0
  263. package/dist/is-included-in.spec-d.d.cts +2 -0
  264. package/dist/is-included-in.spec-d.d.ts +2 -0
  265. package/dist/is-included-in.spec-d.js +1 -0
  266. package/dist/is-non-null.spec-d.cjs +1 -0
  267. package/dist/is-non-null.spec-d.d.cts +2 -0
  268. package/dist/is-non-null.spec-d.d.ts +2 -0
  269. package/dist/is-non-null.spec-d.js +1 -0
  270. package/dist/is-non-nullish.spec-d.cjs +1 -0
  271. package/dist/is-non-nullish.spec-d.d.cts +2 -0
  272. package/dist/is-non-nullish.spec-d.d.ts +2 -0
  273. package/dist/is-non-nullish.spec-d.js +1 -0
  274. package/dist/is-not.spec-d.cjs +1 -0
  275. package/dist/is-not.spec-d.d.cts +2 -0
  276. package/dist/is-not.spec-d.d.ts +2 -0
  277. package/dist/is-not.spec-d.js +1 -0
  278. package/dist/is-nullish.d.cts +1 -1
  279. package/dist/is-nullish.d.ts +1 -1
  280. package/dist/is-nullish.spec-d.cjs +1 -0
  281. package/dist/is-nullish.spec-d.d.cts +2 -0
  282. package/dist/is-nullish.spec-d.d.ts +2 -0
  283. package/dist/is-nullish.spec-d.js +1 -0
  284. package/dist/is-number.d.cts +1 -1
  285. package/dist/is-number.d.ts +1 -1
  286. package/dist/is-number.spec-d.cjs +1 -0
  287. package/dist/is-number.spec-d.d.cts +2 -0
  288. package/dist/is-number.spec-d.d.ts +2 -0
  289. package/dist/is-number.spec-d.js +1 -0
  290. package/dist/is-object-type.d.cts +1 -1
  291. package/dist/is-object-type.d.ts +1 -1
  292. package/dist/is-object-type.spec-d.cjs +1 -0
  293. package/dist/is-object-type.spec-d.d.cts +2 -0
  294. package/dist/is-object-type.spec-d.d.ts +2 -0
  295. package/dist/is-object-type.spec-d.js +1 -0
  296. package/dist/is-plain-object.d.cts +1 -1
  297. package/dist/is-plain-object.d.ts +1 -1
  298. package/dist/is-plain-object.spec-d.cjs +1 -0
  299. package/dist/is-plain-object.spec-d.d.cts +2 -0
  300. package/dist/is-plain-object.spec-d.d.ts +2 -0
  301. package/dist/is-plain-object.spec-d.js +1 -0
  302. package/dist/is-promise.spec-d.cjs +1 -0
  303. package/dist/is-promise.spec-d.d.cts +2 -0
  304. package/dist/is-promise.spec-d.d.ts +2 -0
  305. package/dist/is-promise.spec-d.js +1 -0
  306. package/dist/is-shallow-equal.cjs +1 -0
  307. package/dist/is-shallow-equal.d.cts +69 -0
  308. package/dist/is-shallow-equal.d.ts +69 -0
  309. package/dist/is-shallow-equal.js +1 -0
  310. package/dist/is-shallow-equal.spec-d.cjs +1 -0
  311. package/dist/is-shallow-equal.spec-d.d.cts +2 -0
  312. package/dist/is-shallow-equal.spec-d.d.ts +2 -0
  313. package/dist/is-shallow-equal.spec-d.js +1 -0
  314. package/dist/is-strict-equal.cjs +1 -0
  315. package/dist/is-strict-equal.d.cts +65 -0
  316. package/dist/is-strict-equal.d.ts +65 -0
  317. package/dist/is-strict-equal.js +1 -0
  318. package/dist/is-strict-equal.spec-d.cjs +1 -0
  319. package/dist/is-strict-equal.spec-d.d.cts +2 -0
  320. package/dist/is-strict-equal.spec-d.d.ts +2 -0
  321. package/dist/is-strict-equal.spec-d.js +1 -0
  322. package/dist/is-string.d.cts +1 -1
  323. package/dist/is-string.d.ts +1 -1
  324. package/dist/is-string.spec-d.cjs +1 -0
  325. package/dist/is-string.spec-d.d.cts +2 -0
  326. package/dist/is-string.spec-d.d.ts +2 -0
  327. package/dist/is-string.spec-d.js +1 -0
  328. package/dist/is-symbol.d.cts +1 -1
  329. package/dist/is-symbol.d.ts +1 -1
  330. package/dist/is-symbol.spec-d.cjs +1 -0
  331. package/dist/is-symbol.spec-d.d.cts +2 -0
  332. package/dist/is-symbol.spec-d.d.ts +2 -0
  333. package/dist/is-symbol.spec-d.js +1 -0
  334. package/dist/is-truthy.spec-d.cjs +1 -0
  335. package/dist/is-truthy.spec-d.d.cts +2 -0
  336. package/dist/is-truthy.spec-d.d.ts +2 -0
  337. package/dist/is-truthy.spec-d.js +1 -0
  338. package/dist/join.spec-d.cjs +1 -0
  339. package/dist/join.spec-d.d.cts +2 -0
  340. package/dist/join.spec-d.d.ts +2 -0
  341. package/dist/join.spec-d.js +1 -0
  342. package/dist/keys.d.cts +1 -1
  343. package/dist/keys.d.ts +1 -1
  344. package/dist/keys.spec-d.cjs +1 -0
  345. package/dist/keys.spec-d.d.cts +2 -0
  346. package/dist/keys.spec-d.d.ts +2 -0
  347. package/dist/keys.spec-d.js +1 -0
  348. package/dist/last.d.cts +1 -1
  349. package/dist/last.d.ts +1 -1
  350. package/dist/last.spec-d.cjs +1 -0
  351. package/dist/last.spec-d.d.cts +2 -0
  352. package/dist/last.spec-d.d.ts +2 -0
  353. package/dist/last.spec-d.js +1 -0
  354. package/dist/map-keys.d.cts +1 -1
  355. package/dist/map-keys.d.ts +1 -1
  356. package/dist/map-keys.spec-d.cjs +1 -0
  357. package/dist/map-keys.spec-d.d.cts +2 -0
  358. package/dist/map-keys.spec-d.d.ts +2 -0
  359. package/dist/map-keys.spec-d.js +1 -0
  360. package/dist/map-values.d.cts +1 -1
  361. package/dist/map-values.d.ts +1 -1
  362. package/dist/map-values.spec-d.cjs +1 -0
  363. package/dist/map-values.spec-d.d.cts +2 -0
  364. package/dist/map-values.spec-d.d.ts +2 -0
  365. package/dist/map-values.spec-d.js +1 -0
  366. package/dist/map-with-feedback.d.cts +1 -1
  367. package/dist/map-with-feedback.d.ts +1 -1
  368. package/dist/map-with-feedback.spec-d.cjs +1 -0
  369. package/dist/map-with-feedback.spec-d.d.cts +2 -0
  370. package/dist/map-with-feedback.spec-d.d.ts +2 -0
  371. package/dist/map-with-feedback.spec-d.js +1 -0
  372. package/dist/map.d.cts +1 -1
  373. package/dist/map.d.ts +1 -1
  374. package/dist/map.spec-d.cjs +1 -0
  375. package/dist/map.spec-d.d.cts +2 -0
  376. package/dist/map.spec-d.d.ts +2 -0
  377. package/dist/map.spec-d.js +1 -0
  378. package/dist/merge-deep.spec-d.cjs +1 -0
  379. package/dist/merge-deep.spec-d.d.cts +2 -0
  380. package/dist/merge-deep.spec-d.d.ts +2 -0
  381. package/dist/merge-deep.spec-d.js +1 -0
  382. package/dist/merge.spec-d.cjs +1 -0
  383. package/dist/merge.spec-d.d.cts +2 -0
  384. package/dist/merge.spec-d.d.ts +2 -0
  385. package/dist/merge.spec-d.js +1 -0
  386. package/dist/nth-by.d.cts +2 -2
  387. package/dist/nth-by.d.ts +2 -2
  388. package/dist/nth-by.spec-d.cjs +1 -0
  389. package/dist/nth-by.spec-d.d.cts +2 -0
  390. package/dist/nth-by.spec-d.d.ts +2 -0
  391. package/dist/nth-by.spec-d.js +1 -0
  392. package/dist/omit-by.d.cts +1 -1
  393. package/dist/omit-by.d.ts +1 -1
  394. package/dist/omit-by.spec-d.cjs +1 -0
  395. package/dist/omit-by.spec-d.d.cts +2 -0
  396. package/dist/omit-by.spec-d.d.ts +2 -0
  397. package/dist/omit-by.spec-d.js +1 -0
  398. package/dist/omit.spec-d.cjs +1 -0
  399. package/dist/omit.spec-d.d.cts +2 -0
  400. package/dist/omit.spec-d.d.ts +2 -0
  401. package/dist/omit.spec-d.js +1 -0
  402. package/dist/only.d.cts +1 -1
  403. package/dist/only.d.ts +1 -1
  404. package/dist/only.spec-d.cjs +1 -0
  405. package/dist/only.spec-d.d.cts +2 -0
  406. package/dist/only.spec-d.d.ts +2 -0
  407. package/dist/only.spec-d.js +1 -0
  408. package/dist/partition.spec-d.cjs +1 -0
  409. package/dist/partition.spec-d.d.cts +2 -0
  410. package/dist/partition.spec-d.d.ts +2 -0
  411. package/dist/partition.spec-d.js +1 -0
  412. package/dist/pick-by.d.cts +1 -1
  413. package/dist/pick-by.d.ts +1 -1
  414. package/dist/pick-by.spec-d.cjs +1 -0
  415. package/dist/pick-by.spec-d.d.cts +2 -0
  416. package/dist/pick-by.spec-d.d.ts +2 -0
  417. package/dist/pick-by.spec-d.js +1 -0
  418. package/dist/pick.spec-d.cjs +1 -0
  419. package/dist/pick.spec-d.d.cts +2 -0
  420. package/dist/pick.spec-d.d.ts +2 -0
  421. package/dist/pick.spec-d.js +1 -0
  422. package/dist/product.d.cts +1 -1
  423. package/dist/product.d.ts +1 -1
  424. package/dist/product.spec-d.cjs +1 -0
  425. package/dist/product.spec-d.d.cts +2 -0
  426. package/dist/product.spec-d.d.ts +2 -0
  427. package/dist/product.spec-d.js +1 -0
  428. package/dist/prop.spec-d.cjs +1 -0
  429. package/dist/prop.spec-d.d.cts +2 -0
  430. package/dist/prop.spec-d.d.ts +2 -0
  431. package/dist/prop.spec-d.js +1 -0
  432. package/dist/pull-object.d.cts +1 -1
  433. package/dist/pull-object.d.ts +1 -1
  434. package/dist/pull-object.spec-d.cjs +1 -0
  435. package/dist/pull-object.spec-d.d.cts +2 -0
  436. package/dist/pull-object.spec-d.d.ts +2 -0
  437. package/dist/pull-object.spec-d.js +1 -0
  438. package/dist/rank-by.d.cts +2 -2
  439. package/dist/rank-by.d.ts +2 -2
  440. package/dist/reverse.spec-d.cjs +1 -0
  441. package/dist/reverse.spec-d.d.cts +2 -0
  442. package/dist/reverse.spec-d.d.ts +2 -0
  443. package/dist/reverse.spec-d.js +1 -0
  444. package/dist/sample.d.cts +1 -1
  445. package/dist/sample.d.ts +1 -1
  446. package/dist/sample.spec-d.cjs +1 -0
  447. package/dist/sample.spec-d.d.cts +2 -0
  448. package/dist/sample.spec-d.d.ts +2 -0
  449. package/dist/sample.spec-d.js +1 -0
  450. package/dist/set-path.cjs +1 -1
  451. package/dist/set-path.d.cts +4 -4
  452. package/dist/set-path.d.ts +4 -4
  453. package/dist/set-path.js +1 -1
  454. package/dist/set-path.spec-d.cjs +1 -0
  455. package/dist/set-path.spec-d.d.cts +2 -0
  456. package/dist/set-path.spec-d.d.ts +2 -0
  457. package/dist/set-path.spec-d.js +1 -0
  458. package/dist/set.d.cts +1 -1
  459. package/dist/set.d.ts +1 -1
  460. package/dist/set.spec-d.cjs +1 -0
  461. package/dist/set.spec-d.d.cts +2 -0
  462. package/dist/set.spec-d.d.ts +2 -0
  463. package/dist/set.spec-d.js +1 -0
  464. package/dist/shuffle.cjs +1 -1
  465. package/dist/shuffle.d.cts +5 -2
  466. package/dist/shuffle.d.ts +5 -2
  467. package/dist/shuffle.js +1 -1
  468. package/dist/shuffle.spec-d.cjs +1 -0
  469. package/dist/shuffle.spec-d.d.cts +2 -0
  470. package/dist/shuffle.spec-d.d.ts +2 -0
  471. package/dist/shuffle.spec-d.js +1 -0
  472. package/dist/sort-by.d.cts +2 -2
  473. package/dist/sort-by.d.ts +2 -2
  474. package/dist/sort-by.spec-d.cjs +1 -0
  475. package/dist/sort-by.spec-d.d.cts +2 -0
  476. package/dist/sort-by.spec-d.d.ts +2 -0
  477. package/dist/sort-by.spec-d.js +1 -0
  478. package/dist/sort.d.cts +1 -1
  479. package/dist/sort.d.ts +1 -1
  480. package/dist/sort.spec-d.cjs +1 -0
  481. package/dist/sort.spec-d.d.cts +2 -0
  482. package/dist/sort.spec-d.d.ts +2 -0
  483. package/dist/sort.spec-d.js +1 -0
  484. package/dist/splice.spec-d.cjs +1 -0
  485. package/dist/splice.spec-d.d.cts +2 -0
  486. package/dist/splice.spec-d.d.ts +2 -0
  487. package/dist/splice.spec-d.js +1 -0
  488. package/dist/split.spec-d.cjs +1 -0
  489. package/dist/split.spec-d.d.cts +2 -0
  490. package/dist/split.spec-d.d.ts +2 -0
  491. package/dist/split.spec-d.js +1 -0
  492. package/dist/string-to-path.spec-d.cjs +1 -0
  493. package/dist/string-to-path.spec-d.d.cts +2 -0
  494. package/dist/string-to-path.spec-d.d.ts +2 -0
  495. package/dist/string-to-path.spec-d.js +1 -0
  496. package/dist/sum.d.cts +1 -1
  497. package/dist/sum.d.ts +1 -1
  498. package/dist/sum.spec-d.cjs +1 -0
  499. package/dist/sum.spec-d.d.cts +2 -0
  500. package/dist/sum.spec-d.d.ts +2 -0
  501. package/dist/sum.spec-d.js +1 -0
  502. package/dist/swap-indices.d.cts +1 -1
  503. package/dist/swap-indices.d.ts +1 -1
  504. package/dist/swap-props.spec-d.cjs +1 -0
  505. package/dist/swap-props.spec-d.d.cts +2 -0
  506. package/dist/swap-props.spec-d.d.ts +2 -0
  507. package/dist/swap-props.spec-d.js +1 -0
  508. package/dist/take-first-by.d.cts +2 -2
  509. package/dist/take-first-by.d.ts +2 -2
  510. package/dist/take-last-while.cjs +1 -1
  511. package/dist/take-last-while.d.cts +5 -2
  512. package/dist/take-last-while.d.ts +5 -2
  513. package/dist/take-last-while.js +1 -1
  514. package/dist/take-last-while.spec-d-.cjs +1 -0
  515. package/dist/take-last-while.spec-d-.d.cts +2 -0
  516. package/dist/take-last-while.spec-d-.d.ts +2 -0
  517. package/dist/take-last-while.spec-d-.js +1 -0
  518. package/dist/take-last.cjs +1 -1
  519. package/dist/take-last.d.cts +5 -2
  520. package/dist/take-last.d.ts +5 -2
  521. package/dist/take-last.js +1 -1
  522. package/dist/take-last.spec-d.cjs +1 -0
  523. package/dist/take-last.spec-d.d.cts +2 -0
  524. package/dist/take-last.spec-d.d.ts +2 -0
  525. package/dist/take-last.spec-d.js +1 -0
  526. package/dist/take-while.cjs +1 -1
  527. package/dist/take-while.d.cts +5 -2
  528. package/dist/take-while.d.ts +5 -2
  529. package/dist/take-while.js +1 -1
  530. package/dist/take-white.spec-d.cjs +1 -0
  531. package/dist/take-white.spec-d.d.cts +2 -0
  532. package/dist/take-white.spec-d.d.ts +2 -0
  533. package/dist/take-white.spec-d.js +1 -0
  534. package/dist/take.cjs +1 -1
  535. package/dist/take.d.cts +5 -2
  536. package/dist/take.d.ts +5 -2
  537. package/dist/take.js +1 -1
  538. package/dist/take.spec-d.cjs +1 -0
  539. package/dist/take.spec-d.d.cts +2 -0
  540. package/dist/take.spec-d.d.ts +2 -0
  541. package/dist/take.spec-d.js +1 -0
  542. package/dist/tap.spec-d.cjs +1 -0
  543. package/dist/tap.spec-d.d.cts +2 -0
  544. package/dist/tap.spec-d.d.ts +2 -0
  545. package/dist/tap.spec-d.js +1 -0
  546. package/dist/times.cjs +1 -1
  547. package/dist/times.d.cts +21 -5
  548. package/dist/times.d.ts +21 -5
  549. package/dist/times.js +1 -1
  550. package/dist/times.spec-d.cjs +1 -0
  551. package/dist/times.spec-d.d.cts +2 -0
  552. package/dist/times.spec-d.d.ts +2 -0
  553. package/dist/times.spec-d.js +1 -0
  554. package/dist/{types-BMu1PIvo.d.cts → types-BE3YOWVA.d.cts} +45 -2
  555. package/dist/{types-BMu1PIvo.d.ts → types-BE3YOWVA.d.ts} +45 -2
  556. package/dist/unique-by.cjs +1 -1
  557. package/dist/unique-by.d.cts +5 -2
  558. package/dist/unique-by.d.ts +5 -2
  559. package/dist/unique-by.js +1 -1
  560. package/dist/unique-with.cjs +1 -1
  561. package/dist/unique-with.d.cts +5 -2
  562. package/dist/unique-with.d.ts +5 -2
  563. package/dist/unique-with.js +1 -1
  564. package/dist/unique.cjs +1 -1
  565. package/dist/unique.d.cts +6 -3
  566. package/dist/unique.d.ts +6 -3
  567. package/dist/unique.js +1 -1
  568. package/dist/values.d.cts +1 -1
  569. package/dist/values.d.ts +1 -1
  570. package/dist/values.spec-d.cjs +1 -0
  571. package/dist/values.spec-d.d.cts +2 -0
  572. package/dist/values.spec-d.d.ts +2 -0
  573. package/dist/values.spec-d.js +1 -0
  574. package/dist/zip-with.d.cts +1 -1
  575. package/dist/zip-with.d.ts +1 -1
  576. package/dist/zip-with.spec-d.cjs +1 -0
  577. package/dist/zip-with.spec-d.d.cts +2 -0
  578. package/dist/zip-with.spec-d.d.ts +2 -0
  579. package/dist/zip-with.spec-d.js +1 -0
  580. package/dist/zip.d.cts +1 -1
  581. package/dist/zip.d.ts +1 -1
  582. package/dist/zip.spec-d.cjs +1 -0
  583. package/dist/zip.spec-d.d.cts +2 -0
  584. package/dist/zip.spec-d.d.ts +2 -0
  585. package/dist/zip.spec-d.js +1 -0
  586. package/package.json +17 -16
  587. package/dist/chunk-3UUZWCRS.cjs +0 -1
  588. package/dist/chunk-4XRKXTOK.js +0 -1
  589. package/dist/chunk-65DHT5Z7.cjs +0 -1
  590. package/dist/chunk-66KQORMS.js +0 -1
  591. package/dist/chunk-AE5HI6VG.cjs +0 -1
  592. package/dist/chunk-CIF6WEFP.js +0 -1
  593. package/dist/chunk-COBRSP66.js +0 -1
  594. package/dist/chunk-CXRG2GSY.js +0 -1
  595. package/dist/chunk-DUKQ2ODK.js +0 -1
  596. package/dist/chunk-DWPHE3F2.cjs +0 -1
  597. package/dist/chunk-EDKMZBZ3.cjs +0 -1
  598. package/dist/chunk-HUWRVMPE.js +0 -1
  599. package/dist/chunk-LIKMH7XD.js +0 -1
  600. package/dist/chunk-LOPUNSWJ.js +0 -1
  601. package/dist/chunk-MENOHSYF.js +0 -1
  602. package/dist/chunk-NNK6R67E.cjs +0 -1
  603. package/dist/chunk-NNU5DU4F.cjs +0 -1
  604. package/dist/chunk-NQR6HZYF.js +0 -1
  605. package/dist/chunk-P7OXTPPH.cjs +0 -1
  606. package/dist/chunk-QTCQZ7LU.js +0 -1
  607. package/dist/chunk-RSJJRJTH.cjs +0 -1
  608. package/dist/chunk-TR5T6KUC.js +0 -1
  609. package/dist/chunk-U5EQP4BO.cjs +0 -1
  610. package/dist/chunk-UH3TDC4T.cjs +0 -1
  611. package/dist/chunk-VNLOBA2B.cjs +0 -1
  612. package/dist/chunk-X6AB3I7Z.cjs +0 -1
  613. package/dist/chunk-YQKPA3BB.js +0 -1
  614. package/dist/chunk-YWSZXRUY.js +0 -1
  615. package/dist/chunk-Z7EBGO2B.js +0 -1
  616. package/dist/chunk-ZCFTW5HO.cjs +0 -1
  617. package/dist/chunk-ZW3IUWYO.js +0 -1
  618. /package/dist/{chunk-XJRGE7WL.cjs → chunk-DHNCWVVT.cjs} +0 -0
package/dist/set-path.js CHANGED
@@ -1 +1 @@
1
- import{a,b}from"./chunk-NQR6HZYF.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as setPath,b as setPathImplementation};
1
+ import{a,b}from"./chunk-QHGCU3LJ.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as setPath,b as setPathImplementation};
@@ -0,0 +1 @@
1
+ "use strict";var _chunkULMOKABQcjs = require('./chunk-ULMOKABQ.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');var t={a:{b:{c:1},e:[{f:{g:1}},{f:{g:1}}]},y:10};describe("data first",()=>{it("should correctly type value argument",()=>{_chunkULMOKABQcjs.a.call(void 0, t,["a","e",1,"f","g"],"hello"),_chunkULMOKABQcjs.a.call(void 0, t,["a","e",1,"f","g"],123)}),it("should correctly type path argument",()=>{_chunkULMOKABQcjs.a.call(void 0, t,["a","hello"],"hello"),_chunkULMOKABQcjs.a.call(void 0, t,["a","z"],123)}),test("should correctly type partial paths",()=>{_chunkULMOKABQcjs.a.call(void 0, t,["a","b"],123),_chunkULMOKABQcjs.a.call(void 0, t,["a","b"],{c:123})})});describe("data last",()=>{test("should correctly type value argument",()=>{_chunkI6VXEY44cjs.a.call(void 0, t,_chunkULMOKABQcjs.a.call(void 0, ["a","e",1,"f","g"],"hello")),_chunkI6VXEY44cjs.a.call(void 0, t,_chunkULMOKABQcjs.a.call(void 0, ["a","e",1,"f","g"],123))}),test("should correctly type path argument",()=>{_chunkI6VXEY44cjs.a.call(void 0, t,_chunkULMOKABQcjs.a.call(void 0, ["a","hello"],"hello")),_chunkI6VXEY44cjs.a.call(void 0, t,_chunkULMOKABQcjs.a.call(void 0, ["a","z"],123))}),test("should correctly type partial paths",()=>{_chunkI6VXEY44cjs.a.call(void 0, t,_chunkULMOKABQcjs.a.call(void 0, ["a","b"],123)),_chunkI6VXEY44cjs.a.call(void 0, t,_chunkULMOKABQcjs.a.call(void 0, ["a","b"],{c:123}))})});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-QHGCU3LJ.js";import{a}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";var t={a:{b:{c:1},e:[{f:{g:1}},{f:{g:1}}]},y:10};describe("data first",()=>{it("should correctly type value argument",()=>{e(t,["a","e",1,"f","g"],"hello"),e(t,["a","e",1,"f","g"],123)}),it("should correctly type path argument",()=>{e(t,["a","hello"],"hello"),e(t,["a","z"],123)}),test("should correctly type partial paths",()=>{e(t,["a","b"],123),e(t,["a","b"],{c:123})})});describe("data last",()=>{test("should correctly type value argument",()=>{a(t,e(["a","e",1,"f","g"],"hello")),a(t,e(["a","e",1,"f","g"],123))}),test("should correctly type path argument",()=>{a(t,e(["a","hello"],"hello")),a(t,e(["a","z"],123))}),test("should correctly type partial paths",()=>{a(t,e(["a","b"],123)),a(t,e(["a","b"],{c:123}))})});
package/dist/set.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { U as UpsertProp } from './types-BMu1PIvo.cjs';
1
+ import { U as UpsertProp } from './types-BE3YOWVA.cjs';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
package/dist/set.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { U as UpsertProp } from './types-BMu1PIvo.js';
1
+ import { U as UpsertProp } from './types-BE3YOWVA.js';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
@@ -0,0 +1 @@
1
+ "use strict";var _chunk7EJQW5L6cjs = require('./chunk-7EJQW5L6.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("parameter enforcing",()=>{it("prevents setting the wrong type",()=>{_chunk7EJQW5L6cjs.a.call(void 0, {},"a",1)}),it("doesn't expand narrow types",()=>{_chunk7EJQW5L6cjs.a.call(void 0, {},"a","mouse")}),it("prevents setting `undefined` on optional fields",()=>{_chunk7EJQW5L6cjs.a.call(void 0, {},"a",void 0)}),it("prevents setting an unknown prop",()=>{_chunk7EJQW5L6cjs.a.call(void 0, {a:"foo"},"b","bar")})});it("narrows the prop type",()=>{let t=_chunk7EJQW5L6cjs.a.call(void 0, {},"a","hello");expectTypeOf(t).toEqualTypeOf()});it("keeps the prop optional when the key isn't literal",()=>{let t=_chunk7EJQW5L6cjs.a.call(void 0, {},"a","foo");expectTypeOf(t).toEqualTypeOf()});it("works on simple objects",()=>{let t=_chunk7EJQW5L6cjs.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-QIM2PMWS.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("parameter enforcing",()=>{it("prevents setting the wrong type",()=>{e({},"a",1)}),it("doesn't expand narrow types",()=>{e({},"a","mouse")}),it("prevents setting `undefined` on optional fields",()=>{e({},"a",void 0)}),it("prevents setting an unknown prop",()=>{e({a:"foo"},"b","bar")})});it("narrows the prop type",()=>{let t=e({},"a","hello");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()});
package/dist/shuffle.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNNK6R67Ecjs = require('./chunk-NNK6R67E.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.shuffle = _chunkNNK6R67Ecjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4WU7JGWScjs = require('./chunk-4WU7JGWS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.shuffle = _chunk4WU7JGWScjs.a;
@@ -1,3 +1,6 @@
1
+ import { I as IterableContainer, g as ReorderedArray } from './types-BE3YOWVA.cjs';
2
+ import 'type-fest';
3
+
1
4
  /**
2
5
  * Shuffles the input array, returning a new array with the same elements in a random order.
3
6
  *
@@ -9,7 +12,7 @@
9
12
  * @dataFirst
10
13
  * @category Array
11
14
  */
12
- declare function shuffle<T>(items: ReadonlyArray<T>): Array<T>;
15
+ declare function shuffle<T extends IterableContainer>(items: T): ReorderedArray<T>;
13
16
  /**
14
17
  * Shuffles the input array, returning a new array with the same elements in a random order.
15
18
  *
@@ -20,6 +23,6 @@ declare function shuffle<T>(items: ReadonlyArray<T>): Array<T>;
20
23
  * @dataLast
21
24
  * @category Array
22
25
  */
23
- declare function shuffle<T>(): (items: ReadonlyArray<T>) => Array<T>;
26
+ declare function shuffle(): <T extends IterableContainer>(items: T) => ReorderedArray<T>;
24
27
 
25
28
  export { shuffle };
package/dist/shuffle.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import { I as IterableContainer, g as ReorderedArray } from './types-BE3YOWVA.js';
2
+ import 'type-fest';
3
+
1
4
  /**
2
5
  * Shuffles the input array, returning a new array with the same elements in a random order.
3
6
  *
@@ -9,7 +12,7 @@
9
12
  * @dataFirst
10
13
  * @category Array
11
14
  */
12
- declare function shuffle<T>(items: ReadonlyArray<T>): Array<T>;
15
+ declare function shuffle<T extends IterableContainer>(items: T): ReorderedArray<T>;
13
16
  /**
14
17
  * Shuffles the input array, returning a new array with the same elements in a random order.
15
18
  *
@@ -20,6 +23,6 @@ declare function shuffle<T>(items: ReadonlyArray<T>): Array<T>;
20
23
  * @dataLast
21
24
  * @category Array
22
25
  */
23
- declare function shuffle<T>(): (items: ReadonlyArray<T>) => Array<T>;
26
+ declare function shuffle(): <T extends IterableContainer>(items: T) => ReorderedArray<T>;
24
27
 
25
28
  export { shuffle };
package/dist/shuffle.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-HUWRVMPE.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as shuffle};
1
+ import{a}from"./chunk-PFLGL4YP.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as shuffle};
@@ -0,0 +1 @@
1
+ "use strict";var _chunk4WU7JGWScjs = require('./chunk-4WU7JGWS.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("regular array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()});test("non-empty tail-rest array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1]);expectTypeOf(e).toEqualTypeOf()});test("non-empty head-rest array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1]);expectTypeOf(e).toEqualTypeOf()});test("fixed size tuple",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1,"a",!0]);expectTypeOf(e).toEqualTypeOf()});it("removes readonlyness from array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()});it("infers type via a pipe",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, ["a",1,!0],_chunk4WU7JGWScjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-PFLGL4YP.js";import{a as t}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("regular array",()=>{let e=r([]);expectTypeOf(e).toEqualTypeOf()});test("non-empty tail-rest array",()=>{let e=r([1]);expectTypeOf(e).toEqualTypeOf()});test("non-empty head-rest array",()=>{let e=r([1]);expectTypeOf(e).toEqualTypeOf()});test("fixed size tuple",()=>{let e=r([1,"a",!0]);expectTypeOf(e).toEqualTypeOf()});it("removes readonlyness from array",()=>{let e=r([]);expectTypeOf(e).toEqualTypeOf()});it("infers type via a pipe",()=>{let e=t(["a",1,!0],r());expectTypeOf(e).toEqualTypeOf()});
@@ -1,5 +1,5 @@
1
- import { I as IterableContainer, N as NonEmptyArray, f as ReorderedArray } from './types-BMu1PIvo.cjs';
2
- import { O as OrderRule } from './curry-order-rules-BOMf1JS7.cjs';
1
+ import { I as IterableContainer, a as NonEmptyArray, g as ReorderedArray } from './types-BE3YOWVA.cjs';
2
+ import { O as OrderRule } from './curry-order-rules-DETxSzle.cjs';
3
3
  import 'type-fest';
4
4
 
5
5
  /**
package/dist/sort-by.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IterableContainer, N as NonEmptyArray, f as ReorderedArray } from './types-BMu1PIvo.js';
2
- import { O as OrderRule } from './curry-order-rules-BOMf1JS7.js';
1
+ import { I as IterableContainer, a as NonEmptyArray, g as ReorderedArray } from './types-BE3YOWVA.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 _chunkNIYVDIEQcjs = require('./chunk-NIYVDIEQ.cjs');var _chunkMLLA7SGZcjs = require('./chunk-MLLA7SGZ.cjs');var _chunkSXTSJOEEcjs = require('./chunk-SXTSJOEE.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-FWQYL4Y4.cjs');var _chunkWLNQOMKLcjs = require('./chunk-WLNQOMKL.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');var s=[{id:1,color:"red",weight:2,active:!0,date:new Date(2021,1,1)},{id:2,color:"blue",weight:3,active:!1,date:new Date(2021,1,2)},{id:3,color:"green",weight:1,active:!1,date:new Date(2021,1,3)},{id:4,color:"purple",weight:1,active:!0,date:new Date(2021,1,4)}];describe("dataFirst",()=>{test("SortProjection",()=>{let a=_chunkNIYVDIEQcjs.a.call(void 0, [{a:1},{a:3},{a:7},{a:2}],_chunkSXTSJOEEcjs.a.call(void 0, "a"));expectTypeOf(a).toMatchTypeOf()}),test("SortPair",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, s,[a=>a.active,"desc"]);expectTypeOf(e).toEqualTypeOf()})});describe("dataLast",()=>{test("SortProjection",()=>{let a=_chunkI6VXEY44cjs.a.call(void 0, [{a:1},{a:3},{a:7},{a:2}],_chunkNIYVDIEQcjs.a.call(void 0, _chunkSXTSJOEEcjs.a.call(void 0, "a")));expectTypeOf(a).toMatchTypeOf()}),test("SortPair",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, s,_chunkNIYVDIEQcjs.a.call(void 0, [_chunkSXTSJOEEcjs.a.call(void 0, "weight"),"asc"],[_chunkSXTSJOEEcjs.a.call(void 0, "color"),"desc"]));expectTypeOf(e).toEqualTypeOf()})});it("on empty tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on empty readonly tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on array",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on readonly array",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1,2,3],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1,2,3],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest tail",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest tail",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});test("on tuple with rest middle",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [3,2,1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});test("on readonly tuple with rest middle",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [3,2,1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest head",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest head",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1],_chunkMLLA7SGZcjs.a);expectTypeOf(e).toEqualTypeOf()});test("on tuple with optional values",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, 0));expectTypeOf(e).toEqualTypeOf()});test("on readonly tuple with optional values",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, 0));expectTypeOf(e).toEqualTypeOf()});it("on mixed types tuple",()=>{let e=_chunkNIYVDIEQcjs.a.call(void 0, [1,"hello",!0],_chunkMLLA7SGZcjs.a);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-J3YPWVVQ.js";import{a as r}from"./chunk-WUAU3LTQ.js";import{a as n}from"./chunk-USNHLUEU.js";import{a as o}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JXXXUJM5.js";import{a as u}from"./chunk-T5XG33UI.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";var s=[{id:1,color:"red",weight:2,active:!0,date:new Date(2021,1,1)},{id:2,color:"blue",weight:3,active:!1,date:new Date(2021,1,2)},{id:3,color:"green",weight:1,active:!1,date:new Date(2021,1,3)},{id:4,color:"purple",weight:1,active:!0,date:new Date(2021,1,4)}];describe("dataFirst",()=>{test("SortProjection",()=>{let a=t([{a:1},{a:3},{a:7},{a:2}],n("a"));expectTypeOf(a).toMatchTypeOf()}),test("SortPair",()=>{let e=t(s,[a=>a.active,"desc"]);expectTypeOf(e).toEqualTypeOf()})});describe("dataLast",()=>{test("SortProjection",()=>{let a=o([{a:1},{a:3},{a:7},{a:2}],t(n("a")));expectTypeOf(a).toMatchTypeOf()}),test("SortPair",()=>{let e=o(s,t([n("weight"),"asc"],[n("color"),"desc"]));expectTypeOf(e).toEqualTypeOf()})});it("on empty tuple",()=>{let e=t([],r);expectTypeOf(e).toEqualTypeOf()});it("on empty readonly tuple",()=>{let e=t([],r);expectTypeOf(e).toEqualTypeOf()});it("on array",()=>{let e=t([],r);expectTypeOf(e).toEqualTypeOf()});it("on readonly array",()=>{let e=t([],r);expectTypeOf(e).toEqualTypeOf()});it("on tuple",()=>{let e=t([1,2,3],r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple",()=>{let e=t([1,2,3],r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest tail",()=>{let e=t([1],r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest tail",()=>{let e=t([1],r);expectTypeOf(e).toEqualTypeOf()});test("on tuple with rest middle",()=>{let e=t([3,2,1],r);expectTypeOf(e).toEqualTypeOf()});test("on readonly tuple with rest middle",()=>{let e=t([3,2,1],r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest head",()=>{let e=t([1],r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest head",()=>{let e=t([1],r);expectTypeOf(e).toEqualTypeOf()});test("on tuple with optional values",()=>{let e=t([],u(0));expectTypeOf(e).toEqualTypeOf()});test("on readonly tuple with optional values",()=>{let e=t([],u(0));expectTypeOf(e).toEqualTypeOf()});it("on mixed types tuple",()=>{let e=t([1,"hello",!0],r);expectTypeOf(e).toEqualTypeOf()});
package/dist/sort.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, f as ReorderedArray } from './types-BMu1PIvo.cjs';
1
+ import { I as IterableContainer, g as ReorderedArray } from './types-BE3YOWVA.cjs';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
package/dist/sort.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, f as ReorderedArray } from './types-BMu1PIvo.js';
1
+ import { I as IterableContainer, g as ReorderedArray } from './types-BE3YOWVA.js';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
@@ -0,0 +1 @@
1
+ "use strict";var _chunkZ42U7NBMcjs = require('./chunk-Z42U7NBM.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("on empty tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on empty readonly tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on array",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly array",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1,2,3],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1,2,3],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest tail",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest tail",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest head",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest head",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on mixed types tuple",()=>{let e=_chunkZ42U7NBMcjs.a.call(void 0, [1,"hello",!0],()=>1);expectTypeOf(e).toEqualTypeOf()});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-XUU6IYML.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("on empty tuple",()=>{let e=n([],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on empty readonly tuple",()=>{let e=n([],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on array",()=>{let e=n([],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly array",()=>{let e=n([],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple",()=>{let e=n([1,2,3],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple",()=>{let e=n([1,2,3],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest tail",()=>{let e=n([1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest tail",()=>{let e=n([1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on tuple with rest head",()=>{let e=n([1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on readonly tuple with rest head",()=>{let e=n([1],(t,r)=>t-r);expectTypeOf(e).toEqualTypeOf()});it("on mixed types tuple",()=>{let e=n([1,"hello",!0],()=>1);expectTypeOf(e).toEqualTypeOf()});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkDJ5DVLWDcjs = require('./chunk-DJ5DVLWD.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("reflects the type of `items` in the return value",()=>{let e=_chunkDJ5DVLWDcjs.a.call(void 0, [],0,0,[]);expectTypeOf(e).toEqualTypeOf()});it("reflects the type of `replacement` in the return value",()=>{let e=_chunkDJ5DVLWDcjs.a.call(void 0, [],0,0,[]);expectTypeOf(e).toEqualTypeOf()});it("reflects the type of `replacement` in the return value (data-last)",()=>{let e=_chunkDJ5DVLWDcjs.a.call(void 0, 0,0,[]);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-7UJXFFOU.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("reflects the type of `items` in the return value",()=>{let e=t([],0,0,[]);expectTypeOf(e).toEqualTypeOf()});it("reflects the type of `replacement` in the return value",()=>{let e=t([],0,0,[]);expectTypeOf(e).toEqualTypeOf()});it("reflects the type of `replacement` in the return value (data-last)",()=>{let e=t(0,0,[]);expectTypeOf(e).toEqualTypeOf()});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkTFN3JWPScjs = require('./chunk-TFN3JWPS.cjs');test("non-literals",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "","");expectTypeOf(t).toEqualTypeOf()});test("non-literal data",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "",",");expectTypeOf(t).toEqualTypeOf()});test("non-literal separator",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "",",");expectTypeOf(t).toEqualTypeOf()});test("non-literal limit",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "","",1);expectTypeOf(t).toEqualTypeOf()});test("literal empty strings",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "","");expectTypeOf(t).toEqualTypeOf()});test("trivial literals",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a",",");expectTypeOf(t).toEqualTypeOf()});test("trivial literals",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a",",");expectTypeOf(t).toEqualTypeOf()});test("string contains separator",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, ",",",");expectTypeOf(t).toEqualTypeOf()});test("useful split",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",");expectTypeOf(t).toEqualTypeOf()});test("regex split",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",/,/u);expectTypeOf(t).toEqualTypeOf()});test("limited split",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",2);expectTypeOf(t).toEqualTypeOf()});test("limit is higher than splits",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",5);expectTypeOf(t).toEqualTypeOf()});test("undefined limit",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",void 0);expectTypeOf(t).toEqualTypeOf()});test("multiple consecutive separators",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,,b",",");expectTypeOf(t).toEqualTypeOf()});test("separator at the start and end",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, ",a,b,",",");expectTypeOf(t).toEqualTypeOf()});test("empty string separator",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "abcdef","");expectTypeOf(t).toEqualTypeOf()});test("empty everything",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "","");expectTypeOf(t).toEqualTypeOf()});test("literal string with multiple character separator",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a--b--c","--");expectTypeOf(t).toEqualTypeOf()});test("negative limit",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",-1);expectTypeOf(t).toEqualTypeOf()});test("fractional limits",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",1.5);expectTypeOf(t).toEqualTypeOf()});test("0 limit",()=>{let t=_chunkTFN3JWPScjs.a.call(void 0, "a,b,c",",",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-RBODUO3Q.js";test("non-literals",()=>{let t=e("","");expectTypeOf(t).toEqualTypeOf()});test("non-literal data",()=>{let t=e("",",");expectTypeOf(t).toEqualTypeOf()});test("non-literal separator",()=>{let t=e("",",");expectTypeOf(t).toEqualTypeOf()});test("non-literal limit",()=>{let t=e("","",1);expectTypeOf(t).toEqualTypeOf()});test("literal empty strings",()=>{let t=e("","");expectTypeOf(t).toEqualTypeOf()});test("trivial literals",()=>{let t=e("a",",");expectTypeOf(t).toEqualTypeOf()});test("trivial literals",()=>{let t=e("a",",");expectTypeOf(t).toEqualTypeOf()});test("string contains separator",()=>{let t=e(",",",");expectTypeOf(t).toEqualTypeOf()});test("useful split",()=>{let t=e("a,b,c",",");expectTypeOf(t).toEqualTypeOf()});test("regex split",()=>{let t=e("a,b,c",/,/u);expectTypeOf(t).toEqualTypeOf()});test("limited split",()=>{let t=e("a,b,c",",",2);expectTypeOf(t).toEqualTypeOf()});test("limit is higher than splits",()=>{let t=e("a,b,c",",",5);expectTypeOf(t).toEqualTypeOf()});test("undefined limit",()=>{let t=e("a,b,c",",",void 0);expectTypeOf(t).toEqualTypeOf()});test("multiple consecutive separators",()=>{let t=e("a,,b",",");expectTypeOf(t).toEqualTypeOf()});test("separator at the start and end",()=>{let t=e(",a,b,",",");expectTypeOf(t).toEqualTypeOf()});test("empty string separator",()=>{let t=e("abcdef","");expectTypeOf(t).toEqualTypeOf()});test("empty everything",()=>{let t=e("","");expectTypeOf(t).toEqualTypeOf()});test("literal string with multiple character separator",()=>{let t=e("a--b--c","--");expectTypeOf(t).toEqualTypeOf()});test("negative limit",()=>{let t=e("a,b,c",",",-1);expectTypeOf(t).toEqualTypeOf()});test("fractional limits",()=>{let t=e("a,b,c",",",1.5);expectTypeOf(t).toEqualTypeOf()});test("0 limit",()=>{let t=e("a,b,c",",",0);expectTypeOf(t).toEqualTypeOf()});
@@ -0,0 +1 @@
1
+ "use strict";var _chunkVRZNQSZNcjs = require('./chunk-VRZNQSZN.cjs');test("should convert a string to a deeply nested path",()=>{let e=_chunkVRZNQSZNcjs.a.call(void 0, "a.b[0].c");expectTypeOf(e).toEqualTypeOf()});test("simple const string are inferred",()=>{let e=_chunkVRZNQSZNcjs.a.call(void 0, "foo[bar.baz].qui");expectTypeOf(e).toEqualTypeOf()});test("should handle long paths",()=>{let e=_chunkVRZNQSZNcjs.a.call(void 0, "lorem.ipsum[dolor.sit].amet.con.sec.tetur[adi.pisc.ing].elit.42");expectTypeOf(e).toEqualTypeOf()});test("dynamic strings cannot be inferred",()=>{let e=_chunkVRZNQSZNcjs.a.call(void 0, "foo.bar[baz]");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-CZLV6ZLZ.js";test("should convert a string to a deeply nested path",()=>{let e=t("a.b[0].c");expectTypeOf(e).toEqualTypeOf()});test("simple const string are inferred",()=>{let e=t("foo[bar.baz].qui");expectTypeOf(e).toEqualTypeOf()});test("should handle long paths",()=>{let e=t("lorem.ipsum[dolor.sit].amet.con.sec.tetur[adi.pisc.ing].elit.42");expectTypeOf(e).toEqualTypeOf()});test("dynamic strings cannot be inferred",()=>{let e=t("foo.bar[baz]");expectTypeOf(e).toEqualTypeOf()});
package/dist/sum.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer } from './types-BMu1PIvo.cjs';
1
+ import { I as IterableContainer } from './types-BE3YOWVA.cjs';
2
2
  import 'type-fest';
3
3
 
4
4
  type Sum<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 0 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 0 | bigint : number;
package/dist/sum.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer } from './types-BMu1PIvo.js';
1
+ import { I as IterableContainer } from './types-BE3YOWVA.js';
2
2
  import 'type-fest';
3
3
 
4
4
  type Sum<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 0 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 0 | bigint : number;
@@ -0,0 +1 @@
1
+ "use strict";var _chunk6TRXWRYJcjs = require('./chunk-6TRXWRYJ.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("empty arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()});describe("numbers",()=>{test("arbitrary arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary readonly arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary non-empty arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1,2]);expectTypeOf(t).toEqualTypeOf()}),test("consts",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1,2,3]);expectTypeOf(t).toEqualTypeOf()}),test("fixed-size tuples",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1,2]);expectTypeOf(t).toEqualTypeOf()})});describe("bigints",()=>{test("arbitrary arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary readonly arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, []);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary non-empty arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1n,2n]);expectTypeOf(t).toEqualTypeOf()}),test("consts",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1n,2n,3n]);expectTypeOf(t).toEqualTypeOf()}),test("fixed-size tuples",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 0, [1n,2n]);expectTypeOf(t).toEqualTypeOf()})});describe("dataLast",()=>{test("numbers",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, [1,2,3],_chunk6TRXWRYJcjs.a.call(void 0, ));expectTypeOf(t).toEqualTypeOf()}),test("bigints",()=>{let t=_chunkI6VXEY44cjs.a.call(void 0, [1n,2n,3n],_chunk6TRXWRYJcjs.a.call(void 0, ));expectTypeOf(t).toEqualTypeOf()})});it("doesn't allow mixed arrays",()=>{_chunk6TRXWRYJcjs.a.call(void 0, [1,2n])});describe("KNOWN ISSUES",()=>{it("Returns 0 (`number`) instead of 0n (`bigint`) for empty `bigint` arrays",()=>{let t=_chunk6TRXWRYJcjs.a.call(void 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-2T576V7A.js";import{a as r}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("empty arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()});describe("numbers",()=>{test("arbitrary arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary readonly arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary non-empty arrays",()=>{let t=e([1,2]);expectTypeOf(t).toEqualTypeOf()}),test("consts",()=>{let t=e([1,2,3]);expectTypeOf(t).toEqualTypeOf()}),test("fixed-size tuples",()=>{let t=e([1,2]);expectTypeOf(t).toEqualTypeOf()})});describe("bigints",()=>{test("arbitrary arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary readonly arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()}),test("arbitrary non-empty arrays",()=>{let t=e([1n,2n]);expectTypeOf(t).toEqualTypeOf()}),test("consts",()=>{let t=e([1n,2n,3n]);expectTypeOf(t).toEqualTypeOf()}),test("fixed-size tuples",()=>{let t=e([1n,2n]);expectTypeOf(t).toEqualTypeOf()})});describe("dataLast",()=>{test("numbers",()=>{let t=r([1,2,3],e());expectTypeOf(t).toEqualTypeOf()}),test("bigints",()=>{let t=r([1n,2n,3n],e());expectTypeOf(t).toEqualTypeOf()})});it("doesn't allow mixed arrays",()=>{e([1,2n])});describe("KNOWN ISSUES",()=>{it("Returns 0 (`number`) instead of 0n (`bigint`) for empty `bigint` arrays",()=>{let t=e([]);expectTypeOf(t).toEqualTypeOf()})});
@@ -1,5 +1,5 @@
1
1
  import { Join } from 'type-fest';
2
- import { I as IterableContainer } from './types-BMu1PIvo.cjs';
2
+ import { I as IterableContainer } from './types-BE3YOWVA.cjs';
3
3
 
4
4
  /**
5
5
  * @see https://github.com/sindresorhus/type-fest/blob/main/source/is-equal.d.ts
@@ -1,5 +1,5 @@
1
1
  import { Join } from 'type-fest';
2
- import { I as IterableContainer } from './types-BMu1PIvo.js';
2
+ import { I as IterableContainer } from './types-BE3YOWVA.js';
3
3
 
4
4
  /**
5
5
  * @see https://github.com/sindresorhus/type-fest/blob/main/source/is-equal.d.ts
@@ -0,0 +1 @@
1
+ "use strict";var _chunkKBGFDQ5Tcjs = require('./chunk-KBGFDQ5T.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');it("protects against invalid prop names",()=>{_chunkKBGFDQ5Tcjs.a.call(void 0, {a:1,b:2},"a","c")});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-3T7K3EKS.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";it("protects against invalid prop names",()=>{a({a:1,b:2},"a","c")});
@@ -1,5 +1,5 @@
1
- import { N as NonEmptyArray } from './types-BMu1PIvo.cjs';
2
- import { O as OrderRule } from './curry-order-rules-BOMf1JS7.cjs';
1
+ import { a as NonEmptyArray } from './types-BE3YOWVA.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
- import { N as NonEmptyArray } from './types-BMu1PIvo.js';
2
- import { O as OrderRule } from './curry-order-rules-BOMf1JS7.js';
1
+ import { a as NonEmptyArray } from './types-BE3YOWVA.js';
2
+ import { O as OrderRule } from './curry-order-rules-DETxSzle.js';
3
3
  import 'type-fest';
4
4
 
5
5
  /**
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3UUZWCRScjs = require('./chunk-3UUZWCRS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.takeLastWhile = _chunk3UUZWCRScjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVPG3W5JHcjs = require('./chunk-VPG3W5JH.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.takeLastWhile = _chunkVPG3W5JHcjs.a;
@@ -1,3 +1,6 @@
1
+ import { I as IterableContainer } from './types-BE3YOWVA.cjs';
2
+ import 'type-fest';
3
+
1
4
  /**
2
5
  * Returns elements from the end of the array until the predicate returns false.
3
6
  * The returned elements will be in the same order as in the original array.
@@ -11,7 +14,7 @@
11
14
  * @dataFirst
12
15
  * @category Array
13
16
  */
14
- declare function takeLastWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, index: number, data: ReadonlyArray<T>) => boolean): Array<T>;
17
+ declare function takeLastWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
15
18
  /**
16
19
  * Returns elements from the end of the array until the predicate returns false.
17
20
  * The returned elements will be in the same order as in the original array.
@@ -24,6 +27,6 @@ declare function takeLastWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, i
24
27
  * @dataLast
25
28
  * @category Array
26
29
  */
27
- declare function takeLastWhile<T>(predicate: (item: T, index: number, data: ReadonlyArray<T>) => boolean): (data: ReadonlyArray<T>) => Array<T>;
30
+ declare function takeLastWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
28
31
 
29
32
  export { takeLastWhile };
@@ -1,3 +1,6 @@
1
+ import { I as IterableContainer } from './types-BE3YOWVA.js';
2
+ import 'type-fest';
3
+
1
4
  /**
2
5
  * Returns elements from the end of the array until the predicate returns false.
3
6
  * The returned elements will be in the same order as in the original array.
@@ -11,7 +14,7 @@
11
14
  * @dataFirst
12
15
  * @category Array
13
16
  */
14
- declare function takeLastWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, index: number, data: ReadonlyArray<T>) => boolean): Array<T>;
17
+ declare function takeLastWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
15
18
  /**
16
19
  * Returns elements from the end of the array until the predicate returns false.
17
20
  * The returned elements will be in the same order as in the original array.
@@ -24,6 +27,6 @@ declare function takeLastWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, i
24
27
  * @dataLast
25
28
  * @category Array
26
29
  */
27
- declare function takeLastWhile<T>(predicate: (item: T, index: number, data: ReadonlyArray<T>) => boolean): (data: ReadonlyArray<T>) => Array<T>;
30
+ declare function takeLastWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
28
31
 
29
32
  export { takeLastWhile };
@@ -1 +1 @@
1
- import{a}from"./chunk-COBRSP66.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as takeLastWhile};
1
+ import{a}from"./chunk-KAA6IVBL.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as takeLastWhile};
@@ -0,0 +1 @@
1
+ "use strict";var _chunkVPG3W5JHcjs = require('./chunk-VPG3W5JH.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');describe("data-first",()=>{test("empty array",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [1,"a"],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [1,"a",!0],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1,"a"],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1,"a",!0],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),describe("predicate is typed correctly",()=>{test("empty array",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array with union type",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("prefix array",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("suffix array",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("array with suffix and prefix",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1,"a"],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("tuple",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1,"a",!0],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("union of arrays",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-KAA6IVBL.js";import{a as t}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import{a}from"./chunk-T5XG33UI.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("data-first",()=>{test("empty array",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=r([1],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=r([1],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=r([1,"a"],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=r([1,"a",!0],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=t([1],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=t([1],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=t([1,"a"],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=t([1,"a",!0],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),describe("predicate is typed correctly",()=>{test("empty array",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array with union type",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("prefix array",()=>{t([1],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("suffix array",()=>{t([1],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("array with suffix and prefix",()=>{t([1,"a"],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("tuple",()=>{t([1,"a",!0],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("union of arrays",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRSJJRJTHcjs = require('./chunk-RSJJRJTH.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.takeLast = _chunkRSJJRJTHcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3DFX2FQGcjs = require('./chunk-3DFX2FQG.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.takeLast = _chunk3DFX2FQGcjs.a;
@@ -1,3 +1,6 @@
1
+ import { I as IterableContainer } from './types-BE3YOWVA.cjs';
2
+ import 'type-fest';
3
+
1
4
  /**
2
5
  * Takes the last `n` elements from the `array`.
3
6
  *
@@ -10,7 +13,7 @@
10
13
  * @dataFirst
11
14
  * @category Array
12
15
  */
13
- declare function takeLast<T>(array: ReadonlyArray<T>, n: number): Array<T>;
16
+ declare function takeLast<T extends IterableContainer>(array: T, n: number): Array<T[number]>;
14
17
  /**
15
18
  * Take the last `n` elements from the `array`.
16
19
  *
@@ -22,6 +25,6 @@ declare function takeLast<T>(array: ReadonlyArray<T>, n: number): Array<T>;
22
25
  * @dataLast
23
26
  * @category Array
24
27
  */
25
- declare function takeLast<T>(n: number): (array: ReadonlyArray<T>) => Array<T>;
28
+ declare function takeLast<T extends IterableContainer>(n: number): (array: T) => Array<T[number]>;
26
29
 
27
30
  export { takeLast };
@@ -1,3 +1,6 @@
1
+ import { I as IterableContainer } from './types-BE3YOWVA.js';
2
+ import 'type-fest';
3
+
1
4
  /**
2
5
  * Takes the last `n` elements from the `array`.
3
6
  *
@@ -10,7 +13,7 @@
10
13
  * @dataFirst
11
14
  * @category Array
12
15
  */
13
- declare function takeLast<T>(array: ReadonlyArray<T>, n: number): Array<T>;
16
+ declare function takeLast<T extends IterableContainer>(array: T, n: number): Array<T[number]>;
14
17
  /**
15
18
  * Take the last `n` elements from the `array`.
16
19
  *
@@ -22,6 +25,6 @@ declare function takeLast<T>(array: ReadonlyArray<T>, n: number): Array<T>;
22
25
  * @dataLast
23
26
  * @category Array
24
27
  */
25
- declare function takeLast<T>(n: number): (array: ReadonlyArray<T>) => Array<T>;
28
+ declare function takeLast<T extends IterableContainer>(n: number): (array: T) => Array<T[number]>;
26
29
 
27
30
  export { takeLast };
package/dist/take-last.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-CIF6WEFP.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as takeLast};
1
+ import{a}from"./chunk-OJ2QGTFS.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as takeLast};
@@ -0,0 +1 @@
1
+ "use strict";var _chunk3DFX2FQGcjs = require('./chunk-3DFX2FQG.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("data-first",()=>{test("empty array",()=>{let r=_chunk3DFX2FQGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=_chunk3DFX2FQGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=_chunk3DFX2FQGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=_chunk3DFX2FQGcjs.a.call(void 0, [1],2);expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=_chunk3DFX2FQGcjs.a.call(void 0, [1],2);expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=_chunk3DFX2FQGcjs.a.call(void 0, [1,"a"],2);expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=_chunk3DFX2FQGcjs.a.call(void 0, [1,"a",!0],2);expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=_chunk3DFX2FQGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [],_chunk3DFX2FQGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [],_chunk3DFX2FQGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [],_chunk3DFX2FQGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunk3DFX2FQGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunk3DFX2FQGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1,"a"],_chunk3DFX2FQGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1,"a",!0],_chunk3DFX2FQGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [],_chunk3DFX2FQGcjs.a.call(void 0, 2));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-OJ2QGTFS.js";import{a as t}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("data-first",()=>{test("empty array",()=>{let r=e([],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=e([],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=e([],2);expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=e([1],2);expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=e([1],2);expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=e([1,"a"],2);expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=e([1,"a",!0],2);expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=e([],2);expectTypeOf(r).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let r=t([],e(2));expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=t([],e(2));expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=t([],e(2));expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=t([1],e(2));expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=t([1],e(2));expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=t([1,"a"],e(2));expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=t([1,"a",!0],e(2));expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=t([],e(2));expectTypeOf(r).toEqualTypeOf()})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAE5HI6VGcjs = require('./chunk-AE5HI6VG.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.takeWhile = _chunkAE5HI6VGcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZO4ND36Ncjs = require('./chunk-ZO4ND36N.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.takeWhile = _chunkZO4ND36Ncjs.a;
@@ -1,3 +1,6 @@
1
+ import { I as IterableContainer } from './types-BE3YOWVA.cjs';
2
+ import 'type-fest';
3
+
1
4
  /**
2
5
  * Returns elements from the array until predicate returns false.
3
6
  *
@@ -10,7 +13,7 @@
10
13
  * @dataFirst
11
14
  * @category Array
12
15
  */
13
- declare function takeWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, index: number, data: ReadonlyArray<T>) => boolean): Array<T>;
16
+ declare function takeWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
14
17
  /**
15
18
  * Returns elements from the array until predicate returns false.
16
19
  *
@@ -22,6 +25,6 @@ declare function takeWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, index
22
25
  * @dataLast
23
26
  * @category Array
24
27
  */
25
- declare function takeWhile<T>(predicate: (item: T, index: number, data: ReadonlyArray<T>) => boolean): (array: ReadonlyArray<T>) => Array<T>;
28
+ declare function takeWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (array: T) => Array<T[number]>;
26
29
 
27
30
  export { takeWhile };
@@ -1,3 +1,6 @@
1
+ import { I as IterableContainer } from './types-BE3YOWVA.js';
2
+ import 'type-fest';
3
+
1
4
  /**
2
5
  * Returns elements from the array until predicate returns false.
3
6
  *
@@ -10,7 +13,7 @@
10
13
  * @dataFirst
11
14
  * @category Array
12
15
  */
13
- declare function takeWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, index: number, data: ReadonlyArray<T>) => boolean): Array<T>;
16
+ declare function takeWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
14
17
  /**
15
18
  * Returns elements from the array until predicate returns false.
16
19
  *
@@ -22,6 +25,6 @@ declare function takeWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, index
22
25
  * @dataLast
23
26
  * @category Array
24
27
  */
25
- declare function takeWhile<T>(predicate: (item: T, index: number, data: ReadonlyArray<T>) => boolean): (array: ReadonlyArray<T>) => Array<T>;
28
+ declare function takeWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (array: T) => Array<T[number]>;
26
29
 
27
30
  export { takeWhile };