@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,11 @@
|
|
|
1
|
+
const require_constants = require("./constants.cjs");
|
|
2
|
+
const require_makeSafeTimestamp = require("./makeSafeTimestamp.cjs");
|
|
3
|
+
const require_theDate = require("./theDate.cjs");
|
|
4
|
+
//#region scripts/chrono/toTimestamp.ts
|
|
5
|
+
function toTimestamp(date) {
|
|
6
|
+
if (date instanceof require_theDate.TheDate) return date.getTime();
|
|
7
|
+
const { value, sign } = date.match(require_constants.serializeTheDateRegex).groups;
|
|
8
|
+
return require_makeSafeTimestamp.makeSafeTimestamp(Number(sign === "-" ? `-${value}` : value));
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.toTimestamp = toTimestamp;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { serializeTheDateRegex } from "./constants.mjs";
|
|
2
|
+
import { makeSafeTimestamp } from "./makeSafeTimestamp.mjs";
|
|
3
|
+
import { TheDate } from "./theDate.mjs";
|
|
4
|
+
//#region scripts/chrono/toTimestamp.ts
|
|
5
|
+
function toTimestamp(date) {
|
|
6
|
+
if (date instanceof TheDate) return date.getTime();
|
|
7
|
+
const { value, sign } = date.match(serializeTheDateRegex).groups;
|
|
8
|
+
return makeSafeTimestamp(Number(sign === "-" ? `-${value}` : value));
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { toTimestamp };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const require_theDate = require("./theDate.cjs");
|
|
2
|
+
//#region scripts/chrono/today.ts
|
|
3
|
+
function today() {
|
|
4
|
+
const timestamp = (/* @__PURE__ */ new Date()).setUTCHours(0, 0, 0, 0);
|
|
5
|
+
return require_theDate.TheDate.new(timestamp);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.today = today;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const require_constants = require("./constants.cjs");
|
|
2
|
+
const require_theDate = require("./theDate.cjs");
|
|
3
|
+
//#region scripts/chrono/tomorrow.ts
|
|
4
|
+
function tomorrow() {
|
|
5
|
+
const timestamp = Date.now() + require_constants.millisecondsInOneDay;
|
|
6
|
+
return require_theDate.TheDate.new(timestamp);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.tomorrow = tomorrow;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { millisecondsInOneDay } from "./constants.mjs";
|
|
2
|
+
import { TheDate } from "./theDate.mjs";
|
|
3
|
+
//#region scripts/chrono/tomorrow.ts
|
|
4
|
+
function tomorrow() {
|
|
5
|
+
const timestamp = Date.now() + millisecondsInOneDay;
|
|
6
|
+
return TheDate.new(timestamp);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { tomorrow };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type * from './serializedTheDate';
|
|
2
|
+
export type * from './serializedTheTime';
|
|
3
|
+
export type * from './unit';
|
|
4
|
+
export type * from './month';
|
|
5
|
+
export type * from './time';
|
|
6
|
+
export type * from './spoolingDate';
|
|
7
|
+
export type * from './spoolingTime';
|
|
8
|
+
export type * from './isLeapYear';
|
|
9
|
+
export type * from './isSafeYear';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as DString from '../../string';
|
|
2
|
+
type TenEven = "" | "2" | "4" | "6" | "8";
|
|
3
|
+
type OddTen = "1" | "3" | "5" | "7" | "9";
|
|
4
|
+
type MultipleOf4 = `${TenEven}${"0" | "4" | "8"}` | `${OddTen}${"2" | "6"}`;
|
|
5
|
+
type MultipleOf100 = `${Exclude<DString.Digit, "0">}00`;
|
|
6
|
+
type MultipleOf400 = `${Exclude<MultipleOf4, "0">}00`;
|
|
7
|
+
export type IsLeapYear<GenericYear extends number> = `${GenericYear}` extends infer InferredYear ? InferredYear extends `${number | ""}${MultipleOf4}` ? InferredYear extends `${number | ""}${MultipleOf100}` ? InferredYear extends `${number | ""}${MultipleOf400}` ? true : false : true : false : never;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as DString from '../../string';
|
|
2
|
+
export type Month = `0${Exclude<DString.Digit, "0">}` | "10" | "11" | "12";
|
|
3
|
+
export type Day29 = Exclude<`${"0" | "1" | "2"}${DString.Digit}`, "00">;
|
|
4
|
+
export type Day30 = Day29 | "30";
|
|
5
|
+
export type Day31 = Day30 | "31";
|
|
6
|
+
export type MonthWithDay29 = "02";
|
|
7
|
+
export type MonthWithDay30 = "04" | "06" | "09" | "11";
|
|
8
|
+
export type MonthWithDay31 = "01" | "03" | "05" | "07" | "08" | "10" | "12";
|
|
9
|
+
export type MonthWithDay = Month extends infer InferredMonth ? InferredMonth extends MonthWithDay29 ? `${InferredMonth}-${Day29}` : InferredMonth extends MonthWithDay30 ? `${InferredMonth}-${Day30}` : InferredMonth extends MonthWithDay31 ? `${InferredMonth}-${Day31}` : never : never;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SerializedTheDate = `date${number}${"-" | "+"}`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SerializedTheTime = `time${number}${"+" | "-"}`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TheDate } from '../theDate';
|
|
2
|
+
import { Timezone } from '../timezone';
|
|
3
|
+
export interface SpoolingDate {
|
|
4
|
+
value: TheDate | string | Date | number;
|
|
5
|
+
timezone?: Timezone;
|
|
6
|
+
year?: number;
|
|
7
|
+
month?: number;
|
|
8
|
+
day?: number;
|
|
9
|
+
hour?: number;
|
|
10
|
+
minute?: number;
|
|
11
|
+
second?: number;
|
|
12
|
+
millisecond?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as DString from '../../string';
|
|
2
|
+
export type Hour = `${"0" | "1"}${DString.Digit}` | "20" | "21" | "22" | "23";
|
|
3
|
+
export type Minute = `${"0" | "1" | "2" | "3" | "4" | "5"}${DString.Digit}`;
|
|
4
|
+
export type Second = `${"0" | "1" | "2" | "3" | "4" | "5"}${DString.Digit}`;
|
|
5
|
+
export type Millisecond = `${DString.Digit}${DString.Digit}${DString.Digit}`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Unit = "year" | "month" | "day" | "hour" | "minute" | "second" | "millisecond";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const require_constants = require("./constants.cjs");
|
|
2
|
+
const require_theDate = require("./theDate.cjs");
|
|
3
|
+
//#region scripts/chrono/yesterday.ts
|
|
4
|
+
function yesterday() {
|
|
5
|
+
const timestamp = Date.now() - require_constants.millisecondsInOneDay;
|
|
6
|
+
return require_theDate.TheDate.new(timestamp);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.yesterday = yesterday;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { millisecondsInOneDay } from "./constants.mjs";
|
|
2
|
+
import { TheDate } from "./theDate.mjs";
|
|
3
|
+
//#region scripts/chrono/yesterday.ts
|
|
4
|
+
function yesterday() {
|
|
5
|
+
const timestamp = Date.now() - millisecondsInOneDay;
|
|
6
|
+
return TheDate.new(timestamp);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { yesterday };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region scripts/common/and.ts
|
|
2
|
+
function and(...args) {
|
|
3
|
+
if (args.length === 1) {
|
|
4
|
+
const [predicateList] = args;
|
|
5
|
+
return (input) => and(input, predicateList);
|
|
6
|
+
}
|
|
7
|
+
const [input, predicateList] = args;
|
|
8
|
+
for (const predicate of predicateList) if (!predicate(input)) return false;
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.and = and;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IsEqual, AnyFunction, UnionToIntersection } from './types';
|
|
2
|
+
type ExtractIntersection<GenericInput extends unknown, GenericPredicateList extends AnyFunction<any[], boolean>[], GenericResult extends unknown = GenericInput> = GenericPredicateList extends [
|
|
3
|
+
(input: any) => input is infer InferredPredicate,
|
|
4
|
+
...infer InferredRest extends AnyFunction<any[], boolean>[]
|
|
5
|
+
] ? Extract<GenericResult, InferredPredicate> extends infer InferredResult extends GenericInput ? InferredRest extends readonly [] ? InferredResult : ExtractIntersection<GenericInput, InferredRest, InferredResult> : never : never;
|
|
6
|
+
type ExtractPredicate<GenericInput extends unknown, GenericPredicateList extends AnyFunction<any[], boolean>[]> = GenericPredicateList extends [
|
|
7
|
+
(input: any) => input is infer InferredPredicate,
|
|
8
|
+
...infer InferredRest extends AnyFunction<any[], boolean>[]
|
|
9
|
+
] ? InferredRest extends readonly [] ? InferredPredicate : InferredPredicate | ExtractPredicate<GenericInput, InferredRest> : GenericInput;
|
|
10
|
+
type ComputeResult<GenericInput extends unknown, GenericPredicateList extends AnyFunction<any[], boolean>[]> = ExtractIntersection<GenericInput, GenericPredicateList> extends infer InferredResult extends GenericInput ? IsEqual<InferredResult, never> extends true ? GenericInput & UnionToIntersection<ExtractPredicate<GenericInput, GenericPredicateList>> : InferredResult : never;
|
|
11
|
+
export declare function and<GenericInput extends unknown, GenericPredicateList extends [
|
|
12
|
+
(input: GenericInput) => input is any,
|
|
13
|
+
(input: GenericInput) => input is any,
|
|
14
|
+
...((input: GenericInput) => input is any)[]
|
|
15
|
+
]>(predicateList: GenericPredicateList): (input: GenericInput) => input is ComputeResult<GenericInput, GenericPredicateList>;
|
|
16
|
+
export declare function and<GenericInput extends unknown>(predicateList: [
|
|
17
|
+
(input: GenericInput) => boolean,
|
|
18
|
+
(input: GenericInput) => boolean,
|
|
19
|
+
...((input: GenericInput) => boolean)[]
|
|
20
|
+
]): (input: GenericInput) => boolean;
|
|
21
|
+
export declare function and<GenericInput extends unknown, GenericPredicateList extends [
|
|
22
|
+
(input: GenericInput) => input is any,
|
|
23
|
+
(input: GenericInput) => input is any,
|
|
24
|
+
...((input: GenericInput) => input is any)[]
|
|
25
|
+
]>(input: GenericInput, predicateList: GenericPredicateList): input is ComputeResult<GenericInput, GenericPredicateList>;
|
|
26
|
+
export declare function and<GenericInput extends unknown>(input: GenericInput, predicateList: [
|
|
27
|
+
(input: GenericInput) => boolean,
|
|
28
|
+
(input: GenericInput) => boolean,
|
|
29
|
+
...((input: GenericInput) => boolean)[]
|
|
30
|
+
]): boolean;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region scripts/common/and.ts
|
|
2
|
+
function and(...args) {
|
|
3
|
+
if (args.length === 1) {
|
|
4
|
+
const [predicateList] = args;
|
|
5
|
+
return (input) => and(input, predicateList);
|
|
6
|
+
}
|
|
7
|
+
const [input, predicateList] = args;
|
|
8
|
+
for (const predicate of predicateList) if (!predicate(input)) return false;
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { and };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_parentClass = require("../kind/parentClass.cjs");
|
|
2
|
+
const require_kind = require("./kind.cjs");
|
|
3
|
+
//#region scripts/common/asserts.ts
|
|
4
|
+
var AssertsError = class extends require_parentClass.parentClass(require_kind.createKind("asserts-error"), Error) {
|
|
5
|
+
value;
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(void 0, "Asserts Error.");
|
|
8
|
+
this.value = value;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
function asserts(input, predicate) {
|
|
12
|
+
if (!predicate(input)) throw new AssertsError(input);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.AssertsError = AssertsError;
|
|
16
|
+
exports.asserts = asserts;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as DKind from '../kind';
|
|
2
|
+
declare const AssertsError_base: DKind.KindClass<DKind.Handler<DKind.Definition<"@DuplojsLangCommon/asserts-error", unknown>>, ErrorConstructor>;
|
|
3
|
+
export declare class AssertsError extends AssertsError_base {
|
|
4
|
+
value: unknown;
|
|
5
|
+
constructor(value: unknown);
|
|
6
|
+
}
|
|
7
|
+
export declare function asserts<GenericInput extends unknown, GenericPredicate extends GenericInput>(input: GenericInput, predicate: (input: GenericInput) => input is GenericPredicate): asserts input is GenericPredicate;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { parentClass } from "../kind/parentClass.mjs";
|
|
2
|
+
import { createKind } from "./kind.mjs";
|
|
3
|
+
//#region scripts/common/asserts.ts
|
|
4
|
+
var AssertsError = class extends parentClass(createKind("asserts-error"), Error) {
|
|
5
|
+
value;
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super(void 0, "Asserts Error.");
|
|
8
|
+
this.value = value;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
function asserts(input, predicate) {
|
|
12
|
+
if (!predicate(input)) throw new AssertsError(input);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { AssertsError, asserts };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region scripts/common/asyncInnerPipe.ts
|
|
2
|
+
function asyncInnerPipe(...pipes) {
|
|
3
|
+
return async (input) => {
|
|
4
|
+
let acc = await input;
|
|
5
|
+
for (const pipe of pipes) acc = await pipe(acc);
|
|
6
|
+
return acc;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.asyncInnerPipe = asyncInnerPipe;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MaybePromise, BreakGenericLink } from './types';
|
|
2
|
+
export declare function asyncInnerPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe1>>>;
|
|
3
|
+
export declare function asyncInnerPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe2>>>;
|
|
4
|
+
export declare function asyncInnerPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe3>>>;
|
|
5
|
+
export declare function asyncInnerPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe4>>>;
|
|
6
|
+
export declare function asyncInnerPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown, const GenericOutputPipe5 extends unknown>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe5>>>;
|
|
7
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe6>>>;
|
|
8
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe7>>>;
|
|
9
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe8>>>;
|
|
10
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe9>>>;
|
|
11
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe10>>>;
|
|
12
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe11>>>;
|
|
13
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11, pipe12: (input: Awaited<GenericOutputPipe11>) => GenericOutputPipe12): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe12>>>;
|
|
14
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11, pipe12: (input: Awaited<GenericOutputPipe11>) => GenericOutputPipe12, pipe13: (input: Awaited<GenericOutputPipe12>) => GenericOutputPipe13): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe13>>>;
|
|
15
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11, pipe12: (input: Awaited<GenericOutputPipe11>) => GenericOutputPipe12, pipe13: (input: Awaited<GenericOutputPipe12>) => GenericOutputPipe13, pipe14: (input: Awaited<GenericOutputPipe13>) => GenericOutputPipe14): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe14>>>;
|
|
16
|
+
export declare function asyncInnerPipe<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>(pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11, pipe12: (input: Awaited<GenericOutputPipe11>) => GenericOutputPipe12, pipe13: (input: Awaited<GenericOutputPipe12>) => GenericOutputPipe13, pipe14: (input: Awaited<GenericOutputPipe13>) => GenericOutputPipe14, pipe15: (input: Awaited<GenericOutputPipe14>) => GenericOutputPipe15): (input: MaybePromise<GenericInput>) => Promise<BreakGenericLink<Awaited<GenericOutputPipe15>>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region scripts/common/asyncLoop.ts
|
|
2
|
+
async function asyncLoop(callback) {
|
|
3
|
+
let previousOutput = void 0;
|
|
4
|
+
for (let count = 0;; count++) {
|
|
5
|
+
const result = await callback({
|
|
6
|
+
previousOutput,
|
|
7
|
+
count,
|
|
8
|
+
next: (data) => ({ "-nextData": data }),
|
|
9
|
+
exit: (data) => ({ "-exitData": data })
|
|
10
|
+
});
|
|
11
|
+
if ("-exitData" in result) return result["-exitData"];
|
|
12
|
+
previousOutput = result["-nextData"];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.asyncLoop = asyncLoop;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoopParams } from './loop';
|
|
2
|
+
import { AnyValue } from './types';
|
|
3
|
+
interface LoopOutputExitResult<GenericOutput extends AnyValue> {
|
|
4
|
+
"-exitData": GenericOutput;
|
|
5
|
+
}
|
|
6
|
+
interface LoopOutputNextResult<GenericOutput extends AnyValue> {
|
|
7
|
+
"-nextData": GenericOutput;
|
|
8
|
+
}
|
|
9
|
+
export declare function asyncLoop<GenericExitOutput extends AnyValue = undefined, GenericNextOutput extends AnyValue = undefined>(callback: (params: LoopParams<GenericNextOutput>) => Promise<LoopOutputNextResult<GenericNextOutput | undefined> | LoopOutputExitResult<GenericExitOutput>>): Promise<GenericExitOutput>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region scripts/common/asyncLoop.ts
|
|
2
|
+
async function asyncLoop(callback) {
|
|
3
|
+
let previousOutput = void 0;
|
|
4
|
+
for (let count = 0;; count++) {
|
|
5
|
+
const result = await callback({
|
|
6
|
+
previousOutput,
|
|
7
|
+
count,
|
|
8
|
+
next: (data) => ({ "-nextData": data }),
|
|
9
|
+
exit: (data) => ({ "-exitData": data })
|
|
10
|
+
});
|
|
11
|
+
if ("-exitData" in result) return result["-exitData"];
|
|
12
|
+
previousOutput = result["-nextData"];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { asyncLoop };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BreakGenericLink } from './types';
|
|
2
|
+
export declare function asyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown>(input: GenericInput, pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1): Promise<BreakGenericLink<Awaited<GenericOutputPipe1>>>;
|
|
3
|
+
export declare function asyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown>(input: GenericInput, pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2): Promise<BreakGenericLink<Awaited<GenericOutputPipe2>>>;
|
|
4
|
+
export declare function asyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown>(input: GenericInput, pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3): Promise<BreakGenericLink<Awaited<GenericOutputPipe3>>>;
|
|
5
|
+
export declare function asyncPipe<const GenericInput extends unknown, const GenericOutputPipe1 extends unknown, const GenericOutputPipe2 extends unknown, const GenericOutputPipe3 extends unknown, const GenericOutputPipe4 extends unknown>(input: GenericInput, pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4): Promise<BreakGenericLink<Awaited<GenericOutputPipe4>>>;
|
|
6
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5): Promise<BreakGenericLink<Awaited<GenericOutputPipe5>>>;
|
|
7
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6): Promise<BreakGenericLink<Awaited<GenericOutputPipe6>>>;
|
|
8
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7): Promise<BreakGenericLink<Awaited<GenericOutputPipe7>>>;
|
|
9
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8): Promise<BreakGenericLink<Awaited<GenericOutputPipe8>>>;
|
|
10
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9): Promise<BreakGenericLink<Awaited<GenericOutputPipe9>>>;
|
|
11
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10): Promise<BreakGenericLink<Awaited<GenericOutputPipe10>>>;
|
|
12
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11): Promise<BreakGenericLink<Awaited<GenericOutputPipe11>>>;
|
|
13
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11, pipe12: (input: Awaited<GenericOutputPipe11>) => GenericOutputPipe12): Promise<BreakGenericLink<Awaited<GenericOutputPipe12>>>;
|
|
14
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11, pipe12: (input: Awaited<GenericOutputPipe11>) => GenericOutputPipe12, pipe13: (input: Awaited<GenericOutputPipe12>) => GenericOutputPipe13): Promise<BreakGenericLink<Awaited<GenericOutputPipe13>>>;
|
|
15
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11, pipe12: (input: Awaited<GenericOutputPipe11>) => GenericOutputPipe12, pipe13: (input: Awaited<GenericOutputPipe12>) => GenericOutputPipe13, pipe14: (input: Awaited<GenericOutputPipe13>) => GenericOutputPipe14): Promise<BreakGenericLink<Awaited<GenericOutputPipe14>>>;
|
|
16
|
+
export declare function asyncPipe<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: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2, pipe3: (input: Awaited<GenericOutputPipe2>) => GenericOutputPipe3, pipe4: (input: Awaited<GenericOutputPipe3>) => GenericOutputPipe4, pipe5: (input: Awaited<GenericOutputPipe4>) => GenericOutputPipe5, pipe6: (input: Awaited<GenericOutputPipe5>) => GenericOutputPipe6, pipe7: (input: Awaited<GenericOutputPipe6>) => GenericOutputPipe7, pipe8: (input: Awaited<GenericOutputPipe7>) => GenericOutputPipe8, pipe9: (input: Awaited<GenericOutputPipe8>) => GenericOutputPipe9, pipe10: (input: Awaited<GenericOutputPipe9>) => GenericOutputPipe10, pipe11: (input: Awaited<GenericOutputPipe10>) => GenericOutputPipe11, pipe12: (input: Awaited<GenericOutputPipe11>) => GenericOutputPipe12, pipe13: (input: Awaited<GenericOutputPipe12>) => GenericOutputPipe13, pipe14: (input: Awaited<GenericOutputPipe13>) => GenericOutputPipe14, pipe15: (input: Awaited<GenericOutputPipe14>) => GenericOutputPipe15): Promise<BreakGenericLink<Awaited<GenericOutputPipe15>>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_timeout = require("./timeout.cjs");
|
|
2
|
+
//#region scripts/common/asyncRetry.ts
|
|
3
|
+
async function useAsyncRetry(retryFunction, shouldRetry, options) {
|
|
4
|
+
for (let currentTry = 1;; currentTry++) {
|
|
5
|
+
const result = await retryFunction(currentTry);
|
|
6
|
+
if (currentTry >= options.maxRetry || !shouldRetry(result)) return result;
|
|
7
|
+
if (options.timeToSleep) await require_timeout.timeout(options.timeToSleep);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function createAsyncRetry(retryFunction, checkFunction, options) {
|
|
11
|
+
const safeRetryFunction = retryFunction;
|
|
12
|
+
return ((...args) => useAsyncRetry(() => safeRetryFunction(...args), checkFunction, options));
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.createAsyncRetry = createAsyncRetry;
|
|
16
|
+
exports.useAsyncRetry = useAsyncRetry;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface CreateAsyncRetryOptions {
|
|
2
|
+
maxRetry: number;
|
|
3
|
+
timeToSleep?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function useAsyncRetry<GenericOutput extends unknown>(retryFunction: () => Promise<GenericOutput>, shouldRetry: (result: GenericOutput) => boolean, options: CreateAsyncRetryOptions): Promise<GenericOutput>;
|
|
6
|
+
export declare function createAsyncRetry<GenericRetryFunction extends (...args: any[]) => Promise<any>>(retryFunction: GenericRetryFunction, checkFunction: (result: Awaited<ReturnType<GenericRetryFunction>>) => boolean, options: CreateAsyncRetryOptions): GenericRetryFunction;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { timeout } from "./timeout.mjs";
|
|
2
|
+
//#region scripts/common/asyncRetry.ts
|
|
3
|
+
async function useAsyncRetry(retryFunction, shouldRetry, options) {
|
|
4
|
+
for (let currentTry = 1;; currentTry++) {
|
|
5
|
+
const result = await retryFunction(currentTry);
|
|
6
|
+
if (currentTry >= options.maxRetry || !shouldRetry(result)) return result;
|
|
7
|
+
if (options.timeToSleep) await timeout(options.timeToSleep);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function createAsyncRetry(retryFunction, checkFunction, options) {
|
|
11
|
+
const safeRetryFunction = retryFunction;
|
|
12
|
+
return ((...args) => useAsyncRetry(() => safeRetryFunction(...args), checkFunction, options));
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { createAsyncRetry, useAsyncRetry };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region scripts/common/bindPrototypeMethods.ts
|
|
2
|
+
const prototypeKeyWrapper = Object.fromEntries(Object.getOwnPropertyNames(Object.getPrototypeOf(Object)).map((name) => [name, null]));
|
|
3
|
+
function bindPrototypeMethods(instance) {
|
|
4
|
+
let currentPrototype = Object.getPrototypeOf(instance);
|
|
5
|
+
const alreadySeenKeys = {};
|
|
6
|
+
while (currentPrototype && currentPrototype !== Object.prototype) {
|
|
7
|
+
for (const propertyKey of Object.getOwnPropertyNames(currentPrototype)) {
|
|
8
|
+
if (prototypeKeyWrapper[propertyKey] === null) continue;
|
|
9
|
+
if (alreadySeenKeys[propertyKey] === null) continue;
|
|
10
|
+
alreadySeenKeys[propertyKey] = null;
|
|
11
|
+
const description = Object.getOwnPropertyDescriptor(currentPrototype, propertyKey);
|
|
12
|
+
if (!description || typeof description.value !== "function" || description.writable === false) continue;
|
|
13
|
+
instance[propertyKey] = description.value.bind(instance);
|
|
14
|
+
}
|
|
15
|
+
currentPrototype = Object.getPrototypeOf(currentPrototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.bindPrototypeMethods = bindPrototypeMethods;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function bindPrototypeMethods(instance: object): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region scripts/common/bindPrototypeMethods.ts
|
|
2
|
+
const prototypeKeyWrapper = Object.fromEntries(Object.getOwnPropertyNames(Object.getPrototypeOf(Object)).map((name) => [name, null]));
|
|
3
|
+
function bindPrototypeMethods(instance) {
|
|
4
|
+
let currentPrototype = Object.getPrototypeOf(instance);
|
|
5
|
+
const alreadySeenKeys = {};
|
|
6
|
+
while (currentPrototype && currentPrototype !== Object.prototype) {
|
|
7
|
+
for (const propertyKey of Object.getOwnPropertyNames(currentPrototype)) {
|
|
8
|
+
if (prototypeKeyWrapper[propertyKey] === null) continue;
|
|
9
|
+
if (alreadySeenKeys[propertyKey] === null) continue;
|
|
10
|
+
alreadySeenKeys[propertyKey] = null;
|
|
11
|
+
const description = Object.getOwnPropertyDescriptor(currentPrototype, propertyKey);
|
|
12
|
+
if (!description || typeof description.value !== "function" || description.writable === false) continue;
|
|
13
|
+
instance[propertyKey] = description.value.bind(instance);
|
|
14
|
+
}
|
|
15
|
+
currentPrototype = Object.getPrototypeOf(currentPrototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { bindPrototypeMethods };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_parentClass = require("../kind/parentClass.cjs");
|
|
2
|
+
const require_kind = require("./kind.cjs");
|
|
3
|
+
//#region scripts/common/builder.ts
|
|
4
|
+
const builderStore = require("./globalStore.cjs").createGlobalStore(Symbol("BuilderStoreSymbol"), {});
|
|
5
|
+
const builderKind = require_kind.createKind("builder-base");
|
|
6
|
+
const builderNextKind = require_kind.createKind("builder-next");
|
|
7
|
+
var MissingBuilderMethodsError = class extends require_parentClass.parentClass(require_kind.createKind("missing-builder-methods-error"), Error) {
|
|
8
|
+
method;
|
|
9
|
+
constructor(method) {
|
|
10
|
+
super(`Missing builder method: ${method}`);
|
|
11
|
+
this.method = method;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
function createBuilder(builderName) {
|
|
15
|
+
const store = builderStore.value[builderName] ?? {};
|
|
16
|
+
builderStore.set({
|
|
17
|
+
...builderStore.value,
|
|
18
|
+
[builderName]: store
|
|
19
|
+
});
|
|
20
|
+
const builderHandler = {
|
|
21
|
+
set(method, theFunction) {
|
|
22
|
+
store[method] = theFunction;
|
|
23
|
+
return builderHandler;
|
|
24
|
+
},
|
|
25
|
+
use(accumulator) {
|
|
26
|
+
return new Proxy(builderKind.addTo(store, accumulator), { get(target, prop) {
|
|
27
|
+
if (prop === builderKind.runTimeKey) return target[prop];
|
|
28
|
+
if (!target[prop]) throw new MissingBuilderMethodsError(prop);
|
|
29
|
+
const theFunction = target[prop];
|
|
30
|
+
return (...args) => {
|
|
31
|
+
const result = theFunction({
|
|
32
|
+
args,
|
|
33
|
+
accumulator,
|
|
34
|
+
next: (newAccumulator) => builderNextKind.addTo({}, newAccumulator)
|
|
35
|
+
});
|
|
36
|
+
if (builderNextKind.has(result)) return builderHandler.use(builderNextKind.getValue(result));
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
} });
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return builderHandler;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.MissingBuilderMethodsError = MissingBuilderMethodsError;
|
|
46
|
+
exports.builderKind = builderKind;
|
|
47
|
+
exports.createBuilder = createBuilder;
|