@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.
- package/dist/add-prop.d.cts +1 -1
- package/dist/add-prop.d.ts +1 -1
- package/dist/add-prop.spec-d.cjs +1 -0
- package/dist/add-prop.spec-d.d.cts +2 -0
- package/dist/add-prop.spec-d.d.ts +2 -0
- package/dist/add-prop.spec-d.js +1 -0
- package/dist/chunk-2ADWP73S.js +1 -0
- package/dist/chunk-2VLHCBHJ.js +1 -0
- package/dist/chunk-3DFX2FQG.cjs +1 -0
- package/dist/chunk-4WU7JGWS.cjs +1 -0
- package/dist/chunk-AACZ5UGG.cjs +1 -0
- package/dist/chunk-AKGWT6GC.js +1 -0
- package/dist/chunk-BT3FI7L7.js +1 -0
- package/dist/{chunk-XQOKSJ5R.cjs → chunk-E6RBEL5Z.cjs} +1 -1
- package/dist/chunk-EPHUNAE5.js +1 -0
- package/dist/chunk-G7BJFBAZ.cjs +1 -0
- package/dist/{chunk-YIUDV3OA.cjs → chunk-HTO3K3VA.cjs} +1 -1
- package/dist/chunk-HU67VIVI.js +1 -0
- package/dist/chunk-IABWIMQT.js +1 -0
- package/dist/chunk-IRH6TGG5.js +1 -0
- package/dist/chunk-J5PNUDDU.js +1 -0
- package/dist/chunk-KAA6IVBL.js +1 -0
- package/dist/chunk-MADDQNAR.cjs +1 -0
- package/dist/chunk-MZWACWOX.js +1 -0
- package/dist/chunk-OJ2QGTFS.js +1 -0
- package/dist/chunk-PFLGL4YP.js +1 -0
- package/dist/chunk-QHGCU3LJ.js +1 -0
- package/dist/chunk-QTQTKNWA.js +1 -0
- package/dist/chunk-RCENCAXY.cjs +1 -0
- package/dist/chunk-RJAVPEJT.cjs +1 -0
- package/dist/chunk-T7S2RC5M.cjs +1 -0
- package/dist/chunk-TRIZIXDA.cjs +1 -0
- package/dist/chunk-U2BXIRBJ.js +1 -0
- package/dist/chunk-ULMOKABQ.cjs +1 -0
- package/dist/chunk-UVAWCZB6.js +1 -0
- package/dist/chunk-VAUOPMAN.cjs +1 -0
- package/dist/chunk-VN2OAM2N.js +1 -0
- package/dist/chunk-VPG3W5JH.cjs +1 -0
- package/dist/chunk-WQDEYM64.js +1 -0
- package/dist/chunk-WRKGH4XX.js +1 -0
- package/dist/chunk-XSYAC5NV.cjs +1 -0
- package/dist/chunk-Y3WI7FPB.cjs +1 -0
- package/dist/chunk-Z5UEQBZP.cjs +1 -0
- package/dist/chunk-ZJGZ2TEC.cjs +1 -0
- package/dist/chunk-ZO4ND36N.cjs +1 -0
- package/dist/chunk.cjs +1 -1
- package/dist/chunk.d.cts +91 -5
- package/dist/chunk.d.ts +91 -5
- package/dist/chunk.js +1 -1
- package/dist/chunk.spec-d.cjs +1 -0
- package/dist/chunk.spec-d.d.cts +2 -0
- package/dist/chunk.spec-d.d.ts +2 -0
- package/dist/chunk.spec-d.js +1 -0
- package/dist/concat.d.cts +1 -1
- package/dist/concat.d.ts +1 -1
- package/dist/conditional.d.cts +1 -1
- package/dist/conditional.d.ts +1 -1
- package/dist/conditional.spec-d.cjs +1 -0
- package/dist/conditional.spec-d.d.cts +2 -0
- package/dist/conditional.spec-d.d.ts +2 -0
- package/dist/conditional.spec-d.js +1 -0
- package/dist/constant.spec-d.cjs +1 -0
- package/dist/constant.spec-d.d.cts +2 -0
- package/dist/constant.spec-d.d.ts +2 -0
- package/dist/constant.spec-d.js +1 -0
- package/dist/{curry-order-rules-BOMf1JS7.d.cts → curry-order-rules-DETxSzle.d.cts} +1 -1
- package/dist/{curry-order-rules-BOMf1JS7.d.ts → curry-order-rules-DETxSzle.d.ts} +1 -1
- package/dist/debounce.spec-d.cjs +1 -0
- package/dist/debounce.spec-d.d.cts +2 -0
- package/dist/debounce.spec-d.d.ts +2 -0
- package/dist/debounce.spec-d.js +1 -0
- package/dist/do-nothing.spec-d.cjs +1 -0
- package/dist/do-nothing.spec-d.d.cts +2 -0
- package/dist/do-nothing.spec-d.d.ts +2 -0
- package/dist/do-nothing.spec-d.js +1 -0
- package/dist/drop-first-by.d.cts +2 -2
- package/dist/drop-first-by.d.ts +2 -2
- package/dist/drop-last-while.cjs +1 -1
- package/dist/drop-last-while.d.cts +5 -2
- package/dist/drop-last-while.d.ts +5 -2
- package/dist/drop-last-while.js +1 -1
- package/dist/drop-last-while.spec-d.cjs +1 -0
- package/dist/drop-last-while.spec-d.d.cts +2 -0
- package/dist/drop-last-while.spec-d.d.ts +2 -0
- package/dist/drop-last-while.spec-d.js +1 -0
- package/dist/drop-last.cjs +1 -1
- package/dist/drop-last.d.cts +5 -2
- package/dist/drop-last.d.ts +5 -2
- package/dist/drop-last.js +1 -1
- package/dist/drop-last.spec-d.cjs +1 -0
- package/dist/drop-last.spec-d.d.cts +2 -0
- package/dist/drop-last.spec-d.d.ts +2 -0
- package/dist/drop-last.spec-d.js +1 -0
- package/dist/drop-while.cjs +1 -1
- package/dist/drop-while.d.cts +5 -2
- package/dist/drop-while.d.ts +5 -2
- package/dist/drop-while.js +1 -1
- package/dist/drop-while.spec-d.cjs +1 -0
- package/dist/drop-while.spec-d.d.cts +2 -0
- package/dist/drop-while.spec-d.d.ts +2 -0
- package/dist/drop-while.spec-d.js +1 -0
- package/dist/drop.cjs +1 -1
- package/dist/drop.d.cts +10 -2
- package/dist/drop.d.ts +10 -2
- package/dist/drop.js +1 -1
- package/dist/drop.spec-d.cjs +1 -0
- package/dist/drop.spec-d.d.cts +2 -0
- package/dist/drop.spec-d.d.ts +2 -0
- package/dist/drop.spec-d.js +1 -0
- package/dist/entries.spec-d.cjs +1 -0
- package/dist/entries.spec-d.d.cts +2 -0
- package/dist/entries.spec-d.d.ts +2 -0
- package/dist/entries.spec-d.js +1 -0
- package/dist/evolve.d.cts +1 -1
- package/dist/evolve.d.ts +1 -1
- package/dist/evolve.spec-d.cjs +1 -0
- package/dist/evolve.spec-d.d.cts +2 -0
- package/dist/evolve.spec-d.d.ts +2 -0
- package/dist/evolve.spec-d.js +1 -0
- package/dist/filter.spec-d.cjs +1 -0
- package/dist/filter.spec-d.d.cts +2 -0
- package/dist/filter.spec-d.d.ts +2 -0
- package/dist/filter.spec-d.js +1 -0
- package/dist/find.spec-d.cjs +1 -0
- package/dist/find.spec-d.d.cts +2 -0
- package/dist/find.spec-d.d.ts +2 -0
- package/dist/find.spec-d.js +1 -0
- package/dist/first-by.cjs +1 -1
- package/dist/first-by.d.cts +2 -2
- package/dist/first-by.d.ts +2 -2
- package/dist/first-by.js +1 -1
- package/dist/first-by.spec-d.cjs +1 -0
- package/dist/first-by.spec-d.d.cts +2 -0
- package/dist/first-by.spec-d.d.ts +2 -0
- package/dist/first-by.spec-d.js +1 -0
- package/dist/first.d.cts +1 -1
- package/dist/first.d.ts +1 -1
- package/dist/first.spec-d.cjs +1 -0
- package/dist/first.spec-d.d.cts +2 -0
- package/dist/first.spec-d.d.ts +2 -0
- package/dist/first.spec-d.js +1 -0
- package/dist/flat.d.cts +1 -1
- package/dist/flat.d.ts +1 -1
- package/dist/flat.spec-d.cjs +1 -0
- package/dist/flat.spec-d.d.cts +2 -0
- package/dist/flat.spec-d.d.ts +2 -0
- package/dist/flat.spec-d.js +1 -0
- package/dist/for-each-obj.d.cts +1 -1
- package/dist/for-each-obj.d.ts +1 -1
- package/dist/for-each-obj.spec-d.cjs +1 -0
- package/dist/for-each-obj.spec-d.d.cts +2 -0
- package/dist/for-each-obj.spec-d.d.ts +2 -0
- package/dist/for-each-obj.spec-d.js +1 -0
- package/dist/for-each.d.cts +1 -1
- package/dist/for-each.d.ts +1 -1
- package/dist/for-each.spec-d.cjs +1 -0
- package/dist/for-each.spec-d.d.cts +2 -0
- package/dist/for-each.spec-d.d.ts +2 -0
- package/dist/for-each.spec-d.js +1 -0
- package/dist/from-entries.d.cts +1 -1
- package/dist/from-entries.d.ts +1 -1
- package/dist/from-entries.spec-d.cjs +1 -0
- package/dist/from-entries.spec-d.d.cts +2 -0
- package/dist/from-entries.spec-d.d.ts +2 -0
- package/dist/from-entries.spec-d.js +1 -0
- package/dist/from-keys.d.cts +1 -1
- package/dist/from-keys.d.ts +1 -1
- package/dist/from-keys.spec-d.cjs +1 -0
- package/dist/from-keys.spec-d.d.cts +2 -0
- package/dist/from-keys.spec-d.d.ts +2 -0
- package/dist/from-keys.spec-d.js +1 -0
- package/dist/group-by.d.cts +1 -1
- package/dist/group-by.d.ts +1 -1
- package/dist/group-by.spec-d.cjs +1 -0
- package/dist/group-by.spec-d.d.cts +2 -0
- package/dist/group-by.spec-d.d.ts +2 -0
- package/dist/group-by.spec-d.js +1 -0
- package/dist/has-at-least.d.cts +1 -1
- package/dist/has-at-least.d.ts +1 -1
- package/dist/has-at-least.spec-d.cjs +1 -0
- package/dist/has-at-least.spec-d.d.cts +2 -0
- package/dist/has-at-least.spec-d.d.ts +2 -0
- package/dist/has-at-least.spec-d.js +1 -0
- package/dist/has-sub-object.d.cts +1 -1
- package/dist/has-sub-object.d.ts +1 -1
- package/dist/has-sub-object.spec-d.cjs +1 -0
- package/dist/has-sub-object.spec-d.d.cts +2 -0
- package/dist/has-sub-object.spec-d.d.ts +2 -0
- package/dist/has-sub-object.spec-d.js +1 -0
- package/dist/identity.spec-d.cjs +1 -0
- package/dist/identity.spec-d.d.cts +2 -0
- package/dist/identity.spec-d.d.ts +2 -0
- package/dist/identity.spec-d.js +1 -0
- package/dist/index-by.d.cts +1 -1
- package/dist/index-by.d.ts +1 -1
- package/dist/index-by.spec-d.cjs +1 -0
- package/dist/index-by.spec-d.d.cts +2 -0
- package/dist/index-by.spec-d.d.ts +2 -0
- package/dist/index-by.spec-d.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/intersection.spec-d.cjs +1 -0
- package/dist/intersection.spec-d.d.cts +2 -0
- package/dist/intersection.spec-d.d.ts +2 -0
- package/dist/intersection.spec-d.js +1 -0
- package/dist/invert.spec-d.cjs +1 -0
- package/dist/invert.spec-d.d.cts +2 -0
- package/dist/invert.spec-d.d.ts +2 -0
- package/dist/invert.spec-d.js +1 -0
- package/dist/is-array.d.cts +1 -1
- package/dist/is-array.d.ts +1 -1
- package/dist/is-array.spec-d.cjs +1 -0
- package/dist/is-array.spec-d.d.cts +2 -0
- package/dist/is-array.spec-d.d.ts +2 -0
- package/dist/is-array.spec-d.js +1 -0
- package/dist/is-big-int.d.cts +1 -1
- package/dist/is-big-int.d.ts +1 -1
- package/dist/is-big-int.spec-d.cjs +1 -0
- package/dist/is-big-int.spec-d.d.cts +2 -0
- package/dist/is-big-int.spec-d.d.ts +2 -0
- package/dist/is-big-int.spec-d.js +1 -0
- package/dist/is-boolean.d.cts +1 -1
- package/dist/is-boolean.d.ts +1 -1
- package/dist/is-boolean.spec-d.cjs +1 -0
- package/dist/is-boolean.spec-d.d.cts +2 -0
- package/dist/is-boolean.spec-d.d.ts +2 -0
- package/dist/is-boolean.spec-d.js +1 -0
- package/dist/is-date.spec-d.cjs +1 -0
- package/dist/is-date.spec-d.d.cts +2 -0
- package/dist/is-date.spec-d.d.ts +2 -0
- package/dist/is-date.spec-d.js +1 -0
- package/dist/is-deep-equal.d.cts +26 -10
- package/dist/is-deep-equal.d.ts +26 -10
- package/dist/is-deep-equal.spec-d.cjs +1 -0
- package/dist/is-deep-equal.spec-d.d.cts +2 -0
- package/dist/is-deep-equal.spec-d.d.ts +2 -0
- package/dist/is-deep-equal.spec-d.js +1 -0
- package/dist/is-defined.spec-d.cjs +1 -0
- package/dist/is-defined.spec-d.d.cts +2 -0
- package/dist/is-defined.spec-d.d.ts +2 -0
- package/dist/is-defined.spec-d.js +1 -0
- package/dist/is-empty.cjs +1 -1
- package/dist/is-empty.d.cts +1 -1
- package/dist/is-empty.d.ts +1 -1
- package/dist/is-empty.js +1 -1
- package/dist/is-empty.spec-d.cjs +1 -0
- package/dist/is-empty.spec-d.d.cts +2 -0
- package/dist/is-empty.spec-d.d.ts +2 -0
- package/dist/is-empty.spec-d.js +1 -0
- package/dist/is-error.spec-d.cjs +1 -0
- package/dist/is-error.spec-d.d.cts +2 -0
- package/dist/is-error.spec-d.d.ts +2 -0
- package/dist/is-error.spec-d.js +1 -0
- package/dist/is-function.spec-d.cjs +1 -0
- package/dist/is-function.spec-d.d.cts +2 -0
- package/dist/is-function.spec-d.d.ts +2 -0
- package/dist/is-function.spec-d.js +1 -0
- package/dist/is-included-in.d.cts +1 -1
- package/dist/is-included-in.d.ts +1 -1
- package/dist/is-included-in.spec-d.cjs +1 -0
- package/dist/is-included-in.spec-d.d.cts +2 -0
- package/dist/is-included-in.spec-d.d.ts +2 -0
- package/dist/is-included-in.spec-d.js +1 -0
- package/dist/is-non-null.spec-d.cjs +1 -0
- package/dist/is-non-null.spec-d.d.cts +2 -0
- package/dist/is-non-null.spec-d.d.ts +2 -0
- package/dist/is-non-null.spec-d.js +1 -0
- package/dist/is-non-nullish.spec-d.cjs +1 -0
- package/dist/is-non-nullish.spec-d.d.cts +2 -0
- package/dist/is-non-nullish.spec-d.d.ts +2 -0
- package/dist/is-non-nullish.spec-d.js +1 -0
- package/dist/is-not.spec-d.cjs +1 -0
- package/dist/is-not.spec-d.d.cts +2 -0
- package/dist/is-not.spec-d.d.ts +2 -0
- package/dist/is-not.spec-d.js +1 -0
- package/dist/is-nullish.d.cts +1 -1
- package/dist/is-nullish.d.ts +1 -1
- package/dist/is-nullish.spec-d.cjs +1 -0
- package/dist/is-nullish.spec-d.d.cts +2 -0
- package/dist/is-nullish.spec-d.d.ts +2 -0
- package/dist/is-nullish.spec-d.js +1 -0
- package/dist/is-number.d.cts +1 -1
- package/dist/is-number.d.ts +1 -1
- package/dist/is-number.spec-d.cjs +1 -0
- package/dist/is-number.spec-d.d.cts +2 -0
- package/dist/is-number.spec-d.d.ts +2 -0
- package/dist/is-number.spec-d.js +1 -0
- package/dist/is-object-type.d.cts +1 -1
- package/dist/is-object-type.d.ts +1 -1
- package/dist/is-object-type.spec-d.cjs +1 -0
- package/dist/is-object-type.spec-d.d.cts +2 -0
- package/dist/is-object-type.spec-d.d.ts +2 -0
- package/dist/is-object-type.spec-d.js +1 -0
- package/dist/is-plain-object.d.cts +1 -1
- package/dist/is-plain-object.d.ts +1 -1
- package/dist/is-plain-object.spec-d.cjs +1 -0
- package/dist/is-plain-object.spec-d.d.cts +2 -0
- package/dist/is-plain-object.spec-d.d.ts +2 -0
- package/dist/is-plain-object.spec-d.js +1 -0
- package/dist/is-promise.spec-d.cjs +1 -0
- package/dist/is-promise.spec-d.d.cts +2 -0
- package/dist/is-promise.spec-d.d.ts +2 -0
- package/dist/is-promise.spec-d.js +1 -0
- package/dist/is-shallow-equal.cjs +1 -0
- package/dist/is-shallow-equal.d.cts +69 -0
- package/dist/is-shallow-equal.d.ts +69 -0
- package/dist/is-shallow-equal.js +1 -0
- package/dist/is-shallow-equal.spec-d.cjs +1 -0
- package/dist/is-shallow-equal.spec-d.d.cts +2 -0
- package/dist/is-shallow-equal.spec-d.d.ts +2 -0
- package/dist/is-shallow-equal.spec-d.js +1 -0
- package/dist/is-strict-equal.cjs +1 -0
- package/dist/is-strict-equal.d.cts +65 -0
- package/dist/is-strict-equal.d.ts +65 -0
- package/dist/is-strict-equal.js +1 -0
- package/dist/is-strict-equal.spec-d.cjs +1 -0
- package/dist/is-strict-equal.spec-d.d.cts +2 -0
- package/dist/is-strict-equal.spec-d.d.ts +2 -0
- package/dist/is-strict-equal.spec-d.js +1 -0
- package/dist/is-string.d.cts +1 -1
- package/dist/is-string.d.ts +1 -1
- package/dist/is-string.spec-d.cjs +1 -0
- package/dist/is-string.spec-d.d.cts +2 -0
- package/dist/is-string.spec-d.d.ts +2 -0
- package/dist/is-string.spec-d.js +1 -0
- package/dist/is-symbol.d.cts +1 -1
- package/dist/is-symbol.d.ts +1 -1
- package/dist/is-symbol.spec-d.cjs +1 -0
- package/dist/is-symbol.spec-d.d.cts +2 -0
- package/dist/is-symbol.spec-d.d.ts +2 -0
- package/dist/is-symbol.spec-d.js +1 -0
- package/dist/is-truthy.spec-d.cjs +1 -0
- package/dist/is-truthy.spec-d.d.cts +2 -0
- package/dist/is-truthy.spec-d.d.ts +2 -0
- package/dist/is-truthy.spec-d.js +1 -0
- package/dist/join.spec-d.cjs +1 -0
- package/dist/join.spec-d.d.cts +2 -0
- package/dist/join.spec-d.d.ts +2 -0
- package/dist/join.spec-d.js +1 -0
- package/dist/keys.d.cts +1 -1
- package/dist/keys.d.ts +1 -1
- package/dist/keys.spec-d.cjs +1 -0
- package/dist/keys.spec-d.d.cts +2 -0
- package/dist/keys.spec-d.d.ts +2 -0
- package/dist/keys.spec-d.js +1 -0
- package/dist/last.d.cts +1 -1
- package/dist/last.d.ts +1 -1
- package/dist/last.spec-d.cjs +1 -0
- package/dist/last.spec-d.d.cts +2 -0
- package/dist/last.spec-d.d.ts +2 -0
- package/dist/last.spec-d.js +1 -0
- package/dist/map-keys.d.cts +1 -1
- package/dist/map-keys.d.ts +1 -1
- package/dist/map-keys.spec-d.cjs +1 -0
- package/dist/map-keys.spec-d.d.cts +2 -0
- package/dist/map-keys.spec-d.d.ts +2 -0
- package/dist/map-keys.spec-d.js +1 -0
- package/dist/map-values.d.cts +1 -1
- package/dist/map-values.d.ts +1 -1
- package/dist/map-values.spec-d.cjs +1 -0
- package/dist/map-values.spec-d.d.cts +2 -0
- package/dist/map-values.spec-d.d.ts +2 -0
- package/dist/map-values.spec-d.js +1 -0
- package/dist/map-with-feedback.d.cts +1 -1
- package/dist/map-with-feedback.d.ts +1 -1
- package/dist/map-with-feedback.spec-d.cjs +1 -0
- package/dist/map-with-feedback.spec-d.d.cts +2 -0
- package/dist/map-with-feedback.spec-d.d.ts +2 -0
- package/dist/map-with-feedback.spec-d.js +1 -0
- package/dist/map.d.cts +1 -1
- package/dist/map.d.ts +1 -1
- package/dist/map.spec-d.cjs +1 -0
- package/dist/map.spec-d.d.cts +2 -0
- package/dist/map.spec-d.d.ts +2 -0
- package/dist/map.spec-d.js +1 -0
- package/dist/merge-deep.spec-d.cjs +1 -0
- package/dist/merge-deep.spec-d.d.cts +2 -0
- package/dist/merge-deep.spec-d.d.ts +2 -0
- package/dist/merge-deep.spec-d.js +1 -0
- package/dist/merge.spec-d.cjs +1 -0
- package/dist/merge.spec-d.d.cts +2 -0
- package/dist/merge.spec-d.d.ts +2 -0
- package/dist/merge.spec-d.js +1 -0
- package/dist/nth-by.d.cts +2 -2
- package/dist/nth-by.d.ts +2 -2
- package/dist/nth-by.spec-d.cjs +1 -0
- package/dist/nth-by.spec-d.d.cts +2 -0
- package/dist/nth-by.spec-d.d.ts +2 -0
- package/dist/nth-by.spec-d.js +1 -0
- package/dist/omit-by.d.cts +1 -1
- package/dist/omit-by.d.ts +1 -1
- package/dist/omit-by.spec-d.cjs +1 -0
- package/dist/omit-by.spec-d.d.cts +2 -0
- package/dist/omit-by.spec-d.d.ts +2 -0
- package/dist/omit-by.spec-d.js +1 -0
- package/dist/omit.spec-d.cjs +1 -0
- package/dist/omit.spec-d.d.cts +2 -0
- package/dist/omit.spec-d.d.ts +2 -0
- package/dist/omit.spec-d.js +1 -0
- package/dist/only.d.cts +1 -1
- package/dist/only.d.ts +1 -1
- package/dist/only.spec-d.cjs +1 -0
- package/dist/only.spec-d.d.cts +2 -0
- package/dist/only.spec-d.d.ts +2 -0
- package/dist/only.spec-d.js +1 -0
- package/dist/partition.spec-d.cjs +1 -0
- package/dist/partition.spec-d.d.cts +2 -0
- package/dist/partition.spec-d.d.ts +2 -0
- package/dist/partition.spec-d.js +1 -0
- package/dist/pick-by.d.cts +1 -1
- package/dist/pick-by.d.ts +1 -1
- package/dist/pick-by.spec-d.cjs +1 -0
- package/dist/pick-by.spec-d.d.cts +2 -0
- package/dist/pick-by.spec-d.d.ts +2 -0
- package/dist/pick-by.spec-d.js +1 -0
- package/dist/pick.spec-d.cjs +1 -0
- package/dist/pick.spec-d.d.cts +2 -0
- package/dist/pick.spec-d.d.ts +2 -0
- package/dist/pick.spec-d.js +1 -0
- package/dist/product.d.cts +1 -1
- package/dist/product.d.ts +1 -1
- package/dist/product.spec-d.cjs +1 -0
- package/dist/product.spec-d.d.cts +2 -0
- package/dist/product.spec-d.d.ts +2 -0
- package/dist/product.spec-d.js +1 -0
- package/dist/prop.spec-d.cjs +1 -0
- package/dist/prop.spec-d.d.cts +2 -0
- package/dist/prop.spec-d.d.ts +2 -0
- package/dist/prop.spec-d.js +1 -0
- package/dist/pull-object.d.cts +1 -1
- package/dist/pull-object.d.ts +1 -1
- package/dist/pull-object.spec-d.cjs +1 -0
- package/dist/pull-object.spec-d.d.cts +2 -0
- package/dist/pull-object.spec-d.d.ts +2 -0
- package/dist/pull-object.spec-d.js +1 -0
- package/dist/rank-by.d.cts +2 -2
- package/dist/rank-by.d.ts +2 -2
- package/dist/reverse.spec-d.cjs +1 -0
- package/dist/reverse.spec-d.d.cts +2 -0
- package/dist/reverse.spec-d.d.ts +2 -0
- package/dist/reverse.spec-d.js +1 -0
- package/dist/sample.d.cts +1 -1
- package/dist/sample.d.ts +1 -1
- package/dist/sample.spec-d.cjs +1 -0
- package/dist/sample.spec-d.d.cts +2 -0
- package/dist/sample.spec-d.d.ts +2 -0
- package/dist/sample.spec-d.js +1 -0
- package/dist/set-path.cjs +1 -1
- package/dist/set-path.d.cts +4 -4
- package/dist/set-path.d.ts +4 -4
- package/dist/set-path.js +1 -1
- package/dist/set-path.spec-d.cjs +1 -0
- package/dist/set-path.spec-d.d.cts +2 -0
- package/dist/set-path.spec-d.d.ts +2 -0
- package/dist/set-path.spec-d.js +1 -0
- package/dist/set.d.cts +1 -1
- package/dist/set.d.ts +1 -1
- package/dist/set.spec-d.cjs +1 -0
- package/dist/set.spec-d.d.cts +2 -0
- package/dist/set.spec-d.d.ts +2 -0
- package/dist/set.spec-d.js +1 -0
- package/dist/shuffle.cjs +1 -1
- package/dist/shuffle.d.cts +5 -2
- package/dist/shuffle.d.ts +5 -2
- package/dist/shuffle.js +1 -1
- package/dist/shuffle.spec-d.cjs +1 -0
- package/dist/shuffle.spec-d.d.cts +2 -0
- package/dist/shuffle.spec-d.d.ts +2 -0
- package/dist/shuffle.spec-d.js +1 -0
- package/dist/sort-by.d.cts +2 -2
- package/dist/sort-by.d.ts +2 -2
- package/dist/sort-by.spec-d.cjs +1 -0
- package/dist/sort-by.spec-d.d.cts +2 -0
- package/dist/sort-by.spec-d.d.ts +2 -0
- package/dist/sort-by.spec-d.js +1 -0
- package/dist/sort.d.cts +1 -1
- package/dist/sort.d.ts +1 -1
- package/dist/sort.spec-d.cjs +1 -0
- package/dist/sort.spec-d.d.cts +2 -0
- package/dist/sort.spec-d.d.ts +2 -0
- package/dist/sort.spec-d.js +1 -0
- package/dist/splice.spec-d.cjs +1 -0
- package/dist/splice.spec-d.d.cts +2 -0
- package/dist/splice.spec-d.d.ts +2 -0
- package/dist/splice.spec-d.js +1 -0
- package/dist/split.spec-d.cjs +1 -0
- package/dist/split.spec-d.d.cts +2 -0
- package/dist/split.spec-d.d.ts +2 -0
- package/dist/split.spec-d.js +1 -0
- package/dist/string-to-path.spec-d.cjs +1 -0
- package/dist/string-to-path.spec-d.d.cts +2 -0
- package/dist/string-to-path.spec-d.d.ts +2 -0
- package/dist/string-to-path.spec-d.js +1 -0
- package/dist/sum.d.cts +1 -1
- package/dist/sum.d.ts +1 -1
- package/dist/sum.spec-d.cjs +1 -0
- package/dist/sum.spec-d.d.cts +2 -0
- package/dist/sum.spec-d.d.ts +2 -0
- package/dist/sum.spec-d.js +1 -0
- package/dist/swap-indices.d.cts +1 -1
- package/dist/swap-indices.d.ts +1 -1
- package/dist/swap-props.spec-d.cjs +1 -0
- package/dist/swap-props.spec-d.d.cts +2 -0
- package/dist/swap-props.spec-d.d.ts +2 -0
- package/dist/swap-props.spec-d.js +1 -0
- package/dist/take-first-by.d.cts +2 -2
- package/dist/take-first-by.d.ts +2 -2
- package/dist/take-last-while.cjs +1 -1
- package/dist/take-last-while.d.cts +5 -2
- package/dist/take-last-while.d.ts +5 -2
- package/dist/take-last-while.js +1 -1
- package/dist/take-last-while.spec-d-.cjs +1 -0
- package/dist/take-last-while.spec-d-.d.cts +2 -0
- package/dist/take-last-while.spec-d-.d.ts +2 -0
- package/dist/take-last-while.spec-d-.js +1 -0
- package/dist/take-last.cjs +1 -1
- package/dist/take-last.d.cts +5 -2
- package/dist/take-last.d.ts +5 -2
- package/dist/take-last.js +1 -1
- package/dist/take-last.spec-d.cjs +1 -0
- package/dist/take-last.spec-d.d.cts +2 -0
- package/dist/take-last.spec-d.d.ts +2 -0
- package/dist/take-last.spec-d.js +1 -0
- package/dist/take-while.cjs +1 -1
- package/dist/take-while.d.cts +5 -2
- package/dist/take-while.d.ts +5 -2
- package/dist/take-while.js +1 -1
- package/dist/take-white.spec-d.cjs +1 -0
- package/dist/take-white.spec-d.d.cts +2 -0
- package/dist/take-white.spec-d.d.ts +2 -0
- package/dist/take-white.spec-d.js +1 -0
- package/dist/take.cjs +1 -1
- package/dist/take.d.cts +5 -2
- package/dist/take.d.ts +5 -2
- package/dist/take.js +1 -1
- package/dist/take.spec-d.cjs +1 -0
- package/dist/take.spec-d.d.cts +2 -0
- package/dist/take.spec-d.d.ts +2 -0
- package/dist/take.spec-d.js +1 -0
- package/dist/tap.spec-d.cjs +1 -0
- package/dist/tap.spec-d.d.cts +2 -0
- package/dist/tap.spec-d.d.ts +2 -0
- package/dist/tap.spec-d.js +1 -0
- package/dist/times.cjs +1 -1
- package/dist/times.d.cts +21 -5
- package/dist/times.d.ts +21 -5
- package/dist/times.js +1 -1
- package/dist/times.spec-d.cjs +1 -0
- package/dist/times.spec-d.d.cts +2 -0
- package/dist/times.spec-d.d.ts +2 -0
- package/dist/times.spec-d.js +1 -0
- package/dist/{types-BMu1PIvo.d.cts → types-BE3YOWVA.d.cts} +45 -2
- package/dist/{types-BMu1PIvo.d.ts → types-BE3YOWVA.d.ts} +45 -2
- package/dist/unique-by.cjs +1 -1
- package/dist/unique-by.d.cts +5 -2
- package/dist/unique-by.d.ts +5 -2
- package/dist/unique-by.js +1 -1
- package/dist/unique-with.cjs +1 -1
- package/dist/unique-with.d.cts +5 -2
- package/dist/unique-with.d.ts +5 -2
- package/dist/unique-with.js +1 -1
- package/dist/unique.cjs +1 -1
- package/dist/unique.d.cts +6 -3
- package/dist/unique.d.ts +6 -3
- package/dist/unique.js +1 -1
- package/dist/values.d.cts +1 -1
- package/dist/values.d.ts +1 -1
- package/dist/values.spec-d.cjs +1 -0
- package/dist/values.spec-d.d.cts +2 -0
- package/dist/values.spec-d.d.ts +2 -0
- package/dist/values.spec-d.js +1 -0
- package/dist/zip-with.d.cts +1 -1
- package/dist/zip-with.d.ts +1 -1
- package/dist/zip-with.spec-d.cjs +1 -0
- package/dist/zip-with.spec-d.d.cts +2 -0
- package/dist/zip-with.spec-d.d.ts +2 -0
- package/dist/zip-with.spec-d.js +1 -0
- package/dist/zip.d.cts +1 -1
- package/dist/zip.d.ts +1 -1
- package/dist/zip.spec-d.cjs +1 -0
- package/dist/zip.spec-d.d.cts +2 -0
- package/dist/zip.spec-d.d.ts +2 -0
- package/dist/zip.spec-d.js +1 -0
- package/package.json +17 -16
- package/dist/chunk-3UUZWCRS.cjs +0 -1
- package/dist/chunk-4XRKXTOK.js +0 -1
- package/dist/chunk-65DHT5Z7.cjs +0 -1
- package/dist/chunk-66KQORMS.js +0 -1
- package/dist/chunk-AE5HI6VG.cjs +0 -1
- package/dist/chunk-CIF6WEFP.js +0 -1
- package/dist/chunk-COBRSP66.js +0 -1
- package/dist/chunk-CXRG2GSY.js +0 -1
- package/dist/chunk-DUKQ2ODK.js +0 -1
- package/dist/chunk-DWPHE3F2.cjs +0 -1
- package/dist/chunk-EDKMZBZ3.cjs +0 -1
- package/dist/chunk-HUWRVMPE.js +0 -1
- package/dist/chunk-LIKMH7XD.js +0 -1
- package/dist/chunk-LOPUNSWJ.js +0 -1
- package/dist/chunk-MENOHSYF.js +0 -1
- package/dist/chunk-NNK6R67E.cjs +0 -1
- package/dist/chunk-NNU5DU4F.cjs +0 -1
- package/dist/chunk-NQR6HZYF.js +0 -1
- package/dist/chunk-P7OXTPPH.cjs +0 -1
- package/dist/chunk-QTCQZ7LU.js +0 -1
- package/dist/chunk-RSJJRJTH.cjs +0 -1
- package/dist/chunk-TR5T6KUC.js +0 -1
- package/dist/chunk-U5EQP4BO.cjs +0 -1
- package/dist/chunk-UH3TDC4T.cjs +0 -1
- package/dist/chunk-VNLOBA2B.cjs +0 -1
- package/dist/chunk-X6AB3I7Z.cjs +0 -1
- package/dist/chunk-YQKPA3BB.js +0 -1
- package/dist/chunk-YWSZXRUY.js +0 -1
- package/dist/chunk-Z7EBGO2B.js +0 -1
- package/dist/chunk-ZCFTW5HO.cjs +0 -1
- package/dist/chunk-ZW3IUWYO.js +0 -1
- /package/dist/{chunk-XJRGE7WL.cjs → chunk-DHNCWVVT.cjs} +0 -0
package/dist/drop-first-by.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OrderRule } from './curry-order-rules-
|
|
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
|
/**
|
package/dist/drop-last-while.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkG7BJFBAZcjs = require('./chunk-G7BJFBAZ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.dropLastWhile = _chunkG7BJFBAZcjs.a;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Removes elements from the end of the array until the predicate returns false.
|
|
3
6
|
*
|
|
@@ -12,7 +15,7 @@
|
|
|
12
15
|
* @dataFirst
|
|
13
16
|
* @category Array
|
|
14
17
|
*/
|
|
15
|
-
declare function dropLastWhile<T>(data:
|
|
18
|
+
declare function dropLastWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
16
19
|
/**
|
|
17
20
|
* Removes elements from the end of the array until the predicate returns false.
|
|
18
21
|
*
|
|
@@ -26,6 +29,6 @@ declare function dropLastWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, i
|
|
|
26
29
|
* @dataLast
|
|
27
30
|
* @category Array
|
|
28
31
|
*/
|
|
29
|
-
declare function dropLastWhile<T>(predicate: (item: T, index: number, data:
|
|
32
|
+
declare function dropLastWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
|
|
30
33
|
|
|
31
34
|
export { dropLastWhile };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Removes elements from the end of the array until the predicate returns false.
|
|
3
6
|
*
|
|
@@ -12,7 +15,7 @@
|
|
|
12
15
|
* @dataFirst
|
|
13
16
|
* @category Array
|
|
14
17
|
*/
|
|
15
|
-
declare function dropLastWhile<T>(data:
|
|
18
|
+
declare function dropLastWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
16
19
|
/**
|
|
17
20
|
* Removes elements from the end of the array until the predicate returns false.
|
|
18
21
|
*
|
|
@@ -26,6 +29,6 @@ declare function dropLastWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, i
|
|
|
26
29
|
* @dataLast
|
|
27
30
|
* @category Array
|
|
28
31
|
*/
|
|
29
|
-
declare function dropLastWhile<T>(predicate: (item: T, index: number, data:
|
|
32
|
+
declare function dropLastWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
|
|
30
33
|
|
|
31
34
|
export { dropLastWhile };
|
package/dist/drop-last-while.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-QTQTKNWA.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as dropLastWhile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkG7BJFBAZcjs = require('./chunk-G7BJFBAZ.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=_chunkG7BJFBAZcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [1,"a"],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [1,"a",!0],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkG7BJFBAZcjs.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, [],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkG7BJFBAZcjs.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, [],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkG7BJFBAZcjs.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"],_chunkG7BJFBAZcjs.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],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkG7BJFBAZcjs.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, [],_chunkG7BJFBAZcjs.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, [],_chunkG7BJFBAZcjs.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, [],_chunkG7BJFBAZcjs.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],_chunkG7BJFBAZcjs.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],_chunkG7BJFBAZcjs.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"],_chunkG7BJFBAZcjs.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],_chunkG7BJFBAZcjs.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, [],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-QTQTKNWA.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)))})})});
|
package/dist/drop-last.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAACZ5UGGcjs = require('./chunk-AACZ5UGG.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.dropLast = _chunkAACZ5UGGcjs.a;
|
package/dist/drop-last.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Removes last `n` elements from the `array`.
|
|
3
6
|
*
|
|
@@ -10,7 +13,7 @@
|
|
|
10
13
|
* @dataFirst
|
|
11
14
|
* @category Array
|
|
12
15
|
*/
|
|
13
|
-
declare function dropLast<T>(array:
|
|
16
|
+
declare function dropLast<T extends IterableContainer>(array: T, n: number): Array<T[number]>;
|
|
14
17
|
/**
|
|
15
18
|
* Removes last `n` elements from the `array`.
|
|
16
19
|
*
|
|
@@ -22,6 +25,6 @@ declare function dropLast<T>(array: ReadonlyArray<T>, n: number): Array<T>;
|
|
|
22
25
|
* @dataLast
|
|
23
26
|
* @category Array
|
|
24
27
|
*/
|
|
25
|
-
declare function dropLast
|
|
28
|
+
declare function dropLast(n: number): <T extends IterableContainer>(array: T) => Array<T[number]>;
|
|
26
29
|
|
|
27
30
|
export { dropLast };
|
package/dist/drop-last.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Removes last `n` elements from the `array`.
|
|
3
6
|
*
|
|
@@ -10,7 +13,7 @@
|
|
|
10
13
|
* @dataFirst
|
|
11
14
|
* @category Array
|
|
12
15
|
*/
|
|
13
|
-
declare function dropLast<T>(array:
|
|
16
|
+
declare function dropLast<T extends IterableContainer>(array: T, n: number): Array<T[number]>;
|
|
14
17
|
/**
|
|
15
18
|
* Removes last `n` elements from the `array`.
|
|
16
19
|
*
|
|
@@ -22,6 +25,6 @@ declare function dropLast<T>(array: ReadonlyArray<T>, n: number): Array<T>;
|
|
|
22
25
|
* @dataLast
|
|
23
26
|
* @category Array
|
|
24
27
|
*/
|
|
25
|
-
declare function dropLast
|
|
28
|
+
declare function dropLast(n: number): <T extends IterableContainer>(array: T) => Array<T[number]>;
|
|
26
29
|
|
|
27
30
|
export { dropLast };
|
package/dist/drop-last.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-U2BXIRBJ.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as dropLast};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkAACZ5UGGcjs = require('./chunk-AACZ5UGG.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=_chunkAACZ5UGGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [1],2);expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [1],2);expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [1,"a"],2);expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [1,"a",!0],2);expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1,"a"],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [1,"a",!0],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-U2BXIRBJ.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()})});
|
package/dist/drop-while.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRJAVPEJTcjs = require('./chunk-RJAVPEJT.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.dropWhile = _chunkRJAVPEJTcjs.a;
|
package/dist/drop-while.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Removes elements from the beginning of the array until the predicate returns false.
|
|
3
6
|
*
|
|
@@ -12,7 +15,7 @@
|
|
|
12
15
|
* @dataFirst
|
|
13
16
|
* @category Array
|
|
14
17
|
*/
|
|
15
|
-
declare function dropWhile<T>(data:
|
|
18
|
+
declare function dropWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
16
19
|
/**
|
|
17
20
|
* Removes elements from the beginning of the array until the predicate returns false.
|
|
18
21
|
*
|
|
@@ -26,6 +29,6 @@ declare function dropWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, index
|
|
|
26
29
|
* @dataLast
|
|
27
30
|
* @category Array
|
|
28
31
|
*/
|
|
29
|
-
declare function dropWhile<T>(predicate: (item: T, index: number, data:
|
|
32
|
+
declare function dropWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
|
|
30
33
|
|
|
31
34
|
export { dropWhile };
|
package/dist/drop-while.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Removes elements from the beginning of the array until the predicate returns false.
|
|
3
6
|
*
|
|
@@ -12,7 +15,7 @@
|
|
|
12
15
|
* @dataFirst
|
|
13
16
|
* @category Array
|
|
14
17
|
*/
|
|
15
|
-
declare function dropWhile<T>(data:
|
|
18
|
+
declare function dropWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
16
19
|
/**
|
|
17
20
|
* Removes elements from the beginning of the array until the predicate returns false.
|
|
18
21
|
*
|
|
@@ -26,6 +29,6 @@ declare function dropWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, index
|
|
|
26
29
|
* @dataLast
|
|
27
30
|
* @category Array
|
|
28
31
|
*/
|
|
29
|
-
declare function dropWhile<T>(predicate: (item: T, index: number, data:
|
|
32
|
+
declare function dropWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
|
|
30
33
|
|
|
31
34
|
export { dropWhile };
|
package/dist/drop-while.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-IABWIMQT.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as dropWhile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkRJAVPEJTcjs = require('./chunk-RJAVPEJT.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=_chunkRJAVPEJTcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [1,"a"],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [1,"a",!0],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkRJAVPEJTcjs.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, [],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkRJAVPEJTcjs.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, [],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkRJAVPEJTcjs.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"],_chunkRJAVPEJTcjs.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],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkRJAVPEJTcjs.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, [],_chunkRJAVPEJTcjs.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, [],_chunkRJAVPEJTcjs.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, [],_chunkRJAVPEJTcjs.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],_chunkRJAVPEJTcjs.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],_chunkRJAVPEJTcjs.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"],_chunkRJAVPEJTcjs.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],_chunkRJAVPEJTcjs.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, [],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-IABWIMQT.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)))})})});
|
package/dist/drop.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRCENCAXYcjs = require('./chunk-RCENCAXY.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.drop = _chunkRCENCAXYcjs.a;
|
package/dist/drop.d.cts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import { IfNever } from 'type-fest';
|
|
2
|
+
import { I as IterableContainer, T as TupleParts, N as NTuple } from './types-BE3YOWVA.cjs';
|
|
3
|
+
|
|
4
|
+
type Drop<T extends IterableContainer, N extends number> = number extends N ? Array<T[number]> : `${N}` extends `-${number}` ? T : [
|
|
5
|
+
...(TupleParts<T>['prefix'] extends [...NTuple<unknown, N>, ...infer V] ? V : []),
|
|
6
|
+
...IfNever<TupleParts<T>['item'], [
|
|
7
|
+
], Array<TupleParts<T>['item'] | TupleParts<T>['suffix'][number]>>
|
|
8
|
+
];
|
|
1
9
|
/**
|
|
2
10
|
* Removes first `n` elements from the `array`.
|
|
3
11
|
*
|
|
@@ -11,7 +19,7 @@
|
|
|
11
19
|
* @lazy
|
|
12
20
|
* @category Array
|
|
13
21
|
*/
|
|
14
|
-
declare function drop<T>(array:
|
|
22
|
+
declare function drop<T extends IterableContainer, N extends number>(array: T, n: N): Drop<T, N>;
|
|
15
23
|
/**
|
|
16
24
|
* Removes first `n` elements from the `array`.
|
|
17
25
|
*
|
|
@@ -24,6 +32,6 @@ declare function drop<T>(array: ReadonlyArray<T>, n: number): Array<T>;
|
|
|
24
32
|
* @lazy
|
|
25
33
|
* @category Array
|
|
26
34
|
*/
|
|
27
|
-
declare function drop<
|
|
35
|
+
declare function drop<N extends number>(n: N): <T extends IterableContainer>(array: T) => Drop<T, N>;
|
|
28
36
|
|
|
29
37
|
export { drop };
|
package/dist/drop.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import { IfNever } from 'type-fest';
|
|
2
|
+
import { I as IterableContainer, T as TupleParts, N as NTuple } from './types-BE3YOWVA.js';
|
|
3
|
+
|
|
4
|
+
type Drop<T extends IterableContainer, N extends number> = number extends N ? Array<T[number]> : `${N}` extends `-${number}` ? T : [
|
|
5
|
+
...(TupleParts<T>['prefix'] extends [...NTuple<unknown, N>, ...infer V] ? V : []),
|
|
6
|
+
...IfNever<TupleParts<T>['item'], [
|
|
7
|
+
], Array<TupleParts<T>['item'] | TupleParts<T>['suffix'][number]>>
|
|
8
|
+
];
|
|
1
9
|
/**
|
|
2
10
|
* Removes first `n` elements from the `array`.
|
|
3
11
|
*
|
|
@@ -11,7 +19,7 @@
|
|
|
11
19
|
* @lazy
|
|
12
20
|
* @category Array
|
|
13
21
|
*/
|
|
14
|
-
declare function drop<T>(array:
|
|
22
|
+
declare function drop<T extends IterableContainer, N extends number>(array: T, n: N): Drop<T, N>;
|
|
15
23
|
/**
|
|
16
24
|
* Removes first `n` elements from the `array`.
|
|
17
25
|
*
|
|
@@ -24,6 +32,6 @@ declare function drop<T>(array: ReadonlyArray<T>, n: number): Array<T>;
|
|
|
24
32
|
* @lazy
|
|
25
33
|
* @category Array
|
|
26
34
|
*/
|
|
27
|
-
declare function drop<
|
|
35
|
+
declare function drop<N extends number>(n: N): <T extends IterableContainer>(array: T) => Drop<T, N>;
|
|
28
36
|
|
|
29
37
|
export { drop };
|
package/dist/drop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-IRH6TGG5.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as drop};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkRCENCAXYcjs = require('./chunk-RCENCAXY.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 e=_chunkRCENCAXYcjs.a.call(void 0, [],2);expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [],2);expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [],2);expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [1],2);expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [1],2);expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [1,"a"],2);expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [1,"a",!0],2);expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [],2);expectTypeOf(e).toEqualTypeOf()}),test("negative count",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [1],-1);expectTypeOf(e).toEqualTypeOf()}),test("generalized typed count",()=>{let e=_chunkRCENCAXYcjs.a.call(void 0, [1],1);expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkRCENCAXYcjs.a.call(void 0, 2));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkRCENCAXYcjs.a.call(void 0, 2));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkRCENCAXYcjs.a.call(void 0, 2));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkRCENCAXYcjs.a.call(void 0, 2));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkRCENCAXYcjs.a.call(void 0, 2));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1,"a"],_chunkRCENCAXYcjs.a.call(void 0, 2));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1,"a",!0],_chunkRCENCAXYcjs.a.call(void 0, 2));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkRCENCAXYcjs.a.call(void 0, 2));expectTypeOf(e).toEqualTypeOf()}),test("negative count",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkRCENCAXYcjs.a.call(void 0, -1));expectTypeOf(e).toEqualTypeOf()}),test("generalized typed count",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkRCENCAXYcjs.a.call(void 0, 1));expectTypeOf(e).toEqualTypeOf()})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-IRH6TGG5.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 e=r([],2);expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=r([],2);expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=r([],2);expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=r([1],2);expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=r([1],2);expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=r([1,"a"],2);expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=r([1,"a",!0],2);expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=r([],2);expectTypeOf(e).toEqualTypeOf()}),test("negative count",()=>{let e=r([1],-1);expectTypeOf(e).toEqualTypeOf()}),test("generalized typed count",()=>{let e=r([1],1);expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=t([],r(2));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=t([],r(2));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=t([],r(2));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=t([1],r(2));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=t([1],r(2));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=t([1,"a"],r(2));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=t([1,"a",!0],r(2));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=t([],r(2));expectTypeOf(e).toEqualTypeOf()}),test("negative count",()=>{let e=t([],r(-1));expectTypeOf(e).toEqualTypeOf()}),test("generalized typed count",()=>{let e=t([],r(1));expectTypeOf(e).toEqualTypeOf()})});
|
|
@@ -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 @@
|
|
|
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()});
|
package/dist/evolve.d.cts
CHANGED
package/dist/evolve.d.ts
CHANGED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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
|
|
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;
|
package/dist/first-by.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IterableContainer,
|
|
2
|
-
import { O as OrderRule } from './curry-order-rules-
|
|
1
|
+
import { I as IterableContainer, 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
|
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.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IterableContainer,
|
|
2
|
-
import { O as OrderRule } from './curry-order-rules-
|
|
1
|
+
import { I as IterableContainer, 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
|
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-
|
|
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 @@
|
|
|
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()});
|
package/dist/first.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type First<T extends IterableContainer> = T extends [] ? undefined : T extends readonly [unknown, ...Array<unknown>] ? T[0] : T extends readonly [...infer Pre, infer Last] ? Last | Pre[0] : T[0] | undefined;
|
package/dist/first.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type First<T extends IterableContainer> = T extends [] ? undefined : T extends readonly [unknown, ...Array<unknown>] ? T[0] : T extends readonly [...infer Pre, infer Last] ? Last | Pre[0] : T[0] | undefined;
|
|
@@ -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 @@
|
|
|
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()});
|
package/dist/flat.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsNumericLiteral } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer } from './types-
|
|
2
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
3
3
|
|
|
4
4
|
declare const DEFAULT_DEPTH = 1;
|
|
5
5
|
type FlatArray<T, Depth extends number, Iteration extends ReadonlyArray<unknown> = []> = Depth extends Iteration['length'] ? T : T extends readonly [] ? [
|
package/dist/flat.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsNumericLiteral } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer } from './types-
|
|
2
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
3
3
|
|
|
4
4
|
declare const DEFAULT_DEPTH = 1;
|
|
5
5
|
type FlatArray<T, Depth extends number, Iteration extends ReadonlyArray<unknown> = []> = Depth extends Iteration['length'] ? T : T extends readonly [] ? [
|