@duplojs/lang 0.0.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/README.md +9 -0
- package/dist/_virtual/_rolldown/runtime.cjs +13 -0
- package/dist/_virtual/_rolldown/runtime.mjs +13 -0
- package/dist/array/at/default.cjs +11 -0
- package/dist/array/at/default.d.ts +4 -0
- package/dist/array/at/default.mjs +11 -0
- package/dist/array/at/first.cjs +6 -0
- package/dist/array/at/first.d.ts +3 -0
- package/dist/array/at/first.mjs +6 -0
- package/dist/array/at/index.d.ts +3 -0
- package/dist/array/at/last.cjs +6 -0
- package/dist/array/at/last.d.ts +6 -0
- package/dist/array/at/last.mjs +6 -0
- package/dist/array/chunk.cjs +13 -0
- package/dist/array/chunk.d.ts +2 -0
- package/dist/array/chunk.mjs +13 -0
- package/dist/array/coalescing.cjs +6 -0
- package/dist/array/coalescing.d.ts +3 -0
- package/dist/array/coalescing.mjs +6 -0
- package/dist/array/concat.cjs +11 -0
- package/dist/array/concat.d.ts +5 -0
- package/dist/array/concat.mjs +11 -0
- package/dist/array/constraints/index.d.ts +4 -0
- package/dist/array/constraints/lengthEqual.d.ts +10 -0
- package/dist/array/constraints/maxElements.d.ts +10 -0
- package/dist/array/constraints/minElements.d.ts +11 -0
- package/dist/array/constraints/types/hasAtLeastElements.d.ts +5 -0
- package/dist/array/constraints/types/hasAtMostElements.d.ts +5 -0
- package/dist/array/constraints/types/hasExactLength.d.ts +3 -0
- package/dist/array/constraints/types/index.d.ts +9 -0
- package/dist/array/constraints/types/isIndexCovered.d.ts +5 -0
- package/dist/array/constraints/types/isIndexOutOfRange.d.ts +5 -0
- package/dist/array/constraints/types/reapplyCompatiblesConstraints.d.ts +24 -0
- package/dist/array/constraints/types/requireAtLeastElements.d.ts +3 -0
- package/dist/array/constraints/types/requireAtMostElements.d.ts +3 -0
- package/dist/array/constraints/types/requireExactLength.d.ts +3 -0
- package/dist/array/copyWithin.cjs +11 -0
- package/dist/array/copyWithin.d.ts +5 -0
- package/dist/array/copyWithin.mjs +11 -0
- package/dist/array/every.cjs +14 -0
- package/dist/array/every.d.ts +6 -0
- package/dist/array/every.mjs +14 -0
- package/dist/array/fill/all.cjs +11 -0
- package/dist/array/fill/all.d.ts +5 -0
- package/dist/array/fill/all.mjs +11 -0
- package/dist/array/fill/default.cjs +11 -0
- package/dist/array/fill/default.d.ts +5 -0
- package/dist/array/fill/default.mjs +11 -0
- package/dist/array/fill/index.d.ts +2 -0
- package/dist/array/filter.cjs +14 -0
- package/dist/array/filter.d.ts +11 -0
- package/dist/array/filter.mjs +14 -0
- package/dist/array/find.cjs +14 -0
- package/dist/array/find.d.ts +8 -0
- package/dist/array/find.mjs +14 -0
- package/dist/array/findAndReplace.cjs +18 -0
- package/dist/array/findAndReplace.d.ts +10 -0
- package/dist/array/findAndReplace.mjs +18 -0
- package/dist/array/findAndSplice/delete.cjs +18 -0
- package/dist/array/findAndSplice/delete.d.ts +9 -0
- package/dist/array/findAndSplice/delete.mjs +18 -0
- package/dist/array/findAndSplice/index.d.ts +3 -0
- package/dist/array/findAndSplice/insert.cjs +18 -0
- package/dist/array/findAndSplice/insert.d.ts +9 -0
- package/dist/array/findAndSplice/insert.mjs +18 -0
- package/dist/array/findAndSplice/replace.cjs +18 -0
- package/dist/array/findAndSplice/replace.d.ts +6 -0
- package/dist/array/findAndSplice/replace.mjs +18 -0
- package/dist/array/findDuplicates.cjs +33 -0
- package/dist/array/findDuplicates.d.ts +4 -0
- package/dist/array/findDuplicates.mjs +33 -0
- package/dist/array/findIndex.cjs +14 -0
- package/dist/array/findIndex.d.ts +6 -0
- package/dist/array/findIndex.mjs +14 -0
- package/dist/array/findLast.cjs +17 -0
- package/dist/array/findLast.d.ts +8 -0
- package/dist/array/findLast.mjs +17 -0
- package/dist/array/findLastIndex.cjs +17 -0
- package/dist/array/findLastIndex.d.ts +6 -0
- package/dist/array/findLastIndex.mjs +17 -0
- package/dist/array/flat.cjs +6 -0
- package/dist/array/flat.d.ts +1 -0
- package/dist/array/flat.mjs +6 -0
- package/dist/array/flatMap.cjs +14 -0
- package/dist/array/flatMap.d.ts +6 -0
- package/dist/array/flatMap.mjs +14 -0
- package/dist/array/from.cjs +11 -0
- package/dist/array/from.d.ts +4 -0
- package/dist/array/from.mjs +11 -0
- package/dist/array/group.cjs +32 -0
- package/dist/array/group.d.ts +16 -0
- package/dist/array/group.mjs +31 -0
- package/dist/array/includes.cjs +11 -0
- package/dist/array/includes.d.ts +2 -0
- package/dist/array/includes.mjs +11 -0
- package/dist/array/index.cjs +183 -0
- package/dist/array/index.d.ts +49 -0
- package/dist/array/index.mjs +119 -0
- package/dist/array/indexOf.cjs +12 -0
- package/dist/array/indexOf.d.ts +2 -0
- package/dist/array/indexOf.mjs +12 -0
- package/dist/array/infer.cjs +6 -0
- package/dist/array/infer.d.ts +14 -0
- package/dist/array/infer.mjs +6 -0
- package/dist/array/insert.cjs +13 -0
- package/dist/array/insert.d.ts +5 -0
- package/dist/array/insert.mjs +13 -0
- package/dist/array/is.cjs +6 -0
- package/dist/array/is.d.ts +4 -0
- package/dist/array/is.mjs +6 -0
- package/dist/array/isLastIndex.cjs +11 -0
- package/dist/array/isLastIndex.d.ts +2 -0
- package/dist/array/isLastIndex.mjs +11 -0
- package/dist/array/kind.cjs +4 -0
- package/dist/array/kind.d.ts +2 -0
- package/dist/array/kind.mjs +5 -0
- package/dist/array/lastIndexOf.cjs +12 -0
- package/dist/array/lastIndexOf.d.ts +2 -0
- package/dist/array/lastIndexOf.mjs +12 -0
- package/dist/array/length.cjs +6 -0
- package/dist/array/length.d.ts +5 -0
- package/dist/array/length.mjs +6 -0
- package/dist/array/lengthEqual.cjs +11 -0
- package/dist/array/lengthEqual.d.ts +14 -0
- package/dist/array/lengthEqual.mjs +11 -0
- package/dist/array/map.cjs +14 -0
- package/dist/array/map.d.ts +9 -0
- package/dist/array/map.mjs +14 -0
- package/dist/array/maxElements.cjs +11 -0
- package/dist/array/maxElements.d.ts +13 -0
- package/dist/array/maxElements.mjs +11 -0
- package/dist/array/minElements.cjs +11 -0
- package/dist/array/minElements.d.ts +13 -0
- package/dist/array/minElements.mjs +11 -0
- package/dist/array/notIncludes.cjs +11 -0
- package/dist/array/notIncludes.d.ts +2 -0
- package/dist/array/notIncludes.mjs +11 -0
- package/dist/array/pop.cjs +6 -0
- package/dist/array/pop.d.ts +4 -0
- package/dist/array/pop.mjs +6 -0
- package/dist/array/prepend.cjs +11 -0
- package/dist/array/prepend.d.ts +5 -0
- package/dist/array/prepend.mjs +11 -0
- package/dist/array/push.cjs +13 -0
- package/dist/array/push.d.ts +5 -0
- package/dist/array/push.mjs +13 -0
- package/dist/array/reduce.cjs +48 -0
- package/dist/array/reduce.d.ts +27 -0
- package/dist/array/reduce.mjs +45 -0
- package/dist/array/reduceRight.cjs +25 -0
- package/dist/array/reduceRight.d.ts +4 -0
- package/dist/array/reduceRight.mjs +25 -0
- package/dist/array/reverse.cjs +6 -0
- package/dist/array/reverse.d.ts +4 -0
- package/dist/array/reverse.mjs +6 -0
- package/dist/array/select.cjs +32 -0
- package/dist/array/select.d.ts +17 -0
- package/dist/array/select.mjs +31 -0
- package/dist/array/set.cjs +13 -0
- package/dist/array/set.d.ts +2 -0
- package/dist/array/set.mjs +13 -0
- package/dist/array/shift.cjs +6 -0
- package/dist/array/shift.d.ts +4 -0
- package/dist/array/shift.mjs +6 -0
- package/dist/array/slice.cjs +11 -0
- package/dist/array/slice.d.ts +2 -0
- package/dist/array/slice.mjs +11 -0
- package/dist/array/some.cjs +14 -0
- package/dist/array/some.d.ts +6 -0
- package/dist/array/some.mjs +14 -0
- package/dist/array/sort.cjs +11 -0
- package/dist/array/sort.d.ts +5 -0
- package/dist/array/sort.mjs +11 -0
- package/dist/array/splice/delete.cjs +13 -0
- package/dist/array/splice/delete.d.ts +5 -0
- package/dist/array/splice/delete.mjs +13 -0
- package/dist/array/splice/index.d.ts +3 -0
- package/dist/array/splice/insert.cjs +13 -0
- package/dist/array/splice/insert.d.ts +5 -0
- package/dist/array/splice/insert.mjs +13 -0
- package/dist/array/splice/replace.cjs +13 -0
- package/dist/array/splice/replace.d.ts +2 -0
- package/dist/array/splice/replace.mjs +13 -0
- package/dist/array/types/index.d.ts +1 -0
- package/dist/array/types/unwrap.d.ts +1 -0
- package/dist/array/unshift.cjs +11 -0
- package/dist/array/unshift.d.ts +5 -0
- package/dist/array/unshift.mjs +11 -0
- package/dist/chrono/applyTimezone.cjs +15 -0
- package/dist/chrono/applyTimezone.d.ts +5 -0
- package/dist/chrono/applyTimezone.mjs +15 -0
- package/dist/chrono/closestTo.cjs +27 -0
- package/dist/chrono/closestTo.d.ts +7 -0
- package/dist/chrono/closestTo.mjs +27 -0
- package/dist/chrono/computeTime.cjs +21 -0
- package/dist/chrono/computeTime.d.ts +5 -0
- package/dist/chrono/computeTime.mjs +21 -0
- package/dist/chrono/constants.cjs +28 -0
- package/dist/chrono/constants.d.ts +18 -0
- package/dist/chrono/constants.mjs +16 -0
- package/dist/chrono/createDate.cjs +68 -0
- package/dist/chrono/createDate.d.ts +21 -0
- package/dist/chrono/createDate.mjs +68 -0
- package/dist/chrono/createDateOrThrow.cjs +22 -0
- package/dist/chrono/createDateOrThrow.d.ts +11 -0
- package/dist/chrono/createDateOrThrow.mjs +21 -0
- package/dist/chrono/createTime.cjs +45 -0
- package/dist/chrono/createTime.d.ts +30 -0
- package/dist/chrono/createTime.mjs +45 -0
- package/dist/chrono/createTimeOrThrow.cjs +22 -0
- package/dist/chrono/createTimeOrThrow.d.ts +10 -0
- package/dist/chrono/createTimeOrThrow.mjs +21 -0
- package/dist/chrono/eachDate.cjs +36 -0
- package/dist/chrono/eachDate.d.ts +6 -0
- package/dist/chrono/eachDate.mjs +36 -0
- package/dist/chrono/formatDate.cjs +36 -0
- package/dist/chrono/formatDate.d.ts +5 -0
- package/dist/chrono/formatDate.mjs +36 -0
- package/dist/chrono/formatTime.cjs +36 -0
- package/dist/chrono/formatTime.d.ts +4 -0
- package/dist/chrono/formatTime.mjs +36 -0
- package/dist/chrono/getDifference.cjs +16 -0
- package/dist/chrono/getDifference.d.ts +5 -0
- package/dist/chrono/getDifference.mjs +16 -0
- package/dist/chrono/getTimezoneOffset.cjs +25 -0
- package/dist/chrono/getTimezoneOffset.d.ts +5 -0
- package/dist/chrono/getTimezoneOffset.mjs +25 -0
- package/dist/chrono/getters/getDayOfMonth.cjs +13 -0
- package/dist/chrono/getters/getDayOfMonth.d.ts +4 -0
- package/dist/chrono/getters/getDayOfMonth.mjs +13 -0
- package/dist/chrono/getters/getDayOfWeek.cjs +22 -0
- package/dist/chrono/getters/getDayOfWeek.d.ts +4 -0
- package/dist/chrono/getters/getDayOfWeek.mjs +22 -0
- package/dist/chrono/getters/getDayOfYear.cjs +30 -0
- package/dist/chrono/getters/getDayOfYear.d.ts +4 -0
- package/dist/chrono/getters/getDayOfYear.mjs +30 -0
- package/dist/chrono/getters/getFirstDayOfMonth.cjs +11 -0
- package/dist/chrono/getters/getFirstDayOfMonth.d.ts +3 -0
- package/dist/chrono/getters/getFirstDayOfMonth.mjs +11 -0
- package/dist/chrono/getters/getFirstDayOfWeek.cjs +13 -0
- package/dist/chrono/getters/getFirstDayOfWeek.d.ts +3 -0
- package/dist/chrono/getters/getFirstDayOfWeek.mjs +13 -0
- package/dist/chrono/getters/getHour.cjs +14 -0
- package/dist/chrono/getters/getHour.d.ts +4 -0
- package/dist/chrono/getters/getHour.mjs +14 -0
- package/dist/chrono/getters/getLastDayOfMonth.cjs +11 -0
- package/dist/chrono/getters/getLastDayOfMonth.d.ts +3 -0
- package/dist/chrono/getters/getLastDayOfMonth.mjs +11 -0
- package/dist/chrono/getters/getLastDayOfWeek.cjs +13 -0
- package/dist/chrono/getters/getLastDayOfWeek.d.ts +3 -0
- package/dist/chrono/getters/getLastDayOfWeek.mjs +13 -0
- package/dist/chrono/getters/getMilliseconds.cjs +7 -0
- package/dist/chrono/getters/getMilliseconds.d.ts +3 -0
- package/dist/chrono/getters/getMilliseconds.mjs +7 -0
- package/dist/chrono/getters/getMinute.cjs +13 -0
- package/dist/chrono/getters/getMinute.d.ts +4 -0
- package/dist/chrono/getters/getMinute.mjs +13 -0
- package/dist/chrono/getters/getMonth.cjs +13 -0
- package/dist/chrono/getters/getMonth.d.ts +4 -0
- package/dist/chrono/getters/getMonth.mjs +13 -0
- package/dist/chrono/getters/getSecond.cjs +13 -0
- package/dist/chrono/getters/getSecond.d.ts +4 -0
- package/dist/chrono/getters/getSecond.mjs +13 -0
- package/dist/chrono/getters/getWeekOfYear.cjs +35 -0
- package/dist/chrono/getters/getWeekOfYear.d.ts +4 -0
- package/dist/chrono/getters/getWeekOfYear.mjs +35 -0
- package/dist/chrono/getters/getYear.cjs +13 -0
- package/dist/chrono/getters/getYear.d.ts +4 -0
- package/dist/chrono/getters/getYear.mjs +13 -0
- package/dist/chrono/getters/index.d.ts +14 -0
- package/dist/chrono/index.cjs +305 -0
- package/dist/chrono/index.d.ts +44 -0
- package/dist/chrono/index.mjs +199 -0
- package/dist/chrono/isDate.cjs +7 -0
- package/dist/chrono/isDate.d.ts +2 -0
- package/dist/chrono/isDate.mjs +7 -0
- package/dist/chrono/isSafeTimeValue.cjs +9 -0
- package/dist/chrono/isSafeTimeValue.d.ts +1 -0
- package/dist/chrono/isSafeTimeValue.mjs +9 -0
- package/dist/chrono/isSafeTimestamp.cjs +9 -0
- package/dist/chrono/isSafeTimestamp.d.ts +1 -0
- package/dist/chrono/isSafeTimestamp.mjs +9 -0
- package/dist/chrono/isSerializedTheDate.cjs +13 -0
- package/dist/chrono/isSerializedTheDate.d.ts +2 -0
- package/dist/chrono/isSerializedTheDate.mjs +13 -0
- package/dist/chrono/isSerializedTheTime.cjs +13 -0
- package/dist/chrono/isSerializedTheTime.d.ts +2 -0
- package/dist/chrono/isSerializedTheTime.mjs +13 -0
- package/dist/chrono/isTime.cjs +7 -0
- package/dist/chrono/isTime.d.ts +2 -0
- package/dist/chrono/isTime.mjs +7 -0
- package/dist/chrono/kind.cjs +4 -0
- package/dist/chrono/kind.d.ts +2 -0
- package/dist/chrono/kind.mjs +5 -0
- package/dist/chrono/makeSafeTimeValue.cjs +10 -0
- package/dist/chrono/makeSafeTimeValue.d.ts +1 -0
- package/dist/chrono/makeSafeTimeValue.mjs +10 -0
- package/dist/chrono/makeSafeTimestamp.cjs +10 -0
- package/dist/chrono/makeSafeTimestamp.d.ts +1 -0
- package/dist/chrono/makeSafeTimestamp.mjs +10 -0
- package/dist/chrono/maxDate.cjs +8 -0
- package/dist/chrono/maxDate.d.ts +4 -0
- package/dist/chrono/maxDate.mjs +8 -0
- package/dist/chrono/maxTime.cjs +8 -0
- package/dist/chrono/maxTime.d.ts +4 -0
- package/dist/chrono/maxTime.mjs +8 -0
- package/dist/chrono/minDate.cjs +8 -0
- package/dist/chrono/minDate.d.ts +4 -0
- package/dist/chrono/minDate.mjs +8 -0
- package/dist/chrono/minTime.cjs +8 -0
- package/dist/chrono/minTime.d.ts +4 -0
- package/dist/chrono/minTime.mjs +8 -0
- package/dist/chrono/now.cjs +8 -0
- package/dist/chrono/now.d.ts +2 -0
- package/dist/chrono/now.mjs +8 -0
- package/dist/chrono/operators/addDays.cjs +14 -0
- package/dist/chrono/operators/addDays.d.ts +4 -0
- package/dist/chrono/operators/addDays.mjs +14 -0
- package/dist/chrono/operators/addHours.cjs +14 -0
- package/dist/chrono/operators/addHours.d.ts +4 -0
- package/dist/chrono/operators/addHours.mjs +14 -0
- package/dist/chrono/operators/addMilliseconds.cjs +13 -0
- package/dist/chrono/operators/addMilliseconds.d.ts +4 -0
- package/dist/chrono/operators/addMilliseconds.mjs +13 -0
- package/dist/chrono/operators/addMinutes.cjs +14 -0
- package/dist/chrono/operators/addMinutes.d.ts +4 -0
- package/dist/chrono/operators/addMinutes.mjs +14 -0
- package/dist/chrono/operators/addMonths.cjs +15 -0
- package/dist/chrono/operators/addMonths.d.ts +4 -0
- package/dist/chrono/operators/addMonths.mjs +15 -0
- package/dist/chrono/operators/addSeconds.cjs +14 -0
- package/dist/chrono/operators/addSeconds.d.ts +4 -0
- package/dist/chrono/operators/addSeconds.mjs +14 -0
- package/dist/chrono/operators/addTime.cjs +26 -0
- package/dist/chrono/operators/addTime.d.ts +7 -0
- package/dist/chrono/operators/addTime.mjs +26 -0
- package/dist/chrono/operators/addWeeks.cjs +15 -0
- package/dist/chrono/operators/addWeeks.d.ts +4 -0
- package/dist/chrono/operators/addWeeks.mjs +15 -0
- package/dist/chrono/operators/addYears.cjs +15 -0
- package/dist/chrono/operators/addYears.d.ts +4 -0
- package/dist/chrono/operators/addYears.mjs +15 -0
- package/dist/chrono/operators/betweenThanDate.cjs +15 -0
- package/dist/chrono/operators/betweenThanDate.d.ts +4 -0
- package/dist/chrono/operators/betweenThanDate.mjs +15 -0
- package/dist/chrono/operators/betweenThanOrEqualDate.cjs +15 -0
- package/dist/chrono/operators/betweenThanOrEqualDate.d.ts +4 -0
- package/dist/chrono/operators/betweenThanOrEqualDate.mjs +15 -0
- package/dist/chrono/operators/betweenThanOrEqualTime.cjs +15 -0
- package/dist/chrono/operators/betweenThanOrEqualTime.d.ts +4 -0
- package/dist/chrono/operators/betweenThanOrEqualTime.mjs +15 -0
- package/dist/chrono/operators/betweenThanTime.cjs +15 -0
- package/dist/chrono/operators/betweenThanTime.d.ts +4 -0
- package/dist/chrono/operators/betweenThanTime.mjs +15 -0
- package/dist/chrono/operators/equalDate.cjs +12 -0
- package/dist/chrono/operators/equalDate.d.ts +4 -0
- package/dist/chrono/operators/equalDate.mjs +12 -0
- package/dist/chrono/operators/equalTime.cjs +12 -0
- package/dist/chrono/operators/equalTime.d.ts +4 -0
- package/dist/chrono/operators/equalTime.mjs +12 -0
- package/dist/chrono/operators/greaterThanDate.cjs +12 -0
- package/dist/chrono/operators/greaterThanDate.d.ts +4 -0
- package/dist/chrono/operators/greaterThanDate.mjs +12 -0
- package/dist/chrono/operators/greaterThanOrEqualDate.cjs +12 -0
- package/dist/chrono/operators/greaterThanOrEqualDate.d.ts +4 -0
- package/dist/chrono/operators/greaterThanOrEqualDate.mjs +12 -0
- package/dist/chrono/operators/greaterThanOrEqualTime.cjs +12 -0
- package/dist/chrono/operators/greaterThanOrEqualTime.d.ts +4 -0
- package/dist/chrono/operators/greaterThanOrEqualTime.mjs +12 -0
- package/dist/chrono/operators/greaterThanTime.cjs +12 -0
- package/dist/chrono/operators/greaterThanTime.d.ts +4 -0
- package/dist/chrono/operators/greaterThanTime.mjs +12 -0
- package/dist/chrono/operators/index.d.ts +32 -0
- package/dist/chrono/operators/lessThanDate.cjs +12 -0
- package/dist/chrono/operators/lessThanDate.d.ts +4 -0
- package/dist/chrono/operators/lessThanDate.mjs +12 -0
- package/dist/chrono/operators/lessThanOrEqualDate.cjs +12 -0
- package/dist/chrono/operators/lessThanOrEqualDate.d.ts +4 -0
- package/dist/chrono/operators/lessThanOrEqualDate.mjs +12 -0
- package/dist/chrono/operators/lessThanOrEqualTime.cjs +12 -0
- package/dist/chrono/operators/lessThanOrEqualTime.d.ts +4 -0
- package/dist/chrono/operators/lessThanOrEqualTime.mjs +12 -0
- package/dist/chrono/operators/lessThanTime.cjs +12 -0
- package/dist/chrono/operators/lessThanTime.d.ts +4 -0
- package/dist/chrono/operators/lessThanTime.mjs +12 -0
- package/dist/chrono/operators/subtractDays.cjs +14 -0
- package/dist/chrono/operators/subtractDays.d.ts +4 -0
- package/dist/chrono/operators/subtractDays.mjs +14 -0
- package/dist/chrono/operators/subtractHours.cjs +14 -0
- package/dist/chrono/operators/subtractHours.d.ts +4 -0
- package/dist/chrono/operators/subtractHours.mjs +14 -0
- package/dist/chrono/operators/subtractMilliseconds.cjs +13 -0
- package/dist/chrono/operators/subtractMilliseconds.d.ts +4 -0
- package/dist/chrono/operators/subtractMilliseconds.mjs +13 -0
- package/dist/chrono/operators/subtractMinutes.cjs +14 -0
- package/dist/chrono/operators/subtractMinutes.d.ts +4 -0
- package/dist/chrono/operators/subtractMinutes.mjs +14 -0
- package/dist/chrono/operators/subtractMonths.cjs +15 -0
- package/dist/chrono/operators/subtractMonths.d.ts +4 -0
- package/dist/chrono/operators/subtractMonths.mjs +15 -0
- package/dist/chrono/operators/subtractSeconds.cjs +14 -0
- package/dist/chrono/operators/subtractSeconds.d.ts +4 -0
- package/dist/chrono/operators/subtractSeconds.mjs +14 -0
- package/dist/chrono/operators/subtractTime.cjs +26 -0
- package/dist/chrono/operators/subtractTime.d.ts +7 -0
- package/dist/chrono/operators/subtractTime.mjs +26 -0
- package/dist/chrono/operators/subtractWeeks.cjs +14 -0
- package/dist/chrono/operators/subtractWeeks.d.ts +4 -0
- package/dist/chrono/operators/subtractWeeks.mjs +14 -0
- package/dist/chrono/operators/subtractYears.cjs +15 -0
- package/dist/chrono/operators/subtractYears.d.ts +4 -0
- package/dist/chrono/operators/subtractYears.mjs +15 -0
- package/dist/chrono/round.cjs +21 -0
- package/dist/chrono/round.d.ts +4 -0
- package/dist/chrono/round.mjs +21 -0
- package/dist/chrono/serialize.cjs +12 -0
- package/dist/chrono/serialize.d.ts +5 -0
- package/dist/chrono/serialize.mjs +12 -0
- package/dist/chrono/sortDates.cjs +13 -0
- package/dist/chrono/sortDates.d.ts +6 -0
- package/dist/chrono/sortDates.mjs +13 -0
- package/dist/chrono/sortTimes.cjs +13 -0
- package/dist/chrono/sortTimes.d.ts +6 -0
- package/dist/chrono/sortTimes.mjs +13 -0
- package/dist/chrono/theDate.cjs +119 -0
- package/dist/chrono/theDate.d.ts +70 -0
- package/dist/chrono/theDate.mjs +119 -0
- package/dist/chrono/theTime.cjs +31 -0
- package/dist/chrono/theTime.d.ts +11 -0
- package/dist/chrono/theTime.mjs +31 -0
- package/dist/chrono/timezone.cjs +603 -0
- package/dist/chrono/timezone.d.ts +605 -0
- package/dist/chrono/timezone.mjs +604 -0
- package/dist/chrono/toDateISOString.cjs +9 -0
- package/dist/chrono/toDateISOString.d.ts +3 -0
- package/dist/chrono/toDateISOString.mjs +9 -0
- package/dist/chrono/toNative.cjs +13 -0
- package/dist/chrono/toNative.d.ts +5 -0
- package/dist/chrono/toNative.mjs +13 -0
- package/dist/chrono/toTimeValue.cjs +11 -0
- package/dist/chrono/toTimeValue.d.ts +3 -0
- package/dist/chrono/toTimeValue.mjs +11 -0
- package/dist/chrono/toTimestamp.cjs +11 -0
- package/dist/chrono/toTimestamp.d.ts +3 -0
- package/dist/chrono/toTimestamp.mjs +11 -0
- package/dist/chrono/today.cjs +8 -0
- package/dist/chrono/today.d.ts +2 -0
- package/dist/chrono/today.mjs +8 -0
- package/dist/chrono/tomorrow.cjs +9 -0
- package/dist/chrono/tomorrow.d.ts +2 -0
- package/dist/chrono/tomorrow.mjs +9 -0
- package/dist/chrono/types/index.d.ts +9 -0
- package/dist/chrono/types/isLeapYear.d.ts +8 -0
- package/dist/chrono/types/isSafeYear.d.ts +6 -0
- package/dist/chrono/types/month.d.ts +9 -0
- package/dist/chrono/types/serializedTheDate.d.ts +1 -0
- package/dist/chrono/types/serializedTheTime.d.ts +1 -0
- package/dist/chrono/types/spoolingDate.d.ts +13 -0
- package/dist/chrono/types/spoolingTime.d.ts +9 -0
- package/dist/chrono/types/time.d.ts +5 -0
- package/dist/chrono/types/unit.d.ts +1 -0
- package/dist/chrono/yesterday.cjs +9 -0
- package/dist/chrono/yesterday.d.ts +2 -0
- package/dist/chrono/yesterday.mjs +9 -0
- package/dist/common/and.cjs +12 -0
- package/dist/common/and.d.ts +31 -0
- package/dist/common/and.mjs +12 -0
- package/dist/common/asserts.cjs +16 -0
- package/dist/common/asserts.d.ts +8 -0
- package/dist/common/asserts.mjs +15 -0
- package/dist/common/asyncInnerPipe.cjs +10 -0
- package/dist/common/asyncInnerPipe.d.ts +16 -0
- package/dist/common/asyncInnerPipe.mjs +10 -0
- package/dist/common/asyncLoop.cjs +16 -0
- package/dist/common/asyncLoop.d.ts +10 -0
- package/dist/common/asyncLoop.mjs +16 -0
- package/dist/common/asyncPipe.cjs +8 -0
- package/dist/common/asyncPipe.d.ts +16 -0
- package/dist/common/asyncPipe.mjs +8 -0
- package/dist/common/asyncRetry.cjs +16 -0
- package/dist/common/asyncRetry.d.ts +7 -0
- package/dist/common/asyncRetry.mjs +15 -0
- package/dist/common/bindPrototypeMethods.cjs +19 -0
- package/dist/common/bindPrototypeMethods.d.ts +1 -0
- package/dist/common/bindPrototypeMethods.mjs +19 -0
- package/dist/common/builder.cjs +47 -0
- package/dist/common/builder.d.ts +32 -0
- package/dist/common/builder.mjs +46 -0
- package/dist/common/callThen.cjs +13 -0
- package/dist/common/callThen.d.ts +1 -0
- package/dist/common/callThen.mjs +13 -0
- package/dist/common/clone.cjs +16 -0
- package/dist/common/clone.d.ts +2 -0
- package/dist/common/clone.mjs +16 -0
- package/dist/common/constraint/cast/array.d.ts +9 -0
- package/dist/common/constraint/cast/error.d.ts +9 -0
- package/dist/common/constraint/cast/index.cjs +10 -0
- package/dist/common/constraint/cast/index.d.ts +37 -0
- package/dist/common/constraint/cast/index.mjs +9 -0
- package/dist/common/constraint/cast/number.d.ts +10 -0
- package/dist/common/constraint/cast/string.d.ts +9 -0
- package/dist/common/constraint/index.d.ts +2 -0
- package/dist/common/constraint/types/base.d.ts +7 -0
- package/dist/common/constraint/types/compatibilityResult.d.ts +5 -0
- package/dist/common/constraint/types/dynamic.d.ts +3 -0
- package/dist/common/constraint/types/get.d.ts +3 -0
- package/dist/common/constraint/types/index.d.ts +6 -0
- package/dist/common/constraint/types/remove.d.ts +7 -0
- package/dist/common/constraint/types/unbundles.d.ts +17 -0
- package/dist/common/detachObjectMethod.cjs +6 -0
- package/dist/common/detachObjectMethod.d.ts +3 -0
- package/dist/common/detachObjectMethod.mjs +6 -0
- package/dist/common/enum.cjs +11 -0
- package/dist/common/enum.d.ts +17 -0
- package/dist/common/enum.mjs +11 -0
- package/dist/common/equal.cjs +11 -0
- package/dist/common/equal.d.ts +14 -0
- package/dist/common/equal.mjs +11 -0
- package/dist/common/escapeRegExp.cjs +6 -0
- package/dist/common/escapeRegExp.d.ts +1 -0
- package/dist/common/escapeRegExp.mjs +6 -0
- package/dist/common/externalPromise.cjs +16 -0
- package/dist/common/externalPromise.d.ts +6 -0
- package/dist/common/externalPromise.mjs +16 -0
- package/dist/common/falsy.cjs +6 -0
- package/dist/common/falsy.d.ts +4 -0
- package/dist/common/falsy.mjs +6 -0
- package/dist/common/formData.cjs +64 -0
- package/dist/common/formData.d.ts +11 -0
- package/dist/common/formData.mjs +63 -0
- package/dist/common/forward.cjs +6 -0
- package/dist/common/forward.d.ts +1 -0
- package/dist/common/forward.mjs +6 -0
- package/dist/common/forwardAsserts.cjs +13 -0
- package/dist/common/forwardAsserts.d.ts +4 -0
- package/dist/common/forwardAsserts.mjs +13 -0
- package/dist/common/forwardLog.cjs +7 -0
- package/dist/common/forwardLog.d.ts +1 -0
- package/dist/common/forwardLog.mjs +7 -0
- package/dist/common/globalStore.cjs +15 -0
- package/dist/common/globalStore.d.ts +7 -0
- package/dist/common/globalStore.mjs +15 -0
- package/dist/common/index.cjs +194 -0
- package/dist/common/index.d.ts +54 -0
- package/dist/common/index.mjs +124 -0
- package/dist/common/innerPipe.cjs +10 -0
- package/dist/common/innerPipe.d.ts +16 -0
- package/dist/common/innerPipe.mjs +10 -0
- package/dist/common/instanceOf.cjs +14 -0
- package/dist/common/instanceOf.d.ts +3 -0
- package/dist/common/instanceOf.mjs +14 -0
- package/dist/common/interpolation.cjs +6 -0
- package/dist/common/interpolation.d.ts +5 -0
- package/dist/common/interpolation.mjs +6 -0
- package/dist/common/isType.cjs +25 -0
- package/dist/common/isType.d.ts +22 -0
- package/dist/common/isType.mjs +25 -0
- package/dist/common/justExec.cjs +6 -0
- package/dist/common/justExec.d.ts +1 -0
- package/dist/common/justExec.mjs +6 -0
- package/dist/common/justReturn.cjs +11 -0
- package/dist/common/justReturn.d.ts +3 -0
- package/dist/common/justReturn.mjs +11 -0
- package/dist/common/kind.cjs +4 -0
- package/dist/common/kind.d.ts +2 -0
- package/dist/common/kind.mjs +5 -0
- package/dist/common/loop.cjs +16 -0
- package/dist/common/loop.d.ts +15 -0
- package/dist/common/loop.mjs +16 -0
- package/dist/common/memo.cjs +10 -0
- package/dist/common/memo.d.ts +4 -0
- package/dist/common/memo.mjs +10 -0
- package/dist/common/memoObject.cjs +28 -0
- package/dist/common/memoObject.d.ts +1 -0
- package/dist/common/memoObject.mjs +28 -0
- package/dist/common/memoPromise.cjs +19 -0
- package/dist/common/memoPromise.d.ts +5 -0
- package/dist/common/memoPromise.mjs +19 -0
- package/dist/common/mimeType.cjs +1314 -0
- package/dist/common/mimeType.d.ts +5 -0
- package/dist/common/mimeType.mjs +1314 -0
- package/dist/common/or.cjs +12 -0
- package/dist/common/or.d.ts +26 -0
- package/dist/common/or.mjs +12 -0
- package/dist/common/pipe.cjs +8 -0
- package/dist/common/pipe.d.ts +16 -0
- package/dist/common/pipe.mjs +8 -0
- package/dist/common/pipeCall.cjs +6 -0
- package/dist/common/pipeCall.d.ts +1 -0
- package/dist/common/pipeCall.mjs +6 -0
- package/dist/common/prepareAsyncPipe.cjs +10 -0
- package/dist/common/prepareAsyncPipe.d.ts +19 -0
- package/dist/common/prepareAsyncPipe.mjs +10 -0
- package/dist/common/preparePipe.cjs +10 -0
- package/dist/common/preparePipe.d.ts +19 -0
- package/dist/common/preparePipe.mjs +10 -0
- package/dist/common/promiseAll.cjs +6 -0
- package/dist/common/promiseAll.d.ts +4 -0
- package/dist/common/promiseAll.mjs +6 -0
- package/dist/common/promiseObject.cjs +6 -0
- package/dist/common/promiseObject.d.ts +5 -0
- package/dist/common/promiseObject.mjs +6 -0
- package/dist/common/queue.cjs +73 -0
- package/dist/common/queue.d.ts +11 -0
- package/dist/common/queue.mjs +72 -0
- package/dist/common/simpleClone.cjs +17 -0
- package/dist/common/simpleClone.d.ts +1 -0
- package/dist/common/simpleClone.mjs +17 -0
- package/dist/common/stringToBytes.cjs +30 -0
- package/dist/common/stringToBytes.d.ts +17 -0
- package/dist/common/stringToBytes.mjs +29 -0
- package/dist/common/stringToMillisecond.cjs +33 -0
- package/dist/common/stringToMillisecond.d.ts +17 -0
- package/dist/common/stringToMillisecond.mjs +32 -0
- package/dist/common/timeout.cjs +6 -0
- package/dist/common/timeout.d.ts +1 -0
- package/dist/common/timeout.mjs +6 -0
- package/dist/common/toCurriedPredicate.cjs +6 -0
- package/dist/common/toCurriedPredicate.d.ts +1 -0
- package/dist/common/toCurriedPredicate.mjs +6 -0
- package/dist/common/toRegExp.cjs +12 -0
- package/dist/common/toRegExp.d.ts +2 -0
- package/dist/common/toRegExp.mjs +12 -0
- package/dist/common/transformer.cjs +24 -0
- package/dist/common/transformer.d.ts +25 -0
- package/dist/common/transformer.mjs +21 -0
- package/dist/common/truthy.cjs +6 -0
- package/dist/common/truthy.d.ts +3 -0
- package/dist/common/truthy.mjs +6 -0
- package/dist/common/types/IsExtends.d.ts +2 -0
- package/dist/common/types/and.d.ts +1 -0
- package/dist/common/types/anyConstructor.d.ts +2 -0
- package/dist/common/types/anyFunction.d.ts +1 -0
- package/dist/common/types/anyObject.d.ts +4 -0
- package/dist/common/types/anyPredicate.d.ts +1 -0
- package/dist/common/types/anyTuple.d.ts +1 -0
- package/dist/common/types/anyValue.d.ts +2 -0
- package/dist/common/types/bivariantFunction.d.ts +9 -0
- package/dist/common/types/breakGenericLink.d.ts +1 -0
- package/dist/common/types/cleanObjectEntry.d.ts +1 -0
- package/dist/common/types/clearClassKeys.d.ts +4 -0
- package/dist/common/types/coalescing.d.ts +2 -0
- package/dist/common/types/computedTypeError.d.ts +6 -0
- package/dist/common/types/escapeAny.d.ts +1 -0
- package/dist/common/types/escapeVoid.d.ts +1 -0
- package/dist/common/types/excludeEqual.d.ts +2 -0
- package/dist/common/types/expectType.d.ts +6 -0
- package/dist/common/types/extractEqual.d.ts +2 -0
- package/dist/common/types/falsyValue.d.ts +1 -0
- package/dist/common/types/fixDeepFunctionInfer.d.ts +2 -0
- package/dist/common/types/forbiddenPromise.d.ts +2 -0
- package/dist/common/types/forbiddenUnion.d.ts +3 -0
- package/dist/common/types/forcePredicate.d.ts +5 -0
- package/dist/common/types/hasSomething.d.ts +3 -0
- package/dist/common/types/index.d.ts +55 -0
- package/dist/common/types/isEqual.d.ts +4 -0
- package/dist/common/types/isNever.d.ts +1 -0
- package/dist/common/types/isUnion.d.ts +4 -0
- package/dist/common/types/json.d.ts +4 -0
- package/dist/common/types/lastUnionElement.d.ts +6 -0
- package/dist/common/types/maybeArray.d.ts +1 -0
- package/dist/common/types/maybeAsyncGenerator.d.ts +1 -0
- package/dist/common/types/maybeGetter.d.ts +1 -0
- package/dist/common/types/maybePromise.d.ts +1 -0
- package/dist/common/types/mergePromise.d.ts +1 -0
- package/dist/common/types/neverCoalescing.d.ts +2 -0
- package/dist/common/types/not.d.ts +1 -0
- package/dist/common/types/objectEntry.d.ts +2 -0
- package/dist/common/types/objectKey.d.ts +1 -0
- package/dist/common/types/or.d.ts +2 -0
- package/dist/common/types/predicate.d.ts +1 -0
- package/dist/common/types/removeAbstractFromConstructor.d.ts +5 -0
- package/dist/common/types/removeDuplicateInUnion.d.ts +6 -0
- package/dist/common/types/removeFromUnion.d.ts +2 -0
- package/dist/common/types/removeReadonly.d.ts +3 -0
- package/dist/common/types/requireConstructor.d.ts +3 -0
- package/dist/common/types/simplifyTopLevel.d.ts +3 -0
- package/dist/common/types/simplifyType.d.ts +3 -0
- package/dist/common/types/simplifyTypeForce.d.ts +3 -0
- package/dist/common/types/sortType.d.ts +1 -0
- package/dist/common/types/toLargeEnsemble.d.ts +6 -0
- package/dist/common/types/unionContain.d.ts +2 -0
- package/dist/common/types/unionToIntersection.d.ts +1 -0
- package/dist/common/types/unionToTuple.d.ts +4 -0
- package/dist/common/types/unwrapGetter.d.ts +3 -0
- package/dist/common/when.cjs +12 -0
- package/dist/common/when.d.ts +5 -0
- package/dist/common/when.mjs +12 -0
- package/dist/common/whenElse.cjs +12 -0
- package/dist/common/whenElse.d.ts +5 -0
- package/dist/common/whenElse.mjs +12 -0
- package/dist/common/whenNot.cjs +12 -0
- package/dist/common/whenNot.d.ts +5 -0
- package/dist/common/whenNot.mjs +12 -0
- package/dist/dataStructure/common/codec.cjs +28 -0
- package/dist/dataStructure/common/codec.d.ts +29 -0
- package/dist/dataStructure/common/codec.mjs +25 -0
- package/dist/dataStructure/common/error.cjs +53 -0
- package/dist/dataStructure/common/error.d.ts +30 -0
- package/dist/dataStructure/common/error.mjs +52 -0
- package/dist/dataStructure/common/index.d.ts +3 -0
- package/dist/dataStructure/common/resultSymbol.cjs +6 -0
- package/dist/dataStructure/common/resultSymbol.d.ts +4 -0
- package/dist/dataStructure/common/resultSymbol.mjs +5 -0
- package/dist/dataStructure/constraint/base.cjs +17 -0
- package/dist/dataStructure/constraint/base.d.ts +22 -0
- package/dist/dataStructure/constraint/base.mjs +17 -0
- package/dist/dataStructure/constraint/defaults/allowedCharacters.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/allowedCharacters.d.ts +13 -0
- package/dist/dataStructure/constraint/defaults/allowedCharacters.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/arrayLengthEqual.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/arrayLengthEqual.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/arrayLengthEqual.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/betweenThan.cjs +17 -0
- package/dist/dataStructure/constraint/defaults/betweenThan.d.ts +12 -0
- package/dist/dataStructure/constraint/defaults/betweenThan.mjs +16 -0
- package/dist/dataStructure/constraint/defaults/betweenThanOrEqual.cjs +17 -0
- package/dist/dataStructure/constraint/defaults/betweenThanOrEqual.d.ts +12 -0
- package/dist/dataStructure/constraint/defaults/betweenThanOrEqual.mjs +16 -0
- package/dist/dataStructure/constraint/defaults/email.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/email.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/email.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/even.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/even.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/even.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/greaterThan.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/greaterThan.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/greaterThan.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/greaterThanOrEqual.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/greaterThanOrEqual.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/greaterThanOrEqual.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/index.d.ts +28 -0
- package/dist/dataStructure/constraint/defaults/integer.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/integer.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/integer.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/lessThan.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/lessThan.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/lessThan.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/lessThanOrEqual.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/lessThanOrEqual.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/lessThanOrEqual.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/maxCharacters.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/maxCharacters.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/maxCharacters.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/maxElements.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/maxElements.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/maxElements.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/minCharacters.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/minCharacters.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/minCharacters.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/minElements.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/minElements.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/minElements.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/multipleOf.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/multipleOf.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/multipleOf.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/negative.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/negative.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/negative.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/notEmpty.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/notEmpty.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/notEmpty.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/notZero.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/notZero.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/notZero.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/odd.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/odd.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/odd.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/positive.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/positive.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/positive.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/refine.cjs +12 -0
- package/dist/dataStructure/constraint/defaults/refine.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/refine.mjs +11 -0
- package/dist/dataStructure/constraint/defaults/safe.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/safe.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/safe.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/strictNegative.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/strictNegative.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/strictNegative.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/strictPositive.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/strictPositive.d.ts +10 -0
- package/dist/dataStructure/constraint/defaults/strictPositive.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/stringLengthEqual.cjs +14 -0
- package/dist/dataStructure/constraint/defaults/stringLengthEqual.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/stringLengthEqual.mjs +13 -0
- package/dist/dataStructure/constraint/defaults/url.cjs +13 -0
- package/dist/dataStructure/constraint/defaults/url.d.ts +11 -0
- package/dist/dataStructure/constraint/defaults/url.mjs +12 -0
- package/dist/dataStructure/constraint/defaults/uuid.cjs +15 -0
- package/dist/dataStructure/constraint/defaults/uuid.d.ts +12 -0
- package/dist/dataStructure/constraint/defaults/uuid.mjs +13 -0
- package/dist/dataStructure/constraint/identifier.cjs +4 -0
- package/dist/dataStructure/constraint/identifier.d.ts +5 -0
- package/dist/dataStructure/constraint/identifier.mjs +5 -0
- package/dist/dataStructure/constraint/index.d.ts +4 -0
- package/dist/dataStructure/constraint/types/constraints.d.ts +32 -0
- package/dist/dataStructure/constraint/types/index.d.ts +2 -0
- package/dist/dataStructure/constraint/types/value.d.ts +7 -0
- package/dist/dataStructure/fundamentalType/base.cjs +13 -0
- package/dist/dataStructure/fundamentalType/base.d.ts +9 -0
- package/dist/dataStructure/fundamentalType/base.mjs +13 -0
- package/dist/dataStructure/fundamentalType/defaults/bigint.cjs +7 -0
- package/dist/dataStructure/fundamentalType/defaults/bigint.d.ts +7 -0
- package/dist/dataStructure/fundamentalType/defaults/bigint.mjs +5 -0
- package/dist/dataStructure/fundamentalType/defaults/boolean.cjs +7 -0
- package/dist/dataStructure/fundamentalType/defaults/boolean.d.ts +7 -0
- package/dist/dataStructure/fundamentalType/defaults/boolean.mjs +5 -0
- package/dist/dataStructure/fundamentalType/defaults/date.cjs +8 -0
- package/dist/dataStructure/fundamentalType/defaults/date.d.ts +8 -0
- package/dist/dataStructure/fundamentalType/defaults/date.mjs +6 -0
- package/dist/dataStructure/fundamentalType/defaults/index.d.ts +8 -0
- package/dist/dataStructure/fundamentalType/defaults/null.cjs +7 -0
- package/dist/dataStructure/fundamentalType/defaults/null.d.ts +7 -0
- package/dist/dataStructure/fundamentalType/defaults/null.mjs +5 -0
- package/dist/dataStructure/fundamentalType/defaults/number.cjs +7 -0
- package/dist/dataStructure/fundamentalType/defaults/number.d.ts +7 -0
- package/dist/dataStructure/fundamentalType/defaults/number.mjs +5 -0
- package/dist/dataStructure/fundamentalType/defaults/string.cjs +7 -0
- package/dist/dataStructure/fundamentalType/defaults/string.d.ts +7 -0
- package/dist/dataStructure/fundamentalType/defaults/string.mjs +5 -0
- package/dist/dataStructure/fundamentalType/defaults/time.cjs +8 -0
- package/dist/dataStructure/fundamentalType/defaults/time.d.ts +8 -0
- package/dist/dataStructure/fundamentalType/defaults/time.mjs +6 -0
- package/dist/dataStructure/fundamentalType/defaults/undefined.cjs +7 -0
- package/dist/dataStructure/fundamentalType/defaults/undefined.d.ts +7 -0
- package/dist/dataStructure/fundamentalType/defaults/undefined.mjs +5 -0
- package/dist/dataStructure/fundamentalType/identifier.cjs +4 -0
- package/dist/dataStructure/fundamentalType/identifier.d.ts +5 -0
- package/dist/dataStructure/fundamentalType/identifier.mjs +5 -0
- package/dist/dataStructure/fundamentalType/index.d.ts +4 -0
- package/dist/dataStructure/fundamentalType/types/fundamentalTypes.d.ts +13 -0
- package/dist/dataStructure/fundamentalType/types/index.d.ts +2 -0
- package/dist/dataStructure/fundamentalType/types/value.d.ts +3 -0
- package/dist/dataStructure/helpers/allowedCharacters.cjs +7 -0
- package/dist/dataStructure/helpers/allowedCharacters.d.ts +4 -0
- package/dist/dataStructure/helpers/allowedCharacters.mjs +7 -0
- package/dist/dataStructure/helpers/array.cjs +7 -0
- package/dist/dataStructure/helpers/array.d.ts +3 -0
- package/dist/dataStructure/helpers/array.mjs +7 -0
- package/dist/dataStructure/helpers/arrayLengthEqual.cjs +7 -0
- package/dist/dataStructure/helpers/arrayLengthEqual.d.ts +2 -0
- package/dist/dataStructure/helpers/arrayLengthEqual.mjs +7 -0
- package/dist/dataStructure/helpers/betweenThan.cjs +7 -0
- package/dist/dataStructure/helpers/betweenThan.d.ts +2 -0
- package/dist/dataStructure/helpers/betweenThan.mjs +7 -0
- package/dist/dataStructure/helpers/betweenThanOrEqual.cjs +7 -0
- package/dist/dataStructure/helpers/betweenThanOrEqual.d.ts +2 -0
- package/dist/dataStructure/helpers/betweenThanOrEqual.mjs +7 -0
- package/dist/dataStructure/helpers/bigint.cjs +8 -0
- package/dist/dataStructure/helpers/bigint.d.ts +3 -0
- package/dist/dataStructure/helpers/bigint.mjs +8 -0
- package/dist/dataStructure/helpers/boolean.cjs +8 -0
- package/dist/dataStructure/helpers/boolean.d.ts +3 -0
- package/dist/dataStructure/helpers/boolean.mjs +8 -0
- package/dist/dataStructure/helpers/date.cjs +8 -0
- package/dist/dataStructure/helpers/date.d.ts +4 -0
- package/dist/dataStructure/helpers/date.mjs +8 -0
- package/dist/dataStructure/helpers/email.cjs +7 -0
- package/dist/dataStructure/helpers/email.d.ts +2 -0
- package/dist/dataStructure/helpers/email.mjs +7 -0
- package/dist/dataStructure/helpers/even.cjs +7 -0
- package/dist/dataStructure/helpers/even.d.ts +2 -0
- package/dist/dataStructure/helpers/even.mjs +7 -0
- package/dist/dataStructure/helpers/extend.cjs +10 -0
- package/dist/dataStructure/helpers/extend.d.ts +3 -0
- package/dist/dataStructure/helpers/extend.mjs +10 -0
- package/dist/dataStructure/helpers/greaterThan.cjs +7 -0
- package/dist/dataStructure/helpers/greaterThan.d.ts +2 -0
- package/dist/dataStructure/helpers/greaterThan.mjs +7 -0
- package/dist/dataStructure/helpers/greaterThanOrEqual.cjs +7 -0
- package/dist/dataStructure/helpers/greaterThanOrEqual.d.ts +2 -0
- package/dist/dataStructure/helpers/greaterThanOrEqual.mjs +7 -0
- package/dist/dataStructure/helpers/index.d.ts +49 -0
- package/dist/dataStructure/helpers/integer.cjs +7 -0
- package/dist/dataStructure/helpers/integer.d.ts +2 -0
- package/dist/dataStructure/helpers/integer.mjs +7 -0
- package/dist/dataStructure/helpers/isNullStructure.cjs +10 -0
- package/dist/dataStructure/helpers/isNullStructure.d.ts +2 -0
- package/dist/dataStructure/helpers/isNullStructure.mjs +10 -0
- package/dist/dataStructure/helpers/isUndefinedStructure.cjs +10 -0
- package/dist/dataStructure/helpers/isUndefinedStructure.d.ts +2 -0
- package/dist/dataStructure/helpers/isUndefinedStructure.mjs +10 -0
- package/dist/dataStructure/helpers/lazy.cjs +7 -0
- package/dist/dataStructure/helpers/lazy.d.ts +3 -0
- package/dist/dataStructure/helpers/lazy.mjs +7 -0
- package/dist/dataStructure/helpers/lessThan.cjs +7 -0
- package/dist/dataStructure/helpers/lessThan.d.ts +2 -0
- package/dist/dataStructure/helpers/lessThan.mjs +7 -0
- package/dist/dataStructure/helpers/lessThanOrEqual.cjs +7 -0
- package/dist/dataStructure/helpers/lessThanOrEqual.d.ts +2 -0
- package/dist/dataStructure/helpers/lessThanOrEqual.mjs +7 -0
- package/dist/dataStructure/helpers/literal.cjs +20 -0
- package/dist/dataStructure/helpers/literal.d.ts +5 -0
- package/dist/dataStructure/helpers/literal.mjs +20 -0
- package/dist/dataStructure/helpers/maxCharacters.cjs +7 -0
- package/dist/dataStructure/helpers/maxCharacters.d.ts +2 -0
- package/dist/dataStructure/helpers/maxCharacters.mjs +7 -0
- package/dist/dataStructure/helpers/maxElements.cjs +7 -0
- package/dist/dataStructure/helpers/maxElements.d.ts +2 -0
- package/dist/dataStructure/helpers/maxElements.mjs +7 -0
- package/dist/dataStructure/helpers/minCharacters.cjs +7 -0
- package/dist/dataStructure/helpers/minCharacters.d.ts +2 -0
- package/dist/dataStructure/helpers/minCharacters.mjs +7 -0
- package/dist/dataStructure/helpers/minElements.cjs +7 -0
- package/dist/dataStructure/helpers/minElements.d.ts +2 -0
- package/dist/dataStructure/helpers/minElements.mjs +7 -0
- package/dist/dataStructure/helpers/multipleOf.cjs +7 -0
- package/dist/dataStructure/helpers/multipleOf.d.ts +2 -0
- package/dist/dataStructure/helpers/multipleOf.mjs +7 -0
- package/dist/dataStructure/helpers/negative.cjs +7 -0
- package/dist/dataStructure/helpers/negative.d.ts +2 -0
- package/dist/dataStructure/helpers/negative.mjs +7 -0
- package/dist/dataStructure/helpers/notEmpty.cjs +7 -0
- package/dist/dataStructure/helpers/notEmpty.d.ts +2 -0
- package/dist/dataStructure/helpers/notEmpty.mjs +7 -0
- package/dist/dataStructure/helpers/notZero.cjs +7 -0
- package/dist/dataStructure/helpers/notZero.d.ts +2 -0
- package/dist/dataStructure/helpers/notZero.mjs +7 -0
- package/dist/dataStructure/helpers/null.cjs +8 -0
- package/dist/dataStructure/helpers/null.d.ts +4 -0
- package/dist/dataStructure/helpers/null.mjs +8 -0
- package/dist/dataStructure/helpers/nullable.cjs +12 -0
- package/dist/dataStructure/helpers/nullable.d.ts +2 -0
- package/dist/dataStructure/helpers/nullable.mjs +12 -0
- package/dist/dataStructure/helpers/number.cjs +8 -0
- package/dist/dataStructure/helpers/number.d.ts +3 -0
- package/dist/dataStructure/helpers/number.mjs +8 -0
- package/dist/dataStructure/helpers/object.cjs +7 -0
- package/dist/dataStructure/helpers/object.d.ts +3 -0
- package/dist/dataStructure/helpers/object.mjs +7 -0
- package/dist/dataStructure/helpers/odd.cjs +7 -0
- package/dist/dataStructure/helpers/odd.d.ts +2 -0
- package/dist/dataStructure/helpers/odd.mjs +7 -0
- package/dist/dataStructure/helpers/optional.cjs +12 -0
- package/dist/dataStructure/helpers/optional.d.ts +2 -0
- package/dist/dataStructure/helpers/optional.mjs +12 -0
- package/dist/dataStructure/helpers/partial.cjs +17 -0
- package/dist/dataStructure/helpers/partial.d.ts +4 -0
- package/dist/dataStructure/helpers/partial.mjs +17 -0
- package/dist/dataStructure/helpers/positive.cjs +7 -0
- package/dist/dataStructure/helpers/positive.d.ts +2 -0
- package/dist/dataStructure/helpers/positive.mjs +7 -0
- package/dist/dataStructure/helpers/record.cjs +7 -0
- package/dist/dataStructure/helpers/record.d.ts +3 -0
- package/dist/dataStructure/helpers/record.mjs +7 -0
- package/dist/dataStructure/helpers/refine.cjs +7 -0
- package/dist/dataStructure/helpers/refine.d.ts +2 -0
- package/dist/dataStructure/helpers/refine.mjs +7 -0
- package/dist/dataStructure/helpers/required.cjs +18 -0
- package/dist/dataStructure/helpers/required.d.ts +4 -0
- package/dist/dataStructure/helpers/required.mjs +18 -0
- package/dist/dataStructure/helpers/safe.cjs +7 -0
- package/dist/dataStructure/helpers/safe.d.ts +2 -0
- package/dist/dataStructure/helpers/safe.mjs +7 -0
- package/dist/dataStructure/helpers/strictNegative.cjs +7 -0
- package/dist/dataStructure/helpers/strictNegative.d.ts +2 -0
- package/dist/dataStructure/helpers/strictNegative.mjs +7 -0
- package/dist/dataStructure/helpers/strictPositive.cjs +7 -0
- package/dist/dataStructure/helpers/strictPositive.d.ts +2 -0
- package/dist/dataStructure/helpers/strictPositive.mjs +7 -0
- package/dist/dataStructure/helpers/string.cjs +8 -0
- package/dist/dataStructure/helpers/string.d.ts +3 -0
- package/dist/dataStructure/helpers/string.mjs +8 -0
- package/dist/dataStructure/helpers/stringLengthEqual.cjs +7 -0
- package/dist/dataStructure/helpers/stringLengthEqual.d.ts +2 -0
- package/dist/dataStructure/helpers/stringLengthEqual.mjs +7 -0
- package/dist/dataStructure/helpers/time.cjs +8 -0
- package/dist/dataStructure/helpers/time.d.ts +4 -0
- package/dist/dataStructure/helpers/time.mjs +8 -0
- package/dist/dataStructure/helpers/undefined.cjs +8 -0
- package/dist/dataStructure/helpers/undefined.d.ts +4 -0
- package/dist/dataStructure/helpers/undefined.mjs +8 -0
- package/dist/dataStructure/helpers/union.cjs +7 -0
- package/dist/dataStructure/helpers/union.d.ts +4 -0
- package/dist/dataStructure/helpers/union.mjs +7 -0
- package/dist/dataStructure/helpers/url.cjs +7 -0
- package/dist/dataStructure/helpers/url.d.ts +3 -0
- package/dist/dataStructure/helpers/url.mjs +7 -0
- package/dist/dataStructure/helpers/uuid.cjs +7 -0
- package/dist/dataStructure/helpers/uuid.d.ts +2 -0
- package/dist/dataStructure/helpers/uuid.mjs +7 -0
- package/dist/dataStructure/index.cjs +470 -0
- package/dist/dataStructure/index.d.ts +7 -0
- package/dist/dataStructure/index.mjs +293 -0
- package/dist/dataStructure/kind.cjs +4 -0
- package/dist/dataStructure/kind.d.ts +2 -0
- package/dist/dataStructure/kind.mjs +5 -0
- package/dist/dataStructure/structure/base.cjs +113 -0
- package/dist/dataStructure/structure/base.d.ts +50 -0
- package/dist/dataStructure/structure/base.mjs +111 -0
- package/dist/dataStructure/structure/defaults/array.cjs +44 -0
- package/dist/dataStructure/structure/defaults/array.d.ts +18 -0
- package/dist/dataStructure/structure/defaults/array.mjs +40 -0
- package/dist/dataStructure/structure/defaults/index.d.ts +6 -0
- package/dist/dataStructure/structure/defaults/lazy.cjs +17 -0
- package/dist/dataStructure/structure/defaults/lazy.d.ts +12 -0
- package/dist/dataStructure/structure/defaults/lazy.mjs +16 -0
- package/dist/dataStructure/structure/defaults/object.cjs +53 -0
- package/dist/dataStructure/structure/defaults/object.d.ts +30 -0
- package/dist/dataStructure/structure/defaults/object.mjs +49 -0
- package/dist/dataStructure/structure/defaults/record.cjs +70 -0
- package/dist/dataStructure/structure/defaults/record.d.ts +19 -0
- package/dist/dataStructure/structure/defaults/record.mjs +66 -0
- package/dist/dataStructure/structure/defaults/type.cjs +25 -0
- package/dist/dataStructure/structure/defaults/type.d.ts +12 -0
- package/dist/dataStructure/structure/defaults/type.mjs +24 -0
- package/dist/dataStructure/structure/defaults/union.cjs +77 -0
- package/dist/dataStructure/structure/defaults/union.d.ts +12 -0
- package/dist/dataStructure/structure/defaults/union.mjs +73 -0
- package/dist/dataStructure/structure/identifier.cjs +4 -0
- package/dist/dataStructure/structure/identifier.d.ts +5 -0
- package/dist/dataStructure/structure/identifier.mjs +5 -0
- package/dist/dataStructure/structure/index.d.ts +4 -0
- package/dist/dataStructure/structure/types/constraintsValue.d.ts +7 -0
- package/dist/dataStructure/structure/types/index.d.ts +3 -0
- package/dist/dataStructure/structure/types/structures.d.ts +12 -0
- package/dist/dataStructure/structure/types/value.d.ts +5 -0
- package/dist/dataStructure/type/base.cjs +21 -0
- package/dist/dataStructure/type/base.d.ts +21 -0
- package/dist/dataStructure/type/base.mjs +20 -0
- package/dist/dataStructure/type/defaults/bigint.cjs +13 -0
- package/dist/dataStructure/type/defaults/bigint.d.ts +10 -0
- package/dist/dataStructure/type/defaults/bigint.mjs +12 -0
- package/dist/dataStructure/type/defaults/bigintLiteral.cjs +13 -0
- package/dist/dataStructure/type/defaults/bigintLiteral.d.ts +11 -0
- package/dist/dataStructure/type/defaults/bigintLiteral.mjs +12 -0
- package/dist/dataStructure/type/defaults/boolean.cjs +13 -0
- package/dist/dataStructure/type/defaults/boolean.d.ts +10 -0
- package/dist/dataStructure/type/defaults/boolean.mjs +12 -0
- package/dist/dataStructure/type/defaults/booleanLiteral.cjs +13 -0
- package/dist/dataStructure/type/defaults/booleanLiteral.d.ts +11 -0
- package/dist/dataStructure/type/defaults/booleanLiteral.mjs +12 -0
- package/dist/dataStructure/type/defaults/date.cjs +13 -0
- package/dist/dataStructure/type/defaults/date.d.ts +11 -0
- package/dist/dataStructure/type/defaults/date.mjs +12 -0
- package/dist/dataStructure/type/defaults/index.d.ts +12 -0
- package/dist/dataStructure/type/defaults/null.cjs +13 -0
- package/dist/dataStructure/type/defaults/null.d.ts +10 -0
- package/dist/dataStructure/type/defaults/null.mjs +12 -0
- package/dist/dataStructure/type/defaults/number.cjs +13 -0
- package/dist/dataStructure/type/defaults/number.d.ts +10 -0
- package/dist/dataStructure/type/defaults/number.mjs +12 -0
- package/dist/dataStructure/type/defaults/numberLiteral.cjs +13 -0
- package/dist/dataStructure/type/defaults/numberLiteral.d.ts +11 -0
- package/dist/dataStructure/type/defaults/numberLiteral.mjs +12 -0
- package/dist/dataStructure/type/defaults/string.cjs +13 -0
- package/dist/dataStructure/type/defaults/string.d.ts +10 -0
- package/dist/dataStructure/type/defaults/string.mjs +12 -0
- package/dist/dataStructure/type/defaults/stringLiteral.cjs +13 -0
- package/dist/dataStructure/type/defaults/stringLiteral.d.ts +11 -0
- package/dist/dataStructure/type/defaults/stringLiteral.mjs +12 -0
- package/dist/dataStructure/type/defaults/time.cjs +13 -0
- package/dist/dataStructure/type/defaults/time.d.ts +11 -0
- package/dist/dataStructure/type/defaults/time.mjs +12 -0
- package/dist/dataStructure/type/defaults/undefined.cjs +13 -0
- package/dist/dataStructure/type/defaults/undefined.d.ts +10 -0
- package/dist/dataStructure/type/defaults/undefined.mjs +12 -0
- package/dist/dataStructure/type/identifier.cjs +4 -0
- package/dist/dataStructure/type/identifier.d.ts +5 -0
- package/dist/dataStructure/type/identifier.mjs +5 -0
- package/dist/dataStructure/type/index.d.ts +4 -0
- package/dist/dataStructure/type/types/index.d.ts +2 -0
- package/dist/dataStructure/type/types/types.d.ts +17 -0
- package/dist/dataStructure/type/types/value.d.ts +3 -0
- package/dist/either/asyncSafeCallback.cjs +17 -0
- package/dist/either/asyncSafeCallback.d.ts +7 -0
- package/dist/either/asyncSafeCallback.mjs +17 -0
- package/dist/either/expect.cjs +6 -0
- package/dist/either/expect.d.ts +5 -0
- package/dist/either/expect.mjs +6 -0
- package/dist/either/forwardAssertsSelection.cjs +24 -0
- package/dist/either/forwardAssertsSelection.d.ts +18 -0
- package/dist/either/forwardAssertsSelection.mjs +23 -0
- package/dist/either/hasInformation.cjs +14 -0
- package/dist/either/hasInformation.d.ts +10 -0
- package/dist/either/hasInformation.mjs +14 -0
- package/dist/either/index.cjs +156 -0
- package/dist/either/index.d.ts +21 -0
- package/dist/either/index.mjs +98 -0
- package/dist/either/keepAsRightByInformation.cjs +22 -0
- package/dist/either/keepAsRightByInformation.d.ts +10 -0
- package/dist/either/keepAsRightByInformation.mjs +22 -0
- package/dist/either/keepAsRightSelection.cjs +23 -0
- package/dist/either/keepAsRightSelection.d.ts +12 -0
- package/dist/either/keepAsRightSelection.mjs +23 -0
- package/dist/either/kind.cjs +8 -0
- package/dist/either/kind.d.ts +4 -0
- package/dist/either/kind.mjs +7 -0
- package/dist/either/left/create.cjs +13 -0
- package/dist/either/left/create.d.ts +8 -0
- package/dist/either/left/create.mjs +12 -0
- package/dist/either/left/error.cjs +15 -0
- package/dist/either/left/error.d.ts +8 -0
- package/dist/either/left/error.mjs +14 -0
- package/dist/either/left/fail.cjs +15 -0
- package/dist/either/left/fail.d.ts +8 -0
- package/dist/either/left/fail.mjs +14 -0
- package/dist/either/left/index.d.ts +8 -0
- package/dist/either/left/is.cjs +8 -0
- package/dist/either/left/is.d.ts +2 -0
- package/dist/either/left/is.mjs +8 -0
- package/dist/either/left/unwrap.cjs +9 -0
- package/dist/either/left/unwrap.d.ts +3 -0
- package/dist/either/left/unwrap.mjs +9 -0
- package/dist/either/left/unwrapOrThrow.cjs +18 -0
- package/dist/either/left/unwrapOrThrow.d.ts +10 -0
- package/dist/either/left/unwrapOrThrow.mjs +17 -0
- package/dist/either/left/when.cjs +14 -0
- package/dist/either/left/when.d.ts +5 -0
- package/dist/either/left/when.mjs +14 -0
- package/dist/either/left/whenOtherwise.cjs +14 -0
- package/dist/either/left/whenOtherwise.d.ts +8 -0
- package/dist/either/left/whenOtherwise.mjs +14 -0
- package/dist/either/matchInformation.cjs +13 -0
- package/dist/either/matchInformation.d.ts +15 -0
- package/dist/either/matchInformation.mjs +13 -0
- package/dist/either/matchInformationOtherwise.cjs +15 -0
- package/dist/either/matchInformationOtherwise.d.ts +15 -0
- package/dist/either/matchInformationOtherwise.mjs +15 -0
- package/dist/either/right/asyncGroup.cjs +17 -0
- package/dist/either/right/asyncGroup.d.ts +10 -0
- package/dist/either/right/asyncGroup.mjs +17 -0
- package/dist/either/right/asyncPipe.cjs +17 -0
- package/dist/either/right/asyncPipe.d.ts +23 -0
- package/dist/either/right/asyncPipe.mjs +17 -0
- package/dist/either/right/create.cjs +13 -0
- package/dist/either/right/create.d.ts +8 -0
- package/dist/either/right/create.mjs +12 -0
- package/dist/either/right/group.cjs +16 -0
- package/dist/either/right/group.d.ts +13 -0
- package/dist/either/right/group.mjs +16 -0
- package/dist/either/right/index.d.ts +13 -0
- package/dist/either/right/is.cjs +8 -0
- package/dist/either/right/is.d.ts +2 -0
- package/dist/either/right/is.mjs +8 -0
- package/dist/either/right/ok.cjs +15 -0
- package/dist/either/right/ok.d.ts +8 -0
- package/dist/either/right/ok.mjs +14 -0
- package/dist/either/right/pipe.cjs +16 -0
- package/dist/either/right/pipe.d.ts +23 -0
- package/dist/either/right/pipe.mjs +16 -0
- package/dist/either/right/result.cjs +20 -0
- package/dist/either/right/result.d.ts +9 -0
- package/dist/either/right/result.mjs +19 -0
- package/dist/either/right/success.cjs +15 -0
- package/dist/either/right/success.d.ts +8 -0
- package/dist/either/right/success.mjs +14 -0
- package/dist/either/right/unwrap.cjs +9 -0
- package/dist/either/right/unwrap.d.ts +3 -0
- package/dist/either/right/unwrap.mjs +9 -0
- package/dist/either/right/unwrapOrThrow.cjs +18 -0
- package/dist/either/right/unwrapOrThrow.d.ts +10 -0
- package/dist/either/right/unwrapOrThrow.mjs +17 -0
- package/dist/either/right/when.cjs +14 -0
- package/dist/either/right/when.d.ts +5 -0
- package/dist/either/right/when.mjs +14 -0
- package/dist/either/right/whenOtherwise.cjs +14 -0
- package/dist/either/right/whenOtherwise.d.ts +8 -0
- package/dist/either/right/whenOtherwise.mjs +14 -0
- package/dist/either/safeCallback.cjs +21 -0
- package/dist/either/safeCallback.d.ts +8 -0
- package/dist/either/safeCallback.mjs +21 -0
- package/dist/either/types/getInformation.d.ts +3 -0
- package/dist/either/types/getValue.d.ts +3 -0
- package/dist/either/types/index.d.ts +2 -0
- package/dist/either/unwrapByInformation.cjs +14 -0
- package/dist/either/unwrapByInformation.d.ts +10 -0
- package/dist/either/unwrapByInformation.mjs +14 -0
- package/dist/either/unwrapByInformationOrThrow.cjs +26 -0
- package/dist/either/unwrapByInformationOrThrow.d.ts +16 -0
- package/dist/either/unwrapByInformationOrThrow.mjs +25 -0
- package/dist/either/unwrapSelection.cjs +13 -0
- package/dist/either/unwrapSelection.d.ts +12 -0
- package/dist/either/unwrapSelection.mjs +13 -0
- package/dist/either/unwrapSelectionOrThrow.cjs +24 -0
- package/dist/either/unwrapSelectionOrThrow.d.ts +18 -0
- package/dist/either/unwrapSelectionOrThrow.mjs +23 -0
- package/dist/either/whenHasInformation.cjs +16 -0
- package/dist/either/whenHasInformation.d.ts +10 -0
- package/dist/either/whenHasInformation.mjs +16 -0
- package/dist/either/whenHasInformationOtherwise.cjs +14 -0
- package/dist/either/whenHasInformationOtherwise.d.ts +10 -0
- package/dist/either/whenHasInformationOtherwise.mjs +14 -0
- package/dist/either/whenIsSelected.cjs +13 -0
- package/dist/either/whenIsSelected.d.ts +12 -0
- package/dist/either/whenIsSelected.mjs +13 -0
- package/dist/either/whenIsSelectedOtherwise.cjs +13 -0
- package/dist/either/whenIsSelectedOtherwise.d.ts +14 -0
- package/dist/either/whenIsSelectedOtherwise.mjs +13 -0
- package/dist/generator/asyncChunk.cjs +21 -0
- package/dist/generator/asyncChunk.d.ts +2 -0
- package/dist/generator/asyncChunk.mjs +21 -0
- package/dist/generator/asyncConcat.cjs +15 -0
- package/dist/generator/asyncConcat.d.ts +2 -0
- package/dist/generator/asyncConcat.mjs +15 -0
- package/dist/generator/asyncFilter.cjs +17 -0
- package/dist/generator/asyncFilter.d.ts +7 -0
- package/dist/generator/asyncFilter.mjs +17 -0
- package/dist/generator/asyncFlat.cjs +7 -0
- package/dist/generator/asyncFlat.d.ts +2 -0
- package/dist/generator/asyncFlat.mjs +7 -0
- package/dist/generator/asyncGroup.cjs +25 -0
- package/dist/generator/asyncGroup.d.ts +4 -0
- package/dist/generator/asyncGroup.mjs +25 -0
- package/dist/generator/asyncLoop.cjs +20 -0
- package/dist/generator/asyncLoop.d.ts +3 -0
- package/dist/generator/asyncLoop.mjs +20 -0
- package/dist/generator/asyncMap.cjs +17 -0
- package/dist/generator/asyncMap.d.ts +5 -0
- package/dist/generator/asyncMap.mjs +17 -0
- package/dist/generator/asyncReduce.cjs +28 -0
- package/dist/generator/asyncReduce.d.ts +4 -0
- package/dist/generator/asyncReduce.mjs +28 -0
- package/dist/generator/chunk.cjs +21 -0
- package/dist/generator/chunk.d.ts +2 -0
- package/dist/generator/chunk.mjs +21 -0
- package/dist/generator/concat.cjs +15 -0
- package/dist/generator/concat.d.ts +2 -0
- package/dist/generator/concat.mjs +15 -0
- package/dist/generator/createExternalAsyncGenerator.cjs +18 -0
- package/dist/generator/createExternalAsyncGenerator.d.ts +5 -0
- package/dist/generator/createExternalAsyncGenerator.mjs +18 -0
- package/dist/generator/execute.cjs +11 -0
- package/dist/generator/execute.d.ts +2 -0
- package/dist/generator/execute.mjs +11 -0
- package/dist/generator/filter.cjs +20 -0
- package/dist/generator/filter.d.ts +8 -0
- package/dist/generator/filter.mjs +20 -0
- package/dist/generator/flat.cjs +7 -0
- package/dist/generator/flat.d.ts +2 -0
- package/dist/generator/flat.mjs +7 -0
- package/dist/generator/group.cjs +34 -0
- package/dist/generator/group.d.ts +16 -0
- package/dist/generator/group.mjs +33 -0
- package/dist/generator/index.cjs +74 -0
- package/dist/generator/index.d.ts +20 -0
- package/dist/generator/index.mjs +47 -0
- package/dist/generator/kind.cjs +4 -0
- package/dist/generator/kind.d.ts +2 -0
- package/dist/generator/kind.mjs +5 -0
- package/dist/generator/loop.cjs +20 -0
- package/dist/generator/loop.d.ts +14 -0
- package/dist/generator/loop.mjs +20 -0
- package/dist/generator/map.cjs +20 -0
- package/dist/generator/map.d.ts +6 -0
- package/dist/generator/map.mjs +20 -0
- package/dist/generator/reduce.cjs +31 -0
- package/dist/generator/reduce.d.ts +25 -0
- package/dist/generator/reduce.mjs +30 -0
- package/dist/generator/types/flat.d.ts +3 -0
- package/dist/generator/types/index.d.ts +1 -0
- package/dist/index.cjs +303 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.mjs +70 -0
- package/dist/invocation/evidence.cjs +18 -0
- package/dist/invocation/evidence.d.ts +18 -0
- package/dist/invocation/evidence.mjs +17 -0
- package/dist/invocation/flow/base.cjs +17 -0
- package/dist/invocation/flow/base.d.ts +975 -0
- package/dist/invocation/flow/base.mjs +17 -0
- package/dist/invocation/flow/controller/base.cjs +18 -0
- package/dist/invocation/flow/controller/base.d.ts +23 -0
- package/dist/invocation/flow/controller/base.mjs +16 -0
- package/dist/invocation/flow/controller/defaults/debounce.cjs +25 -0
- package/dist/invocation/flow/controller/defaults/debounce.d.ts +8 -0
- package/dist/invocation/flow/controller/defaults/debounce.mjs +24 -0
- package/dist/invocation/flow/controller/defaults/filter.cjs +16 -0
- package/dist/invocation/flow/controller/defaults/filter.d.ts +8 -0
- package/dist/invocation/flow/controller/defaults/filter.mjs +15 -0
- package/dist/invocation/flow/controller/defaults/index.d.ts +5 -0
- package/dist/invocation/flow/controller/defaults/retry.cjs +24 -0
- package/dist/invocation/flow/controller/defaults/retry.d.ts +11 -0
- package/dist/invocation/flow/controller/defaults/retry.mjs +23 -0
- package/dist/invocation/flow/controller/defaults/throttling.cjs +27 -0
- package/dist/invocation/flow/controller/defaults/throttling.d.ts +8 -0
- package/dist/invocation/flow/controller/defaults/throttling.mjs +26 -0
- package/dist/invocation/flow/controller/defaults/timeout.cjs +18 -0
- package/dist/invocation/flow/controller/defaults/timeout.d.ts +7 -0
- package/dist/invocation/flow/controller/defaults/timeout.mjs +17 -0
- package/dist/invocation/flow/controller/index.d.ts +2 -0
- package/dist/invocation/flow/index.d.ts +2 -0
- package/dist/invocation/index.cjs +66 -0
- package/dist/invocation/index.d.ts +5 -0
- package/dist/invocation/index.mjs +39 -0
- package/dist/invocation/kind.cjs +4 -0
- package/dist/invocation/kind.d.ts +2 -0
- package/dist/invocation/kind.mjs +5 -0
- package/dist/invocation/port.cjs +13 -0
- package/dist/invocation/port.d.ts +6 -0
- package/dist/invocation/port.mjs +13 -0
- package/dist/invocation/useCase.cjs +26 -0
- package/dist/invocation/useCase.d.ts +28 -0
- package/dist/invocation/useCase.mjs +25 -0
- package/dist/kind/base.cjs +35 -0
- package/dist/kind/base.d.ts +29 -0
- package/dist/kind/base.mjs +33 -0
- package/dist/kind/createIdentifier.cjs +16 -0
- package/dist/kind/createIdentifier.d.ts +7 -0
- package/dist/kind/createIdentifier.mjs +16 -0
- package/dist/kind/has.cjs +12 -0
- package/dist/kind/has.d.ts +4 -0
- package/dist/kind/has.mjs +12 -0
- package/dist/kind/hasSome.cjs +12 -0
- package/dist/kind/hasSome.d.ts +4 -0
- package/dist/kind/hasSome.mjs +12 -0
- package/dist/kind/index.cjs +33 -0
- package/dist/kind/index.d.ts +7 -0
- package/dist/kind/index.mjs +20 -0
- package/dist/kind/namespace.cjs +9 -0
- package/dist/kind/namespace.d.ts +3 -0
- package/dist/kind/namespace.mjs +9 -0
- package/dist/kind/parentClass.cjs +14 -0
- package/dist/kind/parentClass.d.ts +7 -0
- package/dist/kind/parentClass.mjs +14 -0
- package/dist/kind/types/getHandler.d.ts +4 -0
- package/dist/kind/types/getValue.d.ts +2 -0
- package/dist/kind/types/index.d.ts +3 -0
- package/dist/kind/types/remove.d.ts +2 -0
- package/dist/modeling/entity/base.cjs +87 -0
- package/dist/modeling/entity/base.d.ts +43 -0
- package/dist/modeling/entity/base.mjs +85 -0
- package/dist/modeling/entity/entityName.cjs +13 -0
- package/dist/modeling/entity/entityName.d.ts +13 -0
- package/dist/modeling/entity/entityName.mjs +13 -0
- package/dist/modeling/entity/helper.cjs +7 -0
- package/dist/modeling/entity/helper.d.ts +15 -0
- package/dist/modeling/entity/helper.mjs +7 -0
- package/dist/modeling/entity/index.d.ts +4 -0
- package/dist/modeling/entity/namespace.cjs +18 -0
- package/dist/modeling/entity/namespace.d.ts +15 -0
- package/dist/modeling/entity/namespace.mjs +17 -0
- package/dist/modeling/flag/base.cjs +36 -0
- package/dist/modeling/flag/base.d.ts +19 -0
- package/dist/modeling/flag/base.mjs +35 -0
- package/dist/modeling/flag/index.d.ts +1 -0
- package/dist/modeling/index.cjs +47 -0
- package/dist/modeling/index.d.ts +4 -0
- package/dist/modeling/index.mjs +28 -0
- package/dist/modeling/kind.cjs +4 -0
- package/dist/modeling/kind.d.ts +2 -0
- package/dist/modeling/kind.mjs +5 -0
- package/dist/modeling/newType/base.cjs +61 -0
- package/dist/modeling/newType/base.d.ts +37 -0
- package/dist/modeling/newType/base.mjs +61 -0
- package/dist/modeling/newType/helper.cjs +7 -0
- package/dist/modeling/newType/helper.d.ts +5 -0
- package/dist/modeling/newType/helper.mjs +7 -0
- package/dist/modeling/newType/index.d.ts +2 -0
- package/dist/number/betweenThan.cjs +11 -0
- package/dist/number/betweenThan.d.ts +13 -0
- package/dist/number/betweenThan.mjs +11 -0
- package/dist/number/betweenThanOrEqual.cjs +11 -0
- package/dist/number/betweenThanOrEqual.d.ts +13 -0
- package/dist/number/betweenThanOrEqual.mjs +11 -0
- package/dist/number/constraints/even.d.ts +3 -0
- package/dist/number/constraints/greaterThan.d.ts +11 -0
- package/dist/number/constraints/greaterThanOrEqual.d.ts +11 -0
- package/dist/number/constraints/index.d.ts +15 -0
- package/dist/number/constraints/integer.d.ts +4 -0
- package/dist/number/constraints/lessThan.d.ts +11 -0
- package/dist/number/constraints/lessThanOrEqual.d.ts +11 -0
- package/dist/number/constraints/multipleOf.d.ts +5 -0
- package/dist/number/constraints/negative.d.ts +3 -0
- package/dist/number/constraints/notZero.d.ts +3 -0
- package/dist/number/constraints/odd.d.ts +3 -0
- package/dist/number/constraints/positive.d.ts +3 -0
- package/dist/number/constraints/safe.d.ts +5 -0
- package/dist/number/constraints/strictNegative.d.ts +3 -0
- package/dist/number/constraints/strictPositive.d.ts +3 -0
- package/dist/number/constraints/types/index.d.ts +2 -0
- package/dist/number/constraints/types/isPositiveInteger.d.ts +28 -0
- package/dist/number/constraints/types/requirePositiveInteger.d.ts +3 -0
- package/dist/number/greaterThan.cjs +11 -0
- package/dist/number/greaterThan.d.ts +11 -0
- package/dist/number/greaterThan.mjs +11 -0
- package/dist/number/greaterThanOrEqual.cjs +11 -0
- package/dist/number/greaterThanOrEqual.d.ts +11 -0
- package/dist/number/greaterThanOrEqual.mjs +11 -0
- package/dist/number/index.cjs +80 -0
- package/dist/number/index.d.ts +25 -0
- package/dist/number/index.mjs +52 -0
- package/dist/number/infer.cjs +6 -0
- package/dist/number/infer.d.ts +12 -0
- package/dist/number/infer.mjs +6 -0
- package/dist/number/isEven.cjs +6 -0
- package/dist/number/isEven.d.ts +2 -0
- package/dist/number/isEven.mjs +6 -0
- package/dist/number/isInteger.cjs +6 -0
- package/dist/number/isInteger.d.ts +2 -0
- package/dist/number/isInteger.mjs +6 -0
- package/dist/number/isMultipleOf.cjs +11 -0
- package/dist/number/isMultipleOf.d.ts +10 -0
- package/dist/number/isMultipleOf.mjs +11 -0
- package/dist/number/isNegative.cjs +6 -0
- package/dist/number/isNegative.d.ts +2 -0
- package/dist/number/isNegative.mjs +6 -0
- package/dist/number/isNotZero.cjs +6 -0
- package/dist/number/isNotZero.d.ts +2 -0
- package/dist/number/isNotZero.mjs +6 -0
- package/dist/number/isOdd.cjs +6 -0
- package/dist/number/isOdd.d.ts +2 -0
- package/dist/number/isOdd.mjs +6 -0
- package/dist/number/isPositive.cjs +6 -0
- package/dist/number/isPositive.d.ts +2 -0
- package/dist/number/isPositive.mjs +6 -0
- package/dist/number/isSafe.cjs +6 -0
- package/dist/number/isSafe.d.ts +2 -0
- package/dist/number/isSafe.mjs +6 -0
- package/dist/number/isStrictNegative.cjs +6 -0
- package/dist/number/isStrictNegative.d.ts +2 -0
- package/dist/number/isStrictNegative.mjs +6 -0
- package/dist/number/isStrictPositive.cjs +6 -0
- package/dist/number/isStrictPositive.d.ts +2 -0
- package/dist/number/isStrictPositive.mjs +6 -0
- package/dist/number/lessThan.cjs +11 -0
- package/dist/number/lessThan.d.ts +11 -0
- package/dist/number/lessThan.mjs +11 -0
- package/dist/number/lessThanOrEqual.cjs +11 -0
- package/dist/number/lessThanOrEqual.d.ts +11 -0
- package/dist/number/lessThanOrEqual.mjs +11 -0
- package/dist/number/max.cjs +6 -0
- package/dist/number/max.d.ts +2 -0
- package/dist/number/max.mjs +6 -0
- package/dist/number/maxOf.cjs +11 -0
- package/dist/number/maxOf.d.ts +2 -0
- package/dist/number/maxOf.mjs +11 -0
- package/dist/number/min.cjs +6 -0
- package/dist/number/min.d.ts +2 -0
- package/dist/number/min.mjs +6 -0
- package/dist/number/minOf.cjs +11 -0
- package/dist/number/minOf.d.ts +2 -0
- package/dist/number/minOf.mjs +11 -0
- package/dist/number/sort.cjs +11 -0
- package/dist/number/sort.d.ts +6 -0
- package/dist/number/sort.mjs +11 -0
- package/dist/number/sum.cjs +8 -0
- package/dist/number/sum.d.ts +1 -0
- package/dist/number/sum.mjs +8 -0
- package/dist/number/types/IsZero.d.ts +1 -0
- package/dist/number/types/absolute.d.ts +3 -0
- package/dist/number/types/addOne.d.ts +23 -0
- package/dist/number/types/forbiddenNegative.d.ts +3 -0
- package/dist/number/types/index.d.ts +14 -0
- package/dist/number/types/isGreater.d.ts +75 -0
- package/dist/number/types/isInterger.d.ts +7 -0
- package/dist/number/types/isLess.d.ts +4 -0
- package/dist/number/types/isLiteral.d.ts +3 -0
- package/dist/number/types/isNegative.d.ts +2 -0
- package/dist/number/types/isPositive.d.ts +3 -0
- package/dist/number/types/isSafe.d.ts +10 -0
- package/dist/number/types/requireLiteral.d.ts +3 -0
- package/dist/number/types/requireSimpleLiteral.d.ts +2 -0
- package/dist/number/types/toString.d.ts +1 -0
- package/dist/object/assign.cjs +14 -0
- package/dist/object/assign.d.ts +4 -0
- package/dist/object/assign.mjs +14 -0
- package/dist/object/countKeys.cjs +7 -0
- package/dist/object/countKeys.d.ts +1 -0
- package/dist/object/countKeys.mjs +7 -0
- package/dist/object/deepDiscriminate.cjs +13 -0
- package/dist/object/deepDiscriminate.d.ts +10 -0
- package/dist/object/deepDiscriminate.mjs +13 -0
- package/dist/object/discriminate.cjs +12 -0
- package/dist/object/discriminate.d.ts +9 -0
- package/dist/object/discriminate.mjs +12 -0
- package/dist/object/discriminateEntryKey.cjs +11 -0
- package/dist/object/discriminateEntryKey.d.ts +11 -0
- package/dist/object/discriminateEntryKey.mjs +11 -0
- package/dist/object/discriminateEntryValue.cjs +11 -0
- package/dist/object/discriminateEntryValue.d.ts +11 -0
- package/dist/object/discriminateEntryValue.mjs +11 -0
- package/dist/object/entries.cjs +13 -0
- package/dist/object/entries.d.ts +15 -0
- package/dist/object/entries.mjs +13 -0
- package/dist/object/entry.cjs +6 -0
- package/dist/object/entry.d.ts +2 -0
- package/dist/object/entry.mjs +6 -0
- package/dist/object/fromEntries.cjs +6 -0
- package/dist/object/fromEntries.d.ts +8 -0
- package/dist/object/fromEntries.mjs +6 -0
- package/dist/object/getDeepProperty.cjs +18 -0
- package/dist/object/getDeepProperty.d.ts +6 -0
- package/dist/object/getDeepProperty.mjs +18 -0
- package/dist/object/getProperty.cjs +11 -0
- package/dist/object/getProperty.d.ts +7 -0
- package/dist/object/getProperty.mjs +11 -0
- package/dist/object/hasKeys.cjs +14 -0
- package/dist/object/hasKeys.d.ts +3 -0
- package/dist/object/hasKeys.mjs +14 -0
- package/dist/object/index.cjs +74 -0
- package/dist/object/index.d.ts +22 -0
- package/dist/object/index.mjs +48 -0
- package/dist/object/isSimple.cjs +6 -0
- package/dist/object/isSimple.d.ts +1 -0
- package/dist/object/isSimple.mjs +6 -0
- package/dist/object/keys.cjs +9 -0
- package/dist/object/keys.d.ts +1 -0
- package/dist/object/keys.mjs +9 -0
- package/dist/object/omit.cjs +18 -0
- package/dist/object/omit.d.ts +8 -0
- package/dist/object/omit.mjs +18 -0
- package/dist/object/override.cjs +14 -0
- package/dist/object/override.d.ts +2 -0
- package/dist/object/override.mjs +14 -0
- package/dist/object/pick.cjs +18 -0
- package/dist/object/pick.d.ts +8 -0
- package/dist/object/pick.mjs +18 -0
- package/dist/object/to.cjs +14 -0
- package/dist/object/to.d.ts +10 -0
- package/dist/object/to.mjs +14 -0
- package/dist/object/transformProperties.cjs +14 -0
- package/dist/object/transformProperties.d.ts +10 -0
- package/dist/object/transformProperties.mjs +14 -0
- package/dist/object/transformProperty.cjs +15 -0
- package/dist/object/transformProperty.d.ts +7 -0
- package/dist/object/transformProperty.mjs +15 -0
- package/dist/object/types/assignObjects.d.ts +2 -0
- package/dist/object/types/deepPartial.d.ts +3 -0
- package/dist/object/types/deepReadonly.d.ts +3 -0
- package/dist/object/types/deepRemoveReadonly.d.ts +3 -0
- package/dist/object/types/deepRequired.d.ts +3 -0
- package/dist/object/types/everyCombination.d.ts +6 -0
- package/dist/object/types/flatObject.d.ts +25 -0
- package/dist/object/types/forbiddenKey.d.ts +2 -0
- package/dist/object/types/getPropsWithValue.d.ts +4 -0
- package/dist/object/types/getPropsWithValueExtends.d.ts +3 -0
- package/dist/object/types/index.d.ts +17 -0
- package/dist/object/types/partialKeys.d.ts +2 -0
- package/dist/object/types/requireAtLeastOne.d.ts +2 -0
- package/dist/object/types/requiredKeys.d.ts +2 -0
- package/dist/object/types/split.d.ts +13 -0
- package/dist/object/types/unFlatObject.d.ts +21 -0
- package/dist/object/types/unionObjectToIntersection.d.ts +2 -0
- package/dist/object/types/values.d.ts +1 -0
- package/dist/object/values.cjs +7 -0
- package/dist/object/values.d.ts +2 -0
- package/dist/object/values.mjs +7 -0
- package/dist/path/computeRelative.cjs +14 -0
- package/dist/path/computeRelative.d.ts +2 -0
- package/dist/path/computeRelative.mjs +14 -0
- package/dist/path/constraints/absolute.d.ts +3 -0
- package/dist/path/constraints/index.d.ts +2 -0
- package/dist/path/constraints/path.d.ts +3 -0
- package/dist/path/fix.cjs +8 -0
- package/dist/path/fix.d.ts +1 -0
- package/dist/path/fix.mjs +8 -0
- package/dist/path/getBaseName.cjs +12 -0
- package/dist/path/getBaseName.d.ts +5 -0
- package/dist/path/getBaseName.mjs +12 -0
- package/dist/path/getExtensionName.cjs +9 -0
- package/dist/path/getExtensionName.d.ts +5 -0
- package/dist/path/getExtensionName.mjs +9 -0
- package/dist/path/getParentFolderPath.cjs +9 -0
- package/dist/path/getParentFolderPath.d.ts +3 -0
- package/dist/path/getParentFolderPath.mjs +9 -0
- package/dist/path/index.cjs +38 -0
- package/dist/path/index.d.ts +11 -0
- package/dist/path/index.mjs +24 -0
- package/dist/path/is.cjs +8 -0
- package/dist/path/is.d.ts +2 -0
- package/dist/path/is.mjs +8 -0
- package/dist/path/isAbsolute.cjs +9 -0
- package/dist/path/isAbsolute.d.ts +2 -0
- package/dist/path/isAbsolute.mjs +9 -0
- package/dist/path/resolveFrom.cjs +10 -0
- package/dist/path/resolveFrom.d.ts +3 -0
- package/dist/path/resolveFrom.mjs +10 -0
- package/dist/path/resolveRelative.cjs +26 -0
- package/dist/path/resolveRelative.d.ts +3 -0
- package/dist/path/resolveRelative.mjs +26 -0
- package/dist/path/types/index.d.ts +1 -0
- package/dist/path/types/requireSegments.d.ts +3 -0
- package/dist/pattern/exhaustive.cjs +7 -0
- package/dist/pattern/exhaustive.d.ts +4 -0
- package/dist/pattern/exhaustive.mjs +7 -0
- package/dist/pattern/index.cjs +54 -0
- package/dist/pattern/index.d.ts +13 -0
- package/dist/pattern/index.mjs +34 -0
- package/dist/pattern/isMatch.cjs +23 -0
- package/dist/pattern/isMatch.d.ts +4 -0
- package/dist/pattern/isMatch.mjs +23 -0
- package/dist/pattern/kind.cjs +7 -0
- package/dist/pattern/kind.d.ts +4 -0
- package/dist/pattern/kind.mjs +7 -0
- package/dist/pattern/match/builder.cjs +49 -0
- package/dist/pattern/match/builder.d.ts +29 -0
- package/dist/pattern/match/builder.mjs +48 -0
- package/dist/pattern/match/index.cjs +24 -0
- package/dist/pattern/match/index.d.ts +9 -0
- package/dist/pattern/match/index.mjs +22 -0
- package/dist/pattern/matchWithNumber.cjs +11 -0
- package/dist/pattern/matchWithNumber.d.ts +9 -0
- package/dist/pattern/matchWithNumber.mjs +11 -0
- package/dist/pattern/matchWithNumberOtherwise.cjs +15 -0
- package/dist/pattern/matchWithNumberOtherwise.d.ts +11 -0
- package/dist/pattern/matchWithNumberOtherwise.mjs +15 -0
- package/dist/pattern/matchWithString.cjs +11 -0
- package/dist/pattern/matchWithString.d.ts +10 -0
- package/dist/pattern/matchWithString.mjs +11 -0
- package/dist/pattern/matchWithStringOtherwise.cjs +15 -0
- package/dist/pattern/matchWithStringOtherwise.d.ts +11 -0
- package/dist/pattern/matchWithStringOtherwise.mjs +15 -0
- package/dist/pattern/otherwise.cjs +13 -0
- package/dist/pattern/otherwise.d.ts +6 -0
- package/dist/pattern/otherwise.mjs +13 -0
- package/dist/pattern/result.cjs +9 -0
- package/dist/pattern/result.d.ts +6 -0
- package/dist/pattern/result.mjs +8 -0
- package/dist/pattern/types/complexMatchedValue/array.d.ts +40 -0
- package/dist/pattern/types/complexMatchedValue/function.d.ts +8 -0
- package/dist/pattern/types/complexMatchedValue/index.d.ts +8 -0
- package/dist/pattern/types/complexMatchedValue/maybeAll.d.ts +5 -0
- package/dist/pattern/types/complexMatchedValue/object.d.ts +12 -0
- package/dist/pattern/types/complexMatchedValue/primitive.d.ts +9 -0
- package/dist/pattern/types/complexUnMatchedValue/array.d.ts +34 -0
- package/dist/pattern/types/complexUnMatchedValue/function.d.ts +8 -0
- package/dist/pattern/types/complexUnMatchedValue/getIncompleteUnion.d.ts +77 -0
- package/dist/pattern/types/complexUnMatchedValue/index.d.ts +16 -0
- package/dist/pattern/types/complexUnMatchedValue/maybeAll.d.ts +5 -0
- package/dist/pattern/types/complexUnMatchedValue/object.d.ts +17 -0
- package/dist/pattern/types/complexUnMatchedValue/primitive.d.ts +8 -0
- package/dist/pattern/types/complexUnMatchedValue/unionObject.d.ts +3 -0
- package/dist/pattern/types/index.d.ts +3 -0
- package/dist/pattern/types/pattern.cjs +4 -0
- package/dist/pattern/types/pattern.d.ts +36 -0
- package/dist/pattern/types/pattern.mjs +4 -0
- package/dist/pattern/union.cjs +12 -0
- package/dist/pattern/union.d.ts +6 -0
- package/dist/pattern/union.mjs +12 -0
- package/dist/pattern/when.cjs +13 -0
- package/dist/pattern/when.d.ts +8 -0
- package/dist/pattern/when.mjs +13 -0
- package/dist/pattern/whenNot.cjs +13 -0
- package/dist/pattern/whenNot.d.ts +6 -0
- package/dist/pattern/whenNot.mjs +13 -0
- package/dist/printer/back.d.ts +1 -0
- package/dist/printer/bold.cjs +7 -0
- package/dist/printer/bold.d.ts +1 -0
- package/dist/printer/bold.mjs +7 -0
- package/dist/printer/codes.cjs +16 -0
- package/dist/printer/codes.d.ts +11 -0
- package/dist/printer/codes.mjs +14 -0
- package/dist/printer/colorized.cjs +12 -0
- package/dist/printer/colorized.d.ts +3 -0
- package/dist/printer/colorized.mjs +12 -0
- package/dist/printer/colorizedBold.cjs +13 -0
- package/dist/printer/colorizedBold.d.ts +3 -0
- package/dist/printer/colorizedBold.mjs +13 -0
- package/dist/printer/dash.d.ts +1 -0
- package/dist/printer/indent.cjs +7 -0
- package/dist/printer/indent.d.ts +1 -0
- package/dist/printer/indent.mjs +7 -0
- package/dist/printer/index.cjs +35 -0
- package/dist/printer/index.d.ts +11 -0
- package/dist/printer/index.mjs +23 -0
- package/dist/printer/render.cjs +20 -0
- package/dist/printer/render.d.ts +3 -0
- package/dist/printer/render.mjs +20 -0
- package/dist/printer/renderLine.cjs +4 -0
- package/dist/printer/renderLine.d.ts +1 -0
- package/dist/printer/renderLine.mjs +5 -0
- package/dist/printer/renderParagraph.cjs +4 -0
- package/dist/printer/renderParagraph.d.ts +1 -0
- package/dist/printer/renderParagraph.mjs +5 -0
- package/dist/printer/tab.d.ts +1 -0
- package/dist/printer/types/colors.d.ts +2 -0
- package/dist/printer/types/index.d.ts +2 -0
- package/dist/printer/types/renderInput.d.ts +1 -0
- package/dist/string/at.cjs +11 -0
- package/dist/string/at.d.ts +3 -0
- package/dist/string/at.mjs +11 -0
- package/dist/string/capitalize.cjs +6 -0
- package/dist/string/capitalize.d.ts +5 -0
- package/dist/string/capitalize.mjs +6 -0
- package/dist/string/charAt.cjs +11 -0
- package/dist/string/charAt.d.ts +6 -0
- package/dist/string/charAt.mjs +11 -0
- package/dist/string/concat.cjs +11 -0
- package/dist/string/concat.d.ts +14 -0
- package/dist/string/concat.mjs +11 -0
- package/dist/string/constraints/allowedCharacters.d.ts +9 -0
- package/dist/string/constraints/email.d.ts +3 -0
- package/dist/string/constraints/format.d.ts +3 -0
- package/dist/string/constraints/index.d.ts +11 -0
- package/dist/string/constraints/lengthEqual.d.ts +11 -0
- package/dist/string/constraints/maxCharacters.d.ts +11 -0
- package/dist/string/constraints/minCharacters.d.ts +15 -0
- package/dist/string/constraints/notEmpty.d.ts +3 -0
- package/dist/string/constraints/trimmed.d.ts +3 -0
- package/dist/string/constraints/types/applyFormat.d.ts +3 -0
- package/dist/string/constraints/types/index.d.ts +5 -0
- package/dist/string/constraints/types/isIndexCovered.d.ts +5 -0
- package/dist/string/constraints/types/isIndexOutOfRange.d.ts +5 -0
- package/dist/string/constraints/types/reapplyAllowedCharacters.d.ts +2 -0
- package/dist/string/constraints/types/reapplyCompatiblesConstraints.d.ts +25 -0
- package/dist/string/constraints/url.d.ts +3 -0
- package/dist/string/constraints/uuid.d.ts +3 -0
- package/dist/string/endsWith.cjs +11 -0
- package/dist/string/endsWith.d.ts +5 -0
- package/dist/string/endsWith.mjs +11 -0
- package/dist/string/extract.cjs +19 -0
- package/dist/string/extract.d.ts +9 -0
- package/dist/string/extract.mjs +19 -0
- package/dist/string/extractAll.cjs +18 -0
- package/dist/string/extractAll.d.ts +3 -0
- package/dist/string/extractAll.mjs +18 -0
- package/dist/string/first.cjs +6 -0
- package/dist/string/first.d.ts +2 -0
- package/dist/string/first.mjs +6 -0
- package/dist/string/includes.cjs +11 -0
- package/dist/string/includes.d.ts +5 -0
- package/dist/string/includes.mjs +11 -0
- package/dist/string/index.cjs +165 -0
- package/dist/string/index.d.ts +50 -0
- package/dist/string/index.mjs +108 -0
- package/dist/string/indexOf.cjs +12 -0
- package/dist/string/indexOf.d.ts +2 -0
- package/dist/string/indexOf.mjs +12 -0
- package/dist/string/infer.cjs +6 -0
- package/dist/string/infer.d.ts +12 -0
- package/dist/string/infer.mjs +6 -0
- package/dist/string/isComposedOf.cjs +19 -0
- package/dist/string/isComposedOf.d.ts +14 -0
- package/dist/string/isComposedOf.mjs +19 -0
- package/dist/string/isEmail.cjs +8 -0
- package/dist/string/isEmail.d.ts +3 -0
- package/dist/string/isEmail.mjs +7 -0
- package/dist/string/isIn.cjs +11 -0
- package/dist/string/isIn.d.ts +2 -0
- package/dist/string/isIn.mjs +11 -0
- package/dist/string/isKeyof.cjs +11 -0
- package/dist/string/isKeyof.d.ts +3 -0
- package/dist/string/isKeyof.mjs +11 -0
- package/dist/string/isNotEmpty.cjs +6 -0
- package/dist/string/isNotEmpty.d.ts +2 -0
- package/dist/string/isNotEmpty.mjs +6 -0
- package/dist/string/isUrl.cjs +20 -0
- package/dist/string/isUrl.d.ts +6 -0
- package/dist/string/isUrl.mjs +20 -0
- package/dist/string/isUuid.cjs +8 -0
- package/dist/string/isUuid.d.ts +3 -0
- package/dist/string/isUuid.mjs +7 -0
- package/dist/string/join.cjs +11 -0
- package/dist/string/join.d.ts +3 -0
- package/dist/string/join.mjs +11 -0
- package/dist/string/last.cjs +6 -0
- package/dist/string/last.d.ts +2 -0
- package/dist/string/last.mjs +6 -0
- package/dist/string/lastIndexOf.cjs +12 -0
- package/dist/string/lastIndexOf.d.ts +2 -0
- package/dist/string/lastIndexOf.mjs +12 -0
- package/dist/string/length.cjs +6 -0
- package/dist/string/length.d.ts +2 -0
- package/dist/string/length.mjs +6 -0
- package/dist/string/lengthEqual.cjs +11 -0
- package/dist/string/lengthEqual.d.ts +14 -0
- package/dist/string/lengthEqual.mjs +11 -0
- package/dist/string/maxCharacters.cjs +11 -0
- package/dist/string/maxCharacters.d.ts +13 -0
- package/dist/string/maxCharacters.mjs +11 -0
- package/dist/string/minCharacters.cjs +11 -0
- package/dist/string/minCharacters.d.ts +13 -0
- package/dist/string/minCharacters.mjs +11 -0
- package/dist/string/normalize.cjs +11 -0
- package/dist/string/normalize.d.ts +3 -0
- package/dist/string/normalize.mjs +11 -0
- package/dist/string/padEnd.cjs +11 -0
- package/dist/string/padEnd.d.ts +6 -0
- package/dist/string/padEnd.mjs +11 -0
- package/dist/string/padStart.cjs +11 -0
- package/dist/string/padStart.d.ts +6 -0
- package/dist/string/padStart.mjs +11 -0
- package/dist/string/pop.cjs +6 -0
- package/dist/string/pop.d.ts +4 -0
- package/dist/string/pop.mjs +6 -0
- package/dist/string/prepend.cjs +11 -0
- package/dist/string/prepend.d.ts +14 -0
- package/dist/string/prepend.mjs +11 -0
- package/dist/string/repeat.cjs +12 -0
- package/dist/string/repeat.d.ts +6 -0
- package/dist/string/repeat.mjs +12 -0
- package/dist/string/replace.cjs +22 -0
- package/dist/string/replace.d.ts +10 -0
- package/dist/string/replace.mjs +22 -0
- package/dist/string/replaceAll.cjs +23 -0
- package/dist/string/replaceAll.d.ts +3 -0
- package/dist/string/replaceAll.mjs +23 -0
- package/dist/string/search.cjs +12 -0
- package/dist/string/search.d.ts +2 -0
- package/dist/string/search.mjs +12 -0
- package/dist/string/shift.cjs +6 -0
- package/dist/string/shift.d.ts +4 -0
- package/dist/string/shift.mjs +6 -0
- package/dist/string/slice.cjs +11 -0
- package/dist/string/slice.d.ts +5 -0
- package/dist/string/slice.mjs +11 -0
- package/dist/string/sort.cjs +15 -0
- package/dist/string/sort.d.ts +6 -0
- package/dist/string/sort.mjs +15 -0
- package/dist/string/sortCompare.cjs +17 -0
- package/dist/string/sortCompare.d.ts +2 -0
- package/dist/string/sortCompare.mjs +17 -0
- package/dist/string/split.cjs +11 -0
- package/dist/string/split.d.ts +26 -0
- package/dist/string/split.mjs +11 -0
- package/dist/string/startsWith.cjs +11 -0
- package/dist/string/startsWith.d.ts +5 -0
- package/dist/string/startsWith.mjs +11 -0
- package/dist/string/stringify.cjs +10 -0
- package/dist/string/stringify.d.ts +1 -0
- package/dist/string/stringify.mjs +10 -0
- package/dist/string/substring.cjs +11 -0
- package/dist/string/substring.d.ts +5 -0
- package/dist/string/substring.mjs +11 -0
- package/dist/string/test.cjs +11 -0
- package/dist/string/test.d.ts +2 -0
- package/dist/string/test.mjs +11 -0
- package/dist/string/to.cjs +6 -0
- package/dist/string/to.d.ts +3 -0
- package/dist/string/to.mjs +6 -0
- package/dist/string/toLowerCase.cjs +6 -0
- package/dist/string/toLowerCase.d.ts +5 -0
- package/dist/string/toLowerCase.mjs +6 -0
- package/dist/string/toUpperCase.cjs +6 -0
- package/dist/string/toUpperCase.d.ts +5 -0
- package/dist/string/toUpperCase.mjs +6 -0
- package/dist/string/trim/default.cjs +6 -0
- package/dist/string/trim/default.d.ts +4 -0
- package/dist/string/trim/default.mjs +6 -0
- package/dist/string/trim/end.cjs +6 -0
- package/dist/string/trim/end.d.ts +4 -0
- package/dist/string/trim/end.mjs +6 -0
- package/dist/string/trim/index.d.ts +3 -0
- package/dist/string/trim/start.cjs +6 -0
- package/dist/string/trim/start.d.ts +4 -0
- package/dist/string/trim/start.mjs +6 -0
- package/dist/string/types/at.d.ts +15 -0
- package/dist/string/types/countMinCharacters.d.ts +4 -0
- package/dist/string/types/digit.d.ts +1 -0
- package/dist/string/types/endsWith.d.ts +1 -0
- package/dist/string/types/first.d.ts +2 -0
- package/dist/string/types/forbiddenContain.d.ts +2 -0
- package/dist/string/types/forbiddenString.d.ts +2 -0
- package/dist/string/types/includes.d.ts +1 -0
- package/dist/string/types/index.d.ts +24 -0
- package/dist/string/types/isKeyPattern.d.ts +1 -0
- package/dist/string/types/isLiteral.d.ts +3 -0
- package/dist/string/types/isTemplateLiteral.d.ts +6 -0
- package/dist/string/types/join.d.ts +8 -0
- package/dist/string/types/last.d.ts +2 -0
- package/dist/string/types/length.d.ts +2 -0
- package/dist/string/types/normalizeForm.d.ts +1 -0
- package/dist/string/types/number.d.ts +1 -0
- package/dist/string/types/pop.d.ts +5 -0
- package/dist/string/types/replace.d.ts +1 -0
- package/dist/string/types/requireLiteral.d.ts +3 -0
- package/dist/string/types/requireSimpleLiteral.d.ts +3 -0
- package/dist/string/types/shift.d.ts +3 -0
- package/dist/string/types/split.d.ts +10 -0
- package/dist/string/types/startsWith.d.ts +1 -0
- package/dist/string/uncapitalize.cjs +6 -0
- package/dist/string/uncapitalize.d.ts +5 -0
- package/dist/string/uncapitalize.mjs +6 -0
- package/dist/tuple/index.cjs +12 -0
- package/dist/tuple/index.d.ts +2 -0
- package/dist/tuple/index.mjs +6 -0
- package/dist/tuple/map.cjs +14 -0
- package/dist/tuple/map.d.ts +8 -0
- package/dist/tuple/map.mjs +14 -0
- package/dist/tuple/types/at.d.ts +1 -0
- package/dist/tuple/types/countMinElement.d.ts +2 -0
- package/dist/tuple/types/create.d.ts +2 -0
- package/dist/tuple/types/hasSpread.d.ts +2 -0
- package/dist/tuple/types/index.d.ts +14 -0
- package/dist/tuple/types/isCompromise.d.ts +2 -0
- package/dist/tuple/types/join.d.ts +6 -0
- package/dist/tuple/types/map.d.ts +1 -0
- package/dist/tuple/types/matched.d.ts +38 -0
- package/dist/tuple/types/mergeUnion.d.ts +7 -0
- package/dist/tuple/types/pop.d.ts +2 -0
- package/dist/tuple/types/require.d.ts +2 -0
- package/dist/tuple/types/reverse.d.ts +2 -0
- package/dist/tuple/types/shift.d.ts +2 -0
- package/dist/tuple/types/unmatched.d.ts +29 -0
- package/package.json +160 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { informationKind } from './kind';
|
|
2
|
+
import { Right } from './right';
|
|
3
|
+
import { Left } from './left';
|
|
4
|
+
import { GetInformation, GetValue } from './types';
|
|
5
|
+
import type * as DCommon from '../common';
|
|
6
|
+
import type * as DKind from '../kind';
|
|
7
|
+
import type * as DObject from '../object';
|
|
8
|
+
type Either = Right | Left;
|
|
9
|
+
type ComputeMatcher<GenericEither extends Either> = Extract<{
|
|
10
|
+
[Prop in GetInformation<GenericEither>]?: (value: GetValue<Extract<GenericEither, DKind.Kind<typeof informationKind, Prop>>>) => unknown;
|
|
11
|
+
}, any>;
|
|
12
|
+
type ForbiddenMoreKey<GenericInput extends unknown, GenericMatcher extends ComputeMatcher<Extract<GenericInput, Either>>> = DObject.ForbiddenKey<GenericMatcher, Extract<Exclude<keyof GenericMatcher, GetInformation<Extract<GenericInput, Either>>>, string>>;
|
|
13
|
+
export declare function matchInformationOtherwise<GenericInput extends unknown, GenericMatcher extends ComputeMatcher<Extract<GenericInput, Either>>, GenericOutput extends unknown, GenericError extends ForbiddenMoreKey<GenericInput, GenericMatcher>>(matcher: (ComputeMatcher<Extract<NoInfer<GenericInput>, Either>> & GenericMatcher & NoInfer<GenericError>), otherwise: (value: Exclude<GenericInput, DKind.Kind<typeof informationKind, Extract<DObject.GetPropsWithValueExtends<GenericMatcher, DCommon.AnyFunction>, string>>>) => GenericOutput): (input: GenericInput) => (ReturnType<NoInfer<Extract<GenericMatcher[keyof GenericMatcher], DCommon.AnyFunction>>> | GenericOutput);
|
|
14
|
+
export declare function matchInformationOtherwise<GenericInput extends unknown, GenericMatcher extends ComputeMatcher<Extract<GenericInput, Either>>, GenericOutput extends unknown>(input: GenericInput, matcher: DCommon.FixDeepFunctionInfer<ComputeMatcher<Extract<GenericInput, Either>>, GenericMatcher> & ForbiddenMoreKey<GenericInput, GenericMatcher>, otherwise: (value: Exclude<GenericInput, DKind.Kind<typeof informationKind, Extract<DObject.GetPropsWithValueExtends<GenericMatcher, DCommon.AnyFunction>, string>>>) => GenericOutput): (ReturnType<NoInfer<Extract<GenericMatcher[keyof GenericMatcher], DCommon.AnyFunction>>> | GenericOutput);
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { informationKind, valueKind } from "./kind.mjs";
|
|
2
|
+
//#region scripts/either/matchInformationOtherwise.ts
|
|
3
|
+
function matchInformationOtherwise(...args) {
|
|
4
|
+
if (args.length === 2) {
|
|
5
|
+
const [matcher, otherwise] = args;
|
|
6
|
+
return (input) => matchInformationOtherwise(input, matcher, otherwise);
|
|
7
|
+
}
|
|
8
|
+
const [input, matcher, otherwise] = args;
|
|
9
|
+
if (!informationKind.has(input) || !valueKind.has(input)) return otherwise(input);
|
|
10
|
+
const callback = matcher[informationKind.getValue(input)];
|
|
11
|
+
if (callback === void 0) return otherwise(input);
|
|
12
|
+
return callback(valueKind.getValue(input));
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { matchInformationOtherwise };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const require_asyncPipe = require("../../common/asyncPipe.cjs");
|
|
2
|
+
const require_entries = require("../../object/entries.cjs");
|
|
3
|
+
const require_is = require("../left/is.cjs");
|
|
4
|
+
const require_success = require("./success.cjs");
|
|
5
|
+
const require_when = require("./when.cjs");
|
|
6
|
+
const require_reduce = require("../../generator/reduce.cjs");
|
|
7
|
+
const require_asyncReduce = require("../../generator/asyncReduce.cjs");
|
|
8
|
+
const require_isType = require("../../common/isType.cjs");
|
|
9
|
+
const require_when$1 = require("../../common/when.cjs");
|
|
10
|
+
const require_whenNot = require("../../common/whenNot.cjs");
|
|
11
|
+
//#region scripts/either/right/asyncGroup.ts
|
|
12
|
+
function asyncGroup(group) {
|
|
13
|
+
if (group instanceof Array) return require_asyncPipe.asyncPipe(group, require_asyncReduce.asyncReduce(require_reduce.reduceFrom([]), ({ item, lastValue, nextPush, exit }) => require_asyncPipe.asyncPipe(item, require_when$1.when(require_isType.isType("function"), (getter) => getter()), require_when$1.when(require_is.isLeft, exit), require_when.whenIsRight((data) => nextPush(lastValue, data)))), require_whenNot.whenNot(require_is.isLeft, require_success.success));
|
|
14
|
+
return require_asyncPipe.asyncPipe(group, require_entries.entries, require_asyncReduce.asyncReduce(require_reduce.reduceFrom({}), ({ item: [key, value], lastValue, nextWithObject, exit }) => require_asyncPipe.asyncPipe(value, require_when$1.when(require_isType.isType("function"), (getter) => getter()), require_when$1.when(require_is.isLeft, exit), require_when.whenIsRight((data) => nextWithObject(lastValue, { [key]: data })))), require_whenNot.whenNot(require_is.isLeft, require_success.success));
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.asyncGroup = asyncGroup;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as DCommon from '../../common';
|
|
2
|
+
import * as DEither from '..';
|
|
3
|
+
type Either = DCommon.MaybePromise<DEither.Right | DEither.Left>;
|
|
4
|
+
type AsyncGroupOutput<GenericGroup extends (Record<string, DCommon.MayBeGetter<Either>> | readonly DCommon.MayBeGetter<Either>[])> = Extract<Promise<DEither.Success<DCommon.SimplifyTopLevel<{
|
|
5
|
+
-readonly [Prop in keyof GenericGroup]: GenericGroup[Prop] extends infer InferredValue ? InferredValue extends DCommon.AnyFunction ? DEither.GetValue<Extract<Awaited<ReturnType<InferredValue>>, DEither.Right>> : DEither.GetValue<Extract<Awaited<InferredValue>, DEither.Right>> : never;
|
|
6
|
+
}>> | (GenericGroup extends readonly (infer InferredElement)[] ? InferredElement extends DCommon.AnyFunction ? Extract<Awaited<ReturnType<InferredElement>>, DEither.Left> : Extract<Awaited<InferredElement>, DEither.Left> : {
|
|
7
|
+
[Prop in Exclude<keyof GenericGroup, keyof any[]>]: GenericGroup[Prop] extends DCommon.AnyFunction ? Extract<Awaited<ReturnType<GenericGroup[Prop]>>, DEither.Left> : Extract<Awaited<GenericGroup[Prop]>, DEither.Left>;
|
|
8
|
+
}[Exclude<keyof GenericGroup, keyof any[]>])>, any>;
|
|
9
|
+
export declare function asyncGroup<const GenericGroup extends (Record<string, DCommon.MayBeGetter<Either>> | readonly DCommon.MayBeGetter<Either>[])>(group: GenericGroup): Extract<AsyncGroupOutput<GenericGroup>, any>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { asyncPipe } from "../../common/asyncPipe.mjs";
|
|
2
|
+
import { entries } from "../../object/entries.mjs";
|
|
3
|
+
import { isLeft } from "../left/is.mjs";
|
|
4
|
+
import { success } from "./success.mjs";
|
|
5
|
+
import { whenIsRight } from "./when.mjs";
|
|
6
|
+
import { reduceFrom } from "../../generator/reduce.mjs";
|
|
7
|
+
import { asyncReduce } from "../../generator/asyncReduce.mjs";
|
|
8
|
+
import { isType } from "../../common/isType.mjs";
|
|
9
|
+
import { when } from "../../common/when.mjs";
|
|
10
|
+
import { whenNot } from "../../common/whenNot.mjs";
|
|
11
|
+
//#region scripts/either/right/asyncGroup.ts
|
|
12
|
+
function asyncGroup(group) {
|
|
13
|
+
if (group instanceof Array) return asyncPipe(group, asyncReduce(reduceFrom([]), ({ item, lastValue, nextPush, exit }) => asyncPipe(item, when(isType("function"), (getter) => getter()), when(isLeft, exit), whenIsRight((data) => nextPush(lastValue, data)))), whenNot(isLeft, success));
|
|
14
|
+
return asyncPipe(group, entries, asyncReduce(reduceFrom({}), ({ item: [key, value], lastValue, nextWithObject, exit }) => asyncPipe(value, when(isType("function"), (getter) => getter()), when(isLeft, exit), whenIsRight((data) => nextWithObject(lastValue, { [key]: data })))), whenNot(isLeft, success));
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { asyncGroup };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const require_kind = require("../kind.cjs");
|
|
2
|
+
const require_is = require("../left/is.cjs");
|
|
3
|
+
const require_success = require("./success.cjs");
|
|
4
|
+
const require_is$1 = require("./is.cjs");
|
|
5
|
+
//#region scripts/either/right/asyncPipe.ts
|
|
6
|
+
async function rightAsyncPipe(input, ...pipes) {
|
|
7
|
+
const awaitedInput = await input;
|
|
8
|
+
if (require_is.isLeft(awaitedInput)) return awaitedInput;
|
|
9
|
+
let acc = require_is$1.isRight(awaitedInput) ? require_kind.valueKind.getValue(awaitedInput) : awaitedInput;
|
|
10
|
+
for (const pipe of pipes) {
|
|
11
|
+
acc = await pipe(require_is$1.isRight(acc) ? require_kind.valueKind.getValue(acc) : acc);
|
|
12
|
+
if (require_is.isLeft(acc)) return acc;
|
|
13
|
+
}
|
|
14
|
+
return require_is$1.isRight(acc) ? acc : require_success.success(acc);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.rightAsyncPipe = rightAsyncPipe;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Right } from './create';
|
|
2
|
+
import { Left } from '../left';
|
|
3
|
+
import { Success } from './success';
|
|
4
|
+
import { GetValue } from '../types';
|
|
5
|
+
type Either = Right | Left;
|
|
6
|
+
type RightAsyncPipeFunction<GenericInput extends unknown, GenericOutput extends unknown> = (input: Awaited<GenericInput> extends infer InferredInput ? InferredInput extends Either ? GetValue<Exclude<InferredInput, Left>> : InferredInput : never) => GenericOutput;
|
|
7
|
+
type RightAsyncPipeResult<GenericPipeOutputs extends unknown, GenericLastPipeOutput extends unknown> = (Extract<Awaited<GenericPipeOutputs>, Left> | (Awaited<GenericLastPipeOutput> extends infer InferredLastResult ? Exclude<InferredLastResult extends Either ? InferredLastResult : Success<InferredLastResult>, Left> : never));
|
|
8
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1, GenericOutputPipe1>, any>>;
|
|
9
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2, GenericOutputPipe2>, any>>;
|
|
10
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3, GenericOutputPipe3>, any>>;
|
|
11
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4, GenericOutputPipe4>, any>>;
|
|
12
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5, GenericOutputPipe5>, any>>;
|
|
13
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6, GenericOutputPipe6>, any>>;
|
|
14
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7, GenericOutputPipe7>, any>>;
|
|
15
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightAsyncPipeFunction<GenericOutputPipe7, GenericOutputPipe8>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8, GenericOutputPipe8>, any>>;
|
|
16
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightAsyncPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightAsyncPipeFunction<GenericOutputPipe8, GenericOutputPipe9>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9, GenericOutputPipe9>, any>>;
|
|
17
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightAsyncPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightAsyncPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightAsyncPipeFunction<GenericOutputPipe9, GenericOutputPipe10>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10, GenericOutputPipe10>, any>>;
|
|
18
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightAsyncPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightAsyncPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightAsyncPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightAsyncPipeFunction<GenericOutputPipe10, GenericOutputPipe11>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11, GenericOutputPipe11>, any>>;
|
|
19
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown, const GenericOutputPipe12 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightAsyncPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightAsyncPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightAsyncPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightAsyncPipeFunction<GenericOutputPipe10, GenericOutputPipe11>, pipe12: RightAsyncPipeFunction<GenericOutputPipe11, GenericOutputPipe12>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11 | GenericOutputPipe12, GenericOutputPipe12>, any>>;
|
|
20
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown, const GenericOutputPipe12 extends unknown, const GenericOutputPipe13 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightAsyncPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightAsyncPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightAsyncPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightAsyncPipeFunction<GenericOutputPipe10, GenericOutputPipe11>, pipe12: RightAsyncPipeFunction<GenericOutputPipe11, GenericOutputPipe12>, pipe13: RightAsyncPipeFunction<GenericOutputPipe12, GenericOutputPipe13>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11 | GenericOutputPipe12 | GenericOutputPipe13, GenericOutputPipe13>, any>>;
|
|
21
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown, const GenericOutputPipe12 extends unknown, const GenericOutputPipe13 extends unknown, const GenericOutputPipe14 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightAsyncPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightAsyncPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightAsyncPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightAsyncPipeFunction<GenericOutputPipe10, GenericOutputPipe11>, pipe12: RightAsyncPipeFunction<GenericOutputPipe11, GenericOutputPipe12>, pipe13: RightAsyncPipeFunction<GenericOutputPipe12, GenericOutputPipe13>, pipe14: RightAsyncPipeFunction<GenericOutputPipe13, GenericOutputPipe14>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11 | GenericOutputPipe12 | GenericOutputPipe13 | GenericOutputPipe14, GenericOutputPipe14>, any>>;
|
|
22
|
+
export declare function rightAsyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown, const GenericOutputPipe12 extends unknown, const GenericOutputPipe13 extends unknown, const GenericOutputPipe14 extends unknown, const GenericOutputPipe15 extends unknown>(input: GenericInput, pipe1: RightAsyncPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightAsyncPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightAsyncPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightAsyncPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightAsyncPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightAsyncPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightAsyncPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightAsyncPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightAsyncPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightAsyncPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightAsyncPipeFunction<GenericOutputPipe10, GenericOutputPipe11>, pipe12: RightAsyncPipeFunction<GenericOutputPipe11, GenericOutputPipe12>, pipe13: RightAsyncPipeFunction<GenericOutputPipe12, GenericOutputPipe13>, pipe14: RightAsyncPipeFunction<GenericOutputPipe13, GenericOutputPipe14>, pipe15: RightAsyncPipeFunction<GenericOutputPipe14, GenericOutputPipe15>): Promise<Extract<RightAsyncPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11 | GenericOutputPipe12 | GenericOutputPipe13 | GenericOutputPipe14 | GenericOutputPipe15, GenericOutputPipe15>, any>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { valueKind } from "../kind.mjs";
|
|
2
|
+
import { isLeft } from "../left/is.mjs";
|
|
3
|
+
import { success } from "./success.mjs";
|
|
4
|
+
import { isRight } from "./is.mjs";
|
|
5
|
+
//#region scripts/either/right/asyncPipe.ts
|
|
6
|
+
async function rightAsyncPipe(input, ...pipes) {
|
|
7
|
+
const awaitedInput = await input;
|
|
8
|
+
if (isLeft(awaitedInput)) return awaitedInput;
|
|
9
|
+
let acc = isRight(awaitedInput) ? valueKind.getValue(awaitedInput) : awaitedInput;
|
|
10
|
+
for (const pipe of pipes) {
|
|
11
|
+
acc = await pipe(isRight(acc) ? valueKind.getValue(acc) : acc);
|
|
12
|
+
if (isLeft(acc)) return acc;
|
|
13
|
+
}
|
|
14
|
+
return isRight(acc) ? acc : success(acc);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { rightAsyncPipe };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_kind = require("../kind.cjs");
|
|
2
|
+
//#region scripts/either/right/create.ts
|
|
3
|
+
const rightKind = require_kind.createKind("right");
|
|
4
|
+
function right(information, value = void 0) {
|
|
5
|
+
return {
|
|
6
|
+
[rightKind.runTimeKey]: null,
|
|
7
|
+
[require_kind.informationKind.runTimeKey]: information,
|
|
8
|
+
[require_kind.valueKind.runTimeKey]: value
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.right = right;
|
|
13
|
+
exports.rightKind = rightKind;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { informationKind, valueKind } from '../kind';
|
|
2
|
+
import type * as DKind from '../../kind';
|
|
3
|
+
export declare const rightKind: DKind.Handler<DKind.Definition<"@DuplojsLangEither/right", unknown>>;
|
|
4
|
+
type _Right<GenericInformation extends string = string, GenericValue extends unknown = unknown> = (DKind.Kind<typeof rightKind> & DKind.Kind<typeof informationKind, GenericInformation> & DKind.Kind<typeof valueKind, GenericValue>);
|
|
5
|
+
export interface Right<GenericInformation extends string = string, GenericValue extends unknown = unknown> extends _Right<GenericInformation, GenericValue> {
|
|
6
|
+
}
|
|
7
|
+
export declare function right<GenericInformation extends string, const GenericValue extends unknown = undefined>(information: GenericInformation, value?: GenericValue): Right<GenericInformation, GenericValue>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createKind, informationKind, valueKind } from "../kind.mjs";
|
|
2
|
+
//#region scripts/either/right/create.ts
|
|
3
|
+
const rightKind = createKind("right");
|
|
4
|
+
function right(information, value = void 0) {
|
|
5
|
+
return {
|
|
6
|
+
[rightKind.runTimeKey]: null,
|
|
7
|
+
[informationKind.runTimeKey]: information,
|
|
8
|
+
[valueKind.runTimeKey]: value
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { right, rightKind };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_entries = require("../../object/entries.cjs");
|
|
2
|
+
const require_is = require("../left/is.cjs");
|
|
3
|
+
const require_success = require("./success.cjs");
|
|
4
|
+
const require_when = require("./when.cjs");
|
|
5
|
+
const require_reduce = require("../../array/reduce.cjs");
|
|
6
|
+
const require_isType = require("../../common/isType.cjs");
|
|
7
|
+
const require_pipe = require("../../common/pipe.cjs");
|
|
8
|
+
const require_when$1 = require("../../common/when.cjs");
|
|
9
|
+
const require_whenNot = require("../../common/whenNot.cjs");
|
|
10
|
+
//#region scripts/either/right/group.ts
|
|
11
|
+
function group(group) {
|
|
12
|
+
if (group instanceof Array) return require_pipe.pipe(group, require_reduce.reduce(require_reduce.reduceFrom([]), ({ element, lastValue, nextPush, exit }) => require_pipe.pipe(element, require_when$1.when(require_isType.isType("function"), (getter) => getter()), require_when$1.when(require_is.isLeft, exit), require_when.whenIsRight((data) => nextPush(lastValue, data)))), require_whenNot.whenNot(require_is.isLeft, require_success.success));
|
|
13
|
+
return require_pipe.pipe(group, require_entries.entries, require_reduce.reduce(require_reduce.reduceFrom({}), ({ element: [key, value], lastValue, nextWithObject, exit }) => require_pipe.pipe(value, require_when$1.when(require_isType.isType("function"), (getter) => getter()), require_when$1.when(require_is.isLeft, exit), require_when.whenIsRight((data) => nextWithObject(lastValue, { [key]: data })))), require_whenNot.whenNot(require_is.isLeft, require_success.success));
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.group = group;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Left } from '../left';
|
|
2
|
+
import { Right } from './create';
|
|
3
|
+
import { Success } from './success';
|
|
4
|
+
import { GetValue } from '../types';
|
|
5
|
+
import * as DCommon from '../../common';
|
|
6
|
+
type Either = Right | Left;
|
|
7
|
+
type ComputeResult<GenericGroup extends (Record<string, DCommon.MayBeGetter<Either>> | readonly DCommon.MayBeGetter<Either>[])> = (Success<DCommon.SimplifyTopLevel<{
|
|
8
|
+
-readonly [Prop in keyof GenericGroup]: GenericGroup[Prop] extends infer InferredValue ? InferredValue extends DCommon.AnyFunction ? GetValue<Extract<ReturnType<InferredValue>, Right>> : GetValue<Extract<InferredValue, Right>> : never;
|
|
9
|
+
}>> | (GenericGroup extends readonly (infer InferredElement)[] ? InferredElement extends DCommon.AnyFunction ? Extract<ReturnType<InferredElement>, Left> : Extract<InferredElement, Left> : {
|
|
10
|
+
[Prop in Exclude<keyof GenericGroup, keyof any[]>]: GenericGroup[Prop] extends DCommon.AnyFunction ? Extract<ReturnType<GenericGroup[Prop]>, Left> : Extract<GenericGroup[Prop], Left>;
|
|
11
|
+
}[Exclude<keyof GenericGroup, keyof any[]>]));
|
|
12
|
+
export declare function group<const GenericGroup extends (Record<string, DCommon.MayBeGetter<Either>> | readonly DCommon.MayBeGetter<Either>[])>(group: GenericGroup): Extract<ComputeResult<GenericGroup>, any>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { entries } from "../../object/entries.mjs";
|
|
2
|
+
import { isLeft } from "../left/is.mjs";
|
|
3
|
+
import { success } from "./success.mjs";
|
|
4
|
+
import { whenIsRight } from "./when.mjs";
|
|
5
|
+
import { reduce, reduceFrom } from "../../array/reduce.mjs";
|
|
6
|
+
import { isType } from "../../common/isType.mjs";
|
|
7
|
+
import { pipe } from "../../common/pipe.mjs";
|
|
8
|
+
import { when } from "../../common/when.mjs";
|
|
9
|
+
import { whenNot } from "../../common/whenNot.mjs";
|
|
10
|
+
//#region scripts/either/right/group.ts
|
|
11
|
+
function group(group) {
|
|
12
|
+
if (group instanceof Array) return pipe(group, reduce(reduceFrom([]), ({ element, lastValue, nextPush, exit }) => pipe(element, when(isType("function"), (getter) => getter()), when(isLeft, exit), whenIsRight((data) => nextPush(lastValue, data)))), whenNot(isLeft, success));
|
|
13
|
+
return pipe(group, entries, reduce(reduceFrom({}), ({ element: [key, value], lastValue, nextWithObject, exit }) => pipe(value, when(isType("function"), (getter) => getter()), when(isLeft, exit), whenIsRight((data) => nextWithObject(lastValue, { [key]: data })))), whenNot(isLeft, success));
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { group };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './asyncPipe';
|
|
2
|
+
export * from './create';
|
|
3
|
+
export * from './is';
|
|
4
|
+
export * from './ok';
|
|
5
|
+
export * from './pipe';
|
|
6
|
+
export * from './success';
|
|
7
|
+
export * from './when';
|
|
8
|
+
export * from './whenOtherwise';
|
|
9
|
+
export * from './result';
|
|
10
|
+
export * from './unwrapOrThrow';
|
|
11
|
+
export * from './unwrap';
|
|
12
|
+
export * from './group';
|
|
13
|
+
export * from './asyncGroup';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const require_kind = require("../kind.cjs");
|
|
2
|
+
const require_create = require("./create.cjs");
|
|
3
|
+
//#region scripts/either/right/is.ts
|
|
4
|
+
function isRight(input) {
|
|
5
|
+
return require_create.rightKind.has(input) && require_kind.informationKind.has(input) && require_kind.valueKind.has(input);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.isRight = isRight;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { informationKind, valueKind } from "../kind.mjs";
|
|
2
|
+
import { rightKind } from "./create.mjs";
|
|
3
|
+
//#region scripts/either/right/is.ts
|
|
4
|
+
function isRight(input) {
|
|
5
|
+
return rightKind.has(input) && informationKind.has(input) && valueKind.has(input);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { isRight };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_kind = require("../kind.cjs");
|
|
2
|
+
const require_create = require("./create.cjs");
|
|
3
|
+
//#region scripts/either/right/ok.ts
|
|
4
|
+
const okKind = require_kind.createKind("ok");
|
|
5
|
+
function ok() {
|
|
6
|
+
return {
|
|
7
|
+
[require_create.rightKind.runTimeKey]: null,
|
|
8
|
+
[require_kind.informationKind.runTimeKey]: "ok",
|
|
9
|
+
[require_kind.valueKind.runTimeKey]: void 0,
|
|
10
|
+
[okKind.runTimeKey]: null
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.ok = ok;
|
|
15
|
+
exports.okKind = okKind;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Right } from './create';
|
|
2
|
+
import type * as DKind from '../../kind';
|
|
3
|
+
export declare const okKind: DKind.Handler<DKind.Definition<"@DuplojsLangEither/ok", unknown>>;
|
|
4
|
+
type _Ok = (Right<"ok", void> & DKind.Kind<typeof okKind>);
|
|
5
|
+
export interface Ok extends _Ok {
|
|
6
|
+
}
|
|
7
|
+
export declare function ok(): Ok;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createKind, informationKind, valueKind } from "../kind.mjs";
|
|
2
|
+
import { rightKind } from "./create.mjs";
|
|
3
|
+
//#region scripts/either/right/ok.ts
|
|
4
|
+
const okKind = createKind("ok");
|
|
5
|
+
function ok() {
|
|
6
|
+
return {
|
|
7
|
+
[rightKind.runTimeKey]: null,
|
|
8
|
+
[informationKind.runTimeKey]: "ok",
|
|
9
|
+
[valueKind.runTimeKey]: void 0,
|
|
10
|
+
[okKind.runTimeKey]: null
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ok, okKind };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_kind = require("../kind.cjs");
|
|
2
|
+
const require_is = require("../left/is.cjs");
|
|
3
|
+
const require_success = require("./success.cjs");
|
|
4
|
+
const require_is$1 = require("./is.cjs");
|
|
5
|
+
//#region scripts/either/right/pipe.ts
|
|
6
|
+
function rightPipe(input, ...pipes) {
|
|
7
|
+
if (require_is.isLeft(input)) return input;
|
|
8
|
+
let acc = require_is$1.isRight(input) ? require_kind.valueKind.getValue(input) : input;
|
|
9
|
+
for (const pipe of pipes) {
|
|
10
|
+
acc = pipe(require_is$1.isRight(acc) ? require_kind.valueKind.getValue(acc) : acc);
|
|
11
|
+
if (require_is.isLeft(acc)) return acc;
|
|
12
|
+
}
|
|
13
|
+
return require_is$1.isRight(acc) ? acc : require_success.success(acc);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.rightPipe = rightPipe;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Right } from './create';
|
|
2
|
+
import { Left } from '../left';
|
|
3
|
+
import { Success } from './success';
|
|
4
|
+
import { GetValue } from '../types';
|
|
5
|
+
type Either = Right | Left;
|
|
6
|
+
type RightPipeFunction<GenericInput extends unknown, GenericOutput extends unknown> = (input: GenericInput extends Either ? GetValue<Exclude<GenericInput, Left>> : GenericInput) => GenericOutput;
|
|
7
|
+
type RightPipeResult<GenericPipeOutputs extends unknown, GenericLastPipeOutput extends unknown> = (Extract<GenericPipeOutputs, Left> | Exclude<GenericLastPipeOutput extends Either ? GenericLastPipeOutput : Success<GenericLastPipeOutput>, Left>);
|
|
8
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1, GenericOutputPipe1>, any>;
|
|
9
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2, GenericOutputPipe2>, any>;
|
|
10
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3, GenericOutputPipe3>, any>;
|
|
11
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4, GenericOutputPipe4>, any>;
|
|
12
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5, GenericOutputPipe5>, any>;
|
|
13
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6, GenericOutputPipe6>, any>;
|
|
14
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7, GenericOutputPipe7>, any>;
|
|
15
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightPipeFunction<GenericOutputPipe7, GenericOutputPipe8>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8, GenericOutputPipe8>, any>;
|
|
16
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightPipeFunction<GenericOutputPipe8, GenericOutputPipe9>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9, GenericOutputPipe9>, any>;
|
|
17
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightPipeFunction<GenericOutputPipe9, GenericOutputPipe10>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10, GenericOutputPipe10>, any>;
|
|
18
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightPipeFunction<GenericOutputPipe10, GenericOutputPipe11>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11, GenericOutputPipe11>, any>;
|
|
19
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown, const GenericOutputPipe12 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightPipeFunction<GenericOutputPipe10, GenericOutputPipe11>, pipe12: RightPipeFunction<GenericOutputPipe11, GenericOutputPipe12>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11 | GenericOutputPipe12, GenericOutputPipe12>, any>;
|
|
20
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown, const GenericOutputPipe12 extends unknown, const GenericOutputPipe13 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightPipeFunction<GenericOutputPipe10, GenericOutputPipe11>, pipe12: RightPipeFunction<GenericOutputPipe11, GenericOutputPipe12>, pipe13: RightPipeFunction<GenericOutputPipe12, GenericOutputPipe13>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11 | GenericOutputPipe12 | GenericOutputPipe13, GenericOutputPipe13>, any>;
|
|
21
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown, const GenericOutputPipe12 extends unknown, const GenericOutputPipe13 extends unknown, const GenericOutputPipe14 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightPipeFunction<GenericOutputPipe10, GenericOutputPipe11>, pipe12: RightPipeFunction<GenericOutputPipe11, GenericOutputPipe12>, pipe13: RightPipeFunction<GenericOutputPipe12, GenericOutputPipe13>, pipe14: RightPipeFunction<GenericOutputPipe13, GenericOutputPipe14>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11 | GenericOutputPipe12 | GenericOutputPipe13 | GenericOutputPipe14, GenericOutputPipe14>, any>;
|
|
22
|
+
export declare function rightPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown, const GenericOutputPipe6 extends unknown, const GenericOutputPipe7 extends unknown, const GenericOutputPipe8 extends unknown, const GenericOutputPipe9 extends unknown, const GenericOutputPipe10 extends unknown, const GenericOutputPipe11 extends unknown, const GenericOutputPipe12 extends unknown, const GenericOutputPipe13 extends unknown, const GenericOutputPipe14 extends unknown, const GenericOutputPipe15 extends unknown>(input: GenericInput, pipe1: RightPipeFunction<GenericInput, GenericOutputPipe1>, pipe2: RightPipeFunction<GenericOutputPipe1, GenericOutputPipe2>, pipe3: RightPipeFunction<GenericOutputPipe2, GenericOutputPipe3>, pipe4: RightPipeFunction<GenericOutputPipe3, GenericOutputPipe4>, pipe5: RightPipeFunction<GenericOutputPipe4, GenericOutputPipe5>, pipe6: RightPipeFunction<GenericOutputPipe5, GenericOutputPipe6>, pipe7: RightPipeFunction<GenericOutputPipe6, GenericOutputPipe7>, pipe8: RightPipeFunction<GenericOutputPipe7, GenericOutputPipe8>, pipe9: RightPipeFunction<GenericOutputPipe8, GenericOutputPipe9>, pipe10: RightPipeFunction<GenericOutputPipe9, GenericOutputPipe10>, pipe11: RightPipeFunction<GenericOutputPipe10, GenericOutputPipe11>, pipe12: RightPipeFunction<GenericOutputPipe11, GenericOutputPipe12>, pipe13: RightPipeFunction<GenericOutputPipe12, GenericOutputPipe13>, pipe14: RightPipeFunction<GenericOutputPipe13, GenericOutputPipe14>, pipe15: RightPipeFunction<GenericOutputPipe14, GenericOutputPipe15>): Extract<RightPipeResult<GenericInput | GenericOutputPipe1 | GenericOutputPipe2 | GenericOutputPipe3 | GenericOutputPipe4 | GenericOutputPipe5 | GenericOutputPipe6 | GenericOutputPipe7 | GenericOutputPipe8 | GenericOutputPipe9 | GenericOutputPipe10 | GenericOutputPipe11 | GenericOutputPipe12 | GenericOutputPipe13 | GenericOutputPipe14 | GenericOutputPipe15, GenericOutputPipe15>, any>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { valueKind } from "../kind.mjs";
|
|
2
|
+
import { isLeft } from "../left/is.mjs";
|
|
3
|
+
import { success } from "./success.mjs";
|
|
4
|
+
import { isRight } from "./is.mjs";
|
|
5
|
+
//#region scripts/either/right/pipe.ts
|
|
6
|
+
function rightPipe(input, ...pipes) {
|
|
7
|
+
if (isLeft(input)) return input;
|
|
8
|
+
let acc = isRight(input) ? valueKind.getValue(input) : input;
|
|
9
|
+
for (const pipe of pipes) {
|
|
10
|
+
acc = pipe(isRight(acc) ? valueKind.getValue(acc) : acc);
|
|
11
|
+
if (isLeft(acc)) return acc;
|
|
12
|
+
}
|
|
13
|
+
return isRight(acc) ? acc : success(acc);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { rightPipe };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_kind = require("../kind.cjs");
|
|
2
|
+
const require_create = require("./create.cjs");
|
|
3
|
+
//#region scripts/either/right/result.ts
|
|
4
|
+
const resultKind = require_kind.createKind("result");
|
|
5
|
+
function result(...args) {
|
|
6
|
+
if (args.length === 1) {
|
|
7
|
+
const [information] = args;
|
|
8
|
+
return (value) => result(information, value);
|
|
9
|
+
}
|
|
10
|
+
const [information, value] = args;
|
|
11
|
+
return {
|
|
12
|
+
[require_create.rightKind.runTimeKey]: null,
|
|
13
|
+
[require_kind.informationKind.runTimeKey]: information,
|
|
14
|
+
[require_kind.valueKind.runTimeKey]: value,
|
|
15
|
+
[resultKind.runTimeKey]: null
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.result = result;
|
|
20
|
+
exports.resultKind = resultKind;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Right } from './create';
|
|
2
|
+
import type * as DKind from '../../kind';
|
|
3
|
+
export declare const resultKind: DKind.Handler<DKind.Definition<"@DuplojsLangEither/result", unknown>>;
|
|
4
|
+
type _Result<GenericInformation extends string = string, GenericValue extends unknown = unknown> = (Right<GenericInformation, GenericValue> & DKind.Kind<typeof resultKind>);
|
|
5
|
+
export interface Result<GenericInformation extends string = string, GenericValue extends unknown = unknown> extends _Result<GenericInformation, GenericValue> {
|
|
6
|
+
}
|
|
7
|
+
export declare function result<GenericInformation extends string, const GenericValue extends unknown = undefined>(information: GenericInformation): (value: GenericValue) => Result<GenericInformation, GenericValue>;
|
|
8
|
+
export declare function result<GenericInformation extends string, const GenericValue extends unknown = undefined>(information: GenericInformation, value: GenericValue): Result<GenericInformation, GenericValue>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createKind, informationKind, valueKind } from "../kind.mjs";
|
|
2
|
+
import { rightKind } from "./create.mjs";
|
|
3
|
+
//#region scripts/either/right/result.ts
|
|
4
|
+
const resultKind = createKind("result");
|
|
5
|
+
function result(...args) {
|
|
6
|
+
if (args.length === 1) {
|
|
7
|
+
const [information] = args;
|
|
8
|
+
return (value) => result(information, value);
|
|
9
|
+
}
|
|
10
|
+
const [information, value] = args;
|
|
11
|
+
return {
|
|
12
|
+
[rightKind.runTimeKey]: null,
|
|
13
|
+
[informationKind.runTimeKey]: information,
|
|
14
|
+
[valueKind.runTimeKey]: value,
|
|
15
|
+
[resultKind.runTimeKey]: null
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { result, resultKind };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_kind = require("../kind.cjs");
|
|
2
|
+
const require_create = require("./create.cjs");
|
|
3
|
+
//#region scripts/either/right/success.ts
|
|
4
|
+
const successKind = require_kind.createKind("success");
|
|
5
|
+
function success(value) {
|
|
6
|
+
return {
|
|
7
|
+
[require_create.rightKind.runTimeKey]: null,
|
|
8
|
+
[require_kind.informationKind.runTimeKey]: "success",
|
|
9
|
+
[require_kind.valueKind.runTimeKey]: value,
|
|
10
|
+
[successKind.runTimeKey]: null
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.success = success;
|
|
15
|
+
exports.successKind = successKind;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Right } from './create';
|
|
2
|
+
import type * as DKind from '../../kind';
|
|
3
|
+
export declare const successKind: DKind.Handler<DKind.Definition<"@DuplojsLangEither/success", unknown>>;
|
|
4
|
+
type _Success<GenericValue extends unknown = unknown> = (Right<"success", GenericValue> & DKind.Kind<typeof successKind>);
|
|
5
|
+
export interface Success<GenericValue extends unknown = unknown> extends _Success<GenericValue> {
|
|
6
|
+
}
|
|
7
|
+
export declare function success<const GenericValue extends unknown>(value: GenericValue): Success<GenericValue>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createKind, informationKind, valueKind } from "../kind.mjs";
|
|
2
|
+
import { rightKind } from "./create.mjs";
|
|
3
|
+
//#region scripts/either/right/success.ts
|
|
4
|
+
const successKind = createKind("success");
|
|
5
|
+
function success(value) {
|
|
6
|
+
return {
|
|
7
|
+
[rightKind.runTimeKey]: null,
|
|
8
|
+
[informationKind.runTimeKey]: "success",
|
|
9
|
+
[valueKind.runTimeKey]: value,
|
|
10
|
+
[successKind.runTimeKey]: null
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { success, successKind };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const require_kind = require("../kind.cjs");
|
|
2
|
+
const require_is = require("./is.cjs");
|
|
3
|
+
//#region scripts/either/right/unwrap.ts
|
|
4
|
+
function unwrapRight(input) {
|
|
5
|
+
if (require_is.isRight(input)) return require_kind.valueKind.getValue(input);
|
|
6
|
+
return input;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.unwrapRight = unwrapRight;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { valueKind } from "../kind.mjs";
|
|
2
|
+
import { isRight } from "./is.mjs";
|
|
3
|
+
//#region scripts/either/right/unwrap.ts
|
|
4
|
+
function unwrapRight(input) {
|
|
5
|
+
if (isRight(input)) return valueKind.getValue(input);
|
|
6
|
+
return input;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { unwrapRight };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_parentClass = require("../../kind/parentClass.cjs");
|
|
2
|
+
const require_kind = require("../kind.cjs");
|
|
3
|
+
const require_is = require("./is.cjs");
|
|
4
|
+
//#region scripts/either/right/unwrapOrThrow.ts
|
|
5
|
+
var NotRightError = class extends require_parentClass.parentClass(require_kind.createKind("not-right-error"), Error) {
|
|
6
|
+
value;
|
|
7
|
+
constructor(value) {
|
|
8
|
+
super(void 0, "Value is not Right.");
|
|
9
|
+
this.value = value;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
function unwrapRightOrThrow(input) {
|
|
13
|
+
if (require_is.isRight(input)) return require_kind.valueKind.getValue(input);
|
|
14
|
+
throw new NotRightError(input);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.NotRightError = NotRightError;
|
|
18
|
+
exports.unwrapRightOrThrow = unwrapRightOrThrow;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Right } from './create';
|
|
2
|
+
import { GetValue } from '../types';
|
|
3
|
+
import * as DKind from '../../kind';
|
|
4
|
+
declare const NotRightError_base: DKind.KindClass<DKind.Handler<DKind.Definition<"@DuplojsLangEither/not-right-error", unknown>>, ErrorConstructor>;
|
|
5
|
+
export declare class NotRightError extends NotRightError_base {
|
|
6
|
+
value: unknown;
|
|
7
|
+
constructor(value: unknown);
|
|
8
|
+
}
|
|
9
|
+
export declare function unwrapRightOrThrow<GenericInput extends unknown>(input: GenericInput): GetValue<Extract<GenericInput, Right>>;
|
|
10
|
+
export {};
|