@vinicunca/perkakas 1.6.0 → 1.7.1
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.cjs +1 -1
- 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.cjs +1 -1
- package/dist/add.js +1 -1
- package/dist/all-pass.cjs +1 -1
- package/dist/all-pass.js +1 -1
- package/dist/any-pass.cjs +1 -1
- package/dist/any-pass.js +1 -1
- package/dist/{array-required-prefix-BW08fIbb.d.cts → array-required-prefix-Ck4lHkbA.d.cts} +3 -5
- package/dist/{array-required-prefix-a3sgCkd2.d.ts → array-required-prefix-DXv_WnmG.d.ts} +3 -5
- package/dist/{bounded-partial-CJjczH6j.d.ts → bounded-partial-B15MLSAS.d.ts} +2 -2
- package/dist/{bounded-partial-wqR8ceNQ.d.cts → bounded-partial-BhnecV3P.d.cts} +2 -2
- package/dist/ceil.cjs +1 -1
- package/dist/ceil.js +1 -1
- package/dist/chunk-3DOG24FJ.cjs +1 -0
- package/dist/chunk-4BTTPOEU.cjs +1 -0
- package/dist/chunk-4Y6KJJOW.js +1 -0
- package/dist/chunk-4Y6VRHEP.js +1 -0
- package/dist/{chunk-BDBX4ZMW.cjs → chunk-76VE5EC6.cjs} +1 -1
- package/dist/{chunk-TNA73S2T.cjs → chunk-7C7R7JNX.cjs} +1 -1
- package/dist/{chunk-WONMP5WS.js → chunk-7V7IBWP5.js} +1 -1
- package/dist/chunk-ALP5JUXX.cjs +1 -0
- package/dist/chunk-BKBHW2XJ.js +1 -0
- package/dist/chunk-BSNCALDT.cjs +1 -0
- package/dist/{chunk-UGWBDJPI.cjs → chunk-D4TUHKBA.cjs} +1 -1
- package/dist/chunk-DXA7AZUA.js +1 -0
- package/dist/chunk-EK7ODJWE.js +1 -0
- package/dist/chunk-FIO5FNV2.js +1 -0
- package/dist/chunk-GRKRFDIL.js +1 -0
- package/dist/chunk-HHNHTPVO.cjs +1 -0
- package/dist/chunk-I5B54QDJ.cjs +438 -0
- package/dist/chunk-JYWIRZ2Z.js +1 -0
- package/dist/chunk-MBGSSEZN.cjs +1 -0
- package/dist/{chunk-GFXNX2W7.js → chunk-MPWQN3WY.js} +1 -1
- package/dist/chunk-NHTBBY2L.js +1 -0
- package/dist/chunk-NQUTCPKD.js +1 -0
- package/dist/chunk-OKBFQ7B6.js +1 -0
- package/dist/chunk-QGF2XNZS.cjs +1 -0
- package/dist/chunk-QPMGUF2V.cjs +1 -0
- package/dist/chunk-RMOD5JNB.cjs +1 -0
- package/dist/{chunk-5NW4GR2Q.cjs → chunk-RTFVY5D4.cjs} +1 -1
- package/dist/chunk-RZBBV6PK.js +1 -0
- package/dist/chunk-SG2YWG6U.cjs +1 -0
- package/dist/chunk-SXNRBENP.cjs +1 -0
- package/dist/chunk-TSP3FU72.cjs +1 -0
- package/dist/chunk-TWCEO47X.cjs +1 -0
- package/dist/{chunk-L4FN2W5Q.cjs → chunk-TXPRX236.cjs} +1 -1
- package/dist/{chunk-3K7SNX4D.cjs → chunk-UURK6I3D.cjs} +1 -1
- package/dist/chunk-VVGDSDKI.js +438 -0
- package/dist/chunk-XCG2UC6T.js +1 -0
- package/dist/{chunk-673TXH2U.js → chunk-YRVN4PYH.js} +1 -1
- package/dist/chunk-YWIXN5BR.js +1 -0
- package/dist/{chunk-EDZFEURO.js → chunk-Z5YZYBC2.js} +1 -1
- package/dist/chunk-ZMG3NQDL.js +1 -0
- package/dist/chunk.cjs +1 -1
- package/dist/chunk.d.cts +9 -32
- package/dist/chunk.d.ts +9 -32
- package/dist/chunk.js +1 -1
- package/dist/clamp.cjs +1 -1
- package/dist/clamp.js +1 -1
- package/dist/clone.cjs +1 -1
- package/dist/clone.js +1 -1
- package/dist/concat.cjs +1 -1
- package/dist/concat.js +1 -1
- package/dist/conditional.cjs +1 -1
- package/dist/conditional.d.cts +133 -43
- package/dist/conditional.d.ts +133 -43
- package/dist/conditional.js +1 -1
- package/dist/constant.cjs +1 -1
- package/dist/constant.d.cts +1 -1
- package/dist/constant.d.ts +1 -1
- package/dist/constant.js +1 -1
- package/dist/count-by.cjs +1 -1
- package/dist/count-by.d.cts +2 -2
- package/dist/count-by.d.ts +2 -2
- package/dist/count-by.js +1 -1
- package/dist/curry.cjs +1 -1
- package/dist/curry.js +1 -1
- package/dist/debounce.cjs +1 -1
- package/dist/debounce.js +1 -1
- package/dist/difference-with.cjs +1 -1
- package/dist/difference-with.js +1 -1
- package/dist/difference.cjs +1 -1
- package/dist/difference.js +1 -1
- package/dist/divide.cjs +1 -1
- package/dist/divide.js +1 -1
- package/dist/do-nothing.cjs +1 -1
- package/dist/do-nothing.js +1 -1
- package/dist/drop-first-by.cjs +1 -1
- package/dist/drop-first-by.d.cts +1 -1
- package/dist/drop-first-by.d.ts +1 -1
- package/dist/drop-first-by.js +1 -1
- package/dist/drop-last-while.cjs +1 -1
- package/dist/drop-last-while.js +1 -1
- package/dist/drop-last.cjs +1 -1
- package/dist/drop-last.js +1 -1
- package/dist/drop-while.cjs +1 -1
- package/dist/drop-while.js +1 -1
- package/dist/drop.cjs +1 -1
- package/dist/drop.d.cts +2 -1
- package/dist/drop.d.ts +2 -1
- package/dist/drop.js +1 -1
- package/dist/entries.cjs +1 -1
- package/dist/entries.d.cts +8 -5
- package/dist/entries.d.ts +8 -5
- package/dist/entries.js +1 -1
- package/dist/{enumerable-string-key-of-BQ4aR5ep.d.ts → enumerable-string-key-of-C4gsorXe.d.ts} +3 -1
- package/dist/{enumerable-string-key-of-BQ4aR5ep.d.cts → enumerable-string-key-of-D8w_3Yg8.d.cts} +3 -1
- package/dist/enumerable-string-keyed-value-of-BU9R_cEk.d.cts +9 -0
- package/dist/enumerable-string-keyed-value-of-BU9R_cEk.d.ts +9 -0
- package/dist/evolve.cjs +1 -1
- package/dist/evolve.js +1 -1
- package/dist/filter.cjs +1 -1
- package/dist/filter.d.cts +4 -4
- package/dist/filter.d.ts +4 -4
- package/dist/filter.js +1 -1
- package/dist/{filtered-array-DX6NNaBq.d.cts → filtered-array-BCjySbC6.d.cts} +1 -1
- package/dist/{filtered-array-BNHX1Nwj.d.ts → filtered-array-JKATL39M.d.ts} +1 -1
- package/dist/find-index.cjs +1 -1
- package/dist/find-index.js +1 -1
- package/dist/find-last-index.cjs +1 -1
- package/dist/find-last-index.js +1 -1
- package/dist/find-last.cjs +1 -1
- package/dist/find-last.js +1 -1
- package/dist/find.cjs +1 -1
- package/dist/find.js +1 -1
- package/dist/first-by.cjs +1 -1
- package/dist/first-by.d.cts +1 -1
- package/dist/first-by.d.ts +1 -1
- package/dist/first-by.js +1 -1
- package/dist/first.cjs +1 -1
- package/dist/first.js +1 -1
- package/dist/flat-map.cjs +1 -1
- package/dist/flat-map.js +1 -1
- package/dist/flat.cjs +1 -1
- package/dist/flat.d.cts +2 -5
- package/dist/flat.d.ts +2 -5
- package/dist/flat.js +1 -1
- package/dist/floor.cjs +1 -1
- package/dist/floor.js +1 -1
- package/dist/for-each-obj.cjs +1 -1
- package/dist/for-each-obj.d.cts +3 -2
- package/dist/for-each-obj.d.ts +3 -2
- package/dist/for-each-obj.js +1 -1
- package/dist/for-each.cjs +1 -1
- package/dist/for-each.js +1 -1
- package/dist/from-entries.cjs +1 -1
- package/dist/from-entries.d.cts +4 -2
- package/dist/from-entries.d.ts +4 -2
- package/dist/from-entries.js +1 -1
- package/dist/from-keys.cjs +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.cjs +1 -1
- package/dist/funnel.d.cts +7 -7
- package/dist/funnel.d.ts +7 -7
- package/dist/funnel.js +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.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.test.cjs +1 -1
- package/dist/funnel.lodash-throttle.test.js +1 -1
- package/dist/funnel.perkakas-debounce.test.cjs +1 -0
- package/dist/funnel.perkakas-debounce.test.js +1 -0
- package/dist/funnel.reference-batch.test.cjs +1 -1
- package/dist/funnel.reference-batch.test.js +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/group-by-prop.cjs +1 -1
- package/dist/group-by-prop.d.cts +6 -5
- package/dist/group-by-prop.d.ts +6 -5
- package/dist/group-by-prop.js +1 -1
- package/dist/group-by.cjs +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.cjs +1 -1
- package/dist/has-at-least.d.cts +3 -2
- package/dist/has-at-least.d.ts +3 -2
- package/dist/has-at-least.js +1 -1
- package/dist/has-sub-object.cjs +1 -1
- package/dist/has-sub-object.js +1 -1
- package/dist/human-readable-file-size.cjs +1 -1
- package/dist/human-readable-file-size.js +1 -1
- package/dist/identity.cjs +1 -1
- package/dist/identity.js +1 -1
- package/dist/index-by.cjs +1 -1
- package/dist/index-by.d.cts +2 -2
- package/dist/index-by.d.ts +2 -2
- package/dist/index-by.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js +1 -1
- package/dist/intersection-with.cjs +1 -1
- package/dist/intersection-with.js +1 -1
- package/dist/intersection.cjs +1 -1
- package/dist/intersection.js +1 -1
- package/dist/invert.cjs +1 -1
- package/dist/invert.d.cts +2 -1
- package/dist/invert.d.ts +2 -1
- package/dist/invert.js +1 -1
- package/dist/is-array.cjs +1 -1
- package/dist/is-array.js +1 -1
- package/dist/is-big-int.cjs +1 -1
- package/dist/is-big-int.js +1 -1
- package/dist/is-boolean.cjs +1 -1
- package/dist/is-boolean.js +1 -1
- package/dist/is-bounded-record-C9WAwfA8.d.cts +30 -0
- package/dist/is-bounded-record-C9WAwfA8.d.ts +30 -0
- package/dist/is-date.cjs +1 -1
- package/dist/is-date.js +1 -1
- package/dist/is-deep-equal.cjs +1 -1
- package/dist/is-deep-equal.js +1 -1
- package/dist/is-defined.cjs +1 -1
- package/dist/is-defined.js +1 -1
- package/dist/is-empty.cjs +1 -1
- package/dist/is-empty.js +1 -1
- package/dist/is-error.cjs +1 -1
- package/dist/is-error.js +1 -1
- package/dist/is-function.cjs +1 -1
- package/dist/is-function.js +1 -1
- package/dist/is-included-in.cjs +1 -1
- package/dist/is-included-in.js +1 -1
- package/dist/is-non-null.cjs +1 -1
- package/dist/is-non-null.js +1 -1
- package/dist/is-non-nullish.cjs +1 -1
- package/dist/is-non-nullish.js +1 -1
- package/dist/is-not.cjs +1 -1
- package/dist/is-not.js +1 -1
- package/dist/is-nullish.cjs +1 -1
- package/dist/is-nullish.js +1 -1
- package/dist/is-number.cjs +1 -1
- package/dist/is-number.js +1 -1
- package/dist/is-object-type.cjs +1 -1
- package/dist/is-object-type.js +1 -1
- package/dist/is-plain-object.cjs +1 -1
- package/dist/is-plain-object.js +1 -1
- package/dist/is-promise.cjs +1 -1
- package/dist/is-promise.js +1 -1
- package/dist/is-shallow-equal.cjs +1 -1
- package/dist/is-shallow-equal.js +1 -1
- package/dist/is-strict-equal.cjs +1 -1
- package/dist/is-strict-equal.js +1 -1
- package/dist/is-string.cjs +1 -1
- package/dist/is-string.js +1 -1
- package/dist/is-symbol.cjs +1 -1
- package/dist/is-symbol.js +1 -1
- package/dist/is-truthy.cjs +1 -1
- package/dist/is-truthy.js +1 -1
- package/dist/join.cjs +1 -1
- package/dist/join.js +1 -1
- package/dist/key-codes.cjs +1 -1
- package/dist/key-codes.js +1 -1
- package/dist/keys.cjs +1 -1
- package/dist/keys.d.cts +4 -3
- package/dist/keys.d.ts +4 -3
- package/dist/keys.js +1 -1
- package/dist/last.cjs +1 -1
- package/dist/last.js +1 -1
- package/dist/length.cjs +1 -1
- package/dist/length.js +1 -1
- package/dist/magic-string.es-2ADFIHOO.cjs +13 -0
- package/dist/magic-string.es-PNCTE22R.js +13 -0
- package/dist/map-keys.cjs +1 -1
- package/dist/map-keys.d.cts +5 -4
- package/dist/map-keys.d.ts +5 -4
- package/dist/map-keys.js +1 -1
- package/dist/map-to-obj.cjs +1 -1
- package/dist/map-to-obj.d.cts +30 -12
- package/dist/map-to-obj.d.ts +30 -12
- package/dist/map-to-obj.js +1 -1
- package/dist/map-values.cjs +1 -1
- package/dist/map-values.d.cts +4 -3
- package/dist/map-values.d.ts +4 -3
- package/dist/map-values.js +1 -1
- package/dist/map-with-feedback.cjs +1 -1
- package/dist/map-with-feedback.js +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/mean-by.cjs +1 -1
- package/dist/mean-by.js +1 -1
- package/dist/merge-all.cjs +1 -1
- package/dist/merge-all.d.cts +2 -1
- package/dist/merge-all.d.ts +2 -1
- package/dist/merge-all.js +1 -1
- package/dist/merge-deep.cjs +1 -1
- package/dist/merge-deep.js +1 -1
- package/dist/merge.cjs +1 -1
- package/dist/merge.js +1 -1
- package/dist/multiply.cjs +1 -1
- package/dist/multiply.js +1 -1
- package/dist/n-tuple-5jljrt4c.d.cts +10 -0
- package/dist/n-tuple-5jljrt4c.d.ts +10 -0
- package/dist/nth-by.cjs +1 -1
- package/dist/nth-by.d.cts +1 -1
- package/dist/nth-by.d.ts +1 -1
- package/dist/nth-by.js +1 -1
- package/dist/obj-of.cjs +1 -1
- package/dist/obj-of.js +1 -1
- package/dist/omit-by.cjs +1 -1
- package/dist/omit-by.d.cts +6 -6
- package/dist/omit-by.d.ts +6 -6
- package/dist/omit-by.js +1 -1
- package/dist/omit.cjs +1 -1
- package/dist/omit.js +1 -1
- package/dist/once.cjs +1 -1
- package/dist/once.js +1 -1
- package/dist/only.cjs +1 -1
- package/dist/only.js +1 -1
- package/dist/partition.cjs +1 -1
- package/dist/partition.js +1 -1
- package/dist/path-or.cjs +1 -1
- package/dist/path-or.d.cts +10 -0
- package/dist/path-or.d.ts +10 -0
- package/dist/path-or.js +1 -1
- package/dist/perkakas-type-error-8wPb8T2y.d.cts +17 -0
- package/dist/perkakas-type-error-8wPb8T2y.d.ts +17 -0
- package/dist/pick-by.cjs +1 -1
- package/dist/pick-by.d.cts +10 -11
- package/dist/pick-by.d.ts +10 -11
- package/dist/pick-by.js +1 -1
- package/dist/pick.cjs +1 -1
- package/dist/pick.d.cts +51 -7
- package/dist/pick.d.ts +51 -7
- package/dist/pick.js +1 -1
- package/dist/pipe.cjs +1 -1
- package/dist/pipe.js +1 -1
- package/dist/piped.cjs +1 -1
- package/dist/piped.js +1 -1
- package/dist/product.cjs +1 -1
- package/dist/product.js +1 -1
- package/dist/prop.cjs +1 -1
- package/dist/prop.d.cts +118 -13
- package/dist/prop.d.ts +118 -13
- package/dist/prop.js +1 -1
- package/dist/pull-object.cjs +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.cjs +1 -1
- package/dist/random-integer.js +1 -1
- package/dist/random-string.cjs +1 -1
- package/dist/random-string.js +1 -1
- package/dist/range.cjs +1 -1
- package/dist/range.js +1 -1
- package/dist/rank-by.cjs +1 -1
- package/dist/rank-by.d.cts +1 -1
- package/dist/rank-by.d.ts +1 -1
- package/dist/rank-by.js +1 -1
- package/dist/reduce.cjs +1 -1
- package/dist/reduce.js +1 -1
- package/dist/reverse.cjs +1 -1
- package/dist/reverse.js +1 -1
- package/dist/round.cjs +1 -1
- package/dist/round.js +1 -1
- package/dist/sample.cjs +1 -1
- package/dist/sample.d.cts +32 -8
- package/dist/sample.d.ts +32 -8
- package/dist/sample.js +1 -1
- package/dist/set-path.cjs +1 -1
- package/dist/set-path.d.cts +18 -7
- package/dist/set-path.d.ts +18 -7
- package/dist/set-path.js +1 -1
- package/dist/set.cjs +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.cjs +1 -1
- package/dist/shuffle.js +1 -1
- package/dist/sleep.cjs +1 -1
- package/dist/sleep.js +1 -1
- package/dist/slice-string.cjs +1 -1
- package/dist/slice-string.js +1 -1
- package/dist/slugify.cjs +1 -1
- package/dist/slugify.js +1 -1
- package/dist/sort-by.cjs +1 -1
- package/dist/sort-by.js +1 -1
- package/dist/sort.cjs +1 -1
- package/dist/sort.js +1 -1
- package/dist/sorted-index-by.cjs +1 -1
- package/dist/sorted-index-by.js +1 -1
- package/dist/sorted-index-with.cjs +1 -1
- package/dist/sorted-index-with.js +1 -1
- package/dist/sorted-index.cjs +1 -1
- package/dist/sorted-index.js +1 -1
- package/dist/sorted-last-index-by.cjs +1 -1
- package/dist/sorted-last-index-by.js +1 -1
- package/dist/sorted-last-index.cjs +1 -1
- package/dist/sorted-last-index.js +1 -1
- package/dist/splice.cjs +1 -1
- package/dist/splice.js +1 -1
- package/dist/split-at.cjs +1 -1
- package/dist/split-at.js +1 -1
- package/dist/split-when.cjs +1 -1
- package/dist/split-when.js +1 -1
- package/dist/split.cjs +1 -1
- package/dist/split.js +1 -1
- package/dist/string-to-path.cjs +1 -1
- package/dist/string-to-path.d.cts +32 -11
- package/dist/string-to-path.d.ts +32 -11
- package/dist/string-to-path.js +1 -1
- package/dist/subtract.cjs +1 -1
- package/dist/subtract.js +1 -1
- package/dist/sum-by.cjs +1 -1
- package/dist/sum-by.js +1 -1
- package/dist/sum.cjs +1 -1
- package/dist/sum.js +1 -1
- package/dist/swap-indices.cjs +1 -1
- package/dist/swap-indices.js +1 -1
- package/dist/swap-props.cjs +1 -1
- package/dist/swap-props.js +1 -1
- package/dist/take-first-by.cjs +1 -1
- package/dist/take-first-by.d.cts +1 -1
- package/dist/take-first-by.d.ts +1 -1
- package/dist/take-first-by.js +1 -1
- package/dist/take-last-while.cjs +1 -1
- package/dist/take-last-while.js +1 -1
- package/dist/take-last.cjs +1 -1
- package/dist/take-last.js +1 -1
- package/dist/take-while.cjs +1 -1
- package/dist/take-while.js +1 -1
- package/dist/take.cjs +1 -1
- package/dist/take.js +1 -1
- package/dist/tap.cjs +1 -1
- package/dist/tap.js +1 -1
- package/dist/times.cjs +1 -1
- package/dist/times.d.cts +1 -9
- package/dist/times.d.ts +1 -9
- package/dist/times.js +1 -1
- package/dist/to-camel-case.cjs +1 -1
- package/dist/to-camel-case.js +1 -1
- package/dist/to-capital-case.cjs +1 -1
- package/dist/to-capital-case.js +1 -1
- package/dist/to-constant-case.cjs +1 -1
- package/dist/to-constant-case.js +1 -1
- package/dist/to-kebab-case.cjs +1 -1
- package/dist/to-kebab-case.js +1 -1
- package/dist/to-no-case.cjs +1 -1
- package/dist/to-no-case.js +1 -1
- package/dist/to-pascal-case.cjs +1 -1
- package/dist/to-pascal-case.js +1 -1
- package/dist/to-pascal-snake-case.cjs +1 -1
- package/dist/to-pascal-snake-case.js +1 -1
- package/dist/to-sentence-case.cjs +1 -1
- package/dist/to-sentence-case.js +1 -1
- package/dist/to-snake-case.cjs +1 -1
- package/dist/to-snake-case.js +1 -1
- package/dist/to-string-DO8zw6jS.d.cts +11 -0
- package/dist/to-string-DO8zw6jS.d.ts +11 -0
- package/dist/to-train-case.cjs +1 -1
- package/dist/to-train-case.js +1 -1
- package/dist/{tuple-parts-CrwnkDKX.d.ts → tuple-parts-BTivqbtT.d.ts} +4 -18
- package/dist/{tuple-parts-DAqFAJP8.d.cts → tuple-parts-v6av7LMU.d.cts} +4 -18
- package/dist/unique-by.cjs +1 -1
- package/dist/unique-by.js +1 -1
- package/dist/unique-with.cjs +1 -1
- package/dist/unique-with.js +1 -1
- package/dist/unique.cjs +1 -1
- package/dist/unique.js +1 -1
- package/dist/{upsert-prop-tIHFi_F_.d.cts → upsert-prop-Cc3jEW9l.d.cts} +1 -2
- package/dist/{upsert-prop-D0N8486l.d.ts → upsert-prop-CdUtD50i.d.ts} +1 -2
- package/dist/values.cjs +1 -1
- package/dist/values.d.cts +1 -1
- package/dist/values.d.ts +1 -1
- package/dist/values.js +1 -1
- package/dist/zip-with.cjs +1 -1
- package/dist/zip-with.js +1 -1
- package/dist/zip.cjs +1 -1
- package/dist/zip.js +1 -1
- package/package.json +12 -12
- package/dist/chunk-2MHE6M7V.cjs +0 -1
- package/dist/chunk-5SAUYUEK.js +0 -1
- package/dist/chunk-6HSB3NFW.js +0 -1
- package/dist/chunk-6L5XEBJG.js +0 -1
- package/dist/chunk-A2PAJNYA.js +0 -1
- package/dist/chunk-AWXJSK4F.js +0 -1
- package/dist/chunk-CZLV6ZLZ.js +0 -1
- package/dist/chunk-F3JXHUP4.cjs +0 -1
- package/dist/chunk-FMUPPQZE.js +0 -1
- package/dist/chunk-FP3LV577.js +0 -1
- package/dist/chunk-GFQXVPLP.cjs +0 -1
- package/dist/chunk-GOUUMCT7.cjs +0 -1
- package/dist/chunk-HRK4GMT2.cjs +0 -1
- package/dist/chunk-ICYGL2YZ.js +0 -1
- package/dist/chunk-J3ZXNDMT.cjs +0 -1
- package/dist/chunk-MBC7VZHY.js +0 -1
- package/dist/chunk-NEIICTWC.js +0 -1
- package/dist/chunk-NQGMUM3E.cjs +0 -1
- package/dist/chunk-OBWPUDD3.cjs +0 -1
- package/dist/chunk-SOPOELNU.cjs +0 -1
- package/dist/chunk-SQZULO7V.js +0 -1
- package/dist/chunk-UDSRBKNR.js +0 -1
- package/dist/chunk-VRZNQSZN.cjs +0 -1
- package/dist/chunk-WYM2JV5T.cjs +0 -1
- package/dist/chunk-XEAAXO7F.js +0 -1
- package/dist/chunk-XU4TDKMD.cjs +0 -1
- package/dist/enumerable-string-keyed-value-of-CLzltniW.d.cts +0 -15
- package/dist/enumerable-string-keyed-value-of-CLzltniW.d.ts +0 -15
- package/dist/funnel.remeda-debounce.test.cjs +0 -1
- package/dist/funnel.remeda-debounce.test.js +0 -1
- package/dist/if-bounded-record-Drd4UbBU.d.cts +0 -29
- package/dist/if-bounded-record-Drd4UbBU.d.ts +0 -29
- package/dist/reconstructed-record-DchLaSO8.d.cts +0 -10
- package/dist/reconstructed-record-DuxOLlMs.d.ts +0 -10
- /package/dist/{funnel.remeda-debounce.test.d.cts → funnel.perkakas-debounce.test.d.cts} +0 -0
- /package/dist/{funnel.remeda-debounce.test.d.ts → funnel.perkakas-debounce.test.d.ts} +0 -0
package/dist/omit-by.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-
|
|
3
|
-
import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-
|
|
4
|
-
import { I as
|
|
5
|
-
import
|
|
2
|
+
import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-D8w_3Yg8.cjs';
|
|
3
|
+
import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-BU9R_cEk.cjs';
|
|
4
|
+
import { I as IsBoundedRecord } from './is-bounded-record-C9WAwfA8.cjs';
|
|
5
|
+
import './to-string-DO8zw6jS.cjs';
|
|
6
6
|
|
|
7
7
|
type PickSymbolKeys<T extends object> = {
|
|
8
8
|
-readonly [P in keyof T as P extends symbol ? P : never]: T[P];
|
|
9
9
|
};
|
|
10
|
-
type PartialEnumerableKeys<T extends object> = T extends unknown ? Simplify<
|
|
10
|
+
type PartialEnumerableKeys<T extends object> = T extends unknown ? Simplify<IsBoundedRecord<T> extends true ? PickSymbolKeys<T> & {
|
|
11
11
|
-readonly [P in keyof T as P extends symbol ? never : P]?: Required<T>[P];
|
|
12
|
-
}
|
|
12
|
+
} : Record<EnumerableStringKeyOf<T>, EnumerableStringKeyedValueOf<T>>> : never;
|
|
13
13
|
type PartialEnumerableKeysNarrowed<T extends object, S> = Simplify<ExactProps<T, S> & PartialProps<T, S> & PickSymbolKeys<T>>;
|
|
14
14
|
type ExactProps<T, S> = {
|
|
15
15
|
-readonly [P in keyof T as IsExactProp<T, P, S> extends true ? P : never]: Exclude<T[P], S>;
|
package/dist/omit-by.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-
|
|
3
|
-
import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-
|
|
4
|
-
import { I as
|
|
5
|
-
import
|
|
2
|
+
import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-C4gsorXe.js';
|
|
3
|
+
import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-BU9R_cEk.js';
|
|
4
|
+
import { I as IsBoundedRecord } from './is-bounded-record-C9WAwfA8.js';
|
|
5
|
+
import './to-string-DO8zw6jS.js';
|
|
6
6
|
|
|
7
7
|
type PickSymbolKeys<T extends object> = {
|
|
8
8
|
-readonly [P in keyof T as P extends symbol ? P : never]: T[P];
|
|
9
9
|
};
|
|
10
|
-
type PartialEnumerableKeys<T extends object> = T extends unknown ? Simplify<
|
|
10
|
+
type PartialEnumerableKeys<T extends object> = T extends unknown ? Simplify<IsBoundedRecord<T> extends true ? PickSymbolKeys<T> & {
|
|
11
11
|
-readonly [P in keyof T as P extends symbol ? never : P]?: Required<T>[P];
|
|
12
|
-
}
|
|
12
|
+
} : Record<EnumerableStringKeyOf<T>, EnumerableStringKeyedValueOf<T>>> : never;
|
|
13
13
|
type PartialEnumerableKeysNarrowed<T extends object, S> = Simplify<ExactProps<T, S> & PartialProps<T, S> & PickSymbolKeys<T>>;
|
|
14
14
|
type ExactProps<T, S> = {
|
|
15
15
|
-readonly [P in keyof T as IsExactProp<T, P, S> extends true ? P : never]: Exclude<T[P], S>;
|
package/dist/omit-by.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-FIO5FNV2.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as omitBy};
|
package/dist/omit.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOMHZCALNcjs = require('./chunk-OMHZCALN.cjs');require('./chunk-66JP4PUG.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.omit = _chunkOMHZCALNcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOMHZCALNcjs = require('./chunk-OMHZCALN.cjs');require('./chunk-66JP4PUG.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.omit = _chunkOMHZCALNcjs.a;
|
package/dist/omit.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-VI2QG3FU.js";import"./chunk-ITDJLXHO.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as omit};
|
|
1
|
+
import{a}from"./chunk-VI2QG3FU.js";import"./chunk-ITDJLXHO.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as omit};
|
package/dist/once.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJRDQRETRcjs = require('./chunk-JRDQRETR.cjs');exports.once = _chunkJRDQRETRcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJRDQRETRcjs = require('./chunk-JRDQRETR.cjs');require('./chunk-MBGSSEZN.cjs');exports.once = _chunkJRDQRETRcjs.a;
|
package/dist/once.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-C6IMN7SF.js";export{a as once};
|
|
1
|
+
import{a}from"./chunk-C6IMN7SF.js";import"./chunk-EK7ODJWE.js";export{a as once};
|
package/dist/only.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkA3EBULR7cjs = require('./chunk-A3EBULR7.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.only = _chunkA3EBULR7cjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkA3EBULR7cjs = require('./chunk-A3EBULR7.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.only = _chunkA3EBULR7cjs.a;
|
package/dist/only.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-HR2LFFYB.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as only};
|
|
1
|
+
import{a}from"./chunk-HR2LFFYB.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as only};
|
package/dist/partition.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL7WDY53Icjs = require('./chunk-L7WDY53I.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.partition = _chunkL7WDY53Icjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL7WDY53Icjs = require('./chunk-L7WDY53I.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.partition = _chunkL7WDY53Icjs.a;
|
package/dist/partition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-6GEID3HE.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as partition};
|
|
1
|
+
import{a}from"./chunk-6GEID3HE.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as partition};
|
package/dist/path-or.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk25CFIH7Lcjs = require('./chunk-25CFIH7L.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.pathOr = _chunk25CFIH7Lcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk25CFIH7Lcjs = require('./chunk-25CFIH7L.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.pathOr = _chunk25CFIH7Lcjs.a;
|
package/dist/path-or.d.cts
CHANGED
|
@@ -47,6 +47,11 @@ type PathValue3<T, A extends keyof Pathable<T>, B extends keyof Pathable1<T, A>,
|
|
|
47
47
|
/**
|
|
48
48
|
* Gets the value at `path` of `object`. If the resolved value is `null` or `undefined`, the `defaultValue` is returned in its place.
|
|
49
49
|
*
|
|
50
|
+
* Prefer `prop` over this function as it provides better typing and is more
|
|
51
|
+
* flexible when building solutions. To provide a default value using `prop`
|
|
52
|
+
* use a [Nullish coalescing operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing)
|
|
53
|
+
* after the call.
|
|
54
|
+
*
|
|
50
55
|
* @param object - The target object.
|
|
51
56
|
* @param path - The path of the property to get.
|
|
52
57
|
* @param defaultValue - The default value.
|
|
@@ -63,6 +68,11 @@ declare function pathOr<T, A extends keyof Pathable<T>, B extends keyof Pathable
|
|
|
63
68
|
/**
|
|
64
69
|
* Gets the value at `path` of `object`. If the resolved value is `undefined`, the `defaultValue` is returned in its place.
|
|
65
70
|
*
|
|
71
|
+
* Prefer `prop` over this function as it provides better typing and is more
|
|
72
|
+
* flexible when building solutions. To provide a default value using `prop`
|
|
73
|
+
* use a [Nullish coalescing operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing)
|
|
74
|
+
* after the call.
|
|
75
|
+
*
|
|
66
76
|
* @param path - The path of the property to get.
|
|
67
77
|
* @param defaultValue - The default value.
|
|
68
78
|
* @signature P.pathOr(array, defaultValue)(object)
|
package/dist/path-or.d.ts
CHANGED
|
@@ -47,6 +47,11 @@ type PathValue3<T, A extends keyof Pathable<T>, B extends keyof Pathable1<T, A>,
|
|
|
47
47
|
/**
|
|
48
48
|
* Gets the value at `path` of `object`. If the resolved value is `null` or `undefined`, the `defaultValue` is returned in its place.
|
|
49
49
|
*
|
|
50
|
+
* Prefer `prop` over this function as it provides better typing and is more
|
|
51
|
+
* flexible when building solutions. To provide a default value using `prop`
|
|
52
|
+
* use a [Nullish coalescing operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing)
|
|
53
|
+
* after the call.
|
|
54
|
+
*
|
|
50
55
|
* @param object - The target object.
|
|
51
56
|
* @param path - The path of the property to get.
|
|
52
57
|
* @param defaultValue - The default value.
|
|
@@ -63,6 +68,11 @@ declare function pathOr<T, A extends keyof Pathable<T>, B extends keyof Pathable
|
|
|
63
68
|
/**
|
|
64
69
|
* Gets the value at `path` of `object`. If the resolved value is `undefined`, the `defaultValue` is returned in its place.
|
|
65
70
|
*
|
|
71
|
+
* Prefer `prop` over this function as it provides better typing and is more
|
|
72
|
+
* flexible when building solutions. To provide a default value using `prop`
|
|
73
|
+
* use a [Nullish coalescing operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing)
|
|
74
|
+
* after the call.
|
|
75
|
+
*
|
|
66
76
|
* @param path - The path of the property to get.
|
|
67
77
|
* @param defaultValue - The default value.
|
|
68
78
|
* @signature P.pathOr(array, defaultValue)(object)
|
package/dist/path-or.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-N6GBVESU.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as pathOr};
|
|
1
|
+
import{a}from"./chunk-N6GBVESU.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as pathOr};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Tagged } from 'type-fest';
|
|
2
|
+
|
|
3
|
+
declare const PerkakasErrorSymbol: unique symbol;
|
|
4
|
+
interface PerkakasTypeErrorOptions {
|
|
5
|
+
type?: unknown;
|
|
6
|
+
metadata?: unknown;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Used for reporting type errors in a more useful way than `never`.
|
|
10
|
+
*/
|
|
11
|
+
type PerkakasTypeError<FunctionName extends string, Message extends number | string, Options extends PerkakasTypeErrorOptions = {}> = Tagged<Options extends {
|
|
12
|
+
type: infer T;
|
|
13
|
+
} ? T : typeof PerkakasErrorSymbol, `PerkakasTypeError(${FunctionName}): ${Message}.`, Options extends {
|
|
14
|
+
metadata: infer Metadata;
|
|
15
|
+
} ? Metadata : never>;
|
|
16
|
+
|
|
17
|
+
export type { PerkakasTypeError as P };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Tagged } from 'type-fest';
|
|
2
|
+
|
|
3
|
+
declare const PerkakasErrorSymbol: unique symbol;
|
|
4
|
+
interface PerkakasTypeErrorOptions {
|
|
5
|
+
type?: unknown;
|
|
6
|
+
metadata?: unknown;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Used for reporting type errors in a more useful way than `never`.
|
|
10
|
+
*/
|
|
11
|
+
type PerkakasTypeError<FunctionName extends string, Message extends number | string, Options extends PerkakasTypeErrorOptions = {}> = Tagged<Options extends {
|
|
12
|
+
type: infer T;
|
|
13
|
+
} ? T : typeof PerkakasErrorSymbol, `PerkakasTypeError(${FunctionName}): ${Message}.`, Options extends {
|
|
14
|
+
metadata: infer Metadata;
|
|
15
|
+
} ? Metadata : never>;
|
|
16
|
+
|
|
17
|
+
export type { PerkakasTypeError as P };
|
package/dist/pick-by.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGSBNZGMOcjs = require('./chunk-GSBNZGMO.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.pickBy = _chunkGSBNZGMOcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGSBNZGMOcjs = require('./chunk-GSBNZGMO.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.pickBy = _chunkGSBNZGMOcjs.a;
|
package/dist/pick-by.d.cts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-
|
|
3
|
-
import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-
|
|
4
|
-
import { I as
|
|
5
|
-
import {
|
|
2
|
+
import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-D8w_3Yg8.cjs';
|
|
3
|
+
import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-BU9R_cEk.cjs';
|
|
4
|
+
import { I as IsBoundedRecord } from './is-bounded-record-C9WAwfA8.cjs';
|
|
5
|
+
import { T as ToString } from './to-string-DO8zw6jS.cjs';
|
|
6
6
|
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type EnumeratedPartialNarrowed<T, S> = Simplify<ExactProps<T, S> & PartialProps<T, S>>;
|
|
7
|
+
type EnumeratedPartial<T> = T extends unknown ? Simplify<IsBoundedRecord<T> extends true ? {
|
|
8
|
+
-readonly [P in keyof T as ToString<P>]?: Required<T>[P];
|
|
9
|
+
} : Record<EnumerableStringKeyOf<T>, EnumerableStringKeyedValueOf<T>>> : never;
|
|
10
|
+
type EnumeratedPartialNarrowed<T, S> = T extends unknown ? Simplify<IsBoundedRecord<T> extends true ? ExactProps<T, S> & PartialProps<T, S> : Record<EnumerableStringKeyOf<T>, Extract<EnumerableStringKeyedValueOf<T>, S>>> : never;
|
|
12
11
|
type ExactProps<T, S> = {
|
|
13
|
-
-readonly [P in keyof T as
|
|
12
|
+
-readonly [P in keyof T as ToString<IsExactProp<T, P, S> extends true ? P : never>]: Extract<Required<T>[P], S>;
|
|
14
13
|
};
|
|
15
14
|
type PartialProps<T, S> = {
|
|
16
|
-
-readonly [P in keyof T as
|
|
15
|
+
-readonly [P in keyof T as ToString<IsPartialProp<T, P, S> extends true ? P : never>]?: IfNever<Extract<T[P], S>, S extends T[P] ? S : never, Extract<T[P], S>>;
|
|
17
16
|
};
|
|
18
17
|
type IsExactProp<T, P extends keyof T, S> = T[P] extends Extract<T[P], S> ? true : false;
|
|
19
18
|
type IsPartialProp<T, P extends keyof T, S> = IsExactProp<T, P, S> extends true ? false : IfNever<Extract<T[P], S>, S extends T[P] ? true : false, true>;
|
package/dist/pick-by.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-
|
|
3
|
-
import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-
|
|
4
|
-
import { I as
|
|
5
|
-
import {
|
|
2
|
+
import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-C4gsorXe.js';
|
|
3
|
+
import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-BU9R_cEk.js';
|
|
4
|
+
import { I as IsBoundedRecord } from './is-bounded-record-C9WAwfA8.js';
|
|
5
|
+
import { T as ToString } from './to-string-DO8zw6jS.js';
|
|
6
6
|
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type EnumeratedPartialNarrowed<T, S> = Simplify<ExactProps<T, S> & PartialProps<T, S>>;
|
|
7
|
+
type EnumeratedPartial<T> = T extends unknown ? Simplify<IsBoundedRecord<T> extends true ? {
|
|
8
|
+
-readonly [P in keyof T as ToString<P>]?: Required<T>[P];
|
|
9
|
+
} : Record<EnumerableStringKeyOf<T>, EnumerableStringKeyedValueOf<T>>> : never;
|
|
10
|
+
type EnumeratedPartialNarrowed<T, S> = T extends unknown ? Simplify<IsBoundedRecord<T> extends true ? ExactProps<T, S> & PartialProps<T, S> : Record<EnumerableStringKeyOf<T>, Extract<EnumerableStringKeyedValueOf<T>, S>>> : never;
|
|
12
11
|
type ExactProps<T, S> = {
|
|
13
|
-
-readonly [P in keyof T as
|
|
12
|
+
-readonly [P in keyof T as ToString<IsExactProp<T, P, S> extends true ? P : never>]: Extract<Required<T>[P], S>;
|
|
14
13
|
};
|
|
15
14
|
type PartialProps<T, S> = {
|
|
16
|
-
-readonly [P in keyof T as
|
|
15
|
+
-readonly [P in keyof T as ToString<IsPartialProp<T, P, S> extends true ? P : never>]?: IfNever<Extract<T[P], S>, S extends T[P] ? S : never, Extract<T[P], S>>;
|
|
17
16
|
};
|
|
18
17
|
type IsExactProp<T, P extends keyof T, S> = T[P] extends Extract<T[P], S> ? true : false;
|
|
19
18
|
type IsPartialProp<T, P extends keyof T, S> = IsExactProp<T, P, S> extends true ? false : IfNever<Extract<T[P], S>, S extends T[P] ? true : false, true>;
|
package/dist/pick-by.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-SWZW76TE.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as pickBy};
|
|
1
|
+
import{a}from"./chunk-SWZW76TE.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as pickBy};
|
package/dist/pick.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQPMGUF2Vcjs = require('./chunk-QPMGUF2V.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.pick = _chunkQPMGUF2Vcjs.a;
|
package/dist/pick.d.cts
CHANGED
|
@@ -1,25 +1,69 @@
|
|
|
1
|
+
import { KeysOfUnion, IsNever, EmptyObject, Writable } from 'type-fest';
|
|
2
|
+
import { I as IsBoundedRecord, a as IsBounded } from './is-bounded-record-C9WAwfA8.cjs';
|
|
3
|
+
import { I as IsUnion } from './is-union-Bx34mF34.cjs';
|
|
4
|
+
import { T as TupleParts } from './tuple-parts-v6av7LMU.cjs';
|
|
5
|
+
import './iterable-container-BTpDVdNc.cjs';
|
|
6
|
+
import './perkakas-type-error-8wPb8T2y.cjs';
|
|
7
|
+
|
|
8
|
+
type PickFromArray<T, Keys extends ReadonlyArray<KeysOfUnion<T>>> = T extends unknown ? Keys extends unknown ? IsNever<Extract<Keys[number], keyof T>> extends true ? EmptyObject : Writable<IsBoundedRecord<T> extends true ? PickBoundedFromArray<T, Keys> : PickUnbounded<T, Extract<Keys[number], keyof T>>> : never : never;
|
|
9
|
+
/**
|
|
10
|
+
* Bounded records have bounded keys and result in a bounded output. The only
|
|
11
|
+
* question left is whether to add the prop as-is, or make it optional. This
|
|
12
|
+
* can be determined by the part of the keys array the prop is defined in, and
|
|
13
|
+
* the way that element is defined: if the array contains a singular literal
|
|
14
|
+
* key in either the required prefix or the suffix, we know that prop should be
|
|
15
|
+
* picked as-is, otherwise, the key might not be present in the keys array so it
|
|
16
|
+
* can only be picked optionally.
|
|
17
|
+
*/
|
|
18
|
+
type PickBoundedFromArray<T, Keys extends ReadonlyArray<KeysOfUnion<T>>> = Pick<T, Extract<ItemsByUnion<TupleParts<Keys>['required']>['singular'] | ItemsByUnion<TupleParts<Keys>['suffix']>['singular'], keyof T>> & Partial<Pick<T, Extract<ItemsByUnion<TupleParts<Keys>['required']>['union'] | TupleParts<Keys>['optional'][number] | TupleParts<Keys>['item'] | ItemsByUnion<TupleParts<Keys>['suffix']>['union'], keyof T>>>;
|
|
19
|
+
/**
|
|
20
|
+
* We split the fixed tuple item types into **singular** props (e.g., `"a"`),
|
|
21
|
+
* and unions of several props (e.g., `"a" | "b"`).
|
|
22
|
+
*
|
|
23
|
+
* We assume that T is a fixed tuple (no optional or rest elements), and that
|
|
24
|
+
* all elements in it are bounded (as defined by `IsBounded`).
|
|
25
|
+
*/
|
|
26
|
+
type ItemsByUnion<T, Singular = never, Union = never> = T extends readonly [
|
|
27
|
+
infer Head,
|
|
28
|
+
...infer Rest
|
|
29
|
+
] ? IsUnion<Head> extends true ? ItemsByUnion<Rest, Singular, Union | Head> : ItemsByUnion<Rest, Singular | Head, Union> : {
|
|
30
|
+
singular: Singular;
|
|
31
|
+
union: Union;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The built-in `Pick` is weird when it comes to picking bounded keys from
|
|
35
|
+
* unbounded records. It reconstructs the output object regardless of the shape
|
|
36
|
+
* of the input: `Pick<Record<string, "world">, "hello">` results in the type
|
|
37
|
+
* `{ hello: "world" }`, but you'd expect it to be optional because we don't
|
|
38
|
+
* know if the record contains a `hello` prop or not!
|
|
39
|
+
*
|
|
40
|
+
* !Important: We assume T is unbounded and don't test for it!
|
|
41
|
+
*
|
|
42
|
+
* See: https://www.typescriptlang.org/play/?#code/PTAEE0HsFcHIBNQFMAeAHJBjALqAGqNpKAEZKigAGA3qABZIA2jkA-AFygBEA7pAE6N4XUAF9KAGlLRcAQ0ayAzgChsATwz5QAXlAAFAJaYA1gB4ASlgHxTi7PwMA7AOZTeAoVwB8bhs0jeANzKIBSgAHqsykA.
|
|
43
|
+
*/
|
|
44
|
+
type PickUnbounded<T, Keys extends keyof T> = IsBounded<Keys> extends true ? Partial<Pick<T, Keys>> : Pick<T, Keys>;
|
|
1
45
|
/**
|
|
2
|
-
* Creates an object composed of the picked `
|
|
46
|
+
* Creates an object composed of the picked `data` properties.
|
|
3
47
|
*
|
|
4
|
-
* @param
|
|
48
|
+
* @param keys - The property names.
|
|
5
49
|
* @signature P.pick([prop1, prop2])(object)
|
|
6
50
|
* @example
|
|
7
51
|
* P.pipe({ a: 1, b: 2, c: 3, d: 4 }, P.pick(['a', 'd'])) // => { a: 1, d: 4 }
|
|
8
52
|
* @dataLast
|
|
9
53
|
* @category Object
|
|
10
54
|
*/
|
|
11
|
-
declare function pick<T extends object,
|
|
55
|
+
declare function pick<T extends object, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(keys: Keys): (data: T) => PickFromArray<T, Keys>;
|
|
12
56
|
/**
|
|
13
|
-
* Creates an object composed of the picked `
|
|
57
|
+
* Creates an object composed of the picked `data` properties.
|
|
14
58
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
59
|
+
* @param data - The target object.
|
|
60
|
+
* @param keys - The property names.
|
|
17
61
|
* @signature P.pick(object, [prop1, prop2])
|
|
18
62
|
* @example
|
|
19
63
|
* P.pick({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']) // => { a: 1, d: 4 }
|
|
20
64
|
* @dataFirst
|
|
21
65
|
* @category Object
|
|
22
66
|
*/
|
|
23
|
-
declare function pick<T extends object,
|
|
67
|
+
declare function pick<T extends object, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(data: T, keys: Keys): PickFromArray<T, Keys>;
|
|
24
68
|
|
|
25
69
|
export { pick };
|
package/dist/pick.d.ts
CHANGED
|
@@ -1,25 +1,69 @@
|
|
|
1
|
+
import { KeysOfUnion, IsNever, EmptyObject, Writable } from 'type-fest';
|
|
2
|
+
import { I as IsBoundedRecord, a as IsBounded } from './is-bounded-record-C9WAwfA8.js';
|
|
3
|
+
import { I as IsUnion } from './is-union-Bx34mF34.js';
|
|
4
|
+
import { T as TupleParts } from './tuple-parts-BTivqbtT.js';
|
|
5
|
+
import './iterable-container-BTpDVdNc.js';
|
|
6
|
+
import './perkakas-type-error-8wPb8T2y.js';
|
|
7
|
+
|
|
8
|
+
type PickFromArray<T, Keys extends ReadonlyArray<KeysOfUnion<T>>> = T extends unknown ? Keys extends unknown ? IsNever<Extract<Keys[number], keyof T>> extends true ? EmptyObject : Writable<IsBoundedRecord<T> extends true ? PickBoundedFromArray<T, Keys> : PickUnbounded<T, Extract<Keys[number], keyof T>>> : never : never;
|
|
9
|
+
/**
|
|
10
|
+
* Bounded records have bounded keys and result in a bounded output. The only
|
|
11
|
+
* question left is whether to add the prop as-is, or make it optional. This
|
|
12
|
+
* can be determined by the part of the keys array the prop is defined in, and
|
|
13
|
+
* the way that element is defined: if the array contains a singular literal
|
|
14
|
+
* key in either the required prefix or the suffix, we know that prop should be
|
|
15
|
+
* picked as-is, otherwise, the key might not be present in the keys array so it
|
|
16
|
+
* can only be picked optionally.
|
|
17
|
+
*/
|
|
18
|
+
type PickBoundedFromArray<T, Keys extends ReadonlyArray<KeysOfUnion<T>>> = Pick<T, Extract<ItemsByUnion<TupleParts<Keys>['required']>['singular'] | ItemsByUnion<TupleParts<Keys>['suffix']>['singular'], keyof T>> & Partial<Pick<T, Extract<ItemsByUnion<TupleParts<Keys>['required']>['union'] | TupleParts<Keys>['optional'][number] | TupleParts<Keys>['item'] | ItemsByUnion<TupleParts<Keys>['suffix']>['union'], keyof T>>>;
|
|
19
|
+
/**
|
|
20
|
+
* We split the fixed tuple item types into **singular** props (e.g., `"a"`),
|
|
21
|
+
* and unions of several props (e.g., `"a" | "b"`).
|
|
22
|
+
*
|
|
23
|
+
* We assume that T is a fixed tuple (no optional or rest elements), and that
|
|
24
|
+
* all elements in it are bounded (as defined by `IsBounded`).
|
|
25
|
+
*/
|
|
26
|
+
type ItemsByUnion<T, Singular = never, Union = never> = T extends readonly [
|
|
27
|
+
infer Head,
|
|
28
|
+
...infer Rest
|
|
29
|
+
] ? IsUnion<Head> extends true ? ItemsByUnion<Rest, Singular, Union | Head> : ItemsByUnion<Rest, Singular | Head, Union> : {
|
|
30
|
+
singular: Singular;
|
|
31
|
+
union: Union;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The built-in `Pick` is weird when it comes to picking bounded keys from
|
|
35
|
+
* unbounded records. It reconstructs the output object regardless of the shape
|
|
36
|
+
* of the input: `Pick<Record<string, "world">, "hello">` results in the type
|
|
37
|
+
* `{ hello: "world" }`, but you'd expect it to be optional because we don't
|
|
38
|
+
* know if the record contains a `hello` prop or not!
|
|
39
|
+
*
|
|
40
|
+
* !Important: We assume T is unbounded and don't test for it!
|
|
41
|
+
*
|
|
42
|
+
* See: https://www.typescriptlang.org/play/?#code/PTAEE0HsFcHIBNQFMAeAHJBjALqAGqNpKAEZKigAGA3qABZIA2jkA-AFygBEA7pAE6N4XUAF9KAGlLRcAQ0ayAzgChsATwz5QAXlAAFAJaYA1gB4ASlgHxTi7PwMA7AOZTeAoVwB8bhs0jeANzKIBSgAHqsykA.
|
|
43
|
+
*/
|
|
44
|
+
type PickUnbounded<T, Keys extends keyof T> = IsBounded<Keys> extends true ? Partial<Pick<T, Keys>> : Pick<T, Keys>;
|
|
1
45
|
/**
|
|
2
|
-
* Creates an object composed of the picked `
|
|
46
|
+
* Creates an object composed of the picked `data` properties.
|
|
3
47
|
*
|
|
4
|
-
* @param
|
|
48
|
+
* @param keys - The property names.
|
|
5
49
|
* @signature P.pick([prop1, prop2])(object)
|
|
6
50
|
* @example
|
|
7
51
|
* P.pipe({ a: 1, b: 2, c: 3, d: 4 }, P.pick(['a', 'd'])) // => { a: 1, d: 4 }
|
|
8
52
|
* @dataLast
|
|
9
53
|
* @category Object
|
|
10
54
|
*/
|
|
11
|
-
declare function pick<T extends object,
|
|
55
|
+
declare function pick<T extends object, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(keys: Keys): (data: T) => PickFromArray<T, Keys>;
|
|
12
56
|
/**
|
|
13
|
-
* Creates an object composed of the picked `
|
|
57
|
+
* Creates an object composed of the picked `data` properties.
|
|
14
58
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
59
|
+
* @param data - The target object.
|
|
60
|
+
* @param keys - The property names.
|
|
17
61
|
* @signature P.pick(object, [prop1, prop2])
|
|
18
62
|
* @example
|
|
19
63
|
* P.pick({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']) // => { a: 1, d: 4 }
|
|
20
64
|
* @dataFirst
|
|
21
65
|
* @category Object
|
|
22
66
|
*/
|
|
23
|
-
declare function pick<T extends object,
|
|
67
|
+
declare function pick<T extends object, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(data: T, keys: Keys): PickFromArray<T, Keys>;
|
|
24
68
|
|
|
25
69
|
export { pick };
|
package/dist/pick.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-DXA7AZUA.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as pick};
|
package/dist/pipe.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBO34ARLYcjs = require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');exports.pipe = _chunkBO34ARLYcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBO34ARLYcjs = require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');require('./chunk-MBGSSEZN.cjs');exports.pipe = _chunkBO34ARLYcjs.a;
|
package/dist/pipe.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";export{a as pipe};
|
|
1
|
+
import{a}from"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";import"./chunk-EK7ODJWE.js";export{a as pipe};
|
package/dist/piped.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2CBHJMXWcjs = require('./chunk-2CBHJMXW.cjs');require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');exports.piped = _chunk2CBHJMXWcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2CBHJMXWcjs = require('./chunk-2CBHJMXW.cjs');require('./chunk-BO34ARLY.cjs');require('./chunk-N5JE6642.cjs');require('./chunk-MBGSSEZN.cjs');exports.piped = _chunk2CBHJMXWcjs.a;
|
package/dist/piped.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-N2NQKHB3.js";import"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";export{a as piped};
|
|
1
|
+
import{a}from"./chunk-N2NQKHB3.js";import"./chunk-QHBVEZSR.js";import"./chunk-EPU4K3DD.js";import"./chunk-EK7ODJWE.js";export{a as piped};
|
package/dist/product.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXY7YER5Ncjs = require('./chunk-XY7YER5N.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.product = _chunkXY7YER5Ncjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXY7YER5Ncjs = require('./chunk-XY7YER5N.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.product = _chunkXY7YER5Ncjs.a;
|
package/dist/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-5T6DY3SA.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as product};
|
|
1
|
+
import{a}from"./chunk-5T6DY3SA.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as product};
|
package/dist/prop.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHHNHTPVOcjs = require('./chunk-HHNHTPVO.cjs');require('./chunk-MBGSSEZN.cjs');exports.prop = _chunkHHNHTPVOcjs.a;
|