umt 1.8.1 → 1.9.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/module/Advance/rangeAdvance.js +3 -1
- package/module/Advance/rangeAdvance.js.map +1 -1
- package/module/Array/arraysJoin.d.ts +1 -1
- package/module/Array/arraysJoin.js +1 -1
- package/module/Array/chunk.d.ts +3 -4
- package/module/Array/chunk.js +0 -7
- package/module/Array/chunk.js.map +1 -1
- package/module/Array/first.d.ts +2 -1
- package/module/Array/first.js +1 -1
- package/module/Array/first.js.map +1 -1
- package/module/Array/getArraysCommon.d.ts +2 -2
- package/module/Array/getArraysCommon.js +2 -2
- package/module/Array/getArraysDiff.d.ts +2 -2
- package/module/Array/getArraysDiff.js +2 -2
- package/module/Array/index.d.ts +1 -0
- package/module/Array/index.js +1 -0
- package/module/Array/index.js.map +1 -1
- package/module/Array/pop.d.ts +6 -0
- package/module/Array/pop.js +9 -0
- package/module/Array/pop.js.map +1 -0
- package/module/Array/quickSort.d.ts +8 -6
- package/module/Array/quickSort.js +68 -56
- package/module/Array/quickSort.js.map +1 -1
- package/module/Array/timSort.d.ts +4 -2
- package/module/Array/timSort.js +53 -51
- package/module/Array/timSort.js.map +1 -1
- package/module/Array/zip.d.ts +1 -1
- package/module/Array/zipLongest.d.ts +1 -1
- package/module/Color/cmykToRgba.d.ts +5 -1
- package/module/Color/cmykToRgba.js +5 -1
- package/module/Color/cmykToRgba.js.map +1 -1
- package/module/Color/rgbaToHsla.js +1 -0
- package/module/Color/rgbaToHsla.js.map +1 -1
- package/module/Date/birthday.d.ts +4 -3
- package/module/Date/birthday.js +1 -1
- package/module/Date/birthday.js.map +1 -1
- package/module/Date/dayOfWeek.d.ts +6 -5
- package/module/Date/dayOfWeek.js.map +1 -1
- package/module/Date/getDay.d.ts +1 -1
- package/module/Date/new.d.ts +14 -4
- package/module/Date/new.js.map +1 -1
- package/module/Date/now.d.ts +2 -2
- package/module/Math/addition.js +1 -1
- package/module/Math/addition.js.map +1 -1
- package/module/Math/bitwise.js +3 -3
- package/module/Math/bitwise.js.map +1 -1
- package/module/Math/calculator/calculator.d.ts +2 -4
- package/module/Math/calculator/calculator.js +6 -7
- package/module/Math/calculator/calculator.js.map +1 -1
- package/module/Math/calculator/core.js +1 -1
- package/module/Math/calculator/core.js.map +1 -1
- package/module/Math/division.js +9 -6
- package/module/Math/division.js.map +1 -1
- package/module/Math/factorial.js +3 -5
- package/module/Math/factorial.js.map +1 -1
- package/module/Math/factorize.js +8 -4
- package/module/Math/factorize.js.map +1 -1
- package/module/Math/gcd.d.ts +1 -1
- package/module/Math/gcd.js +1 -1
- package/module/Math/lcm.js +2 -2
- package/module/Math/lcm.js.map +1 -1
- package/module/Math/linearCongruentialGenerator.js +1 -1
- package/module/Math/linearCongruentialGenerator.js.map +1 -1
- package/module/Math/mathSeparator.d.ts +3 -3
- package/module/Math/mathSeparator.js +10 -16
- package/module/Math/mathSeparator.js.map +1 -1
- package/module/Math/max.d.ts +1 -1
- package/module/Math/max.js +1 -1
- package/module/Math/min.d.ts +1 -1
- package/module/Math/min.js +1 -1
- package/module/Math/multiplication.js +1 -1
- package/module/Math/multiplication.js.map +1 -1
- package/module/Math/repeatedTrial.js +2 -2
- package/module/Math/repeatedTrial.js.map +1 -1
- package/module/Math/roundOf.d.ts +2 -2
- package/module/Math/roundOf.js +3 -3
- package/module/Math/roundOf.js.map +1 -1
- package/module/Math/solveEquation.d.ts +2 -1
- package/module/Math/solveEquation.js +2 -1
- package/module/Math/solveEquation.js.map +1 -1
- package/module/Math/subtract.js +1 -1
- package/module/Math/subtract.js.map +1 -1
- package/module/Math/uuidv7.js +3 -3
- package/module/Math/uuidv7.js.map +1 -1
- package/module/Math/valueSwap.js +1 -7
- package/module/Math/valueSwap.js.map +1 -1
- package/module/Math/xoshiro256.js +1 -1
- package/module/Math/xoshiro256.js.map +1 -1
- package/module/Object/has.js +3 -5
- package/module/Object/has.js.map +1 -1
- package/module/Simple/Array/quickSortSimple.d.ts +4 -4
- package/module/Simple/Array/quickSortSimple.js +13 -9
- package/module/Simple/Array/quickSortSimple.js.map +1 -1
- package/module/Simple/Date/birthdaySimple.d.ts +5 -4
- package/module/Simple/Date/birthdaySimple.js.map +1 -1
- package/module/Simple/Date/dayOfWeekSimple.d.ts +11 -5
- package/module/Simple/Date/dayOfWeekSimple.js.map +1 -1
- package/module/Simple/Date/nowSimple.d.ts +3 -2
- package/module/Simple/Date/nowSimple.js.map +1 -1
- package/module/String/deleteSpaces.d.ts +1 -1
- package/module/String/deleteSpaces.js +1 -1
- package/module/String/fromBase64.d.ts +1 -1
- package/module/String/fromBase64.js +1 -1
- package/module/String/toHalfWidth.js +1 -1
- package/module/String/toHalfWidth.js.map +1 -1
- package/module/UA/extractBrowserFromUserAgent.d.ts +2 -0
- package/module/UA/extractBrowserFromUserAgent.js +19 -0
- package/module/UA/extractBrowserFromUserAgent.js.map +1 -0
- package/module/UA/extractDeviceFromUserAgent.d.ts +2 -0
- package/module/UA/extractDeviceFromUserAgent.js +22 -0
- package/module/UA/extractDeviceFromUserAgent.js.map +1 -0
- package/module/UA/extractOSFromUserAgent.d.ts +2 -0
- package/module/UA/extractOSFromUserAgent.js +19 -0
- package/module/UA/extractOSFromUserAgent.js.map +1 -0
- package/module/UA/index.d.ts +4 -0
- package/module/UA/index.js +5 -0
- package/module/UA/index.js.map +1 -0
- package/module/UA/parseUserAgent.d.ts +2 -0
- package/module/UA/parseUserAgent.js +12 -0
- package/module/UA/parseUserAgent.js.map +1 -0
- package/module/Validate/array/core.js +2 -2
- package/module/Validate/array/core.js.map +1 -1
- package/module/Validate/isBrowser.js +1 -1
- package/module/Validate/isBrowser.js.map +1 -1
- package/module/Validate/isBun.js +1 -1
- package/module/Validate/isBun.js.map +1 -1
- package/module/Validate/isNode.js +1 -1
- package/module/Validate/isNode.js.map +1 -1
- package/module/Validate/isNotEmpty.d.ts +1 -1
- package/module/Validate/isNotEmpty.js +1 -1
- package/module/Validate/isNumber.d.ts +1 -1
- package/module/Validate/isNumber.js +1 -1
- package/module/index.d.ts +1 -0
- package/module/index.js +1 -0
- package/module/index.js.map +1 -1
- package/module/types/{arrayType.d.ts → array/chunk.d.ts} +1 -3
- package/module/types/array/chunk.js +2 -0
- package/module/types/array/chunk.js.map +1 -0
- package/module/types/array/index.d.ts +2 -0
- package/module/types/array/index.js +3 -0
- package/module/types/array/index.js.map +1 -0
- package/module/types/array/zip.d.ts +3 -0
- package/module/types/array/zip.js +2 -0
- package/module/types/array/zip.js.map +1 -0
- package/module/types/clock/hoursAm.d.ts +2 -0
- package/module/types/clock/hoursAm.js +2 -0
- package/module/types/clock/hoursAm.js.map +1 -0
- package/module/types/clock/hoursAmInt.d.ts +2 -0
- package/module/types/clock/hoursAmInt.js +2 -0
- package/module/types/clock/hoursAmInt.js.map +1 -0
- package/module/types/clock/hoursPm.d.ts +2 -0
- package/module/types/clock/hoursPm.js +2 -0
- package/module/types/clock/hoursPm.js.map +1 -0
- package/module/types/clock/hoursPmInt.d.ts +1 -0
- package/module/types/clock/hoursPmInt.js +2 -0
- package/module/types/clock/hoursPmInt.js.map +1 -0
- package/module/types/clock/hoursType.d.ts +3 -0
- package/module/types/clock/hoursType.js +2 -0
- package/module/types/clock/hoursType.js.map +1 -0
- package/module/types/clock/hoursTypeInt.d.ts +3 -0
- package/module/types/clock/hoursTypeInt.js +2 -0
- package/module/types/clock/hoursTypeInt.js.map +1 -0
- package/module/types/clock/index.d.ts +12 -0
- package/module/types/clock/index.js +13 -0
- package/module/types/clock/index.js.map +1 -0
- package/module/types/clock/millisecondsType.d.ts +4 -0
- package/module/types/clock/millisecondsType.js +2 -0
- package/module/types/clock/millisecondsType.js.map +1 -0
- package/module/types/clock/millisecondsTypeInt.d.ts +4 -0
- package/module/types/clock/millisecondsTypeInt.js +2 -0
- package/module/types/clock/millisecondsTypeInt.js.map +1 -0
- package/module/types/clock/minutesType.d.ts +7 -0
- package/module/types/clock/minutesType.js +2 -0
- package/module/types/clock/minutesType.js.map +1 -0
- package/module/types/clock/minutesTypeInt.d.ts +7 -0
- package/module/types/clock/minutesTypeInt.js +2 -0
- package/module/types/clock/minutesTypeInt.js.map +1 -0
- package/module/types/clock/secondsType.d.ts +2 -0
- package/module/types/clock/secondsType.js +2 -0
- package/module/types/clock/secondsType.js.map +1 -0
- package/module/types/clock/secondsTypeInt.d.ts +2 -0
- package/module/types/clock/secondsTypeInt.js +2 -0
- package/module/types/clock/secondsTypeInt.js.map +1 -0
- package/module/types/date/convertMonTypeNoZero.d.ts +1 -0
- package/module/types/date/convertMonTypeNoZero.js +2 -0
- package/module/types/date/convertMonTypeNoZero.js.map +1 -0
- package/module/types/date/convertMonTypeZero.d.ts +1 -0
- package/module/types/date/convertMonTypeZero.js +2 -0
- package/module/types/date/convertMonTypeZero.js.map +1 -0
- package/module/types/date/dateType.d.ts +6 -0
- package/module/types/{dateType.js.map → date/dateType.js.map} +1 -1
- package/module/types/date/dayType.d.ts +2 -0
- package/module/types/date/dayType.js +2 -0
- package/module/types/date/dayType.js.map +1 -0
- package/module/types/date/dayTypeInt.d.ts +2 -0
- package/module/types/date/dayTypeInt.js +2 -0
- package/module/types/date/dayTypeInt.js.map +1 -0
- package/module/types/date/index.d.ts +13 -0
- package/module/types/date/index.js +14 -0
- package/module/types/date/index.js.map +1 -0
- package/module/types/date/monType.d.ts +3 -0
- package/module/types/date/monType.js +2 -0
- package/module/types/date/monType.js.map +1 -0
- package/module/types/date/monTypeInt.d.ts +1 -0
- package/module/types/date/monTypeInt.js +2 -0
- package/module/types/date/monTypeInt.js.map +1 -0
- package/module/types/date/monTypeNoZero.d.ts +1 -0
- package/module/types/date/monTypeNoZero.js +2 -0
- package/module/types/date/monTypeNoZero.js.map +1 -0
- package/module/types/date/monTypeZero.d.ts +1 -0
- package/module/types/date/monTypeZero.js +2 -0
- package/module/types/date/monTypeZero.js.map +1 -0
- package/module/types/date/monthsWith31Days.d.ts +2 -0
- package/module/types/date/monthsWith31Days.js +2 -0
- package/module/types/date/monthsWith31Days.js.map +1 -0
- package/module/types/date/monthsWith31DaysInt.d.ts +1 -0
- package/module/types/date/monthsWith31DaysInt.js +2 -0
- package/module/types/date/monthsWith31DaysInt.js.map +1 -0
- package/module/types/date/monthsWithout31Days.d.ts +2 -0
- package/module/types/date/monthsWithout31Days.js +2 -0
- package/module/types/date/monthsWithout31Days.js.map +1 -0
- package/module/types/date/monthsWithout31DaysInt.d.ts +1 -0
- package/module/types/date/monthsWithout31DaysInt.js +2 -0
- package/module/types/date/monthsWithout31DaysInt.js.map +1 -0
- package/module/types/index.d.ts +6 -6
- package/module/types/index.js +6 -6
- package/module/types/index.js.map +1 -1
- package/module/types/int/doubleDigit.d.ts +2 -0
- package/module/types/int/doubleDigit.js +2 -0
- package/module/types/int/doubleDigit.js.map +1 -0
- package/module/types/int/doubleDigitInt.d.ts +10 -0
- package/module/types/int/doubleDigitInt.js +2 -0
- package/module/types/int/doubleDigitInt.js.map +1 -0
- package/module/types/int/fourDigit.d.ts +3 -0
- package/module/types/int/fourDigit.js +2 -0
- package/module/types/int/fourDigit.js.map +1 -0
- package/module/types/int/index.d.ts +108 -0
- package/module/types/int/index.js +109 -0
- package/module/types/int/index.js.map +1 -0
- package/module/types/int/int.d.ts +3 -0
- package/module/types/int/int.js.map +1 -0
- package/module/types/int/intEven.d.ts +1 -0
- package/module/types/int/intEven.js +2 -0
- package/module/types/int/intEven.js.map +1 -0
- package/module/types/int/intOdd.d.ts +1 -0
- package/module/types/int/intOdd.js +2 -0
- package/module/types/int/intOdd.js.map +1 -0
- package/module/types/int/intWithoutZero.d.ts +3 -0
- package/module/types/int/intWithoutZero.js +2 -0
- package/module/types/int/intWithoutZero.js.map +1 -0
- package/module/types/int/tripleDigit.d.ts +2 -0
- package/module/types/int/tripleDigit.js +2 -0
- package/module/types/int/tripleDigit.js.map +1 -0
- package/module/types/int/tripleDigitInt.d.ts +91 -0
- package/module/types/int/tripleDigitInt.js +2 -0
- package/module/types/int/tripleDigitInt.js.map +1 -0
- package/module/types/int/upToEightHundred.d.ts +1 -0
- package/module/types/int/upToEightHundred.js +2 -0
- package/module/types/int/upToEightHundred.js.map +1 -0
- package/module/types/int/upToEightHundredEighty.d.ts +1 -0
- package/module/types/int/upToEightHundredEighty.js +2 -0
- package/module/types/int/upToEightHundredEighty.js.map +1 -0
- package/module/types/int/upToEightHundredFifty.d.ts +1 -0
- package/module/types/int/upToEightHundredFifty.js +2 -0
- package/module/types/int/upToEightHundredFifty.js.map +1 -0
- package/module/types/int/upToEightHundredForty.d.ts +1 -0
- package/module/types/int/upToEightHundredForty.js +2 -0
- package/module/types/int/upToEightHundredForty.js.map +1 -0
- package/module/types/int/upToEightHundredNinety.d.ts +1 -0
- package/module/types/int/upToEightHundredNinety.js +2 -0
- package/module/types/int/upToEightHundredNinety.js.map +1 -0
- package/module/types/int/upToEightHundredSeventy.d.ts +1 -0
- package/module/types/int/upToEightHundredSeventy.js +2 -0
- package/module/types/int/upToEightHundredSeventy.js.map +1 -0
- package/module/types/int/upToEightHundredSixty.d.ts +1 -0
- package/module/types/int/upToEightHundredSixty.js +2 -0
- package/module/types/int/upToEightHundredSixty.js.map +1 -0
- package/module/types/int/upToEightHundredTen.d.ts +1 -0
- package/module/types/int/upToEightHundredTen.js +2 -0
- package/module/types/int/upToEightHundredTen.js.map +1 -0
- package/module/types/int/upToEightHundredThirty.d.ts +1 -0
- package/module/types/int/upToEightHundredThirty.js +2 -0
- package/module/types/int/upToEightHundredThirty.js.map +1 -0
- package/module/types/int/upToEightHundredTwenty.d.ts +1 -0
- package/module/types/int/upToEightHundredTwenty.js +2 -0
- package/module/types/int/upToEightHundredTwenty.js.map +1 -0
- package/module/types/int/upToEighty.d.ts +1 -0
- package/module/types/int/upToEighty.js +2 -0
- package/module/types/int/upToEighty.js.map +1 -0
- package/module/types/int/upToFifty.d.ts +1 -0
- package/module/types/int/upToFifty.js +2 -0
- package/module/types/int/upToFifty.js.map +1 -0
- package/module/types/int/upToFiveHundred.d.ts +1 -0
- package/module/types/int/upToFiveHundred.js +2 -0
- package/module/types/int/upToFiveHundred.js.map +1 -0
- package/module/types/int/upToFiveHundredEighty.d.ts +1 -0
- package/module/types/int/upToFiveHundredEighty.js +2 -0
- package/module/types/int/upToFiveHundredEighty.js.map +1 -0
- package/module/types/int/upToFiveHundredFifty.d.ts +1 -0
- package/module/types/int/upToFiveHundredFifty.js +2 -0
- package/module/types/int/upToFiveHundredFifty.js.map +1 -0
- package/module/types/int/upToFiveHundredForty.d.ts +1 -0
- package/module/types/int/upToFiveHundredForty.js +2 -0
- package/module/types/int/upToFiveHundredForty.js.map +1 -0
- package/module/types/int/upToFiveHundredNinety.d.ts +1 -0
- package/module/types/int/upToFiveHundredNinety.js +2 -0
- package/module/types/int/upToFiveHundredNinety.js.map +1 -0
- package/module/types/int/upToFiveHundredSeventy.d.ts +1 -0
- package/module/types/int/upToFiveHundredSeventy.js +2 -0
- package/module/types/int/upToFiveHundredSeventy.js.map +1 -0
- package/module/types/int/upToFiveHundredSixty.d.ts +1 -0
- package/module/types/int/upToFiveHundredSixty.js +2 -0
- package/module/types/int/upToFiveHundredSixty.js.map +1 -0
- package/module/types/int/upToFiveHundredTen.d.ts +1 -0
- package/module/types/int/upToFiveHundredTen.js +2 -0
- package/module/types/int/upToFiveHundredTen.js.map +1 -0
- package/module/types/int/upToFiveHundredThirty.d.ts +1 -0
- package/module/types/int/upToFiveHundredThirty.js +2 -0
- package/module/types/int/upToFiveHundredThirty.js.map +1 -0
- package/module/types/int/upToFiveHundredTwenty.d.ts +1 -0
- package/module/types/int/upToFiveHundredTwenty.js +2 -0
- package/module/types/int/upToFiveHundredTwenty.js.map +1 -0
- package/module/types/int/upToForty.d.ts +1 -0
- package/module/types/int/upToForty.js +2 -0
- package/module/types/int/upToForty.js.map +1 -0
- package/module/types/int/upToFourHundred.d.ts +1 -0
- package/module/types/int/upToFourHundred.js +2 -0
- package/module/types/int/upToFourHundred.js.map +1 -0
- package/module/types/int/upToFourHundredEighty.d.ts +1 -0
- package/module/types/int/upToFourHundredEighty.js +2 -0
- package/module/types/int/upToFourHundredEighty.js.map +1 -0
- package/module/types/int/upToFourHundredFifty.d.ts +1 -0
- package/module/types/int/upToFourHundredFifty.js +2 -0
- package/module/types/int/upToFourHundredFifty.js.map +1 -0
- package/module/types/int/upToFourHundredForty.d.ts +1 -0
- package/module/types/int/upToFourHundredForty.js +2 -0
- package/module/types/int/upToFourHundredForty.js.map +1 -0
- package/module/types/int/upToFourHundredNinety.d.ts +1 -0
- package/module/types/int/upToFourHundredNinety.js +2 -0
- package/module/types/int/upToFourHundredNinety.js.map +1 -0
- package/module/types/int/upToFourHundredSeventy.d.ts +1 -0
- package/module/types/int/upToFourHundredSeventy.js +2 -0
- package/module/types/int/upToFourHundredSeventy.js.map +1 -0
- package/module/types/int/upToFourHundredSixty.d.ts +1 -0
- package/module/types/int/upToFourHundredSixty.js +2 -0
- package/module/types/int/upToFourHundredSixty.js.map +1 -0
- package/module/types/int/upToFourHundredTen.d.ts +1 -0
- package/module/types/int/upToFourHundredTen.js +2 -0
- package/module/types/int/upToFourHundredTen.js.map +1 -0
- package/module/types/int/upToFourHundredThirty.d.ts +1 -0
- package/module/types/int/upToFourHundredThirty.js +2 -0
- package/module/types/int/upToFourHundredThirty.js.map +1 -0
- package/module/types/int/upToFourHundredTwenty.d.ts +1 -0
- package/module/types/int/upToFourHundredTwenty.js +2 -0
- package/module/types/int/upToFourHundredTwenty.js.map +1 -0
- package/module/types/int/upToHundredEighty.d.ts +1 -0
- package/module/types/int/upToHundredEighty.js +2 -0
- package/module/types/int/upToHundredEighty.js.map +1 -0
- package/module/types/int/upToHundredFifty.d.ts +1 -0
- package/module/types/int/upToHundredFifty.js +2 -0
- package/module/types/int/upToHundredFifty.js.map +1 -0
- package/module/types/int/upToHundredForty.d.ts +1 -0
- package/module/types/int/upToHundredForty.js +2 -0
- package/module/types/int/upToHundredForty.js.map +1 -0
- package/module/types/int/upToHundredNinety.d.ts +1 -0
- package/module/types/int/upToHundredNinety.js +2 -0
- package/module/types/int/upToHundredNinety.js.map +1 -0
- package/module/types/int/upToHundredSeventy.d.ts +1 -0
- package/module/types/int/upToHundredSeventy.js +2 -0
- package/module/types/int/upToHundredSeventy.js.map +1 -0
- package/module/types/int/upToHundredSixty.d.ts +1 -0
- package/module/types/int/upToHundredSixty.js +2 -0
- package/module/types/int/upToHundredSixty.js.map +1 -0
- package/module/types/int/upToHundredTen.d.ts +1 -0
- package/module/types/int/upToHundredTen.js +2 -0
- package/module/types/int/upToHundredTen.js.map +1 -0
- package/module/types/int/upToHundredThirty.d.ts +1 -0
- package/module/types/int/upToHundredThirty.js +2 -0
- package/module/types/int/upToHundredThirty.js.map +1 -0
- package/module/types/int/upToHundredTwenty.d.ts +1 -0
- package/module/types/int/upToHundredTwenty.js +2 -0
- package/module/types/int/upToHundredTwenty.js.map +1 -0
- package/module/types/int/upToNineHundred.d.ts +1 -0
- package/module/types/int/upToNineHundred.js +2 -0
- package/module/types/int/upToNineHundred.js.map +1 -0
- package/module/types/int/upToNineHundredEighty.d.ts +1 -0
- package/module/types/int/upToNineHundredEighty.js +2 -0
- package/module/types/int/upToNineHundredEighty.js.map +1 -0
- package/module/types/int/upToNineHundredFifty.d.ts +1 -0
- package/module/types/int/upToNineHundredFifty.js +2 -0
- package/module/types/int/upToNineHundredFifty.js.map +1 -0
- package/module/types/int/upToNineHundredForty.d.ts +1 -0
- package/module/types/int/upToNineHundredForty.js +2 -0
- package/module/types/int/upToNineHundredForty.js.map +1 -0
- package/module/types/int/upToNineHundredNinety.d.ts +1 -0
- package/module/types/int/upToNineHundredNinety.js +2 -0
- package/module/types/int/upToNineHundredNinety.js.map +1 -0
- package/module/types/int/upToNineHundredNinetyNine.d.ts +1 -0
- package/module/types/int/upToNineHundredNinetyNine.js +2 -0
- package/module/types/int/upToNineHundredNinetyNine.js.map +1 -0
- package/module/types/int/upToNineHundredSeventy.d.ts +1 -0
- package/module/types/int/upToNineHundredSeventy.js +2 -0
- package/module/types/int/upToNineHundredSeventy.js.map +1 -0
- package/module/types/int/upToNineHundredSixty.d.ts +1 -0
- package/module/types/int/upToNineHundredSixty.js +2 -0
- package/module/types/int/upToNineHundredSixty.js.map +1 -0
- package/module/types/int/upToNineHundredTen.d.ts +1 -0
- package/module/types/int/upToNineHundredTen.js +2 -0
- package/module/types/int/upToNineHundredTen.js.map +1 -0
- package/module/types/int/upToNineHundredThirty.d.ts +1 -0
- package/module/types/int/upToNineHundredThirty.js +2 -0
- package/module/types/int/upToNineHundredThirty.js.map +1 -0
- package/module/types/int/upToNineHundredTwenty.d.ts +1 -0
- package/module/types/int/upToNineHundredTwenty.js +2 -0
- package/module/types/int/upToNineHundredTwenty.js.map +1 -0
- package/module/types/int/upToNinety.d.ts +1 -0
- package/module/types/int/upToNinety.js +2 -0
- package/module/types/int/upToNinety.js.map +1 -0
- package/module/types/int/upToNinetyNine.d.ts +1 -0
- package/module/types/int/upToNinetyNine.js +2 -0
- package/module/types/int/upToNinetyNine.js.map +1 -0
- package/module/types/int/upToSevenHundred.d.ts +1 -0
- package/module/types/int/upToSevenHundred.js +2 -0
- package/module/types/int/upToSevenHundred.js.map +1 -0
- package/module/types/int/upToSevenHundredEighty.d.ts +1 -0
- package/module/types/int/upToSevenHundredEighty.js +2 -0
- package/module/types/int/upToSevenHundredEighty.js.map +1 -0
- package/module/types/int/upToSevenHundredFifty.d.ts +1 -0
- package/module/types/int/upToSevenHundredFifty.js +2 -0
- package/module/types/int/upToSevenHundredFifty.js.map +1 -0
- package/module/types/int/upToSevenHundredForty.d.ts +1 -0
- package/module/types/int/upToSevenHundredForty.js +2 -0
- package/module/types/int/upToSevenHundredForty.js.map +1 -0
- package/module/types/int/upToSevenHundredNinety.d.ts +1 -0
- package/module/types/int/upToSevenHundredNinety.js +2 -0
- package/module/types/int/upToSevenHundredNinety.js.map +1 -0
- package/module/types/int/upToSevenHundredSeventy.d.ts +1 -0
- package/module/types/int/upToSevenHundredSeventy.js +2 -0
- package/module/types/int/upToSevenHundredSeventy.js.map +1 -0
- package/module/types/int/upToSevenHundredSixty.d.ts +1 -0
- package/module/types/int/upToSevenHundredSixty.js +2 -0
- package/module/types/int/upToSevenHundredSixty.js.map +1 -0
- package/module/types/int/upToSevenHundredTen.d.ts +1 -0
- package/module/types/int/upToSevenHundredTen.js +2 -0
- package/module/types/int/upToSevenHundredTen.js.map +1 -0
- package/module/types/int/upToSevenHundredThirty.d.ts +1 -0
- package/module/types/int/upToSevenHundredThirty.js +2 -0
- package/module/types/int/upToSevenHundredThirty.js.map +1 -0
- package/module/types/int/upToSevenHundredTwenty.d.ts +1 -0
- package/module/types/int/upToSevenHundredTwenty.js +2 -0
- package/module/types/int/upToSevenHundredTwenty.js.map +1 -0
- package/module/types/int/upToSeventy.d.ts +1 -0
- package/module/types/int/upToSeventy.js +2 -0
- package/module/types/int/upToSeventy.js.map +1 -0
- package/module/types/int/upToSixHundred.d.ts +1 -0
- package/module/types/int/upToSixHundred.js +2 -0
- package/module/types/int/upToSixHundred.js.map +1 -0
- package/module/types/int/upToSixHundredEighty.d.ts +1 -0
- package/module/types/int/upToSixHundredEighty.js +2 -0
- package/module/types/int/upToSixHundredEighty.js.map +1 -0
- package/module/types/int/upToSixHundredFifty.d.ts +1 -0
- package/module/types/int/upToSixHundredFifty.js +2 -0
- package/module/types/int/upToSixHundredFifty.js.map +1 -0
- package/module/types/int/upToSixHundredForty.d.ts +1 -0
- package/module/types/int/upToSixHundredForty.js +2 -0
- package/module/types/int/upToSixHundredForty.js.map +1 -0
- package/module/types/int/upToSixHundredNinety.d.ts +1 -0
- package/module/types/int/upToSixHundredNinety.js +2 -0
- package/module/types/int/upToSixHundredNinety.js.map +1 -0
- package/module/types/int/upToSixHundredSeventy.d.ts +1 -0
- package/module/types/int/upToSixHundredSeventy.js +2 -0
- package/module/types/int/upToSixHundredSeventy.js.map +1 -0
- package/module/types/int/upToSixHundredSixty.d.ts +1 -0
- package/module/types/int/upToSixHundredSixty.js +2 -0
- package/module/types/int/upToSixHundredSixty.js.map +1 -0
- package/module/types/int/upToSixHundredTen.d.ts +1 -0
- package/module/types/int/upToSixHundredTen.js +2 -0
- package/module/types/int/upToSixHundredTen.js.map +1 -0
- package/module/types/int/upToSixHundredThirty.d.ts +1 -0
- package/module/types/int/upToSixHundredThirty.js +2 -0
- package/module/types/int/upToSixHundredThirty.js.map +1 -0
- package/module/types/int/upToSixHundredTwenty.d.ts +1 -0
- package/module/types/int/upToSixHundredTwenty.js +2 -0
- package/module/types/int/upToSixHundredTwenty.js.map +1 -0
- package/module/types/int/upToSixty.d.ts +1 -0
- package/module/types/int/upToSixty.js +2 -0
- package/module/types/int/upToSixty.js.map +1 -0
- package/module/types/int/upToThirty.d.ts +1 -0
- package/module/types/int/upToThirty.js +2 -0
- package/module/types/int/upToThirty.js.map +1 -0
- package/module/types/int/upToThreeHundred.d.ts +1 -0
- package/module/types/int/upToThreeHundred.js +2 -0
- package/module/types/int/upToThreeHundred.js.map +1 -0
- package/module/types/int/upToThreeHundredEighty.d.ts +1 -0
- package/module/types/int/upToThreeHundredEighty.js +2 -0
- package/module/types/int/upToThreeHundredEighty.js.map +1 -0
- package/module/types/int/upToThreeHundredFifty.d.ts +1 -0
- package/module/types/int/upToThreeHundredFifty.js +2 -0
- package/module/types/int/upToThreeHundredFifty.js.map +1 -0
- package/module/types/int/upToThreeHundredForty.d.ts +1 -0
- package/module/types/int/upToThreeHundredForty.js +2 -0
- package/module/types/int/upToThreeHundredForty.js.map +1 -0
- package/module/types/int/upToThreeHundredNinety.d.ts +1 -0
- package/module/types/int/upToThreeHundredNinety.js +2 -0
- package/module/types/int/upToThreeHundredNinety.js.map +1 -0
- package/module/types/int/upToThreeHundredSeventy.d.ts +1 -0
- package/module/types/int/upToThreeHundredSeventy.js +2 -0
- package/module/types/int/upToThreeHundredSeventy.js.map +1 -0
- package/module/types/int/upToThreeHundredSixty.d.ts +1 -0
- package/module/types/int/upToThreeHundredSixty.js +2 -0
- package/module/types/int/upToThreeHundredSixty.js.map +1 -0
- package/module/types/int/upToThreeHundredTen.d.ts +1 -0
- package/module/types/int/upToThreeHundredTen.js +2 -0
- package/module/types/int/upToThreeHundredTen.js.map +1 -0
- package/module/types/int/upToThreeHundredThirty.d.ts +1 -0
- package/module/types/int/upToThreeHundredThirty.js +2 -0
- package/module/types/int/upToThreeHundredThirty.js.map +1 -0
- package/module/types/int/upToThreeHundredTwenty.d.ts +1 -0
- package/module/types/int/upToThreeHundredTwenty.js +2 -0
- package/module/types/int/upToThreeHundredTwenty.js.map +1 -0
- package/module/types/int/upToTwenty.d.ts +1 -0
- package/module/types/int/upToTwenty.js +2 -0
- package/module/types/int/upToTwenty.js.map +1 -0
- package/module/types/int/upToTwoHundred.d.ts +1 -0
- package/module/types/int/upToTwoHundred.js +2 -0
- package/module/types/int/upToTwoHundred.js.map +1 -0
- package/module/types/int/upToTwoHundredEighty.d.ts +1 -0
- package/module/types/int/upToTwoHundredEighty.js +2 -0
- package/module/types/int/upToTwoHundredEighty.js.map +1 -0
- package/module/types/int/upToTwoHundredFifty.d.ts +1 -0
- package/module/types/int/upToTwoHundredFifty.js +2 -0
- package/module/types/int/upToTwoHundredFifty.js.map +1 -0
- package/module/types/int/upToTwoHundredForty.d.ts +1 -0
- package/module/types/int/upToTwoHundredForty.js +2 -0
- package/module/types/int/upToTwoHundredForty.js.map +1 -0
- package/module/types/int/upToTwoHundredNinety.d.ts +1 -0
- package/module/types/int/upToTwoHundredNinety.js +2 -0
- package/module/types/int/upToTwoHundredNinety.js.map +1 -0
- package/module/types/int/upToTwoHundredSeventy.d.ts +1 -0
- package/module/types/int/upToTwoHundredSeventy.js +2 -0
- package/module/types/int/upToTwoHundredSeventy.js.map +1 -0
- package/module/types/int/upToTwoHundredSixty.d.ts +1 -0
- package/module/types/int/upToTwoHundredSixty.js +2 -0
- package/module/types/int/upToTwoHundredSixty.js.map +1 -0
- package/module/types/int/upToTwoHundredTen.d.ts +1 -0
- package/module/types/int/upToTwoHundredTen.js +2 -0
- package/module/types/int/upToTwoHundredTen.js.map +1 -0
- package/module/types/int/upToTwoHundredThirty.d.ts +1 -0
- package/module/types/int/upToTwoHundredThirty.js +2 -0
- package/module/types/int/upToTwoHundredThirty.js.map +1 -0
- package/module/types/int/upToTwoHundredTwenty.d.ts +1 -0
- package/module/types/int/upToTwoHundredTwenty.js +2 -0
- package/module/types/int/upToTwoHundredTwenty.js.map +1 -0
- package/module/types/joke/index.d.ts +1 -0
- package/module/types/joke/index.js +2 -0
- package/module/types/joke/index.js.map +1 -0
- package/module/types/{jokeType.d.ts → joke/threeStepsForwardTwoStepsBack.d.ts} +3 -1
- package/module/types/joke/threeStepsForwardTwoStepsBack.js +2 -0
- package/module/types/joke/threeStepsForwardTwoStepsBack.js.map +1 -0
- package/module/types/logic/and.d.ts +2 -0
- package/module/types/logic/and.js +2 -0
- package/module/types/logic/and.js.map +1 -0
- package/module/types/logic/arrayReverse.d.ts +1 -0
- package/module/types/logic/arrayReverse.js +2 -0
- package/module/types/logic/arrayReverse.js.map +1 -0
- package/module/types/logic/arrayToUnion.d.ts +1 -0
- package/module/types/logic/arrayToUnion.js +2 -0
- package/module/types/logic/arrayToUnion.js.map +1 -0
- package/module/types/logic/bGreaterThanA.d.ts +4 -0
- package/module/types/logic/bGreaterThanA.js +2 -0
- package/module/types/logic/bGreaterThanA.js.map +1 -0
- package/module/types/logic/binary1bitAND.d.ts +2 -0
- package/module/types/logic/binary1bitAND.js +2 -0
- package/module/types/logic/binary1bitAND.js.map +1 -0
- package/module/types/logic/binary1bitNAND.d.ts +2 -0
- package/module/types/logic/binary1bitNAND.js +2 -0
- package/module/types/logic/binary1bitNAND.js.map +1 -0
- package/module/types/logic/binary1bitNOR.d.ts +3 -0
- package/module/types/logic/binary1bitNOR.js +2 -0
- package/module/types/logic/binary1bitNOR.js.map +1 -0
- package/module/types/logic/binary1bitOR.d.ts +2 -0
- package/module/types/logic/binary1bitOR.js +2 -0
- package/module/types/logic/binary1bitOR.js.map +1 -0
- package/module/types/logic/binary1bitXNOR.d.ts +2 -0
- package/module/types/logic/binary1bitXNOR.js +2 -0
- package/module/types/logic/binary1bitXNOR.js.map +1 -0
- package/module/types/logic/binary1bitXOR.d.ts +2 -0
- package/module/types/logic/binary1bitXOR.js +2 -0
- package/module/types/logic/binary1bitXOR.js.map +1 -0
- package/module/types/logic/binaryAND.d.ts +2 -0
- package/module/types/logic/binaryAND.js +2 -0
- package/module/types/logic/binaryAND.js.map +1 -0
- package/module/types/logic/binaryAbs.d.ts +2 -0
- package/module/types/logic/binaryAbs.js +2 -0
- package/module/types/logic/binaryAbs.js.map +1 -0
- package/module/types/logic/binaryAdd.d.ts +4 -0
- package/module/types/logic/binaryAdd.js +2 -0
- package/module/types/logic/binaryAdd.js.map +1 -0
- package/module/types/logic/binaryComplement.d.ts +4 -0
- package/module/types/logic/binaryComplement.js +2 -0
- package/module/types/logic/binaryComplement.js.map +1 -0
- package/module/types/logic/binaryFullAdder.d.ts +9 -0
- package/module/types/logic/binaryFullAdder.js +2 -0
- package/module/types/logic/binaryFullAdder.js.map +1 -0
- package/module/types/logic/binaryHalfAdder.d.ts +4 -0
- package/module/types/logic/binaryHalfAdder.js +2 -0
- package/module/types/logic/binaryHalfAdder.js.map +1 -0
- package/module/types/logic/binaryNAND.d.ts +2 -0
- package/module/types/logic/binaryNAND.js +2 -0
- package/module/types/logic/binaryNAND.js.map +1 -0
- package/module/types/logic/binaryNComplement.d.ts +7 -0
- package/module/types/logic/binaryNComplement.js +2 -0
- package/module/types/logic/binaryNComplement.js.map +1 -0
- package/module/types/logic/binaryNOR.d.ts +2 -0
- package/module/types/logic/binaryNOR.js +2 -0
- package/module/types/logic/binaryNOR.js.map +1 -0
- package/module/types/logic/binaryNOT.d.ts +2 -0
- package/module/types/logic/binaryNOT.js +2 -0
- package/module/types/logic/binaryNOT.js.map +1 -0
- package/module/types/logic/binaryOR.d.ts +2 -0
- package/module/types/logic/binaryOR.js +2 -0
- package/module/types/logic/binaryOR.js.map +1 -0
- package/module/types/logic/binaryToDecimal.d.ts +6 -0
- package/module/types/logic/binaryToDecimal.js +2 -0
- package/module/types/logic/binaryToDecimal.js.map +1 -0
- package/module/types/logic/binaryToHex.d.ts +5 -0
- package/module/types/logic/binaryToHex.js +2 -0
- package/module/types/logic/binaryToHex.js.map +1 -0
- package/module/types/logic/binaryXNOR.d.ts +2 -0
- package/module/types/logic/binaryXNOR.js +2 -0
- package/module/types/logic/binaryXNOR.js.map +1 -0
- package/module/types/logic/binaryXOR.d.ts +2 -0
- package/module/types/logic/binaryXOR.js +2 -0
- package/module/types/logic/binaryXOR.js.map +1 -0
- package/module/types/logic/capitalize.d.ts +1 -0
- package/module/types/logic/capitalize.js +2 -0
- package/module/types/logic/capitalize.js.map +1 -0
- package/module/types/logic/decimal1biteTobinary.d.ts +1 -0
- package/module/types/logic/decimal1biteTobinary.js +2 -0
- package/module/types/logic/decimal1biteTobinary.js.map +1 -0
- package/module/types/logic/decimal1byteTobinary.d.ts +1 -0
- package/module/types/logic/decimal1byteTobinary.js +2 -0
- package/module/types/logic/decimal1byteTobinary.js.map +1 -0
- package/module/types/logic/decimal4bitToHex.d.ts +1 -0
- package/module/types/logic/decimal4bitToHex.js +2 -0
- package/module/types/logic/decimal4bitToHex.js.map +1 -0
- package/module/types/logic/decimal4bitTobinary.d.ts +1 -0
- package/module/types/logic/decimal4bitTobinary.js +2 -0
- package/module/types/logic/decimal4bitTobinary.js.map +1 -0
- package/module/types/logic/equal.d.ts +1 -0
- package/module/types/logic/equal.js +2 -0
- package/module/types/logic/equal.js.map +1 -0
- package/module/types/logic/first.d.ts +1 -0
- package/module/types/logic/first.js +2 -0
- package/module/types/logic/first.js.map +1 -0
- package/module/types/logic/first8Chars.d.ts +11 -0
- package/module/types/logic/first8Chars.js +2 -0
- package/module/types/logic/first8Chars.js.map +1 -0
- package/module/types/logic/firstNChars.d.ts +1 -0
- package/module/types/logic/firstNChars.js +2 -0
- package/module/types/logic/firstNChars.js.map +1 -0
- package/module/types/logic/hex4bitToDecimal.d.ts +1 -0
- package/module/types/logic/hex4bitToDecimal.js +2 -0
- package/module/types/logic/hex4bitToDecimal.js.map +1 -0
- package/module/types/logic/hexToBinary.d.ts +5 -0
- package/module/types/logic/hexToBinary.js +2 -0
- package/module/types/logic/hexToBinary.js.map +1 -0
- package/module/types/logic/if.d.ts +1 -0
- package/module/types/logic/if.js +2 -0
- package/module/types/logic/if.js.map +1 -0
- package/module/types/logic/imply.d.ts +3 -0
- package/module/types/logic/imply.js +2 -0
- package/module/types/logic/imply.js.map +1 -0
- package/module/types/logic/index.d.ts +59 -0
- package/module/types/logic/index.js +60 -0
- package/module/types/logic/index.js.map +1 -0
- package/module/types/logic/isAny.d.ts +1 -0
- package/module/types/logic/isAny.js +2 -0
- package/module/types/logic/isAny.js.map +1 -0
- package/module/types/logic/isBoolean.d.ts +1 -0
- package/module/types/logic/isBoolean.js +2 -0
- package/module/types/logic/isBoolean.js.map +1 -0
- package/module/types/logic/isFloat.d.ts +1 -0
- package/module/types/logic/isFloat.js +2 -0
- package/module/types/logic/isFloat.js.map +1 -0
- package/module/types/logic/length.d.ts +3 -0
- package/module/types/logic/length.js +2 -0
- package/module/types/logic/length.js.map +1 -0
- package/module/types/logic/lengthOfString.d.ts +2 -0
- package/module/types/logic/lengthOfString.js +2 -0
- package/module/types/logic/lengthOfString.js.map +1 -0
- package/module/types/logic/nand.d.ts +3 -0
- package/module/types/logic/nand.js +2 -0
- package/module/types/logic/nand.js.map +1 -0
- package/module/types/logic/nor.d.ts +3 -0
- package/module/types/logic/nor.js +2 -0
- package/module/types/logic/nor.js.map +1 -0
- package/module/types/logic/not.d.ts +2 -0
- package/module/types/logic/not.js +2 -0
- package/module/types/logic/not.js.map +1 -0
- package/module/types/logic/or.d.ts +2 -0
- package/module/types/logic/or.js +2 -0
- package/module/types/logic/or.js.map +1 -0
- package/module/types/logic/pop.d.ts +1 -0
- package/module/types/logic/pop.js +2 -0
- package/module/types/logic/pop.js.map +1 -0
- package/module/types/logic/popString.d.ts +1 -0
- package/module/types/logic/popString.js +2 -0
- package/module/types/logic/popString.js.map +1 -0
- package/module/types/logic/shift.d.ts +1 -0
- package/module/types/logic/shift.js +2 -0
- package/module/types/logic/shift.js.map +1 -0
- package/module/types/logic/shiftString.d.ts +1 -0
- package/module/types/logic/shiftString.js +2 -0
- package/module/types/logic/shiftString.js.map +1 -0
- package/module/types/logic/slice.d.ts +2 -0
- package/module/types/logic/slice.js +2 -0
- package/module/types/logic/slice.js.map +1 -0
- package/module/types/logic/stringReverse.d.ts +1 -0
- package/module/types/logic/stringReverse.js +2 -0
- package/module/types/logic/stringReverse.js.map +1 -0
- package/module/types/logic/stringToArray.d.ts +1 -0
- package/module/types/logic/stringToArray.js +2 -0
- package/module/types/logic/stringToArray.js.map +1 -0
- package/module/types/logic/stringToUnion.d.ts +1 -0
- package/module/types/logic/stringToUnion.js +2 -0
- package/module/types/logic/stringToUnion.js.map +1 -0
- package/module/types/logic/toNumber.d.ts +1 -0
- package/module/types/logic/toNumber.js +2 -0
- package/module/types/logic/toNumber.js.map +1 -0
- package/module/types/logic/xnor.d.ts +3 -0
- package/module/types/logic/xnor.js +2 -0
- package/module/types/logic/xnor.js.map +1 -0
- package/module/types/logic/xor.d.ts +2 -0
- package/module/types/logic/xor.js +2 -0
- package/module/types/logic/xor.js.map +1 -0
- package/module/types/logic/zeroAorB.d.ts +2 -0
- package/module/types/logic/zeroAorB.js +2 -0
- package/module/types/logic/zeroAorB.js.map +1 -0
- package/module/types/logic/zeroString.d.ts +2 -0
- package/module/types/logic/zeroString.js +2 -0
- package/module/types/logic/zeroString.js.map +1 -0
- package/module/types/math/add.d.ts +4 -0
- package/module/types/math/add.js +2 -0
- package/module/types/math/add.js.map +1 -0
- package/module/types/math/divide.d.ts +6 -0
- package/module/types/math/divide.js +2 -0
- package/module/types/math/divide.js.map +1 -0
- package/module/types/math/index.d.ts +6 -0
- package/module/types/math/index.js +7 -0
- package/module/types/math/index.js.map +1 -0
- package/module/types/math/modulo.d.ts +3 -0
- package/module/types/math/modulo.js +2 -0
- package/module/types/math/modulo.js.map +1 -0
- package/module/types/math/multiply.d.ts +5 -0
- package/module/types/math/multiply.js +2 -0
- package/module/types/math/multiply.js.map +1 -0
- package/module/types/math/numberToArray.d.ts +1 -0
- package/module/types/math/numberToArray.js +2 -0
- package/module/types/math/numberToArray.js.map +1 -0
- package/module/types/math/subtract.d.ts +4 -0
- package/module/types/math/subtract.js +2 -0
- package/module/types/math/subtract.js.map +1 -0
- package/module/types/ua/simplifiedUserAgentInfo.d.ts +5 -0
- package/module/types/ua/simplifiedUserAgentInfo.js +2 -0
- package/module/types/ua/simplifiedUserAgentInfo.js.map +1 -0
- package/package.json +19 -17
- package/module/Error/result.d.ts +0 -11
- package/module/Error/result.js +0 -11
- package/module/Error/result.js.map +0 -1
- package/module/Math/isValueNaN.d.ts +0 -10
- package/module/Math/isValueNaN.js +0 -14
- package/module/Math/isValueNaN.js.map +0 -1
- package/module/Tool/sudoku.d.ts +0 -103
- package/module/Tool/sudoku.js +0 -48
- package/module/Tool/sudoku.js.map +0 -1
- package/module/types/arrayType.js +0 -2
- package/module/types/arrayType.js.map +0 -1
- package/module/types/clockType.d.ts +0 -13
- package/module/types/clockType.js +0 -2
- package/module/types/clockType.js.map +0 -1
- package/module/types/dateType.d.ts +0 -13
- package/module/types/int.d.ts +0 -108
- package/module/types/int.js.map +0 -1
- package/module/types/jokeType.js +0 -2
- package/module/types/jokeType.js.map +0 -1
- package/module/types/logicType.d.ts +0 -93
- package/module/types/logicType.js +0 -2
- package/module/types/logicType.js.map +0 -1
- package/module/types/mathType.d.ts +0 -10
- package/module/types/mathType.js +0 -2
- package/module/types/mathType.js.map +0 -1
- /package/module/types/{dateType.js → date/dateType.js} +0 -0
- /package/module/types/{int.js → int/int.js} +0 -0
package/module/types/int.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
export type intEven = 0 | 2 | 4 | 6 | 8;
|
|
2
|
-
export type intOdd = 1 | 3 | 5 | 7 | 9;
|
|
3
|
-
export type intWithoutZero = Exclude<intEven | intOdd, 0>;
|
|
4
|
-
export type int = intEven | intOdd;
|
|
5
|
-
export type upToTwenty = 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
|
|
6
|
-
export type upToThirty = 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
|
|
7
|
-
export type upToForty = 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40;
|
|
8
|
-
export type upToFifty = 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50;
|
|
9
|
-
export type upToSixty = 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60;
|
|
10
|
-
export type upToSeventy = 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70;
|
|
11
|
-
export type upToEighty = 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80;
|
|
12
|
-
export type upToNinety = 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90;
|
|
13
|
-
export type upToNinetyNine = 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99;
|
|
14
|
-
export type upToHundredTen = 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110;
|
|
15
|
-
export type upToHundredTwenty = 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120;
|
|
16
|
-
export type upToHundredThirty = 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130;
|
|
17
|
-
export type upToHundredForty = 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140;
|
|
18
|
-
export type upToHundredFifty = 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150;
|
|
19
|
-
export type upToHundredSixty = 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160;
|
|
20
|
-
export type upToHundredSeventy = 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170;
|
|
21
|
-
export type upToHundredEighty = 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180;
|
|
22
|
-
export type upToHundredNinety = 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190;
|
|
23
|
-
export type upToTwoHundred = 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200;
|
|
24
|
-
export type upToTwoHundredTen = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210;
|
|
25
|
-
export type upToTwoHundredTwenty = 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220;
|
|
26
|
-
export type upToTwoHundredThirty = 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230;
|
|
27
|
-
export type upToTwoHundredForty = 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240;
|
|
28
|
-
export type upToTwoHundredFifty = 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250;
|
|
29
|
-
export type upToTwoHundredSixty = 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261;
|
|
30
|
-
export type upToTwoHundredSeventy = 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271;
|
|
31
|
-
export type upToTwoHundredEighty = 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281;
|
|
32
|
-
export type upToTwoHundredNinety = 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291;
|
|
33
|
-
export type upToThreeHundred = 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300;
|
|
34
|
-
export type upToThreeHundredTen = 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310;
|
|
35
|
-
export type upToThreeHundredTwenty = 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320;
|
|
36
|
-
export type upToThreeHundredThirty = 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330;
|
|
37
|
-
export type upToThreeHundredForty = 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340;
|
|
38
|
-
export type upToThreeHundredFifty = 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350;
|
|
39
|
-
export type upToThreeHundredSixty = 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360;
|
|
40
|
-
export type upToThreeHundredSeventy = 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370;
|
|
41
|
-
export type upToThreeHundredEighty = 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380;
|
|
42
|
-
export type upToThreeHundredNinety = 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390;
|
|
43
|
-
export type upToFourHundred = 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400;
|
|
44
|
-
export type upToFourHundredTen = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410;
|
|
45
|
-
export type upToFourHundredTwenty = 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420;
|
|
46
|
-
export type upToFourHundredThirty = 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430;
|
|
47
|
-
export type upToFourHundredForty = 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440;
|
|
48
|
-
export type upToFourHundredFifty = 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450;
|
|
49
|
-
export type upToFourHundredSixty = 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460;
|
|
50
|
-
export type upToFourHundredSeventy = 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470;
|
|
51
|
-
export type upToFourHundredEighty = 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480;
|
|
52
|
-
export type upToFourHundredNinety = 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490;
|
|
53
|
-
export type upToFiveHundred = 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500;
|
|
54
|
-
export type upToFiveHundredTen = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510;
|
|
55
|
-
export type upToFiveHundredTwenty = 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520;
|
|
56
|
-
export type upToFiveHundredThirty = 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530;
|
|
57
|
-
export type upToFiveHundredForty = 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540;
|
|
58
|
-
export type upToFiveHundredFifty = 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550;
|
|
59
|
-
export type upToFiveHundredSixty = 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560;
|
|
60
|
-
export type upToFiveHundredSeventy = 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570;
|
|
61
|
-
export type upToFiveHundredEighty = 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580;
|
|
62
|
-
export type upToFiveHundredNinety = 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590;
|
|
63
|
-
export type upToSixHundred = 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600;
|
|
64
|
-
export type upToSixHundredTen = 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610;
|
|
65
|
-
export type upToSixHundredTwenty = 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620;
|
|
66
|
-
export type upToSixHundredThirty = 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630;
|
|
67
|
-
export type upToSixHundredForty = 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640;
|
|
68
|
-
export type upToSixHundredFifty = 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650;
|
|
69
|
-
export type upToSixHundredSixty = 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660;
|
|
70
|
-
export type upToSixHundredSeventy = 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670;
|
|
71
|
-
export type upToSixHundredEighty = 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680;
|
|
72
|
-
export type upToSixHundredNinety = 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690;
|
|
73
|
-
export type upToSevenHundred = 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700;
|
|
74
|
-
export type upToSevenHundredTen = 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710;
|
|
75
|
-
export type upToSevenHundredTwenty = 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720;
|
|
76
|
-
export type upToSevenHundredThirty = 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730;
|
|
77
|
-
export type upToSevenHundredForty = 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740;
|
|
78
|
-
export type upToSevenHundredFifty = 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750;
|
|
79
|
-
export type upToSevenHundredSixty = 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760;
|
|
80
|
-
export type upToSevenHundredSeventy = 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770;
|
|
81
|
-
export type upToSevenHundredEighty = 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780;
|
|
82
|
-
export type upToSevenHundredNinety = 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790;
|
|
83
|
-
export type upToEightHundred = 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800;
|
|
84
|
-
export type upToEightHundredTen = 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810;
|
|
85
|
-
export type upToEightHundredTwenty = 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820;
|
|
86
|
-
export type upToEightHundredThirty = 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830;
|
|
87
|
-
export type upToEightHundredForty = 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840;
|
|
88
|
-
export type upToEightHundredFifty = 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850;
|
|
89
|
-
export type upToEightHundredSixty = 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860;
|
|
90
|
-
export type upToEightHundredSeventy = 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870;
|
|
91
|
-
export type upToEightHundredEighty = 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880;
|
|
92
|
-
export type upToEightHundredNinety = 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890;
|
|
93
|
-
export type upToNineHundred = 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900;
|
|
94
|
-
export type upToNineHundredTen = 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910;
|
|
95
|
-
export type upToNineHundredTwenty = 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920;
|
|
96
|
-
export type upToNineHundredThirty = 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930;
|
|
97
|
-
export type upToNineHundredForty = 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | 940;
|
|
98
|
-
export type upToNineHundredFifty = 940 | 941 | 942 | 943 | 944 | 945 | 946 | 947 | 948 | 949 | 950;
|
|
99
|
-
export type upToNineHundredSixty = 950 | 951 | 952 | 953 | 954 | 955 | 956 | 957 | 958 | 959 | 960;
|
|
100
|
-
export type upToNineHundredSeventy = 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 969 | 970;
|
|
101
|
-
export type upToNineHundredEighty = 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 978 | 979 | 980;
|
|
102
|
-
export type upToNineHundredNinety = 980 | 981 | 982 | 983 | 984 | 985 | 986 | 987 | 988 | 989 | 990;
|
|
103
|
-
export type upToNineHundredNinetyNine = 990 | 991 | 992 | 993 | 994 | 995 | 996 | 997 | 998 | 999;
|
|
104
|
-
export type doubleDigitInt = upToTwenty | upToThirty | upToForty | upToFifty | upToSixty | upToSeventy | upToEighty | upToNinety | upToNinetyNine;
|
|
105
|
-
export type doubleDigit = `${doubleDigitInt}`;
|
|
106
|
-
export type tripleDigitInt = upToHundredTen | upToHundredTwenty | upToHundredThirty | upToHundredForty | upToHundredFifty | upToHundredSixty | upToHundredSeventy | upToHundredEighty | upToHundredNinety | upToTwoHundred | upToTwoHundredTen | upToTwoHundredTwenty | upToTwoHundredThirty | upToTwoHundredForty | upToTwoHundredFifty | upToTwoHundredSixty | upToTwoHundredSeventy | upToTwoHundredEighty | upToTwoHundredNinety | upToThreeHundred | upToThreeHundredTen | upToThreeHundredTwenty | upToThreeHundredThirty | upToThreeHundredForty | upToThreeHundredFifty | upToThreeHundredSixty | upToThreeHundredSeventy | upToThreeHundredEighty | upToThreeHundredNinety | upToFourHundred | upToFourHundredTen | upToFourHundredTwenty | upToFourHundredThirty | upToFourHundredForty | upToFourHundredFifty | upToFourHundredSixty | upToFourHundredSeventy | upToFourHundredEighty | upToFourHundredNinety | upToFiveHundred | upToFiveHundredTen | upToFiveHundredTwenty | upToFiveHundredThirty | upToFiveHundredForty | upToFiveHundredFifty | upToFiveHundredSixty | upToFiveHundredSeventy | upToFiveHundredEighty | upToFiveHundredNinety | upToSixHundred | upToSixHundredTen | upToSixHundredTwenty | upToSixHundredThirty | upToSixHundredForty | upToSixHundredFifty | upToSixHundredSixty | upToSixHundredSeventy | upToSixHundredEighty | upToSixHundredNinety | upToSevenHundred | upToSevenHundredTen | upToSevenHundredTwenty | upToSevenHundredThirty | upToSevenHundredForty | upToSevenHundredFifty | upToSevenHundredSixty | upToSevenHundredSeventy | upToSevenHundredEighty | upToSevenHundredNinety | upToEightHundred | upToEightHundredTen | upToEightHundredTwenty | upToEightHundredThirty | upToEightHundredForty | upToEightHundredFifty | upToEightHundredSixty | upToEightHundredSeventy | upToEightHundredEighty | upToEightHundredNinety | upToNineHundred | upToNineHundredTen | upToNineHundredTwenty | upToNineHundredThirty | upToNineHundredForty | upToNineHundredFifty | upToNineHundredSixty | upToNineHundredSeventy | upToNineHundredEighty | upToNineHundredNinety | upToNineHundredNinetyNine;
|
|
107
|
-
export type tripleDigit = `${tripleDigitInt}`;
|
|
108
|
-
export type fourDigit = `${intWithoutZero}${int}${int}${int}`;
|
package/module/types/int.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"int.js","sourceRoot":"","sources":["../../src/types/int.ts"],"names":[],"mappings":""}
|
package/module/types/jokeType.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jokeType.js","sourceRoot":"","sources":["../../src/types/jokeType.ts"],"names":[],"mappings":""}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { Subtract } from "./mathType";
|
|
2
|
-
export type isBoolean<X> = X extends number ? X extends 0 ? false : true : X extends string ? X extends "" ? false : true : X extends boolean ? X : X extends undefined ? false : X extends null ? false : X extends object ? X extends unknown[] ? X extends [] ? false : true : true : X extends (...arguments_: unknown[]) => unknown ? false : true;
|
|
3
|
-
export type AND<X, Y> = isBoolean<X> extends true ? isBoolean<Y> extends true ? true : false : false;
|
|
4
|
-
export type OR<X, Y> = isBoolean<X> extends true ? true : isBoolean<Y> extends true ? true : false;
|
|
5
|
-
export type XOR<X, Y> = isBoolean<X> extends true ? isBoolean<Y> extends true ? false : true : isBoolean<Y> extends true ? true : false;
|
|
6
|
-
export type NOT<X> = isBoolean<X> extends true ? false : true;
|
|
7
|
-
export type NAND<X, Y> = NOT<AND<X, Y>>;
|
|
8
|
-
export type NOR<X, Y> = NOT<OR<X, Y>>;
|
|
9
|
-
export type XNOR<X, Y> = NOT<XOR<X, Y>>;
|
|
10
|
-
export type IMPLY<X, Y> = NOT<X> extends true ? true : isBoolean<Y>;
|
|
11
|
-
export type StringToArray<S extends string, T extends unknown[] = []> = S extends `${infer F}${infer R}` ? StringToArray<R, [...T, F]> : T;
|
|
12
|
-
export type Length<T extends unknown[]> = T extends {
|
|
13
|
-
length: infer L;
|
|
14
|
-
} ? L extends number ? L : never : never;
|
|
15
|
-
export type LengthOfString<S extends string> = StringToArray<S>["length"];
|
|
16
|
-
export type Capitalize<S extends string> = S extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : S;
|
|
17
|
-
export type Shift<T extends unknown[]> = T extends [unknown, ...infer R] ? R : never;
|
|
18
|
-
export type Pop<T extends unknown[]> = T extends [...infer R, unknown] ? R : never;
|
|
19
|
-
export type First<T extends unknown[]> = T extends [infer F, ...unknown[]] ? F : never;
|
|
20
|
-
export type ShiftString<S extends string> = S extends `${string}${infer R}` ? R : never;
|
|
21
|
-
export type PopString<S extends string> = S extends `${infer R}${string}` ? R : never;
|
|
22
|
-
export type StringToUnion<S extends string> = S extends `${infer F}${infer R}` ? F | StringToUnion<R> : never;
|
|
23
|
-
export type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
24
|
-
export type IsFloat<T> = T extends number ? `${T}` extends `${infer _}.${infer _2}` ? true : false : false;
|
|
25
|
-
export type IF<C extends boolean, X, Y> = C extends true ? X : Y;
|
|
26
|
-
export type ToNumber<S> = S extends `${infer N extends number}` ? N : never;
|
|
27
|
-
export type Slice<S extends string, Start extends number, End extends number, A extends string = ""> = S extends `${infer F}${infer R}` ? Start extends 0 ? End extends 0 ? A : Slice<R, 0, Subtract<End, 1>, `${A}${F}`> : Slice<R, Subtract<Start, 1>, Subtract<End, 1>, A> : A;
|
|
28
|
-
export type StringReverse<S extends string> = S extends `${infer F}${infer R}` ? `${StringReverse<R>}${F}` : "";
|
|
29
|
-
export type ArrayReverse<S extends unknown[], T extends unknown[] = []> = S extends [infer F, ...infer R] ? ArrayReverse<R, [F, ...T]> : T;
|
|
30
|
-
export type First8Chars<S extends string, T extends unknown[] = []> = T["length"] extends 8 ? T extends [
|
|
31
|
-
infer C1,
|
|
32
|
-
infer C2,
|
|
33
|
-
infer C3,
|
|
34
|
-
infer C4,
|
|
35
|
-
infer C5,
|
|
36
|
-
infer C6,
|
|
37
|
-
infer C7,
|
|
38
|
-
infer C8,
|
|
39
|
-
...unknown[]
|
|
40
|
-
] ? `${C1 & string}${C2 & string}${C3 & string}${C4 & string}${C5 & string}${C6 & string}${C7 & string}${C8 & string}` : never : S extends `${infer Head}${infer Rest}` ? First8Chars<Rest, [...T, Head]> : never;
|
|
41
|
-
export type FirstNChars<S extends string, N extends number, C extends unknown[] = [], A extends string = ""> = C["length"] extends N ? A : S extends `${infer Head}${infer Rest}` ? FirstNChars<Rest, N, [...C, Head], `${A}${Head}`> : never;
|
|
42
|
-
export type ZeroString<N extends number, A extends string = ""> = LengthOfString<A> extends N ? A : ZeroString<N, `${A}0`>;
|
|
43
|
-
export type Equal<X, Y> = X extends Y ? true : false;
|
|
44
|
-
export type ZeroAorB<A extends number, B extends number> = Equal<A, 0> extends true ? true : Equal<B, 0> extends true ? true : false;
|
|
45
|
-
export type BGreaterThanA<A extends number, B extends number> = `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? BGreaterThanA<N, M> : BGreaterThanA<N, B> : `${B}` extends `-${infer M extends number}` ? BGreaterThanA<A, M> : ZeroAorB<A, B> extends true ? Equal<A, B> extends true ? false : A extends 0 ? true : false : BGreaterThanA<Subtract<A, 1>, Subtract<B, 1>>;
|
|
46
|
-
export type binaryHalfAdder<X extends `${0 | 1}`, Y extends `${0 | 1}`> = binaryHalfAdderParser<X, Y>;
|
|
47
|
-
type binaryHalfAdderParser<X extends string, Y extends string, C extends string = ""> = C extends "" ? binaryHalfAdderParser<X, Y, binary1bitANDParser<X, Y>> : `${C}${binary1bitXORParser<X, Y>}`;
|
|
48
|
-
export type binaryFullAdder<X extends string, Y extends string, B extends number = LengthOfString<X>> = LengthOfString<X> extends LengthOfString<Y> ? FirstNChars<ShiftString<StringReverse<binaryFullAdderParser<StringReverse<FirstNChars<X, B>>, StringReverse<FirstNChars<Y, B>>>>>, B> : never;
|
|
49
|
-
type binaryFullAdderParser<X extends string, Y extends string, A extends string = "", C extends string = "0"> = X extends `${infer F}${infer R}` ? Y extends `${infer F2}${infer R2}` ? binaryHalfAdderParser<F, F2> extends `${infer F3}${infer R3}` ? binaryHalfAdderParser<R3, C> extends `${infer F4}${infer R4}` ? binaryFullAdderParser<R, R2, `${A}${R4}`, binary1bitORParser<F3, F4>> : never : never : never : `${A}${C}`;
|
|
50
|
-
type binaryAddParser<A extends string, B extends string, C extends "0" | "1" = "0"> = [A, B] extends [`${infer A1}${infer A2}`, `${infer B1}${infer B2}`] ? A1 extends "0" ? B1 extends "0" ? C extends "0" ? `${binaryAddParser<A2, B2, "0">}0` : `${binaryAddParser<A2, B2, "0">}1` : C extends "0" ? `${binaryAddParser<A2, B2, "0">}1` : `${binaryAddParser<A2, B2, "1">}0` : B1 extends "0" ? C extends "0" ? `${binaryAddParser<A2, B2, "0">}1` : `${binaryAddParser<A2, B2, "1">}0` : C extends "0" ? `${binaryAddParser<A2, B2, "1">}0` : `${binaryAddParser<A2, B2, "1">}1` : `${C}`;
|
|
51
|
-
export type binaryAdd<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`, Y extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = StringReverse<First8Chars<StringReverse<binaryAddParser<StringReverse<X>, StringReverse<Y>>>>>;
|
|
52
|
-
type binaryComplementParser<X extends string> = X extends `${infer L}${infer R}` ? L extends "0" ? `1${binaryComplementParser<R>}` : `0${binaryComplementParser<R>}` : "";
|
|
53
|
-
export type binaryComplement<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = First8Chars<binaryAdd<binaryComplementParser<X>, "00000001">>;
|
|
54
|
-
export type binaryNComplement<X extends string> = binaryFullAdder<binaryComplementParser<X>, StringReverse<`1${ShiftString<ZeroString<LengthOfString<X>>>}`>, LengthOfString<X>>;
|
|
55
|
-
type binaryToDecimalParser<X extends string, C extends unknown[] = [""], A extends unknown[] = [""], FL extends boolean = false> = X extends `${infer F}${infer R}` ? LengthOfString<X> extends 8 ? F extends "1" ? `-${binaryToDecimalParser<StringReverse<R>, C, A, true>}` : binaryToDecimalParser<StringReverse<R>, C, A, FL> : FL extends false ? F extends "1" ? binaryToDecimalParser<R, [...C, ...C], [...A, ...C], FL> : binaryToDecimalParser<R, [...C, ...C], A, FL> : F extends "1" ? binaryToDecimalParser<R, [...C, ...C], A, FL> : binaryToDecimalParser<R, [...C, ...C], [...A, ...C], FL> : FL extends true ? Length<A> : Length<Shift<A>>;
|
|
56
|
-
export type binaryToDecimal<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = binaryToDecimalParser<X>;
|
|
57
|
-
export type binaryAbs<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = X extends `${infer F}${infer _}` ? F extends "1" ? binaryComplement<X> : X : never;
|
|
58
|
-
export type decimal4bitToHex<X extends string> = X extends "10" ? "A" : X extends "11" ? "B" : X extends "12" ? "C" : X extends "13" ? "D" : X extends "14" ? "E" : X extends "15" ? "F" : X;
|
|
59
|
-
export type hex4bitToDecimal<X extends string> = X extends "A" ? "10" : X extends "B" ? "11" : X extends "C" ? "12" : X extends "D" ? "13" : X extends "E" ? "14" : X extends "F" ? "15" : X;
|
|
60
|
-
export type decimal4bitTobinary<X extends string> = X extends "0" ? "0000" : X extends "1" ? "0001" : X extends "2" ? "0010" : X extends "3" ? "0011" : X extends "4" ? "0100" : X extends "5" ? "0101" : X extends "6" ? "0110" : X extends "7" ? "0111" : X extends "8" ? "1000" : X extends "9" ? "1001" : X extends "10" ? "1010" : X extends "11" ? "1011" : X extends "12" ? "1100" : X extends "13" ? "1101" : X extends "14" ? "1110" : X extends "15" ? "1111" : never;
|
|
61
|
-
export type decimal1biteTobinary<X extends string> = X extends "0" ? "00000000" : X extends "1" ? "00000001" : X extends "2" ? "00000010" : X extends "3" ? "00000011" : X extends "4" ? "00000100" : X extends "5" ? "00000101" : X extends "6" ? "00000110" : X extends "7" ? "00000111" : X extends "8" ? "00001000" : X extends "9" ? "00001001" : X extends "10" ? "00001010" : X extends "11" ? "00001011" : X extends "12" ? "00001100" : X extends "13" ? "00001101" : X extends "14" ? "00001110" : X extends "15" ? "00001111" : X extends "16" ? "00010000" : X extends "17" ? "00010001" : X extends "18" ? "00010010" : X extends "19" ? "00010011" : X extends "20" ? "00010100" : X extends "21" ? "00010101" : X extends "22" ? "00010110" : X extends "23" ? "00010111" : X extends "24" ? "00011000" : X extends "25" ? "00011001" : X extends "26" ? "00011010" : X extends "27" ? "00011011" : X extends "28" ? "00011100" : X extends "29" ? "00011101" : X extends "30" ? "00011110" : X extends "31" ? "00011111" : X extends "32" ? "00100000" : X extends "33" ? "00100001" : X extends "34" ? "00100010" : X extends "35" ? "00100011" : X extends "36" ? "00100100" : X extends "37" ? "00100101" : X extends "38" ? "00100110" : X extends "39" ? "00100111" : X extends "40" ? "00101000" : X extends "41" ? "00101001" : X extends "42" ? "00101010" : X extends "43" ? "00101011" : X extends "44" ? "00101100" : X extends "45" ? "00101101" : X extends "46" ? "00101110" : X extends "47" ? "00101111" : X extends "48" ? "00110000" : X extends "49" ? "00110001" : X extends "50" ? "00110010" : X extends "51" ? "00110011" : X extends "52" ? "00110100" : X extends "53" ? "00110101" : X extends "54" ? "00110110" : X extends "55" ? "00110111" : X extends "56" ? "00111000" : X extends "57" ? "00111001" : X extends "58" ? "00111010" : X extends "59" ? "00111011" : X extends "60" ? "00111100" : X extends "61" ? "00111101" : X extends "62" ? "00111110" : X extends "63" ? "00111111" : X extends "64" ? "01000000" : X extends "65" ? "01000001" : X extends "66" ? "01000010" : X extends "67" ? "01000011" : X extends "68" ? "01000100" : X extends "69" ? "01000101" : X extends "70" ? "01000110" : X extends "71" ? "01000111" : X extends "72" ? "01001000" : X extends "73" ? "01001001" : X extends "74" ? "01001010" : X extends "75" ? "01001011" : X extends "76" ? "01001100" : X extends "77" ? "01001101" : X extends "78" ? "01001110" : X extends "79" ? "01001111" : X extends "80" ? "01010000" : X extends "81" ? "01010001" : X extends "82" ? "01010010" : X extends "83" ? "01010011" : X extends "84" ? "01010100" : X extends "85" ? "01010101" : X extends "86" ? "01010110" : X extends "87" ? "01010111" : X extends "88" ? "01011000" : X extends "89" ? "01011001" : X extends "90" ? "01011010" : X extends "91" ? "01011011" : X extends "92" ? "01011100" : X extends "93" ? "01011101" : X extends "94" ? "01011110" : X extends "95" ? "01011111" : X extends "96" ? "01100000" : X extends "97" ? "01100001" : X extends "98" ? "01100010" : X extends "99" ? "01100011" : X extends "100" ? "01100100" : X extends "101" ? "01100101" : X extends "102" ? "01100110" : X extends "103" ? "01100111" : X extends "104" ? "01101000" : X extends "105" ? "01101001" : X extends "106" ? "01101010" : X extends "107" ? "01101011" : X extends "108" ? "01101100" : X extends "109" ? "01101101" : X extends "110" ? "01101110" : X extends "111" ? "01101111" : X extends "112" ? "01110000" : X extends "113" ? "01110001" : X extends "114" ? "01110010" : X extends "115" ? "01110011" : X extends "116" ? "01110100" : X extends "117" ? "01110101" : X extends "118" ? "01110110" : X extends "119" ? "01110111" : X extends "120" ? "01111000" : X extends "121" ? "01111001" : X extends "122" ? "01111010" : X extends "123" ? "01111011" : X extends "124" ? "01111100" : X extends "125" ? "01111101" : X extends "126" ? "01111110" : X extends "127" ? "01111111" : X extends "-128" ? "10000000" : X extends "-127" ? "10000001" : X extends "-126" ? "10000010" : X extends "-125" ? "10000011" : X extends "-124" ? "10000100" : X extends "-123" ? "10000101" : X extends "-122" ? "10000110" : X extends "-121" ? "10000111" : X extends "-120" ? "10001000" : X extends "-119" ? "10001001" : X extends "-118" ? "10001010" : X extends "-117" ? "10001011" : X extends "-116" ? "10001100" : X extends "-115" ? "10001101" : X extends "-114" ? "10001110" : X extends "-113" ? "10001111" : X extends "-112" ? "10010000" : X extends "-111" ? "10010001" : X extends "-110" ? "10010010" : X extends "-109" ? "10010011" : X extends "-108" ? "10010100" : X extends "-107" ? "10010101" : X extends "-106" ? "10010110" : X extends "-105" ? "10010111" : X extends "-104" ? "10011000" : X extends "-103" ? "10011001" : X extends "-102" ? "10011010" : X extends "-101" ? "10011011" : X extends "-100" ? "10011100" : X extends "-99" ? "10011101" : X extends "-98" ? "10011110" : X extends "-97" ? "10011111" : X extends "-96" ? "10100000" : X extends "-95" ? "10100001" : X extends "-94" ? "10100010" : X extends "-93" ? "10100011" : X extends "-92" ? "10100100" : X extends "-91" ? "10100101" : X extends "-90" ? "10100110" : X extends "-89" ? "10100111" : X extends "-88" ? "10101000" : X extends "-87" ? "10101001" : X extends "-86" ? "10101010" : X extends "-85" ? "10101011" : X extends "-84" ? "10101100" : X extends "-83" ? "10101101" : X extends "-82" ? "10101110" : X extends "-81" ? "10101111" : X extends "-80" ? "10110000" : X extends "-79" ? "10110001" : X extends "-78" ? "10110010" : X extends "-77" ? "10110011" : X extends "-76" ? "10110100" : X extends "-75" ? "10110101" : X extends "-74" ? "10110110" : X extends "-73" ? "10110111" : X extends "-72" ? "10111000" : X extends "-71" ? "10111001" : X extends "-70" ? "10111010" : X extends "-69" ? "10111011" : X extends "-68" ? "10111100" : X extends "-67" ? "10111101" : X extends "-66" ? "10111110" : X extends "-65" ? "10111111" : X extends "-64" ? "11000000" : X extends "-63" ? "11000001" : X extends "-62" ? "11000010" : X extends "-61" ? "11000011" : X extends "-60" ? "11000100" : X extends "-59" ? "11000101" : X extends "-58" ? "11000110" : X extends "-57" ? "11000111" : X extends "-56" ? "11001000" : X extends "-55" ? "11001001" : X extends "-54" ? "11001010" : X extends "-53" ? "11001011" : X extends "-52" ? "11001100" : X extends "-51" ? "11001101" : X extends "-50" ? "11001110" : X extends "-49" ? "11001111" : X extends "-48" ? "11010000" : X extends "-47" ? "11010001" : X extends "-46" ? "11010010" : X extends "-45" ? "11010011" : X extends "-44" ? "11010100" : X extends "-43" ? "11010101" : X extends "-42" ? "11010110" : X extends "-41" ? "11010111" : X extends "-40" ? "11011000" : X extends "-39" ? "11011001" : X extends "-38" ? "11011010" : X extends "-37" ? "11011011" : X extends "-36" ? "11011100" : X extends "-35" ? "11011101" : X extends "-34" ? "11011110" : X extends "-33" ? "11011111" : X extends "-32" ? "11100000" : X extends "-31" ? "11100001" : X extends "-30" ? "11100010" : X extends "-29" ? "11100011" : X extends "-28" ? "11100100" : X extends "-27" ? "11100101" : X extends "-26" ? "11100110" : X extends "-25" ? "11100111" : X extends "-24" ? "11101000" : X extends "-23" ? "11101001" : X extends "-22" ? "11101010" : X extends "-21" ? "11101011" : X extends "-20" ? "11101100" : X extends "-19" ? "11101101" : X extends "-18" ? "11101110" : X extends "-17" ? "11101111" : X extends "-16" ? "11110000" : X extends "-15" ? "11110001" : X extends "-14" ? "11110010" : X extends "-13" ? "11110011" : X extends "-12" ? "11110100" : X extends "-11" ? "11110101" : X extends "-10" ? "11110110" : X extends "-9" ? "11110111" : X extends "-8" ? "11111000" : X extends "-7" ? "11111001" : X extends "-6" ? "11111010" : X extends "-5" ? "11111011" : X extends "-4" ? "11111100" : X extends "-3" ? "11111101" : X extends "-2" ? "11111110" : X extends "-1" ? "11111111" : never;
|
|
62
|
-
type binaryToHexParser<X extends string, C extends string = "", A extends string = ""> = X extends `${infer F}${infer R}` ? LengthOfString<`${F}${C}`> extends 4 ? binaryToHexParser<R, "", `${A}${decimal4bitToHex<`${binaryToDecimalParser<`${F}${C}`>}`>}`> : binaryToHexParser<R, `${F}${C}`, A> : A;
|
|
63
|
-
export type binaryToHex<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = binaryToHexParser<X>;
|
|
64
|
-
export type hexTobinaryParser<X extends string, C extends string = ""> = LengthOfString<X> extends 1 ? `${C}${decimal4bitTobinary<hex4bitToDecimal<X>>}` : X extends `${infer F}${infer R}` ? hexTobinaryParser<R, `${C}${decimal4bitTobinary<hex4bitToDecimal<F>>}`> : C;
|
|
65
|
-
export type hexTobinary<X extends `${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | "A" | "B" | "C" | "D" | "E" | "F"}${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | "A" | "B" | "C" | "D" | "E" | "F"}`> = hexTobinaryParser<X>;
|
|
66
|
-
export type binaryAND<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`, Y extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = binaryANDParser<X, Y>;
|
|
67
|
-
type binaryANDParser<X extends string, Y extends string, A extends string = ""> = X extends `${infer F}${infer R}` ? Y extends `${infer F2}${infer R2}` ? F extends "1" ? F2 extends "1" ? binaryANDParser<R, R2, `${A}1`> : binaryANDParser<R, R2, `${A}0`> : binaryANDParser<R, R2, `${A}0`> : A : A;
|
|
68
|
-
export type binary1bitAND<X extends `${0 | 1}`, Y extends `${0 | 1}`> = binary1bitANDParser<X, Y>;
|
|
69
|
-
type binary1bitANDParser<X extends string, Y extends string> = X extends "1" ? Y extends "1" ? "1" : "0" : "0";
|
|
70
|
-
export type binaryOR<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`, Y extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = binaryORParser<X, Y>;
|
|
71
|
-
type binaryORParser<X extends string, Y extends string, A extends string = ""> = X extends `${infer F}${infer R}` ? Y extends `${infer F2}${infer R2}` ? F extends "1" ? binaryORParser<R, R2, `${A}1`> : F2 extends "1" ? binaryORParser<R, R2, `${A}1`> : binaryORParser<R, R2, `${A}0`> : A : A;
|
|
72
|
-
export type binary1bitOR<X extends `${0 | 1}`, Y extends `${0 | 1}`> = binary1bitORParser<X, Y>;
|
|
73
|
-
type binary1bitORParser<X extends string, Y extends string> = X extends "1" ? "1" : Y extends "1" ? "1" : "0";
|
|
74
|
-
export type binaryXOR<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`, Y extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = binaryXORParser<X, Y>;
|
|
75
|
-
type binaryXORParser<X extends string, Y extends string, A extends string = ""> = X extends `${infer F}${infer R}` ? Y extends `${infer F2}${infer R2}` ? F extends "1" ? F2 extends "1" ? binaryXORParser<R, R2, `${A}0`> : binaryXORParser<R, R2, `${A}1`> : F2 extends "1" ? binaryXORParser<R, R2, `${A}1`> : binaryXORParser<R, R2, `${A}0`> : A : A;
|
|
76
|
-
export type binary1bitXOR<X extends `${0 | 1}`, Y extends `${0 | 1}`> = binary1bitXORParser<X, Y>;
|
|
77
|
-
type binary1bitXORParser<X extends string, Y extends string> = X extends "1" ? Y extends "1" ? "0" : "1" : Y extends "1" ? "1" : "0";
|
|
78
|
-
export type binaryNAND<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`, Y extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = binaryNANDParser<X, Y>;
|
|
79
|
-
type binaryNANDParser<X extends string, Y extends string, A extends string = ""> = X extends `${infer F}${infer R}` ? Y extends `${infer F2}${infer R2}` ? F extends "1" ? F2 extends "1" ? binaryNANDParser<R, R2, `${A}0`> : binaryNANDParser<R, R2, `${A}1`> : binaryNANDParser<R, R2, `${A}1`> : A : A;
|
|
80
|
-
export type binary1bitNAND<X extends `${0 | 1}`, Y extends `${0 | 1}`> = binary1bitNANDParser<X, Y>;
|
|
81
|
-
type binary1bitNANDParser<X extends string, Y extends string> = X extends "1" ? Y extends "1" ? "0" : "1" : "1";
|
|
82
|
-
export type binaryNOR<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`, Y extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = binaryNORParser<X, Y>;
|
|
83
|
-
type binaryNORParser<X extends string, Y extends string, A extends string = ""> = X extends `${infer F}${infer R}` ? Y extends `${infer F2}${infer R2}` ? F extends "1" ? binaryNORParser<R, R2, `${A}0`> : F2 extends "1" ? binaryNORParser<R, R2, `${A}0`> : binaryNORParser<R, R2, `${A}1`> : A : A;
|
|
84
|
-
export type binary1bitNOR<X extends `${0 | 1}`, Y extends `${0 | 1}`> = binary1bitNORParser<X, Y>;
|
|
85
|
-
type binary1bitNORParser<X extends string, Y extends string> = X extends "1" ? "0" : Y extends "1" ? "0" : "1";
|
|
86
|
-
export type binaryXNOR<X extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`, Y extends `${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}${0 | 1}`> = binaryXNORParser<X, Y>;
|
|
87
|
-
type binaryXNORParser<X extends string, Y extends string, A extends string = ""> = X extends `${infer F}${infer R}` ? Y extends `${infer F2}${infer R2}` ? F extends "1" ? F2 extends "1" ? binaryXNORParser<R, R2, `${A}1`> : binaryXNORParser<R, R2, `${A}0`> : F2 extends "1" ? binaryXNORParser<R, R2, `${A}0`> : binaryXNORParser<R, R2, `${A}1`> : A : A;
|
|
88
|
-
export type binary1bitXNOR<X extends `${0 | 1}`, Y extends `${0 | 1}`> = binary1bitXNORParser<X, Y>;
|
|
89
|
-
type binary1bitXNORParser<X extends string, Y extends string> = X extends "1" ? Y extends "1" ? "1" : "0" : Y extends "1" ? "0" : "1";
|
|
90
|
-
export type binaryNOT<X extends `${0 | 1}`> = binaryNOTParser<X>;
|
|
91
|
-
type binaryNOTParser<X extends string> = X extends "1" ? "0" : "1";
|
|
92
|
-
export type ArrayToUnion<X extends unknown[]> = X[number];
|
|
93
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logicType.js","sourceRoot":"","sources":["../../src/types/logicType.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BGreaterThanA, Length } from "./logicType";
|
|
2
|
-
export type NumberToArray<T extends number, U extends number[] = []> = U["length"] extends T ? U : NumberToArray<T, [...U, U["length"]]>;
|
|
3
|
-
export type Add<X extends number, Y extends number> = `${X}` extends `-${infer N extends number}` ? `${Y}` extends `-${infer M extends number}` ? `-${Add<N, M>}` extends `${infer R extends number}` ? R : never : Subtract<Y, N> : `${Y}` extends `-${infer M extends number}` ? Subtract<X, M> : Length<[...NumberToArray<X>, ...NumberToArray<Y>]>;
|
|
4
|
-
export type Subtract<A extends number, B extends number> = `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? Subtract<M, N> : `-${Add<N, B>}` extends `${infer R extends number}` ? R : never : `${B}` extends `-${infer M extends number}` ? Length<[...NumberToArray<A>, ...NumberToArray<M>]> : NumberToArray<A> extends [...NumberToArray<B>, ...infer R] ? Length<R> : NumberToArray<B> extends [...NumberToArray<A>, ...infer R] ? `-${Length<R>}` extends `${infer M extends number}` ? M : never : never;
|
|
5
|
-
export type Multiply<A extends number, B extends number> = MultiHelper<A, B>;
|
|
6
|
-
type MultiHelper<X extends number, Y extends number, A extends number = 0> = `${X}` extends `-${infer N extends number}` ? `${Y}` extends `-${infer M extends number}` ? MultiHelper<N, M, A> : `-${MultiHelper<N, Y, A>}` extends `${infer R extends number}` ? R : never : `${Y}` extends `-${infer M extends number}` ? `-${MultiHelper<X, M, A>}` extends `${infer R extends number}` ? R : never : Y extends 0 ? A : MultiHelper<X, Subtract<Y, 1>, Add<X, A>>;
|
|
7
|
-
export type Divide<A extends number, B extends number> = A extends 0 ? never : B extends 0 ? never : `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? DivideHelper<N, M> : `-${DivideHelper<N, B>}` extends `${infer R extends number}` ? R : never : `${B}` extends `-${infer M extends number}` ? `-${DivideHelper<A, M>}` extends `${infer R extends number}` ? R : never : DivideHelper<A, B>;
|
|
8
|
-
type DivideHelper<X extends number, Y extends number, A extends number = 0> = BGreaterThanA<X, Y> extends true ? A : DivideHelper<Subtract<X, Y>, Y, Add<A, 1>>;
|
|
9
|
-
export type Modulo<A extends number, B extends number> = `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? Modulo<N, M> : Modulo<N, B> : `${B}` extends `-${infer M extends number}` ? Modulo<A, M> : BGreaterThanA<A, B> extends true ? A : Modulo<Subtract<A, B>, B>;
|
|
10
|
-
export {};
|
package/module/types/mathType.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mathType.js","sourceRoot":"","sources":["../../src/types/mathType.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|