@vinicunca/perkakas 1.12.0 → 1.13.0
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.js +1 -1
- package/dist/add.js +1 -1
- package/dist/all-pass.js +1 -1
- package/dist/any-pass.js +1 -1
- package/dist/{array-required-prefix-DxzEAAwi.d.cts → array-required-prefix-BFDM7eSS.d.cts} +8 -8
- package/dist/{array-required-prefix-DxzEAAwi.d.cts.map → array-required-prefix-BFDM7eSS.d.cts.map} +1 -1
- package/dist/{array-required-prefix-CefHtaKs.d.ts → array-required-prefix-DwpaLy0D.d.ts} +8 -8
- package/dist/{array-required-prefix-CefHtaKs.d.ts.map → array-required-prefix-DwpaLy0D.d.ts.map} +1 -1
- package/dist/{binary-search-cutoff-index-yQ2qcJHb.js → binary-search-cutoff-index-CN25H71A.js} +1 -1
- package/dist/{binary-search-cutoff-index-yQ2qcJHb.js.map → binary-search-cutoff-index-CN25H71A.js.map} +1 -1
- package/dist/{bounded-partial-DBIIClPU.d.ts → bounded-partial-CPc1XU57.d.ts} +2 -2
- package/dist/{bounded-partial-DBIIClPU.d.ts.map → bounded-partial-CPc1XU57.d.ts.map} +1 -1
- package/dist/{bounded-partial-D6ouPlXl.d.cts → bounded-partial-CtOsGqxa.d.cts} +2 -2
- package/dist/{bounded-partial-D6ouPlXl.d.cts.map → bounded-partial-CtOsGqxa.d.cts.map} +1 -1
- package/dist/capitalize.cjs +1 -0
- package/dist/capitalize.d.cts +53 -0
- package/dist/capitalize.d.cts.map +1 -0
- package/dist/capitalize.d.ts +53 -0
- package/dist/capitalize.d.ts.map +1 -0
- package/dist/capitalize.js +2 -0
- package/dist/capitalize.js.map +1 -0
- package/dist/ceil.js +1 -1
- package/dist/chunk.d.cts +6 -6
- package/dist/chunk.d.ts +6 -6
- package/dist/chunk.js +1 -1
- package/dist/clamp.js +1 -1
- package/dist/{clamped-integer-subtract-sK2BlhSm.d.ts → clamped-integer-subtract-C-AIuFhk.d.ts} +1 -1
- package/dist/{clamped-integer-subtract-sK2BlhSm.d.ts.map → clamped-integer-subtract-C-AIuFhk.d.ts.map} +1 -1
- package/dist/{clamped-integer-subtract-oLs8msYu.d.cts → clamped-integer-subtract-DueGS_u_.d.cts} +1 -1
- package/dist/{clamped-integer-subtract-oLs8msYu.d.cts.map → clamped-integer-subtract-DueGS_u_.d.cts.map} +1 -1
- package/dist/clone.js +1 -1
- package/dist/{coerced-array-DS7cKtbA.d.cts → coerced-array-BKR9Bvsl.d.cts} +1 -1
- package/dist/{coerced-array-DS7cKtbA.d.cts.map → coerced-array-BKR9Bvsl.d.cts.map} +1 -1
- package/dist/{coerced-array-1Xs4p4iF.d.ts → coerced-array-BfTLxqLo.d.ts} +1 -1
- package/dist/{coerced-array-1Xs4p4iF.d.ts.map → coerced-array-BfTLxqLo.d.ts.map} +1 -1
- package/dist/concat.d.cts +1 -1
- package/dist/concat.d.ts +1 -1
- package/dist/concat.js +1 -1
- package/dist/{conditional-tssGt6Vy.d.cts → conditional-Br0uqqc9.d.cts} +1 -1
- package/dist/{conditional-tssGt6Vy.d.cts.map → conditional-Br0uqqc9.d.cts.map} +1 -1
- package/dist/{conditional-F_nq8vtA.d.ts → conditional-CDez6uXp.d.ts} +1 -1
- package/dist/{conditional-F_nq8vtA.d.ts.map → conditional-CDez6uXp.d.ts.map} +1 -1
- package/dist/{conditional-lp8ZHACd.js → conditional-WbmvQs8H.js} +1 -1
- package/dist/{conditional-lp8ZHACd.js.map → conditional-WbmvQs8H.js.map} +1 -1
- package/dist/conditional.d.cts +1 -1
- package/dist/conditional.d.ts +1 -1
- package/dist/conditional.js +1 -1
- package/dist/count-by.d.cts +1 -1
- package/dist/count-by.d.ts +1 -1
- package/dist/count-by.js +1 -1
- package/dist/{curry-d8_p_Jzt.d.ts → curry-CKDQ1osk.d.ts} +4 -2
- package/dist/curry-CKDQ1osk.d.ts.map +1 -0
- package/dist/{curry-BcQ8Up1_.js → curry-NmniqyJ0.js} +2 -2
- package/dist/curry-NmniqyJ0.js.map +1 -0
- package/dist/{curry-from-lazy-CYtJvyas.js → curry-from-lazy-PQ0BbG-7.js} +2 -2
- package/dist/{curry-from-lazy-CYtJvyas.js.map → curry-from-lazy-PQ0BbG-7.js.map} +1 -1
- package/dist/{curry-B20xQM_9.d.cts → curry-mh6BKSIA.d.cts} +4 -2
- package/dist/curry-mh6BKSIA.d.cts.map +1 -0
- package/dist/{curry-order-rules-cezUWcSx.d.cts → curry-order-rules-BoF09Dq2.d.cts} +1 -1
- package/dist/{curry-order-rules-cezUWcSx.d.cts.map → curry-order-rules-BoF09Dq2.d.cts.map} +1 -1
- package/dist/{curry-order-rules-BCcwbNxd.d.ts → curry-order-rules-CoO4bk5I.d.ts} +1 -1
- package/dist/{curry-order-rules-BCcwbNxd.d.ts.map → curry-order-rules-CoO4bk5I.d.ts.map} +1 -1
- package/dist/{curry-order-rules-C6bwcUwC.js → curry-order-rules-DwrF-_P1.js} +1 -1
- package/dist/{curry-order-rules-C6bwcUwC.js.map → curry-order-rules-DwrF-_P1.js.map} +1 -1
- package/dist/curry.d.cts +1 -1
- package/dist/curry.d.ts +1 -1
- package/dist/curry.js +1 -1
- package/dist/debounce.d.cts +5 -3
- package/dist/debounce.d.cts.map +1 -1
- package/dist/debounce.d.ts +5 -3
- package/dist/debounce.d.ts.map +1 -1
- package/dist/debounce.js.map +1 -1
- package/dist/{deduped-CXeQa-0F.d.cts → deduped-DdwAYzXs.d.cts} +3 -3
- package/dist/{deduped-CXeQa-0F.d.cts.map → deduped-DdwAYzXs.d.cts.map} +1 -1
- package/dist/{deduped-CL5-bmYU.d.ts → deduped-RY-1u-ns.d.ts} +3 -3
- package/dist/{deduped-CL5-bmYU.d.ts.map → deduped-RY-1u-ns.d.ts.map} +1 -1
- package/dist/difference-with.js +1 -1
- package/dist/difference.js +1 -1
- package/dist/dist-8XtUY3ad.cjs +114 -0
- package/dist/dist-Bd1vawFi.js +103 -0
- package/dist/dist-Bd1vawFi.js.map +1 -0
- package/dist/divide.js +1 -1
- package/dist/drop-first-by.d.cts +2 -2
- package/dist/drop-first-by.d.ts +2 -2
- package/dist/drop-first-by.js +1 -1
- package/dist/drop-last-while.d.cts +1 -1
- package/dist/drop-last-while.d.ts +1 -1
- package/dist/drop-last-while.js +1 -1
- package/dist/drop-last.d.cts +1 -1
- package/dist/drop-last.d.ts +1 -1
- package/dist/drop-last.js +1 -1
- package/dist/drop-while.d.cts +1 -1
- package/dist/drop-while.d.ts +1 -1
- package/dist/drop-while.js +1 -1
- package/dist/drop.d.cts +5 -5
- package/dist/drop.d.ts +5 -5
- package/dist/drop.js +1 -1
- package/dist/entries.d.cts +1 -1
- package/dist/entries.d.ts +1 -1
- package/dist/entries.js +1 -1
- package/dist/{enumerable-string-key-of-DMAkBhMk.d.ts → enumerable-string-key-of-CZQf3ld_.d.ts} +2 -2
- package/dist/{enumerable-string-key-of-DMAkBhMk.d.ts.map → enumerable-string-key-of-CZQf3ld_.d.ts.map} +1 -1
- package/dist/{enumerable-string-key-of-FUg082M_.d.cts → enumerable-string-key-of-DhcNc5iz.d.cts} +2 -2
- package/dist/{enumerable-string-key-of-FUg082M_.d.cts.map → enumerable-string-key-of-DhcNc5iz.d.cts.map} +1 -1
- package/dist/{enumerable-string-keyed-value-of-B2F2aTB7.d.ts → enumerable-string-keyed-value-of-CRlVAvdp.d.ts} +1 -1
- package/dist/{enumerable-string-keyed-value-of-B2F2aTB7.d.ts.map → enumerable-string-keyed-value-of-CRlVAvdp.d.ts.map} +1 -1
- package/dist/{enumerable-string-keyed-value-of-CEclDoqe.d.cts → enumerable-string-keyed-value-of-icm2q60J.d.cts} +1 -1
- package/dist/{enumerable-string-keyed-value-of-CEclDoqe.d.cts.map → enumerable-string-keyed-value-of-icm2q60J.d.cts.map} +1 -1
- package/dist/evolve.d.cts +1 -1
- package/dist/evolve.d.ts +1 -1
- package/dist/evolve.js +1 -1
- package/dist/filter.d.cts +2 -2
- package/dist/filter.d.ts +2 -2
- package/dist/filter.js +1 -1
- package/dist/filtered-array-C--8loav.d.cts +22 -0
- package/dist/filtered-array-C--8loav.d.cts.map +1 -0
- package/dist/filtered-array-wtIEwdU7.d.ts +22 -0
- package/dist/filtered-array-wtIEwdU7.d.ts.map +1 -0
- package/dist/find-index.js +1 -1
- package/dist/find-last-index.js +1 -1
- package/dist/find-last.js +1 -1
- package/dist/find.js +1 -1
- package/dist/first-by.d.cts +3 -3
- package/dist/first-by.d.ts +3 -3
- package/dist/first-by.js +1 -1
- package/dist/first.d.cts +1 -1
- package/dist/first.d.ts +1 -1
- package/dist/first.js +1 -1
- package/dist/flat-map.js +1 -1
- package/dist/flat.d.cts +1 -1
- package/dist/flat.d.ts +1 -1
- package/dist/flat.js +1 -1
- package/dist/floor.js +1 -1
- package/dist/for-each-obj.d.cts +2 -2
- package/dist/for-each-obj.d.ts +2 -2
- package/dist/for-each-obj.js +1 -1
- package/dist/for-each.d.cts +1 -1
- package/dist/for-each.d.ts +1 -1
- package/dist/for-each.js +1 -1
- package/dist/from-entries.d.cts +2 -2
- package/dist/from-entries.d.ts +2 -2
- package/dist/from-entries.js +1 -1
- package/dist/from-keys.d.cts +2 -2
- package/dist/from-keys.d.ts +2 -2
- package/dist/from-keys.js +1 -1
- package/dist/funnel.d.cts.map +1 -1
- package/dist/funnel.d.ts.map +1 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.cjs +1 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.js +1 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.js.map +1 -1
- package/dist/funnel.lodash-debounce.test.cjs +1 -1
- package/dist/funnel.lodash-debounce.test.js +1 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.cjs +1 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.js +1 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.js.map +1 -1
- package/dist/funnel.lodash-throttle.test.cjs +1 -1
- package/dist/funnel.lodash-throttle.test.js +1 -1
- package/dist/funnel.perkakas-debounce.test.cjs +1 -1
- package/dist/funnel.perkakas-debounce.test.js +1 -1
- package/dist/funnel.perkakas-debounce.test.js.map +1 -1
- package/dist/funnel.reference-batch.test.cjs +1 -1
- package/dist/funnel.reference-batch.test.js +1 -1
- package/dist/funnel.reference-batch.test.js.map +1 -1
- package/dist/funnel.test-d.cjs +1 -1
- package/dist/funnel.test-d.js +1 -1
- package/dist/funnel.test.cjs +1 -1
- package/dist/funnel.test.js +1 -1
- package/dist/funnel.test.js.map +1 -1
- package/dist/group-by-prop.d.cts +10 -10
- package/dist/group-by-prop.d.ts +10 -10
- package/dist/group-by-prop.js +1 -1
- package/dist/group-by-prop.js.map +1 -1
- package/dist/group-by.d.cts +2 -2
- package/dist/group-by.d.ts +2 -2
- package/dist/group-by.js +1 -1
- package/dist/has-at-least-Coy9sM-B.js +2 -0
- package/dist/{has-at-least-DyIhWZJH.js.map → has-at-least-Coy9sM-B.js.map} +1 -1
- package/dist/has-at-least.d.cts +2 -2
- package/dist/has-at-least.d.ts +2 -2
- package/dist/has-at-least.js +1 -1
- package/dist/has-sub-object.js +1 -1
- package/dist/{heap-bARaRULU.js → heap-BhpfhYWj.js} +2 -2
- package/dist/{heap-bARaRULU.js.map → heap-BhpfhYWj.js.map} +1 -1
- package/dist/index-by.d.cts +1 -1
- package/dist/index-by.d.ts +1 -1
- package/dist/index-by.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -14
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +12 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{int-range-inclusive-ClGdUant.d.ts → int-range-inclusive-BlGXX6Cz.d.ts} +1 -1
- package/dist/{int-range-inclusive-ClGdUant.d.ts.map → int-range-inclusive-BlGXX6Cz.d.ts.map} +1 -1
- package/dist/{int-range-inclusive-q-Jb7w6P.d.cts → int-range-inclusive-KocNpK0p.d.cts} +1 -1
- package/dist/{int-range-inclusive-q-Jb7w6P.d.cts.map → int-range-inclusive-KocNpK0p.d.cts.map} +1 -1
- package/dist/intersection-with.js +1 -1
- package/dist/intersection.js +1 -1
- package/dist/invert.d.cts +1 -1
- package/dist/invert.d.ts +1 -1
- package/dist/invert.js +1 -1
- package/dist/is-array.d.cts +1 -1
- package/dist/is-array.d.ts +1 -1
- package/dist/is-big-int.d.cts +1 -1
- package/dist/is-big-int.d.ts +1 -1
- package/dist/is-boolean.d.cts +1 -1
- package/dist/is-boolean.d.ts +1 -1
- package/dist/{is-bounded-record-BGclJjRX.d.ts → is-bounded-record-Bx4n8QB0.d.ts} +1 -1
- package/dist/{is-bounded-record-BGclJjRX.d.ts.map → is-bounded-record-Bx4n8QB0.d.ts.map} +1 -1
- package/dist/{is-bounded-record-D9YK_OC8.d.cts → is-bounded-record-DV6ZQk9H.d.cts} +1 -1
- package/dist/{is-bounded-record-D9YK_OC8.d.cts.map → is-bounded-record-DV6ZQk9H.d.cts.map} +1 -1
- package/dist/is-deep-equal.js +1 -1
- package/dist/is-empty.d.cts +1 -1
- package/dist/is-empty.d.ts +1 -1
- package/dist/{is-emptyish-CIxZzxxz.d.ts → is-emptyish-9tX94IVx.d.cts} +2 -3
- package/dist/is-emptyish-9tX94IVx.d.cts.map +1 -0
- package/dist/{is-emptyish-oX5mpcfW.d.cts → is-emptyish-DVFGJe-T.d.ts} +2 -3
- package/dist/is-emptyish-DVFGJe-T.d.ts.map +1 -0
- package/dist/is-emptyish.d.cts +1 -1
- package/dist/is-emptyish.d.ts +1 -1
- package/dist/is-emptyish.js.map +1 -1
- package/dist/is-emptyish.test-d.cjs +1 -1
- package/dist/is-emptyish.test-d.js +1 -1
- package/dist/is-emptyish.test.cjs +1 -1
- package/dist/is-emptyish.test.js +1 -1
- package/dist/is-function.d.cts +5 -2
- package/dist/is-function.d.cts.map +1 -1
- package/dist/is-function.d.ts +5 -2
- package/dist/is-function.d.ts.map +1 -1
- package/dist/is-function.js.map +1 -1
- package/dist/is-included-in.d.cts +2 -3
- package/dist/is-included-in.d.cts.map +1 -1
- package/dist/is-included-in.d.ts +2 -3
- package/dist/is-included-in.d.ts.map +1 -1
- package/dist/is-included-in.js.map +1 -1
- package/dist/is-nullish.d.cts +1 -1
- package/dist/is-nullish.d.ts +1 -1
- package/dist/is-number.d.cts +1 -1
- package/dist/is-number.d.ts +1 -1
- package/dist/is-object-type.d.cts +1 -1
- package/dist/is-object-type.d.ts +1 -1
- package/dist/is-plain-object.d.cts +1 -1
- package/dist/is-plain-object.d.ts +1 -1
- package/dist/is-shallow-equal.js +1 -1
- package/dist/is-strict-equal.js +1 -1
- package/dist/is-string.d.cts +1 -1
- package/dist/is-string.d.ts +1 -1
- package/dist/is-symbol.d.cts +1 -1
- package/dist/is-symbol.d.ts +1 -1
- package/dist/{iterable-container-OFsaw8WL.d.cts → iterable-container-1TN3AJ3s.d.cts} +1 -1
- package/dist/{iterable-container-OFsaw8WL.d.cts.map → iterable-container-1TN3AJ3s.d.cts.map} +1 -1
- package/dist/{iterable-container-BdjPuIjL.d.ts → iterable-container-Dv5vSKht.d.ts} +1 -1
- package/dist/iterable-container-Dv5vSKht.d.ts.map +1 -0
- package/dist/join.js +1 -1
- package/dist/keys.d.cts +3 -3
- package/dist/keys.d.ts +3 -3
- package/dist/keys.js +1 -1
- package/dist/last.d.cts +1 -1
- package/dist/last.d.ts +1 -1
- package/dist/last.js +1 -1
- package/dist/{lazy-data-last-impl-DW5TXWv8.js → lazy-data-last-impl-R05wr4K6.js} +1 -1
- package/dist/lazy-data-last-impl-R05wr4K6.js.map +1 -0
- package/dist/length.js +1 -1
- package/dist/{magic-string.es-BY9a6RR2.js → magic-string.es-94aXgwpn.js} +1 -1
- package/dist/{magic-string.es-BY9a6RR2.js.map → magic-string.es-94aXgwpn.js.map} +1 -1
- package/dist/map-keys.d.cts +3 -3
- package/dist/map-keys.d.ts +3 -3
- package/dist/map-keys.js +1 -1
- package/dist/map-to-obj.js +1 -1
- package/dist/map-values.d.cts +2 -2
- package/dist/map-values.d.ts +2 -2
- package/dist/map-values.js +1 -1
- package/dist/map-with-feedback.d.cts +2 -2
- package/dist/map-with-feedback.d.ts +2 -2
- package/dist/map-with-feedback.js +1 -1
- package/dist/map.d.cts +2 -2
- package/dist/map.d.ts +2 -2
- package/dist/map.js +1 -1
- package/dist/{mapped-LCblUtt3.d.ts → mapped-BbrC9t3s.d.ts} +2 -2
- package/dist/mapped-BbrC9t3s.d.ts.map +1 -0
- package/dist/{mapped-m3FRlUOA.d.cts → mapped-CkRNfTnY.d.cts} +2 -2
- package/dist/mapped-CkRNfTnY.d.cts.map +1 -0
- package/dist/mean-by.js +1 -1
- package/dist/{merge-all-CW8DGAy8.d.cts → merge-all-CISawx-J.d.cts} +4 -4
- package/dist/{merge-all-CW8DGAy8.d.cts.map → merge-all-CISawx-J.d.cts.map} +1 -1
- package/dist/{merge-all-B9JBhVzy.d.ts → merge-all-DJ6n7R1b.d.ts} +4 -4
- package/dist/{merge-all-B9JBhVzy.d.ts.map → merge-all-DJ6n7R1b.d.ts.map} +1 -1
- package/dist/merge-all.d.cts +1 -1
- package/dist/merge-all.d.ts +1 -1
- package/dist/merge-deep.js +1 -1
- package/dist/merge.js +1 -1
- package/dist/multiply.js +1 -1
- package/dist/{n-tuple-Bu1e7UH_.d.cts → n-tuple-BkMobYQ9.d.cts} +1 -1
- package/dist/{n-tuple-Bu1e7UH_.d.cts.map → n-tuple-BkMobYQ9.d.cts.map} +1 -1
- package/dist/{n-tuple-DoE0z7Kl.d.ts → n-tuple-zo5g_mSL.d.ts} +1 -1
- package/dist/{n-tuple-DoE0z7Kl.d.ts.map → n-tuple-zo5g_mSL.d.ts.map} +1 -1
- package/dist/{narrowed-to-j75i8Rl2.d.ts → narrowed-to-B7tkuY2k.d.ts} +1 -1
- package/dist/{narrowed-to-j75i8Rl2.d.ts.map → narrowed-to-B7tkuY2k.d.ts.map} +1 -1
- package/dist/{narrowed-to-Yf5qTOcD.d.cts → narrowed-to-D_6H-aZW.d.cts} +1 -1
- package/dist/{narrowed-to-Yf5qTOcD.d.cts.map → narrowed-to-D_6H-aZW.d.cts.map} +1 -1
- package/dist/{non-empty-array-DXkY7ynY.d.ts → non-empty-array-DHAKSw6t.d.ts} +1 -1
- package/dist/non-empty-array-DHAKSw6t.d.ts.map +1 -0
- package/dist/{non-empty-array-CFG7wGD-.d.cts → non-empty-array-NDjbHRjk.d.cts} +1 -1
- package/dist/non-empty-array-NDjbHRjk.d.cts.map +1 -0
- package/dist/{nth-by-Bs6FNGL-.js → nth-by-JP3-Htbo.js} +2 -2
- package/dist/{nth-by-Bs6FNGL-.js.map → nth-by-JP3-Htbo.js.map} +1 -1
- package/dist/nth-by.d.cts +3 -3
- package/dist/nth-by.d.ts +3 -3
- package/dist/nth-by.js +1 -1
- package/dist/obj-of.js +1 -1
- package/dist/omit-DI8DRDHj.d.ts +71 -0
- package/dist/omit-DI8DRDHj.d.ts.map +1 -0
- package/dist/omit-DQiCiWAg.d.cts +71 -0
- package/dist/omit-DQiCiWAg.d.cts.map +1 -0
- package/dist/omit-by.d.cts +3 -3
- package/dist/omit-by.d.ts +3 -3
- package/dist/omit-by.js +1 -1
- package/dist/omit.d.cts +2 -29
- package/dist/omit.d.ts +2 -29
- package/dist/omit.js +1 -1
- package/dist/omit.js.map +1 -1
- package/dist/only.d.cts +1 -1
- package/dist/only.d.ts +1 -1
- package/dist/only.js +1 -1
- package/dist/optional-options-with-defaults-BFaBSKkF.d.ts +12 -0
- package/dist/optional-options-with-defaults-BFaBSKkF.d.ts.map +1 -0
- package/dist/optional-options-with-defaults-BZVW8GfC.d.cts +12 -0
- package/dist/optional-options-with-defaults-BZVW8GfC.d.cts.map +1 -0
- package/dist/{partial-array-CoV_xxyQ.d.cts → partial-array-CQF5oggb.d.cts} +1 -1
- package/dist/partial-array-CQF5oggb.d.cts.map +1 -0
- package/dist/{partial-array-CeoXpbZU.d.ts → partial-array-DU-2Vkyx.d.ts} +1 -1
- package/dist/partial-array-DU-2Vkyx.d.ts.map +1 -0
- package/dist/partition-by-union-BztEpKVh.d.cts +20 -0
- package/dist/partition-by-union-BztEpKVh.d.cts.map +1 -0
- package/dist/partition-by-union-DnfiiEMU.d.ts +20 -0
- package/dist/partition-by-union-DnfiiEMU.d.ts.map +1 -0
- package/dist/partition.js +1 -1
- package/dist/path-or.js +1 -1
- package/dist/{perkakas-type-error-DmmsEmEF.d.ts → perkakas-type-error-B9ULNhW0.d.ts} +1 -1
- package/dist/{perkakas-type-error-DmmsEmEF.d.ts.map → perkakas-type-error-B9ULNhW0.d.ts.map} +1 -1
- package/dist/{perkakas-type-error-BERl_sWR.d.cts → perkakas-type-error-ClCCHBW1.d.cts} +1 -1
- package/dist/{perkakas-type-error-BERl_sWR.d.cts.map → perkakas-type-error-ClCCHBW1.d.cts.map} +1 -1
- package/dist/pick-by.d.cts +4 -4
- package/dist/pick-by.d.cts.map +1 -1
- package/dist/pick-by.d.ts +4 -4
- package/dist/pick-by.d.ts.map +1 -1
- package/dist/pick-by.js +1 -1
- package/dist/pick-by.js.map +1 -1
- package/dist/pick.d.cts +4 -15
- package/dist/pick.d.cts.map +1 -1
- package/dist/pick.d.ts +4 -15
- package/dist/pick.d.ts.map +1 -1
- package/dist/pick.js +1 -1
- package/dist/pick.js.map +1 -1
- package/dist/{pipe-BGazHnZ_.js → pipe-CZKusDA-.js} +2 -2
- package/dist/pipe-CZKusDA-.js.map +1 -0
- package/dist/pipe.d.cts +95 -23
- package/dist/pipe.d.cts.map +1 -1
- package/dist/pipe.d.ts +95 -23
- package/dist/pipe.d.ts.map +1 -1
- package/dist/pipe.js +1 -1
- package/dist/piped.js +1 -1
- package/dist/product.d.cts +2 -2
- package/dist/product.d.ts +2 -2
- package/dist/product.js +1 -1
- package/dist/product.js.map +1 -1
- package/dist/{prop-DulcbWGG.d.ts → prop-D-4cFXSd.d.cts} +5 -6
- package/dist/prop-D-4cFXSd.d.cts.map +1 -0
- package/dist/{prop-C3rYih5m.d.cts → prop-DL-oRBeN.d.ts} +5 -6
- package/dist/prop-DL-oRBeN.d.ts.map +1 -0
- package/dist/prop.d.cts +1 -1
- package/dist/prop.d.ts +1 -1
- package/dist/prop.js.map +1 -1
- package/dist/pull-object.d.cts +2 -2
- package/dist/pull-object.d.ts +2 -2
- package/dist/pull-object.js +1 -1
- package/dist/random-integer.d.cts +1 -1
- package/dist/random-integer.d.ts +1 -1
- package/dist/random-string.js +1 -1
- package/dist/range.js +1 -1
- package/dist/rank-by.d.cts +2 -2
- package/dist/rank-by.d.ts +2 -2
- package/dist/rank-by.js +1 -1
- package/dist/reduce.js +1 -1
- package/dist/{reordered-array-B2klHneX.d.ts → reordered-array-BWG6tVSK.d.ts} +2 -2
- package/dist/reordered-array-BWG6tVSK.d.ts.map +1 -0
- package/dist/{reordered-array-BsUBOnYh.d.cts → reordered-array-CmReuxDi.d.cts} +2 -2
- package/dist/reordered-array-CmReuxDi.d.cts.map +1 -0
- package/dist/reverse.js +1 -1
- package/dist/round.js +1 -1
- package/dist/sample.d.cts +5 -5
- package/dist/sample.d.ts +5 -5
- package/dist/sample.js +1 -1
- package/dist/set-path.d.cts +1 -1
- package/dist/set-path.d.ts +1 -1
- package/dist/set-path.js +1 -1
- package/dist/set.d.cts +1 -1
- package/dist/set.d.ts +1 -1
- package/dist/set.js +1 -1
- package/dist/shuffle.d.cts +2 -2
- package/dist/shuffle.d.ts +2 -2
- package/dist/shuffle.js +1 -1
- package/dist/sort-by.d.cts +4 -4
- package/dist/sort-by.d.ts +4 -4
- package/dist/sort-by.js +1 -1
- package/dist/sort.d.cts +2 -2
- package/dist/sort.d.ts +2 -2
- package/dist/sort.js +1 -1
- package/dist/sorted-index-by.js +1 -1
- package/dist/sorted-index-with.js +1 -1
- package/dist/sorted-index.js +1 -1
- package/dist/sorted-last-index-by.js +1 -1
- package/dist/sorted-last-index.js +1 -1
- package/dist/splice.js +1 -1
- package/dist/split-at.js +1 -1
- package/dist/split-when.js +1 -1
- package/dist/split.d.cts +8 -8
- package/dist/split.d.cts.map +1 -1
- package/dist/split.d.ts +8 -8
- package/dist/split.d.ts.map +1 -1
- package/dist/split.js.map +1 -1
- package/dist/strict-function-BBgKFNUw.d.ts +26 -0
- package/dist/strict-function-BBgKFNUw.d.ts.map +1 -0
- package/dist/strict-function-CPTwDgnZ.d.cts +26 -0
- package/dist/strict-function-CPTwDgnZ.d.cts.map +1 -0
- package/dist/subtract.js +1 -1
- package/dist/sum-by.d.cts +1 -1
- package/dist/sum-by.d.ts +1 -1
- package/dist/sum-by.js +1 -1
- package/dist/sum.d.cts +1 -1
- package/dist/sum.d.ts +1 -1
- package/dist/sum.js +1 -1
- package/dist/{swap-in-place-COm7qHj4.js → swap-in-place-C_jXKHuD.js} +1 -1
- package/dist/{swap-in-place-COm7qHj4.js.map → swap-in-place-C_jXKHuD.js.map} +1 -1
- package/dist/swap-indices.d.cts +1 -1
- package/dist/swap-indices.d.ts +1 -1
- package/dist/swap-indices.js +1 -1
- package/dist/swap-props.js +1 -1
- package/dist/take-first-by.d.cts +2 -2
- package/dist/take-first-by.d.ts +2 -2
- package/dist/take-first-by.js +1 -1
- package/dist/take-last-while.d.cts +1 -1
- package/dist/take-last-while.d.ts +1 -1
- package/dist/take-last-while.js +1 -1
- package/dist/take-last.d.cts +1 -1
- package/dist/take-last.d.ts +1 -1
- package/dist/take-last.js +1 -1
- package/dist/take-while.d.cts +1 -1
- package/dist/take-while.d.ts +1 -1
- package/dist/take-while.js +1 -1
- package/dist/take.d.cts +1 -1
- package/dist/take.d.ts +1 -1
- package/dist/take.js +1 -1
- package/dist/tap.js +1 -1
- package/dist/times.js +1 -1
- package/dist/to-camel-case.cjs +1 -1
- package/dist/to-camel-case.d.cts +72 -20
- package/dist/to-camel-case.d.cts.map +1 -1
- package/dist/to-camel-case.d.ts +72 -20
- package/dist/to-camel-case.d.ts.map +1 -1
- package/dist/to-camel-case.js +1 -1
- package/dist/to-camel-case.js.map +1 -1
- package/dist/to-kebab-case.cjs +1 -1
- package/dist/to-kebab-case.d.cts +48 -19
- package/dist/to-kebab-case.d.cts.map +1 -1
- package/dist/to-kebab-case.d.ts +48 -19
- package/dist/to-kebab-case.d.ts.map +1 -1
- package/dist/to-kebab-case.js +1 -1
- package/dist/to-kebab-case.js.map +1 -1
- package/dist/to-lower-case.cjs +1 -0
- package/dist/to-lower-case.d.cts +51 -0
- package/dist/to-lower-case.d.cts.map +1 -0
- package/dist/to-lower-case.d.ts +51 -0
- package/dist/to-lower-case.d.ts.map +1 -0
- package/dist/to-lower-case.js +2 -0
- package/dist/to-lower-case.js.map +1 -0
- package/dist/{to-single-vYpRavjM.js → to-single-BKYbBic-.js} +1 -1
- package/dist/to-single-BKYbBic-.js.map +1 -0
- package/dist/to-snake-case.cjs +1 -1
- package/dist/to-snake-case.d.cts +48 -19
- package/dist/to-snake-case.d.cts.map +1 -1
- package/dist/to-snake-case.d.ts +48 -19
- package/dist/to-snake-case.d.ts.map +1 -1
- package/dist/to-snake-case.js +1 -1
- package/dist/to-snake-case.js.map +1 -1
- package/dist/{to-string-Se4KcQka.d.cts → to-string-DkC3zRUJ.d.cts} +1 -1
- package/dist/to-string-DkC3zRUJ.d.cts.map +1 -0
- package/dist/{to-string-C6_OnZ6e.d.ts → to-string-YIFx2KS6.d.ts} +1 -1
- package/dist/to-string-YIFx2KS6.d.ts.map +1 -0
- package/dist/to-title-case.cjs +1 -0
- package/dist/to-title-case.d.cts +86 -0
- package/dist/to-title-case.d.cts.map +1 -0
- package/dist/to-title-case.d.ts +86 -0
- package/dist/to-title-case.d.ts.map +1 -0
- package/dist/to-title-case.js +2 -0
- package/dist/to-title-case.js.map +1 -0
- package/dist/to-upper-case.cjs +1 -0
- package/dist/to-upper-case.d.cts +51 -0
- package/dist/to-upper-case.d.cts.map +1 -0
- package/dist/to-upper-case.d.ts +51 -0
- package/dist/to-upper-case.d.ts.map +1 -0
- package/dist/to-upper-case.js +2 -0
- package/dist/to-upper-case.js.map +1 -0
- package/dist/{tuple-parts-Bhbm4jiu.d.ts → tuple-parts-BYI4o8Vk.d.ts} +8 -8
- package/dist/{tuple-parts-Bhbm4jiu.d.ts.map → tuple-parts-BYI4o8Vk.d.ts.map} +1 -1
- package/dist/{tuple-parts-BJQEORxn.d.cts → tuple-parts-CzQQupgi.d.cts} +8 -8
- package/dist/{tuple-parts-BJQEORxn.d.cts.map → tuple-parts-CzQQupgi.d.cts.map} +1 -1
- package/dist/uncapitalize.cjs +1 -0
- package/dist/uncapitalize.d.cts +51 -0
- package/dist/uncapitalize.d.cts.map +1 -0
- package/dist/uncapitalize.d.ts +51 -0
- package/dist/uncapitalize.d.ts.map +1 -0
- package/dist/uncapitalize.js +2 -0
- package/dist/uncapitalize.js.map +1 -0
- package/dist/unique-by.d.cts +2 -2
- package/dist/unique-by.d.ts +2 -2
- package/dist/unique-by.js +1 -1
- package/dist/unique-with.d.cts +2 -2
- package/dist/unique-with.d.ts +2 -2
- package/dist/unique-with.js +1 -1
- package/dist/unique.d.cts +2 -2
- package/dist/unique.d.ts +2 -2
- package/dist/unique.js +1 -1
- package/dist/{upsert-prop-__xTQQ07.d.ts → upsert-prop-0hwik6JJ.d.cts} +2 -3
- package/dist/{upsert-prop-__xTQQ07.d.ts.map → upsert-prop-0hwik6JJ.d.cts.map} +1 -1
- package/dist/{upsert-prop-P-aJDDII.d.cts → upsert-prop-_NpaZwm4.d.ts} +2 -3
- package/dist/upsert-prop-_NpaZwm4.d.ts.map +1 -0
- package/dist/{utility-evaluators-BwYLtB8b.js → utility-evaluators-Boc-TMbq.js} +1 -1
- package/dist/{utility-evaluators-BwYLtB8b.js.map → utility-evaluators-Boc-TMbq.js.map} +1 -1
- package/dist/values.d.cts +2 -2
- package/dist/values.d.ts +2 -2
- package/dist/values.js +1 -1
- package/dist/{with-precision-CWWiMmxZ.js → with-precision-CQ90Walk.js} +1 -1
- package/dist/{with-precision-CWWiMmxZ.js.map → with-precision-CQ90Walk.js.map} +1 -1
- package/dist/words-DQCM5umD.js +3 -0
- package/dist/words-DQCM5umD.js.map +1 -0
- package/dist/words-DRQKxzLU.cjs +2 -0
- package/dist/zip-with.d.cts +1 -1
- package/dist/zip-with.d.ts +1 -1
- package/dist/zip-with.js +1 -1
- package/dist/zip.d.cts +1 -1
- package/dist/zip.d.ts +1 -1
- package/dist/zip.js +1 -1
- package/package.json +4 -6
- package/dist/case.transform-CCMWrBmz.js +0 -2
- package/dist/case.transform-CCMWrBmz.js.map +0 -1
- package/dist/case.transform-FNx2XsC3.cjs +0 -1
- package/dist/case.types-BxuWJgN1.d.cts +0 -19
- package/dist/case.types-BxuWJgN1.d.cts.map +0 -1
- package/dist/case.types-CVfGg990.d.ts +0 -19
- package/dist/case.types-CVfGg990.d.ts.map +0 -1
- package/dist/curry-B20xQM_9.d.cts.map +0 -1
- package/dist/curry-BcQ8Up1_.js.map +0 -1
- package/dist/curry-d8_p_Jzt.d.ts.map +0 -1
- package/dist/dist-CUT1dnRU.js +0 -343
- package/dist/dist-CUT1dnRU.js.map +0 -1
- package/dist/dist-CiyBKPT6.cjs +0 -343
- package/dist/filtered-array-D_RqQ8tX.d.cts +0 -13
- package/dist/filtered-array-D_RqQ8tX.d.cts.map +0 -1
- package/dist/filtered-array-Yij-X3T4.d.ts +0 -13
- package/dist/filtered-array-Yij-X3T4.d.ts.map +0 -1
- package/dist/has-at-least-DyIhWZJH.js +0 -2
- package/dist/is-emptyish-CIxZzxxz.d.ts.map +0 -1
- package/dist/is-emptyish-oX5mpcfW.d.cts.map +0 -1
- package/dist/is-union-Bu19sEkP.d.ts +0 -8
- package/dist/is-union-Bu19sEkP.d.ts.map +0 -1
- package/dist/is-union-Dp9mCo1b.d.cts +0 -8
- package/dist/is-union-Dp9mCo1b.d.cts.map +0 -1
- package/dist/iterable-container-BdjPuIjL.d.ts.map +0 -1
- package/dist/lazy-data-last-impl-DW5TXWv8.js.map +0 -1
- package/dist/mapped-LCblUtt3.d.ts.map +0 -1
- package/dist/mapped-m3FRlUOA.d.cts.map +0 -1
- package/dist/no-infer-BIHbaQcD.d.ts +0 -5
- package/dist/no-infer-BIHbaQcD.d.ts.map +0 -1
- package/dist/no-infer-BVbyldno.d.cts +0 -5
- package/dist/no-infer-BVbyldno.d.cts.map +0 -1
- package/dist/non-empty-array-CFG7wGD-.d.cts.map +0 -1
- package/dist/non-empty-array-DXkY7ynY.d.ts.map +0 -1
- package/dist/omit.d.cts.map +0 -1
- package/dist/omit.d.ts.map +0 -1
- package/dist/partial-array-CeoXpbZU.d.ts.map +0 -1
- package/dist/partial-array-CoV_xxyQ.d.cts.map +0 -1
- package/dist/pipe-BGazHnZ_.js.map +0 -1
- package/dist/prop-C3rYih5m.d.cts.map +0 -1
- package/dist/prop-DulcbWGG.d.ts.map +0 -1
- package/dist/reordered-array-B2klHneX.d.ts.map +0 -1
- package/dist/reordered-array-BsUBOnYh.d.cts.map +0 -1
- package/dist/to-capital-case.cjs +0 -1
- package/dist/to-capital-case.d.cts +0 -31
- package/dist/to-capital-case.d.cts.map +0 -1
- package/dist/to-capital-case.d.ts +0 -31
- package/dist/to-capital-case.d.ts.map +0 -1
- package/dist/to-capital-case.js +0 -2
- package/dist/to-capital-case.js.map +0 -1
- package/dist/to-constant-case.cjs +0 -1
- package/dist/to-constant-case.d.cts +0 -31
- package/dist/to-constant-case.d.cts.map +0 -1
- package/dist/to-constant-case.d.ts +0 -31
- package/dist/to-constant-case.d.ts.map +0 -1
- package/dist/to-constant-case.js +0 -2
- package/dist/to-constant-case.js.map +0 -1
- package/dist/to-no-case.cjs +0 -1
- package/dist/to-no-case.d.cts +0 -31
- package/dist/to-no-case.d.cts.map +0 -1
- package/dist/to-no-case.d.ts +0 -31
- package/dist/to-no-case.d.ts.map +0 -1
- package/dist/to-no-case.js +0 -2
- package/dist/to-no-case.js.map +0 -1
- package/dist/to-pascal-case.cjs +0 -1
- package/dist/to-pascal-case.d.cts +0 -32
- package/dist/to-pascal-case.d.cts.map +0 -1
- package/dist/to-pascal-case.d.ts +0 -32
- package/dist/to-pascal-case.d.ts.map +0 -1
- package/dist/to-pascal-case.js +0 -2
- package/dist/to-pascal-case.js.map +0 -1
- package/dist/to-pascal-snake-case.cjs +0 -1
- package/dist/to-pascal-snake-case.d.cts +0 -31
- package/dist/to-pascal-snake-case.d.cts.map +0 -1
- package/dist/to-pascal-snake-case.d.ts +0 -31
- package/dist/to-pascal-snake-case.d.ts.map +0 -1
- package/dist/to-pascal-snake-case.js +0 -2
- package/dist/to-pascal-snake-case.js.map +0 -1
- package/dist/to-sentence-case.cjs +0 -1
- package/dist/to-sentence-case.d.cts +0 -31
- package/dist/to-sentence-case.d.cts.map +0 -1
- package/dist/to-sentence-case.d.ts +0 -31
- package/dist/to-sentence-case.d.ts.map +0 -1
- package/dist/to-sentence-case.js +0 -2
- package/dist/to-sentence-case.js.map +0 -1
- package/dist/to-single-vYpRavjM.js.map +0 -1
- package/dist/to-string-C6_OnZ6e.d.ts.map +0 -1
- package/dist/to-string-Se4KcQka.d.cts.map +0 -1
- package/dist/to-train-case.cjs +0 -1
- package/dist/to-train-case.d.cts +0 -31
- package/dist/to-train-case.d.cts.map +0 -1
- package/dist/to-train-case.d.ts +0 -31
- package/dist/to-train-case.d.ts.map +0 -1
- package/dist/to-train-case.js +0 -2
- package/dist/to-train-case.js.map +0 -1
- package/dist/upsert-prop-P-aJDDII.d.cts.map +0 -1
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
type NTuple<T, N extends number, Result extends Array<unknown> = []> = Result['length'] extends N ? Result : NTuple<T, N, [...Result, T]>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { NTuple as t };
|
|
12
|
-
//# sourceMappingURL=n-tuple-
|
|
12
|
+
//# sourceMappingURL=n-tuple-BkMobYQ9.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"n-tuple-
|
|
1
|
+
{"version":3,"file":"n-tuple-BkMobYQ9.d.cts","names":[],"sources":["../src/internal/types/n-tuple.ts"],"sourcesContent":[],"mappings":";;AAOA;;;;;;AAIoD,KAJxC,MAIwC,CAAA,CAAA,EAAA,UAAA,MAAA,EAAA,eADnC,KACmC,CAAA,OAAA,CAAA,GAAA,EAAA,CAAA,GAAhD,MAAgD,CAAA,QAAA,CAAA,SAAvB,CAAuB,GAAnB,MAAmB,GAAV,MAAU,CAAH,CAAG,EAAA,CAAA,EAAA,CAAA,GAAO,MAAP,EAAe,CAAf,CAAA,CAAA"}
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
type NTuple<T, N extends number, Result extends Array<unknown> = []> = Result['length'] extends N ? Result : NTuple<T, N, [...Result, T]>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { NTuple as t };
|
|
12
|
-
//# sourceMappingURL=n-tuple-
|
|
12
|
+
//# sourceMappingURL=n-tuple-zo5g_mSL.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"n-tuple-
|
|
1
|
+
{"version":3,"file":"n-tuple-zo5g_mSL.d.ts","names":[],"sources":["../src/internal/types/n-tuple.ts"],"sourcesContent":[],"mappings":";;AAOA;;;;;;AAIoD,KAJxC,MAIwC,CAAA,CAAA,EAAA,UAAA,MAAA,EAAA,eADnC,KACmC,CAAA,OAAA,CAAA,GAAA,EAAA,CAAA,GAAhD,MAAgD,CAAA,QAAA,CAAA,SAAvB,CAAuB,GAAnB,MAAmB,GAAV,MAAU,CAAH,CAAG,EAAA,CAAA,EAAA,CAAA,GAAO,MAAP,EAAe,CAAf,CAAA,CAAA"}
|
|
@@ -12,4 +12,4 @@ import { IsAny } from "type-fest";
|
|
|
12
12
|
type NarrowedTo<T, Base> = Extract<T, Base> extends never ? Base : IsAny<T> extends true ? Base : Extract<T, Base>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { NarrowedTo as t };
|
|
15
|
-
//# sourceMappingURL=narrowed-to-
|
|
15
|
+
//# sourceMappingURL=narrowed-to-B7tkuY2k.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"narrowed-to-
|
|
1
|
+
{"version":3,"file":"narrowed-to-B7tkuY2k.d.ts","names":[],"sources":["../src/internal/types/narrowed-to.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;;;;;AAGY,KAHA,UAGA,CAAA,CAAA,EAAA,IAAA,CAAA,GAFR,OAEQ,CAFA,CAEA,EAFG,IAEH,CAAA,SAAA,KAAA,GADN,IACM,GAAN,KAAM,CAAA,CAAA,CAAA,SAAA,IAAA,GACJ,IADI,GAEJ,OAFI,CAEI,CAFJ,EAEO,IAFP,CAAA"}
|
|
@@ -12,4 +12,4 @@ import { IsAny } from "type-fest";
|
|
|
12
12
|
type NarrowedTo<T, Base> = Extract<T, Base> extends never ? Base : IsAny<T> extends true ? Base : Extract<T, Base>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { NarrowedTo as t };
|
|
15
|
-
//# sourceMappingURL=narrowed-to-
|
|
15
|
+
//# sourceMappingURL=narrowed-to-D_6H-aZW.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"narrowed-to-
|
|
1
|
+
{"version":3,"file":"narrowed-to-D_6H-aZW.d.cts","names":[],"sources":["../src/internal/types/narrowed-to.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;;;;;AAGY,KAHA,UAGA,CAAA,CAAA,EAAA,IAAA,CAAA,GAFR,OAEQ,CAFA,CAEA,EAFG,IAEH,CAAA,SAAA,KAAA,GADN,IACM,GAAN,KAAM,CAAA,CAAA,CAAA,SAAA,IAAA,GACJ,IADI,GAEJ,OAFI,CAEI,CAFJ,EAEO,IAFP,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-empty-array-DHAKSw6t.d.ts","names":[],"sources":["../src/internal/types/non-empty-array.ts"],"sourcesContent":[],"mappings":";KAAY,oBAAoB,MAAM,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-empty-array-NDjbHRjk.d.cts","names":[],"sources":["../src/internal/types/non-empty-array.ts"],"sourcesContent":[],"mappings":";KAAY,oBAAoB,MAAM,MAAM"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./curry-order-rules-
|
|
2
|
-
//# sourceMappingURL=nth-by-
|
|
1
|
+
import{n as e}from"./curry-order-rules-DwrF-_P1.js";import{t}from"./swap-in-place-C_jXKHuD.js";function n(e,t,n){return t<0||t>=e.length?void 0:r([...e],0,e.length-1,t,n)}function r(e,t,n,a,o){if(t===n)return e[t];let s=i(e,t,n,o);return a===s?e[a]:r(e,a<s?t:s+1,a<s?s-1:n,a,o)}function i(e,n,r,i){let a=e[r],o=n;for(let s=n;s<r;s++)i(e[s],a)<0&&(t(e,o,s),o+=1);return t(e,o,r),o}function a(...t){return e(o,t)}function o(e,t,r){return n(e,r>=0?r:e.length+r,t)}export{a as t};
|
|
2
|
+
//# sourceMappingURL=nth-by-JP3-Htbo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nth-by-
|
|
1
|
+
{"version":3,"file":"nth-by-JP3-Htbo.js","names":[],"sources":["../src/internal/quick-select.ts","../src/nth-by.ts"],"sourcesContent":["/**\n * A simple implementation of the *QuickSelect* algorithm.\n *\n * @see https://en.wikipedia.org/wiki/Quickselect\n */\n\nimport type { CompareFunction } from './types/compare-function';\nimport { swapInPlace } from './swap-in-place';\n\n/**\n * Perform QuickSelect on the given data. Notice that the data would be cloned\n * shallowly so that it could be mutated in-place, and then discarded once the\n * algorithm is done. This means that running this function multiple times on\n * the same array might be slower then sorting the array before.\n *\n * @param data - The data to perform the selection on.\n * @param index - The index of the item we are looking for.\n * @param compareFn - The compare function to use for sorting.\n * @returns The item at the given index, or `undefined` if the index is out-of-\n * bounds.\n */\nexport function quickSelect<T>(\n data: ReadonlyArray<T>,\n index: number,\n compareFn: CompareFunction<T>,\n): T | undefined {\n return index < 0 || index >= data.length\n // Quickselect doesn't work with out-of-bound indices\n ? undefined\n : quickSelectImplementation(\n // We need to clone the array because quickSelect mutates it in-place.\n [...data],\n 0 /* left */,\n data.length - 1 /* right */,\n index,\n compareFn,\n );\n}\n\n/**\n * The actual implementation, called recursively.\n */\nfunction quickSelectImplementation<T>(\n data: Array<T>,\n left: number,\n right: number,\n index: number,\n compareFn: CompareFunction<T>,\n): T {\n if (left === right) {\n return data[left]!;\n }\n\n const pivotIndex = partition(data, left, right, compareFn);\n\n return index === pivotIndex\n // Once a pivot is chosen it's location is final, so if it matches the\n // index we found out item!\n ? data[index]!\n : quickSelectImplementation(\n data,\n // We continue by recursing into the partition where index would be\n index < pivotIndex ? left : pivotIndex + 1,\n index < pivotIndex ? pivotIndex - 1 : right,\n index,\n compareFn,\n );\n}\n\nfunction partition<T>(\n data: Array<T>,\n left: number,\n right: number,\n compareFn: CompareFunction<T>,\n): number {\n const pivot = data[right]!;\n\n let i = left;\n for (let j = left; j < right; j++) {\n if (compareFn(data[j]!, pivot) < 0) {\n // Move items smaller then the pivot to the start of the array.\n swapInPlace(data, i, j);\n i += 1;\n }\n }\n\n swapInPlace(data, i, right);\n\n // The location of the pivot by the end of the partition function.\n return i;\n}\n","import type { OrderRule } from './internal/curry-order-rules';\nimport type { CompareFunction } from './internal/types/compare-function';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NonEmptyArray } from './internal/types/non-empty-array';\nimport {\n curryOrderRulesWithArgument,\n\n} from './internal/curry-order-rules';\nimport { quickSelect } from './internal/quick-select';\n\n/**\n * Retrieves the element that would be at the given index if the array were sorted according to specified rules. This function uses the *QuickSelect* algorithm running at an average complexity of *O(n)*. Semantically it is equivalent to `sortBy(data, ...rules).at(index)` which would run at *O(nlogn)*.\n *\n * See also `firstBy` which provides an even more efficient algorithm and a stricter return type, but only for `index === 0`. See `takeFirstBy` to get all the elements up to and including `index`.\n *\n * @param data - The input array.\n * @param index - The zero-based index for selecting the element in the sorted order. Negative indices count backwards from the end.\n * @param rules - A variadic array of order rules defining the sorting criteria. Each order rule is a projection function that extracts a comparable value from the data. Sorting is based on these extracted values using the native `<` and `>` operators. Earlier rules take precedence over later ones. Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns The element at the specified index in the sorted order, or `undefined` if the index is out of bounds.\n * @signature\n * P.nthBy(data, index, ...rules);\n * @example\n * P.nthBy([2,1,4,5,3,], 2, identity()); // => 3\n * @dataFirst\n * @category Array\n */\nexport function nthBy<T extends IterableContainer>(\n data: T,\n index: number,\n ...rules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): T[number] | undefined;\n\n/**\n * Retrieves the element that would be at the given index if the array were sorted according to specified rules. This function uses the *QuickSelect* algorithm running at an average complexity of *O(n)*. Semantically it is equivalent to `sortBy(data, ...rules)[index]` which would run at *O(nlogn)*.\n *\n * See also `firstBy` which provides an even more efficient algorithm and a stricter return type, but only for `index === 0`. See `takeFirstBy` to get all the elements up to and including `index`.\n *\n * @param index - The zero-based index for selecting the element in the sorted order. Negative indices count backwards from the end.\n * @param rules - A variadic array of order rules defining the sorting criteria. Each order rule is a projection function that extracts a comparable value from the data. Sorting is based on these extracted values using the native `<` and `>` operators. Earlier rules take precedence over later ones. Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns The element at the specified index in the sorted order, or `undefined` if the index is out of bounds.\n * @signature\n * P.nthBy(index, ...rules)(data);\n * @example\n * P.pipe([2,1,4,5,3,], P.nthBy(2, identity())); // => 3\n * @dataLast\n * @category Array\n */\nexport function nthBy<T extends IterableContainer>(\n index: number,\n ...rules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): (data: T) => T[number] | undefined;\n\nexport function nthBy(...args: ReadonlyArray<unknown>): unknown {\n return curryOrderRulesWithArgument(nthByImplementation, args);\n}\n\nfunction nthByImplementation<T>(\n data: ReadonlyArray<T>,\n compareFn: CompareFunction<T>,\n index: number,\n): T | undefined {\n return quickSelect(\n data,\n // Allow negative indices gracefully\n index >= 0 ? index : data.length + index,\n compareFn,\n );\n}\n"],"mappings":"+FAqBA,SAAgB,EACd,EACA,EACA,EACe,CACf,OAAO,EAAQ,GAAK,GAAS,EAAK,OAE9B,IAAA,GACA,EAEE,CAAC,GAAG,EAAK,CACT,EACA,EAAK,OAAS,EACd,EACA,EACD,CAMP,SAAS,EACP,EACA,EACA,EACA,EACA,EACG,CACH,GAAI,IAAS,EACX,OAAO,EAAK,GAGd,IAAM,EAAa,EAAU,EAAM,EAAM,EAAO,EAAU,CAE1D,OAAO,IAAU,EAGb,EAAK,GACL,EACE,EAEA,EAAQ,EAAa,EAAO,EAAa,EACzC,EAAQ,EAAa,EAAa,EAAI,EACtC,EACA,EACD,CAGP,SAAS,EACP,EACA,EACA,EACA,EACQ,CACR,IAAM,EAAQ,EAAK,GAEf,EAAI,EACR,IAAK,IAAI,EAAI,EAAM,EAAI,EAAO,IACxB,EAAU,EAAK,GAAK,EAAM,CAAG,IAE/B,EAAY,EAAM,EAAG,EAAE,CACvB,GAAK,GAOT,OAHA,EAAY,EAAM,EAAG,EAAM,CAGpB,ECrCT,SAAgB,EAAM,GAAG,EAAuC,CAC9D,OAAO,EAA4B,EAAqB,EAAK,CAG/D,SAAS,EACP,EACA,EACA,EACe,CACf,OAAO,EACL,EAEA,GAAS,EAAI,EAAQ,EAAK,OAAS,EACnC,EACD"}
|
package/dist/nth-by.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as NonEmptyArray } from "./non-empty-array-
|
|
3
|
-
import { t as OrderRule } from "./curry-order-rules-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
|
+
import { t as NonEmptyArray } from "./non-empty-array-NDjbHRjk.cjs";
|
|
3
|
+
import { t as OrderRule } from "./curry-order-rules-BoF09Dq2.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/nth-by.d.ts
|
|
6
6
|
|
package/dist/nth-by.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
2
|
-
import { t as NonEmptyArray } from "./non-empty-array-
|
|
3
|
-
import { t as OrderRule } from "./curry-order-rules-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
|
+
import { t as NonEmptyArray } from "./non-empty-array-DHAKSw6t.js";
|
|
3
|
+
import { t as OrderRule } from "./curry-order-rules-CoO4bk5I.js";
|
|
4
4
|
|
|
5
5
|
//#region src/nth-by.d.ts
|
|
6
6
|
|
package/dist/nth-by.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./nth-by-
|
|
1
|
+
import{t as e}from"./nth-by-JP3-Htbo.js";export{e as nthBy};
|
package/dist/obj-of.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){return{[t]:e}}export{t as objOf};
|
|
2
2
|
//# sourceMappingURL=obj-of.js.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { t as TupleParts } from "./tuple-parts-BYI4o8Vk.js";
|
|
2
|
+
import { n as IsBounded, t as IsBoundedRecord } from "./is-bounded-record-Bx4n8QB0.js";
|
|
3
|
+
import { t as PartitionByUnion } from "./partition-by-union-DnfiiEMU.js";
|
|
4
|
+
import { EmptyObject, IsNever, KeysOfUnion } from "type-fest";
|
|
5
|
+
|
|
6
|
+
//#region src/internal/types/simplified-writable.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type-fest's `Writable` acts funny for complex types involving intersections
|
|
10
|
+
* that redefine the same key, because of how it reconstructs the output type
|
|
11
|
+
* keys eagerly. Instead, this type is based on the `Simplify` utility type
|
|
12
|
+
* which avoids this problem.
|
|
13
|
+
*
|
|
14
|
+
* @see Writable
|
|
15
|
+
* @see Simplify
|
|
16
|
+
*/
|
|
17
|
+
type SimplifiedWritable<T> = { -readonly [KeyType in keyof T]: T[KeyType] } & {};
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/omit.d.ts
|
|
20
|
+
type OmitFromArray<T, Keys extends ReadonlyArray<PropertyKey>> = T extends unknown ? Keys extends unknown ? SimplifiedWritable<IsNever<Extract<Keys[number], keyof T>> extends true ? T : IsBoundedRecord<T> extends true ? OmitBounded<T, Keys> : OmitUnbounded<T, Keys>> : never : never;
|
|
21
|
+
type OmitBounded<T, Keys extends ReadonlyArray<PropertyKey>> = FixEmpty<Omit<T, Keys[number]>> & Partial<Pick<T, Exclude<PartitionByUnion<TupleParts<Keys>['required']>['union'] | TupleParts<Keys>['optional'][number] | TupleParts<Keys>['item'] | PartitionByUnion<TupleParts<Keys>['suffix']>['union'], PartitionByUnion<TupleParts<Keys>['required']>['singular'] | PartitionByUnion<TupleParts<Keys>['suffix']>['singular']>>>;
|
|
22
|
+
/**
|
|
23
|
+
* The built-in `Omit` type doesn't handle unbounded records correctly! When
|
|
24
|
+
* omitting an unbounded key the result should be untouched as we can't tell
|
|
25
|
+
* what got removed, and can't represent an object that had "something" removed
|
|
26
|
+
* from it, but instead it returns `{}`(?!) The same thing applies when a key
|
|
27
|
+
* is only optionally omitted for the same reasons. This is why we don't use
|
|
28
|
+
* `Omit` at all for the unbounded case.
|
|
29
|
+
*
|
|
30
|
+
* @see https://www.typescriptlang.org/play/?#code/C4TwDgpgBAqgdgIwPYFc4BMLqgXigeQFsBLYAHgCUIBjJAJ3TIGdg7i4BzAGigCIALCABshSXgD4eLNp3EBuAFAB6JVDUA9APxA
|
|
31
|
+
*/
|
|
32
|
+
type OmitUnbounded<T, Keys extends ReadonlyArray<PropertyKey>> = T & Record<Bounded<PartitionByUnion<TupleParts<Keys>['required']>['singular'] | PartitionByUnion<TupleParts<Keys>['suffix']>['singular']>, never>;
|
|
33
|
+
/**
|
|
34
|
+
* When `Omit` omits **all** keys from a bounded record it results in `{}` which
|
|
35
|
+
* doesn't match what we'd expect to be returned in terms of a useful type as
|
|
36
|
+
* the output of `Omit`.
|
|
37
|
+
*/
|
|
38
|
+
type FixEmpty<T> = IsNever<keyof T> extends true ? EmptyObject : T;
|
|
39
|
+
/**
|
|
40
|
+
* Filter a union of types, leaving only those that are bounded. e.g.,
|
|
41
|
+
* `Bounded<"a" | number>` results in `"a"`.
|
|
42
|
+
*/
|
|
43
|
+
type Bounded<T> = T extends unknown ? IsBounded<T> extends true ? T : never : never;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a partial copy of an object omitting the keys specified.
|
|
46
|
+
*
|
|
47
|
+
* @param keys - The property names.
|
|
48
|
+
* @signature
|
|
49
|
+
* P.omit(keys)(obj);
|
|
50
|
+
* @example
|
|
51
|
+
* P.pipe({ a: 1, b: 2, c: 3, d: 4 }, P.omit(['a', 'd'])) // => { b: 2, c: 3 }
|
|
52
|
+
* @dataLast
|
|
53
|
+
* @category Object
|
|
54
|
+
*/
|
|
55
|
+
declare function omit<T, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(keys: Keys): (data: T) => OmitFromArray<T, Keys>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns a partial copy of an object omitting the keys specified.
|
|
58
|
+
*
|
|
59
|
+
* @param data - The object.
|
|
60
|
+
* @param keys - The property names.
|
|
61
|
+
* @signature
|
|
62
|
+
* P.omit(obj, keys);
|
|
63
|
+
* @example
|
|
64
|
+
* P.omit({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']) // => { b: 2, c: 3 }
|
|
65
|
+
* @dataFirst
|
|
66
|
+
* @category Object
|
|
67
|
+
*/
|
|
68
|
+
declare function omit<T, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(data: T, keys: Keys): OmitFromArray<T, Keys>;
|
|
69
|
+
//#endregion
|
|
70
|
+
export { omit as t };
|
|
71
|
+
//# sourceMappingURL=omit-DI8DRDHj.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omit-DI8DRDHj.d.ts","names":[],"sources":["../src/internal/types/simplified-writable.ts","../src/omit.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;AASA;;;AACoC,KADxB,kBACwB,CAAA,CAAA,CAAA,GAAA,wBAAO,MAAb,CAAa,GAAT,CAAS,CAAP,OAAO,CAAA;;;AAD3C,KCAK,aDAO,CAAA,CAAA,EAAA,aCAuB,aDAL,CCAmB,WDAnB,CAAA,CAAA,GCE1B,CDF0B,SAAA,OAAA,GCGxB,IDHwB,SAAA,OAAA,GCKtB,kBDLsB,CCMtB,ODNsB,CCMd,ODNc,CCMN,IDNM,CAAA,MAAA,CAAA,EAAA,MCMc,CDNd,CAAA,CAAA,SAAA,IAAA,GCSlB,CDTkB,GCUlB,eDVkB,CCUF,CDVE,CAAA,SAAA,IAAA,GCWhB,WDXgB,CCWJ,CDXI,ECWD,IDXC,CAAA,GCYhB,aDZgB,CCYF,CDZE,ECYC,IDZD,CAAA,CAAA,GAAA,KAAA,GAAA,KAAA;KCiBzB,WDhByB,CAAA,CAAA,EAAA,aCgBG,aDhBH,CCgBiB,WDhBjB,CAAA,CAAA,GCoB1B,QDpB0B,CCoBjB,IDpBiB,CCoBZ,CDpBY,ECoBT,IDpBS,CAAA,MAAA,CAAA,CAAA,CAAA,GCwBxB,ODxBwB,CCyBxB,IDzBwB,CC0BtB,CD1BsB,EC2BtB,OD3BsB,CCgClB,gBDhCkB,CCgCD,UDhCC,CCgCU,IDhCV,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,OAAA,CAAA,GCiClB,UDjCkB,CCiCP,IDjCO,CAAA,CAAA,UAAA,CAAA,CAAA,MAAA,CAAA,GCkClB,UDlCkB,CCkCP,IDlCO,CAAA,CAAA,MAAA,CAAA,GCmClB,gBDnCkB,CCmCD,UDnCC,CCmCU,IDnCV,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,OAAA,CAAA,ECuClB,gBDvCkB,CCuCD,UDvCC,CCuCU,IDvCV,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,UAAA,CAAA,GCwClB,gBDxCkB,CCwCD,UDxCC,CCwCU,IDxCV,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;ACLiC;;;;KA4D1D,aArDC,CAAA,CAAA,EAAA,aAqD6B,aArD7B,CAqD2C,WArD3C,CAAA,CAAA,GAqD2D,CArD3D,GAyDF,MAzDE,CA0DF,OA1DE,CA2DE,gBA3DF,CA2DmB,UA3DnB,CA2D8B,IA3D9B,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,UAAA,CAAA,GA4DE,gBA5DF,CA4DmB,UA5DnB,CA4D8B,IA5D9B,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,UAAA,CAAA,CAAA,EAAA,KAAA,CAAA;;;;;;KAsED,QA/DuB,CAAA,CAAA,CAAA,GA+DT,OA/DS,CAAA,MA+DK,CA/DL,CAAA,SAAA,IAAA,GA+DuB,WA/DvB,GA+DqC,CA/DrC;;;;;KAqEvB,OAnEuB,CAAA,CAAA,CAAA,GAmEV,CAnEU,SAAA,OAAA,GAoExB,SApEwB,CAoEd,CApEc,CAAA,SAAA,IAAA,GAqEtB,CArEsB,GAAA,KAAA,GAAA,KAAA;;;;;AAPF;;;;;;;AAsBlB,iBAqEQ,IArER,CAAA,CAAA,EAAA,mBAqEmC,aArEnC,CAqEiD,WArEjD,CAqE6D,CArE7D,CAAA,CAAA,CAAA,CAAA,IAAA,EAsEA,IAtEA,CAAA,EAAA,CAAA,IAAA,EAuEE,CAvEF,EAAA,GAuEQ,aAvER,CAuEsB,CAvEtB,EAuEyB,IAvEzB,CAAA;;;;;;;;;;;;;AAaI,iBAwEI,IAxEJ,CAAA,CAAA,EAAA,mBAwE+B,aAxE/B,CAwE6C,WAxE7C,CAwEyD,CAxEzD,CAAA,CAAA,CAAA,CAAA,IAAA,EAyEJ,CAzEI,EAAA,IAAA,EA0EJ,IA1EI,CAAA,EA2ET,aA3ES,CA2EK,CA3EL,EA2EQ,IA3ER,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { t as TupleParts } from "./tuple-parts-CzQQupgi.cjs";
|
|
2
|
+
import { n as IsBounded, t as IsBoundedRecord } from "./is-bounded-record-DV6ZQk9H.cjs";
|
|
3
|
+
import { t as PartitionByUnion } from "./partition-by-union-BztEpKVh.cjs";
|
|
4
|
+
import { EmptyObject, IsNever, KeysOfUnion } from "type-fest";
|
|
5
|
+
|
|
6
|
+
//#region src/internal/types/simplified-writable.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type-fest's `Writable` acts funny for complex types involving intersections
|
|
10
|
+
* that redefine the same key, because of how it reconstructs the output type
|
|
11
|
+
* keys eagerly. Instead, this type is based on the `Simplify` utility type
|
|
12
|
+
* which avoids this problem.
|
|
13
|
+
*
|
|
14
|
+
* @see Writable
|
|
15
|
+
* @see Simplify
|
|
16
|
+
*/
|
|
17
|
+
type SimplifiedWritable<T> = { -readonly [KeyType in keyof T]: T[KeyType] } & {};
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/omit.d.ts
|
|
20
|
+
type OmitFromArray<T, Keys extends ReadonlyArray<PropertyKey>> = T extends unknown ? Keys extends unknown ? SimplifiedWritable<IsNever<Extract<Keys[number], keyof T>> extends true ? T : IsBoundedRecord<T> extends true ? OmitBounded<T, Keys> : OmitUnbounded<T, Keys>> : never : never;
|
|
21
|
+
type OmitBounded<T, Keys extends ReadonlyArray<PropertyKey>> = FixEmpty<Omit<T, Keys[number]>> & Partial<Pick<T, Exclude<PartitionByUnion<TupleParts<Keys>['required']>['union'] | TupleParts<Keys>['optional'][number] | TupleParts<Keys>['item'] | PartitionByUnion<TupleParts<Keys>['suffix']>['union'], PartitionByUnion<TupleParts<Keys>['required']>['singular'] | PartitionByUnion<TupleParts<Keys>['suffix']>['singular']>>>;
|
|
22
|
+
/**
|
|
23
|
+
* The built-in `Omit` type doesn't handle unbounded records correctly! When
|
|
24
|
+
* omitting an unbounded key the result should be untouched as we can't tell
|
|
25
|
+
* what got removed, and can't represent an object that had "something" removed
|
|
26
|
+
* from it, but instead it returns `{}`(?!) The same thing applies when a key
|
|
27
|
+
* is only optionally omitted for the same reasons. This is why we don't use
|
|
28
|
+
* `Omit` at all for the unbounded case.
|
|
29
|
+
*
|
|
30
|
+
* @see https://www.typescriptlang.org/play/?#code/C4TwDgpgBAqgdgIwPYFc4BMLqgXigeQFsBLYAHgCUIBjJAJ3TIGdg7i4BzAGigCIALCABshSXgD4eLNp3EBuAFAB6JVDUA9APxA
|
|
31
|
+
*/
|
|
32
|
+
type OmitUnbounded<T, Keys extends ReadonlyArray<PropertyKey>> = T & Record<Bounded<PartitionByUnion<TupleParts<Keys>['required']>['singular'] | PartitionByUnion<TupleParts<Keys>['suffix']>['singular']>, never>;
|
|
33
|
+
/**
|
|
34
|
+
* When `Omit` omits **all** keys from a bounded record it results in `{}` which
|
|
35
|
+
* doesn't match what we'd expect to be returned in terms of a useful type as
|
|
36
|
+
* the output of `Omit`.
|
|
37
|
+
*/
|
|
38
|
+
type FixEmpty<T> = IsNever<keyof T> extends true ? EmptyObject : T;
|
|
39
|
+
/**
|
|
40
|
+
* Filter a union of types, leaving only those that are bounded. e.g.,
|
|
41
|
+
* `Bounded<"a" | number>` results in `"a"`.
|
|
42
|
+
*/
|
|
43
|
+
type Bounded<T> = T extends unknown ? IsBounded<T> extends true ? T : never : never;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a partial copy of an object omitting the keys specified.
|
|
46
|
+
*
|
|
47
|
+
* @param keys - The property names.
|
|
48
|
+
* @signature
|
|
49
|
+
* P.omit(keys)(obj);
|
|
50
|
+
* @example
|
|
51
|
+
* P.pipe({ a: 1, b: 2, c: 3, d: 4 }, P.omit(['a', 'd'])) // => { b: 2, c: 3 }
|
|
52
|
+
* @dataLast
|
|
53
|
+
* @category Object
|
|
54
|
+
*/
|
|
55
|
+
declare function omit<T, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(keys: Keys): (data: T) => OmitFromArray<T, Keys>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns a partial copy of an object omitting the keys specified.
|
|
58
|
+
*
|
|
59
|
+
* @param data - The object.
|
|
60
|
+
* @param keys - The property names.
|
|
61
|
+
* @signature
|
|
62
|
+
* P.omit(obj, keys);
|
|
63
|
+
* @example
|
|
64
|
+
* P.omit({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']) // => { b: 2, c: 3 }
|
|
65
|
+
* @dataFirst
|
|
66
|
+
* @category Object
|
|
67
|
+
*/
|
|
68
|
+
declare function omit<T, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(data: T, keys: Keys): OmitFromArray<T, Keys>;
|
|
69
|
+
//#endregion
|
|
70
|
+
export { omit as t };
|
|
71
|
+
//# sourceMappingURL=omit-DQiCiWAg.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omit-DQiCiWAg.d.cts","names":[],"sources":["../src/internal/types/simplified-writable.ts","../src/omit.ts"],"sourcesContent":[],"mappings":"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"}
|
package/dist/omit-by.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IsBoundedRecord } from "./is-bounded-record-
|
|
2
|
-
import { t as EnumerableStringKeyOf } from "./enumerable-string-key-of-
|
|
3
|
-
import { t as EnumerableStringKeyedValueOf } from "./enumerable-string-keyed-value-of-
|
|
1
|
+
import { t as IsBoundedRecord } from "./is-bounded-record-DV6ZQk9H.cjs";
|
|
2
|
+
import { t as EnumerableStringKeyOf } from "./enumerable-string-key-of-DhcNc5iz.cjs";
|
|
3
|
+
import { t as EnumerableStringKeyedValueOf } from "./enumerable-string-keyed-value-of-icm2q60J.cjs";
|
|
4
4
|
import { IsNever, Or, Simplify } from "type-fest";
|
|
5
5
|
|
|
6
6
|
//#region src/omit-by.d.ts
|
package/dist/omit-by.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IsBoundedRecord } from "./is-bounded-record-
|
|
2
|
-
import { t as EnumerableStringKeyOf } from "./enumerable-string-key-of-
|
|
3
|
-
import { t as EnumerableStringKeyedValueOf } from "./enumerable-string-keyed-value-of-
|
|
1
|
+
import { t as IsBoundedRecord } from "./is-bounded-record-Bx4n8QB0.js";
|
|
2
|
+
import { t as EnumerableStringKeyOf } from "./enumerable-string-key-of-CZQf3ld_.js";
|
|
3
|
+
import { t as EnumerableStringKeyedValueOf } from "./enumerable-string-keyed-value-of-CRlVAvdp.js";
|
|
4
4
|
import { IsNever, Or, Simplify } from "type-fest";
|
|
5
5
|
|
|
6
6
|
//#region src/omit-by.d.ts
|
package/dist/omit-by.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){let n={...e};for(let[r,i]of Object.entries(n))t(i,r,e)&&delete n[r];return n}export{t as omitBy};
|
|
2
2
|
//# sourceMappingURL=omit-by.js.map
|
package/dist/omit.d.cts
CHANGED
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Returns a partial copy of an object omitting the keys specified.
|
|
4
|
-
*
|
|
5
|
-
* @param propNames - The property names.
|
|
6
|
-
* @signature
|
|
7
|
-
* P.omit(names)(obj);
|
|
8
|
-
* @example
|
|
9
|
-
* P.pipe({ a: 1, b: 2, c: 3, d: 4 }, P.omit(['a', 'd'])) // => { b: 2, c: 3 }
|
|
10
|
-
* @dataLast
|
|
11
|
-
* @category Object
|
|
12
|
-
*/
|
|
13
|
-
declare function omit<T extends object, K extends keyof T>(propNames: ReadonlyArray<K>): (data: T) => Omit<T, K>;
|
|
14
|
-
/**
|
|
15
|
-
* Returns a partial copy of an object omitting the keys specified.
|
|
16
|
-
*
|
|
17
|
-
* @param data - The object.
|
|
18
|
-
* @param propNames - The property names.
|
|
19
|
-
* @signature
|
|
20
|
-
* P.omit(obj, names);
|
|
21
|
-
* @example
|
|
22
|
-
* P.omit({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']) // => { b: 2, c: 3 }
|
|
23
|
-
* @dataFirst
|
|
24
|
-
* @category Object
|
|
25
|
-
*/
|
|
26
|
-
declare function omit<T extends object, K extends keyof T>(data: T, propNames: ReadonlyArray<K>): Omit<T, K>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { omit };
|
|
29
|
-
//# sourceMappingURL=omit.d.cts.map
|
|
1
|
+
import { t as omit } from "./omit-DQiCiWAg.cjs";
|
|
2
|
+
export { omit };
|
package/dist/omit.d.ts
CHANGED
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Returns a partial copy of an object omitting the keys specified.
|
|
4
|
-
*
|
|
5
|
-
* @param propNames - The property names.
|
|
6
|
-
* @signature
|
|
7
|
-
* P.omit(names)(obj);
|
|
8
|
-
* @example
|
|
9
|
-
* P.pipe({ a: 1, b: 2, c: 3, d: 4 }, P.omit(['a', 'd'])) // => { b: 2, c: 3 }
|
|
10
|
-
* @dataLast
|
|
11
|
-
* @category Object
|
|
12
|
-
*/
|
|
13
|
-
declare function omit<T extends object, K extends keyof T>(propNames: ReadonlyArray<K>): (data: T) => Omit<T, K>;
|
|
14
|
-
/**
|
|
15
|
-
* Returns a partial copy of an object omitting the keys specified.
|
|
16
|
-
*
|
|
17
|
-
* @param data - The object.
|
|
18
|
-
* @param propNames - The property names.
|
|
19
|
-
* @signature
|
|
20
|
-
* P.omit(obj, names);
|
|
21
|
-
* @example
|
|
22
|
-
* P.omit({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']) // => { b: 2, c: 3 }
|
|
23
|
-
* @dataFirst
|
|
24
|
-
* @category Object
|
|
25
|
-
*/
|
|
26
|
-
declare function omit<T extends object, K extends keyof T>(data: T, propNames: ReadonlyArray<K>): Omit<T, K>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { omit };
|
|
29
|
-
//# sourceMappingURL=omit.d.ts.map
|
|
1
|
+
import { t as omit } from "./omit-DI8DRDHj.js";
|
|
2
|
+
export { omit };
|
package/dist/omit.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";import{t}from"./has-at-least-Coy9sM-B.js";function n(...t){return e(r,t)}function r(e,n){if(!t(n,1))return{...e};if(!t(n,2)){let{[n[0]]:t,...r}=e;return r}let r={...e};for(let e of n)delete r[e];return r}export{n as omit};
|
|
2
2
|
//# sourceMappingURL=omit.js.map
|
package/dist/omit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omit.js","names":[],"sources":["../src/omit.ts"],"sourcesContent":["import { curry } from './curry';\nimport { hasAtLeast } from './has-at-least';\n\n/**\n * Returns a partial copy of an object omitting the keys specified.\n *\n * @param
|
|
1
|
+
{"version":3,"file":"omit.js","names":[],"sources":["../src/omit.ts"],"sourcesContent":["import type { EmptyObject, IsNever, KeysOfUnion } from 'type-fest';\nimport type { IsBounded } from './internal/types/is-bounded';\nimport type { IsBoundedRecord } from './internal/types/is-bounded-record';\nimport type { PartitionByUnion } from './internal/types/partition-by-union';\nimport type { SimplifiedWritable } from './internal/types/simplified-writable';\nimport type { TupleParts } from './internal/types/tuple-parts';\nimport { curry } from './curry';\nimport { hasAtLeast } from './has-at-least';\n\ntype OmitFromArray<T, Keys extends ReadonlyArray<PropertyKey>>\n // Distribute unions for both object types and key arrays.\n = T extends unknown\n ? Keys extends unknown\n // The output is always writable because we always create a new object!\n ? SimplifiedWritable<\n IsNever<Extract<Keys[number], keyof T>> extends true\n // When none of the keys belong to T we can short-circuit and\n // simply return T as-is because `omit` would do nothing.\n ? T\n : IsBoundedRecord<T> extends true\n ? OmitBounded<T, Keys>\n : OmitUnbounded<T, Keys>\n >\n : never\n : never;\n\ntype OmitBounded<T, Keys extends ReadonlyArray<PropertyKey>>\n // We build our output by first considering any key present in the keys array\n // as being omitted. This object would contain all keys that are unaffected at\n // all by this omit operation.\n = FixEmpty<Omit<T, Keys[number]>>\n // But we might be missing keys that are optional in the keys tuple (and\n // thus might not be removed). Because these keys are optional, their props\n // in the output also need to be optional.\n & Partial<\n Pick<\n T,\n Exclude<\n // Find all keys that can either be omitted or not, these are all keys\n // in unions in the required parts of the keys tuple (the prefix and\n // the suffix), as well as all keys in the optional parts and the rest\n // item.\n | PartitionByUnion<TupleParts<Keys>['required']>['union']\n | TupleParts<Keys>['optional'][number]\n | TupleParts<Keys>['item']\n | PartitionByUnion<TupleParts<Keys>['suffix']>['union'],\n // We then need to remove from these any items which *also* are\n // ensured to always exist in the keys tuple, these are the elements\n // of the required parts of the tuple which are singular (not unions).\n | PartitionByUnion<TupleParts<Keys>['required']>['singular']\n | PartitionByUnion<TupleParts<Keys>['suffix']>['singular']\n >\n >\n >;\n\n/**\n * The built-in `Omit` type doesn't handle unbounded records correctly! When\n * omitting an unbounded key the result should be untouched as we can't tell\n * what got removed, and can't represent an object that had \"something\" removed\n * from it, but instead it returns `{}`(?!) The same thing applies when a key\n * is only optionally omitted for the same reasons. This is why we don't use\n * `Omit` at all for the unbounded case.\n *\n * @see https://www.typescriptlang.org/play/?#code/C4TwDgpgBAqgdgIwPYFc4BMLqgXigeQFsBLYAHgCUIBjJAJ3TIGdg7i4BzAGigCIALCABshSXgD4eLNp3EBuAFAB6JVDUA9APxA\n */\ntype OmitUnbounded<T, Keys extends ReadonlyArray<PropertyKey>> = T\n // Any key we know for sure is being omitted needs to become \"impossible\" to\n // access; for an unbounded record this means merging it with a bounded record\n // with `never` value for these keys.\n & Record<\n Bounded<\n | PartitionByUnion<TupleParts<Keys>['required']>['singular']\n | PartitionByUnion<TupleParts<Keys>['suffix']>['singular']\n >,\n never\n >;\n\n/**\n * When `Omit` omits **all** keys from a bounded record it results in `{}` which\n * doesn't match what we'd expect to be returned in terms of a useful type as\n * the output of `Omit`.\n */\ntype FixEmpty<T> = IsNever<keyof T> extends true ? EmptyObject : T;\n\n/**\n * Filter a union of types, leaving only those that are bounded. e.g.,\n * `Bounded<\"a\" | number>` results in `\"a\"`.\n */\ntype Bounded<T> = T extends unknown\n ? IsBounded<T> extends true\n ? T\n : never\n : never;\n\n/**\n * Returns a partial copy of an object omitting the keys specified.\n *\n * @param keys - The property names.\n * @signature\n * P.omit(keys)(obj);\n * @example\n * P.pipe({ a: 1, b: 2, c: 3, d: 4 }, P.omit(['a', 'd'])) // => { b: 2, c: 3 }\n * @dataLast\n * @category Object\n */\nexport function omit<T, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(\n keys: Keys,\n): (data: T) => OmitFromArray<T, Keys>;\n\n/**\n * Returns a partial copy of an object omitting the keys specified.\n *\n * @param data - The object.\n * @param keys - The property names.\n * @signature\n * P.omit(obj, keys);\n * @example\n * P.omit({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']) // => { b: 2, c: 3 }\n * @dataFirst\n * @category Object\n */\nexport function omit<T, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(\n data: T,\n keys: Keys,\n): OmitFromArray<T, Keys>;\n\nexport function omit(...args: ReadonlyArray<unknown>): unknown {\n return curry(omitImplementation, args);\n}\n\nfunction omitImplementation<\n T extends object,\n Keys extends ReadonlyArray<keyof T>,\n>(data: T, keys: Keys): OmitFromArray<T, Keys> {\n if (!hasAtLeast(keys, 1)) {\n // No props to omit at all!\n // @ts-expect-error [ts2322] - TypeScript can't connect the fact that the\n // keys array is empty and infer the expected output, and then infer that we\n // return it correctly here.\n return { ...data };\n }\n\n if (!hasAtLeast(keys, 2)) {\n // Only one prop to omit so we can let the runtime engine deal with\n // removing it efficiently.\n const { [keys[0]]: _omitted, ...remaining } = data;\n\n // @ts-expect-error [ts2322] - TypeScript can't compute the expected output\n // correctly and then infer that we return it correctly here.\n return remaining;\n }\n\n // Multiple props to omit so we have to use a loop to omit all of them.\n const out = { ...data };\n for (const key of keys) {\n // eslint-disable-next-line ts/no-dynamic-delete -- This is intentional! It is the most effective way to allow the runtime engine to optimize the object without creating excessive copies for every omitted key.\n delete out[key];\n }\n // @ts-expect-error [ts2322] - The type is too complex and TypeScript can't\n // \"follow\" the iterative algorithm to ensure the output makes sense.\n return out;\n}\n"],"mappings":"kFA8HA,SAAgB,EAAK,GAAG,EAAuC,CAC7D,OAAO,EAAM,EAAoB,EAAK,CAGxC,SAAS,EAGP,EAAS,EAAoC,CAC7C,GAAI,CAAC,EAAW,EAAM,EAAE,CAKtB,MAAO,CAAE,GAAG,EAAM,CAGpB,GAAI,CAAC,EAAW,EAAM,EAAE,CAAE,CAGxB,GAAM,EAAG,EAAK,IAAK,EAAU,GAAG,GAAc,EAI9C,OAAO,EAIT,IAAM,EAAM,CAAE,GAAG,EAAM,CACvB,IAAK,IAAM,KAAO,EAEhB,OAAO,EAAI,GAIb,OAAO"}
|
package/dist/only.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-1TN3AJ3s.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/only.d.ts
|
|
4
4
|
type Only<T extends IterableContainer> = T extends readonly [...Array<unknown>, unknown, unknown] | readonly [] | readonly [unknown, ...Array<unknown>, unknown] | readonly [unknown, unknown, ...Array<unknown>] ? undefined : T extends readonly [unknown] ? T[number] : T[number] | undefined;
|
package/dist/only.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IterableContainer } from "./iterable-container-
|
|
1
|
+
import { t as IterableContainer } from "./iterable-container-Dv5vSKht.js";
|
|
2
2
|
|
|
3
3
|
//#region src/only.d.ts
|
|
4
4
|
type Only<T extends IterableContainer> = T extends readonly [...Array<unknown>, unknown, unknown] | readonly [] | readonly [unknown, ...Array<unknown>, unknown] | readonly [unknown, unknown, ...Array<unknown>] ? undefined : T extends readonly [unknown] ? T[number] : T[number] | undefined;
|
package/dist/only.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e){return e.length===1?e[0]:void 0}export{t as only};
|
|
2
2
|
//# sourceMappingURL=only.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Merge } from "type-fest";
|
|
2
|
+
|
|
3
|
+
//#region src/internal/types/optional-options-with-defaults.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A simplified version of type-fest's `ApplyDefaultOptions` which isn't
|
|
7
|
+
* exported. It allows us to provide a default fallback for an optional option.
|
|
8
|
+
*/
|
|
9
|
+
type OptionalOptionsWithDefaults<T, Provided extends T, Defaults extends T> = Merge<Defaults, { [Key in keyof Provided as Extract<Provided[Key], undefined> extends never ? Key : never]: Provided[Key] }> & Required<T>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { OptionalOptionsWithDefaults as t };
|
|
12
|
+
//# sourceMappingURL=optional-options-with-defaults-BFaBSKkF.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional-options-with-defaults-BFaBSKkF.d.ts","names":[],"sources":["../src/internal/types/optional-options-with-defaults.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;;AAGmB,KAHP,2BAGO,CAAA,CAAA,EAAA,iBADA,CACA,EAAA,iBAAA,CAAA,CAAA,GACf,KADe,CAEjB,QAFiB,EAAA,UAEjB,MAKgB,QALhB,IAK4B,OAL5B,CAKoC,QALpC,CAK6C,GAL7C,CAAA,EAAA,SAAA,CAAA,SAAA,KAAA,GAMM,GANN,GAAA,KAAA,GAOc,QAPd,CAOuB,GAPvB,CAAA,EAKgB,CAAA,GAQhB,QARgB,CAQP,CARO,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Merge } from "type-fest";
|
|
2
|
+
|
|
3
|
+
//#region src/internal/types/optional-options-with-defaults.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A simplified version of type-fest's `ApplyDefaultOptions` which isn't
|
|
7
|
+
* exported. It allows us to provide a default fallback for an optional option.
|
|
8
|
+
*/
|
|
9
|
+
type OptionalOptionsWithDefaults<T, Provided extends T, Defaults extends T> = Merge<Defaults, { [Key in keyof Provided as Extract<Provided[Key], undefined> extends never ? Key : never]: Provided[Key] }> & Required<T>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { OptionalOptionsWithDefaults as t };
|
|
12
|
+
//# sourceMappingURL=optional-options-with-defaults-BZVW8GfC.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional-options-with-defaults-BZVW8GfC.d.cts","names":[],"sources":["../src/internal/types/optional-options-with-defaults.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;;AAGmB,KAHP,2BAGO,CAAA,CAAA,EAAA,iBADA,CACA,EAAA,iBAAA,CAAA,CAAA,GACf,KADe,CAEjB,QAFiB,EAAA,UAEjB,MAKgB,QALhB,IAK4B,OAL5B,CAKoC,QALpC,CAK6C,GAL7C,CAAA,EAAA,SAAA,CAAA,SAAA,KAAA,GAMM,GANN,GAAA,KAAA,GAOc,QAPd,CAOuB,GAPvB,CAAA,EAKgB,CAAA,GAQhB,QARgB,CAQP,CARO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partial-array-CQF5oggb.d.cts","names":[],"sources":["../src/internal/types/partial-array.ts"],"sourcesContent":[],"mappings":";;AAOA;;;;;;KAAY,kBAAkB,UAAU,8BACpC,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partial-array-DU-2Vkyx.d.ts","names":[],"sources":["../src/internal/types/partial-array.ts"],"sourcesContent":[],"mappings":";;AAOA;;;;;;KAAY,kBAAkB,UAAU,8BACpC,QAAQ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IsUnion } from "type-fest";
|
|
2
|
+
|
|
3
|
+
//#region src/internal/types/partition-by-union.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* We split the fixed tuple item types into **singular** types (e.g., `"a"`),
|
|
7
|
+
* and unions of several types (e.g., `"a" | "b"`). This split allows building
|
|
8
|
+
* complex types based on if a specific value would always be present, or if
|
|
9
|
+
* it is *effectively* optional.
|
|
10
|
+
*
|
|
11
|
+
* We assume that T is a fixed tuple (no optional or rest elements), and that
|
|
12
|
+
* all elements in it are bounded (as defined by `IsBounded`).
|
|
13
|
+
*/
|
|
14
|
+
type PartitionByUnion<T, Singular = never, Union = never> = T extends readonly [infer Head, ...infer Rest] ? IsUnion<Head> extends true ? PartitionByUnion<Rest, Singular, Union | Head> : PartitionByUnion<Rest, Singular | Head, Union> : {
|
|
15
|
+
singular: Singular;
|
|
16
|
+
union: Union;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PartitionByUnion as t };
|
|
20
|
+
//# sourceMappingURL=partition-by-union-BztEpKVh.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partition-by-union-BztEpKVh.d.cts","names":[],"sources":["../src/internal/types/partition-by-union.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;;;;;;;AAM+C,KANnC,gBAMmC,CAAA,CAAA,EAAA,WAAA,KAAA,EAAA,QAAA,KAAA,CAAA,GAF3C,CAE2C,SAAA,SAAA,CAAA,KAAA,KAAA,EAAA,GAAA,KAAA,KAAA,CAAA,GAD3C,OAC2C,CADnC,IACmC,CAAA,SAAA,IAAA,GAAzC,gBAAyC,CAAxB,IAAwB,EAAlB,QAAkB,EAAR,KAAQ,GAAA,IAAA,CAAA,GACzC,gBADyC,CACxB,IADwB,EAClB,QADkB,GACP,IADO,EACD,KADC,CAAA,GAAA;EAAzC,QAAA,EAEU,QAFV;EACiB,KAAA,EACU,KADV;CAAM"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IsUnion } from "type-fest";
|
|
2
|
+
|
|
3
|
+
//#region src/internal/types/partition-by-union.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* We split the fixed tuple item types into **singular** types (e.g., `"a"`),
|
|
7
|
+
* and unions of several types (e.g., `"a" | "b"`). This split allows building
|
|
8
|
+
* complex types based on if a specific value would always be present, or if
|
|
9
|
+
* it is *effectively* optional.
|
|
10
|
+
*
|
|
11
|
+
* We assume that T is a fixed tuple (no optional or rest elements), and that
|
|
12
|
+
* all elements in it are bounded (as defined by `IsBounded`).
|
|
13
|
+
*/
|
|
14
|
+
type PartitionByUnion<T, Singular = never, Union = never> = T extends readonly [infer Head, ...infer Rest] ? IsUnion<Head> extends true ? PartitionByUnion<Rest, Singular, Union | Head> : PartitionByUnion<Rest, Singular | Head, Union> : {
|
|
15
|
+
singular: Singular;
|
|
16
|
+
union: Union;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PartitionByUnion as t };
|
|
20
|
+
//# sourceMappingURL=partition-by-union-DnfiiEMU.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partition-by-union-DnfiiEMU.d.ts","names":[],"sources":["../src/internal/types/partition-by-union.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;;;;;;;AAM+C,KANnC,gBAMmC,CAAA,CAAA,EAAA,WAAA,KAAA,EAAA,QAAA,KAAA,CAAA,GAF3C,CAE2C,SAAA,SAAA,CAAA,KAAA,KAAA,EAAA,GAAA,KAAA,KAAA,CAAA,GAD3C,OAC2C,CADnC,IACmC,CAAA,SAAA,IAAA,GAAzC,gBAAyC,CAAxB,IAAwB,EAAlB,QAAkB,EAAR,KAAQ,GAAA,IAAA,CAAA,GACzC,gBADyC,CACxB,IADwB,EAClB,QADkB,GACP,IADO,EACD,KADC,CAAA,GAAA;EAAzC,QAAA,EAEU,QAFV;EACiB,KAAA,EACU,KADV;CAAM"}
|
package/dist/partition.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t){let n=[[],[]];for(let[r,i]of e.entries())n[t(i,r,e)?0:1].push(i);return n}export{t as partition};
|
|
2
2
|
//# sourceMappingURL=partition.js.map
|
package/dist/path-or.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-
|
|
1
|
+
import{t as e}from"./curry-NmniqyJ0.js";function t(...t){return e(n,t)}function n(e,t,n){let r=e;for(let e of t){if(r==null)break;r=r[e]}return r??n}export{t as pathOr};
|
|
2
2
|
//# sourceMappingURL=path-or.js.map
|
|
@@ -16,4 +16,4 @@ type PerkakasTypeError<FunctionName extends string, Message extends number | str
|
|
|
16
16
|
} ? Metadata : never>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { PerkakasTypeError as t };
|
|
19
|
-
//# sourceMappingURL=perkakas-type-error-
|
|
19
|
+
//# sourceMappingURL=perkakas-type-error-B9ULNhW0.d.ts.map
|
package/dist/{perkakas-type-error-DmmsEmEF.d.ts.map → perkakas-type-error-B9ULNhW0.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perkakas-type-error-
|
|
1
|
+
{"version":3,"file":"perkakas-type-error-B9ULNhW0.d.ts","names":[],"sources":["../src/internal/types/perkakas-type-error.ts"],"sourcesContent":[],"mappings":";;;cAIM;UAEI,wBAAA;EAFJ,IAAA,CAAA,EAAA,OAAA;EAEI,QAAA,CAAA,EAAA,OAAA;AAQV;;;;AASuB,KATX,iBASW,CAAA,qBAAA,MAAA,EAAA,gBAAA,MAAA,GAAA,MAAA,EAAA,gBAHL,wBAGK,GAAA,CAAA,CAAA,CAAA,GAFnB,MAEmB,CADrB,OACqB,SAAA;EAAkB,IAAA,EAAA,KAAA,EAAA;CACvC,GAAA,CAAA,GAAA,OAF+C,mBAE/C,EAAA,qBADqB,YACrB,MADuC,OACvC,GAAA,EAAA,OAAA,SAAA;EAHE,QAAA,EAAA,KAAA,SAAA;CAAM,GAAA,QAAA,GAAA,KAAA,CAAA"}
|
|
@@ -16,4 +16,4 @@ type PerkakasTypeError<FunctionName extends string, Message extends number | str
|
|
|
16
16
|
} ? Metadata : never>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { PerkakasTypeError as t };
|
|
19
|
-
//# sourceMappingURL=perkakas-type-error-
|
|
19
|
+
//# sourceMappingURL=perkakas-type-error-ClCCHBW1.d.cts.map
|