inferred-types 0.46.1 → 0.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/Marked.d.ts +7 -0
- package/dist/constants/Marked.d.ts.map +1 -1
- package/dist/constants/Never.d.ts.map +1 -1
- package/dist/constants/Tailwind.d.ts +31 -0
- package/dist/constants/Tailwind.d.ts.map +1 -0
- package/dist/constants/Tailwind.js +30 -0
- package/dist/constants/TypeTokens.d.ts +15 -0
- package/dist/constants/TypeTokens.d.ts.map +1 -1
- package/dist/constants/TypeTokens.js +92 -0
- package/dist/constants/Wide.d.ts +2 -1
- package/dist/constants/Wide.d.ts.map +1 -1
- package/dist/constants/Wide.js +0 -1
- package/dist/constants/createConstant.d.ts.map +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +1 -0
- package/dist/constants/tsconfig.tsbuildinfo +1 -1
- package/dist/inferred-types/index.cjs +1827 -1076
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/api/defineApi.d.ts +1 -36
- package/dist/runtime/api/defineApi.d.ts.map +1 -1
- package/dist/runtime/api/defineApi.js +90 -73
- package/dist/runtime/api/handleDoneFn.d.ts.map +1 -1
- package/dist/runtime/api/index.d.ts +1 -1
- package/dist/runtime/boolean-logic/ifArray.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifArrayPartial.d.ts +1 -1
- package/dist/runtime/boolean-logic/ifArrayPartial.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifBoolean.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifChar.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifFalse.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifHasKey.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifLength.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifNotNull.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifNull.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifNumber.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifScalar.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifString.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifTrue.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifUndefined.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifUndefined.js +1 -1
- package/dist/runtime/combinators/and.d.ts.map +1 -1
- package/dist/runtime/combinators/or.d.ts.map +1 -1
- package/dist/runtime/dictionary/entries.js +1 -1
- package/dist/runtime/dictionary/get.d.ts.map +1 -1
- package/dist/runtime/dictionary/keysOf.d.ts.map +1 -1
- package/dist/runtime/dictionary/omit.d.ts.map +1 -1
- package/dist/runtime/dictionary/retain.d.ts +4 -9
- package/dist/runtime/dictionary/retain.d.ts.map +1 -1
- package/dist/runtime/dictionary/sharedKeys.d.ts +1 -1
- package/dist/runtime/dictionary/sharedKeys.d.ts.map +1 -1
- package/dist/runtime/dictionary/takeProp.d.ts.map +1 -1
- package/dist/runtime/dictionary/valuesOf.d.ts.map +1 -1
- package/dist/runtime/dictionary/withDefaults.d.ts.map +1 -1
- package/dist/runtime/dictionary/withKeys.d.ts +2 -2
- package/dist/runtime/dictionary/withKeys.d.ts.map +1 -1
- package/dist/runtime/dictionary/withoutKeys.d.ts +1 -13
- package/dist/runtime/dictionary/withoutKeys.d.ts.map +1 -1
- package/dist/runtime/dictionary/withoutValue.d.ts.map +1 -1
- package/dist/runtime/errors/KindError.d.ts.map +1 -1
- package/dist/runtime/errors/TypedError.d.ts.map +1 -1
- package/dist/runtime/errors/createErrorCondition.d.ts +5 -0
- package/dist/runtime/errors/createErrorCondition.d.ts.map +1 -1
- package/dist/runtime/errors/createErrorCondition.js +5 -0
- package/dist/runtime/errors/kindedError.d.ts.map +1 -1
- package/dist/runtime/functions/fnMeta.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +2 -0
- package/dist/runtime/initializers/addFnToProps.d.ts +2 -2
- package/dist/runtime/initializers/addFnToProps.d.ts.map +1 -1
- package/dist/runtime/initializers/addPropsToFn.d.ts +2 -2
- package/dist/runtime/initializers/addPropsToFn.d.ts.map +1 -1
- package/dist/runtime/initializers/createFnWithProps.d.ts.map +1 -1
- package/dist/runtime/initializers/defineObj.d.ts +2 -2
- package/dist/runtime/initializers/defineObj.d.ts.map +1 -1
- package/dist/runtime/initializers/defineTuple.d.ts.map +1 -1
- package/dist/runtime/lists/asArray.d.ts.map +1 -1
- package/dist/runtime/lists/createComparison.d.ts +2 -3
- package/dist/runtime/lists/createComparison.d.ts.map +1 -1
- package/dist/runtime/lists/createComparison.js +1 -1
- package/dist/runtime/lists/createConverter.d.ts +1 -1
- package/dist/runtime/lists/createConverter.d.ts.map +1 -1
- package/dist/runtime/lists/filter.d.ts +1 -1
- package/dist/runtime/lists/filter.js +4 -4
- package/dist/runtime/lists/find.d.ts +1 -1
- package/dist/runtime/lists/find.d.ts.map +1 -1
- package/dist/runtime/lists/index.d.ts +0 -1
- package/dist/runtime/lists/index.d.ts.map +1 -1
- package/dist/runtime/lists/index.js +0 -1
- package/dist/runtime/lists/indexOf.d.ts.map +1 -1
- package/dist/runtime/lists/indexOf.js +8 -5
- package/dist/runtime/lists/intersection.d.ts.map +1 -1
- package/dist/runtime/lists/join.d.ts +1 -1
- package/dist/runtime/lists/join.d.ts.map +1 -1
- package/dist/runtime/lists/join.js +6 -2
- package/dist/runtime/lists/last.d.ts +2 -2
- package/dist/runtime/lists/last.d.ts.map +1 -1
- package/dist/runtime/lists/logicalReturns.d.ts.map +1 -1
- package/dist/runtime/lists/reverse.d.ts.map +1 -1
- package/dist/runtime/lists/shift.d.ts +17 -5
- package/dist/runtime/lists/shift.d.ts.map +1 -1
- package/dist/runtime/lists/shift.js +33 -5
- package/dist/runtime/lists/slice.d.ts +2 -2
- package/dist/runtime/lists/slice.d.ts.map +1 -1
- package/dist/runtime/lists/unique.d.ts +2 -2
- package/dist/runtime/lists/unique.d.ts.map +1 -1
- package/dist/runtime/literals/box.d.ts.map +1 -1
- package/dist/runtime/literals/ensureLeading.d.ts +2 -2
- package/dist/runtime/literals/ensureLeading.d.ts.map +1 -1
- package/dist/runtime/literals/ensureLeading.js +6 -2
- package/dist/runtime/literals/ensureSurround.d.ts.map +1 -1
- package/dist/runtime/literals/ensureSurround.js +3 -1
- package/dist/runtime/literals/identity.d.ts.map +1 -1
- package/dist/runtime/literals/index.d.ts +2 -1
- package/dist/runtime/literals/index.d.ts.map +1 -1
- package/dist/runtime/literals/index.js +2 -1
- package/dist/runtime/literals/narrow.d.ts.map +1 -1
- package/dist/runtime/literals/phone/asPhoneNumber.d.ts +2 -0
- package/dist/runtime/literals/phone/asPhoneNumber.d.ts.map +1 -0
- package/dist/runtime/literals/phone/asPhoneNumber.js +62 -0
- package/dist/runtime/literals/phone/getPhoneCountryCode.d.ts +3 -0
- package/dist/runtime/literals/phone/getPhoneCountryCode.d.ts.map +1 -0
- package/dist/runtime/literals/phone/getPhoneCountryCode.js +7 -0
- package/dist/runtime/literals/phone/index.d.ts +4 -0
- package/dist/runtime/literals/phone/index.d.ts.map +1 -0
- package/dist/runtime/literals/phone/index.js +3 -0
- package/dist/runtime/literals/phone/removePhoneCountryCode.d.ts +3 -0
- package/dist/runtime/literals/phone/removePhoneCountryCode.d.ts.map +1 -0
- package/dist/runtime/literals/phone/removePhoneCountryCode.js +7 -0
- package/dist/runtime/literals/pluralize.d.ts.map +1 -1
- package/dist/runtime/literals/pluralize.js +4 -1
- package/dist/runtime/literals/retainAfter.d.ts.map +1 -1
- package/dist/runtime/literals/retainChars.d.ts +1 -1
- package/dist/runtime/literals/retainChars.d.ts.map +1 -1
- package/dist/runtime/literals/retainChars.js +2 -1
- package/dist/runtime/literals/retainWhile.d.ts.map +1 -1
- package/dist/runtime/literals/split.d.ts.map +1 -1
- package/dist/runtime/literals/stripAfter.d.ts.map +1 -1
- package/dist/runtime/literals/stripBefore.d.ts.map +1 -1
- package/dist/runtime/literals/stripChars.d.ts +1 -1
- package/dist/runtime/literals/stripChars.d.ts.map +1 -1
- package/dist/runtime/literals/stripChars.js +2 -1
- package/dist/runtime/literals/stripLeading.d.ts +1 -1
- package/dist/runtime/literals/stripLeading.d.ts.map +1 -1
- package/dist/runtime/literals/stripLeading.js +8 -6
- package/dist/runtime/literals/stripSurround.d.ts +19 -0
- package/dist/runtime/literals/stripSurround.d.ts.map +1 -0
- package/dist/runtime/literals/stripSurround.js +30 -0
- package/dist/runtime/literals/stripTrailing.d.ts +2 -2
- package/dist/runtime/literals/stripTrailing.d.ts.map +1 -1
- package/dist/runtime/literals/stripTrailing.js +9 -10
- package/dist/runtime/literals/stripUntil.d.ts.map +1 -1
- package/dist/runtime/literals/takeNumericCharacters.d.ts +2 -2
- package/dist/runtime/literals/takeNumericCharacters.d.ts.map +1 -1
- package/dist/runtime/literals/toKebabCase.d.ts.map +1 -1
- package/dist/runtime/literals/toNumericArray.d.ts +2 -2
- package/dist/runtime/literals/toNumericArray.d.ts.map +1 -1
- package/dist/runtime/literals/toPascalCase.d.ts.map +1 -1
- package/dist/runtime/literals/truncate.d.ts +1 -1
- package/dist/runtime/literals/truncate.d.ts.map +1 -1
- package/dist/runtime/literals/tuple.d.ts +1 -1
- package/dist/runtime/literals/tuple.d.ts.map +1 -1
- package/dist/runtime/meta/urlMeta.d.ts.map +1 -1
- package/dist/runtime/meta/urlMeta.js +8 -5
- package/dist/runtime/meta/youtube-meta.d.ts.map +1 -1
- package/dist/runtime/queues/fifo.d.ts +3 -0
- package/dist/runtime/queues/fifo.d.ts.map +1 -0
- package/dist/runtime/queues/fifo.js +40 -0
- package/dist/runtime/queues/index.d.ts +3 -0
- package/dist/runtime/queues/index.d.ts.map +1 -0
- package/dist/runtime/queues/index.js +2 -0
- package/dist/runtime/queues/lifo.d.ts +3 -0
- package/dist/runtime/queues/lifo.d.ts.map +1 -0
- package/dist/runtime/queues/lifo.js +34 -0
- package/dist/runtime/runtime-types/asToken.d.ts +35 -0
- package/dist/runtime/runtime-types/asToken.d.ts.map +1 -0
- package/dist/runtime/runtime-types/asToken.js +115 -0
- package/dist/runtime/runtime-types/asType.d.ts +4 -0
- package/dist/runtime/runtime-types/asType.d.ts.map +1 -0
- package/dist/runtime/runtime-types/asType.js +6 -0
- package/dist/runtime/runtime-types/choices.js +8 -8
- package/dist/runtime/runtime-types/index.d.ts +3 -2
- package/dist/runtime/runtime-types/index.d.ts.map +1 -1
- package/dist/runtime/runtime-types/index.js +3 -2
- package/dist/runtime/runtime-types/ip6Prefix.d.ts +2 -2
- package/dist/runtime/runtime-types/ip6Prefix.d.ts.map +1 -1
- package/dist/runtime/runtime-types/list.d.ts.map +1 -1
- package/dist/runtime/runtime-types/rec.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/addToken.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/atomics.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/functions.d.ts +7 -2
- package/dist/runtime/runtime-types/shape-helpers/functions.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/functions.js +5 -0
- package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts +2 -1
- package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts +2 -1
- package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/literal-containers.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/regexToken.d.ts +12 -0
- package/dist/runtime/runtime-types/shape-helpers/regexToken.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/regexToken.js +39 -0
- package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts +10 -0
- package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/singletons.js +15 -0
- package/dist/runtime/runtime-types/shape-helpers/union.d.ts +5 -0
- package/dist/runtime/runtime-types/shape-helpers/union.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/union.js +5 -0
- package/dist/runtime/runtime-types/shape-helpers/wide-containers.d.ts +1 -1
- package/dist/runtime/runtime-types/shape-helpers/wide-containers.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape.d.ts +2 -2
- package/dist/runtime/runtime-types/shape.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape.js +1 -1
- package/dist/runtime/runtime-types/tokens/createTypeToken.d.ts +30 -0
- package/dist/runtime/runtime-types/tokens/createTypeToken.d.ts.map +1 -0
- package/dist/runtime/runtime-types/tokens/createTypeToken.js +29 -0
- package/dist/runtime/runtime-types/tokens/index.d.ts +3 -0
- package/dist/runtime/runtime-types/tokens/index.d.ts.map +1 -0
- package/dist/runtime/runtime-types/tokens/index.js +2 -0
- package/dist/runtime/runtime-types/tokens/simpleToken.d.ts +51 -0
- package/dist/runtime/runtime-types/tokens/simpleToken.d.ts.map +1 -0
- package/dist/runtime/runtime-types/tokens/simpleToken.js +64 -0
- package/dist/runtime/sets/uniqueKeys.d.ts.map +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-conversion/asChars.d.ts.map +1 -1
- package/dist/runtime/type-conversion/asRecord.d.ts +1 -1
- package/dist/runtime/type-conversion/asRecord.d.ts.map +1 -1
- package/dist/runtime/type-conversion/asString.d.ts +7 -1
- package/dist/runtime/type-conversion/asString.d.ts.map +1 -1
- package/dist/runtime/type-conversion/asString.js +11 -3
- package/dist/runtime/type-conversion/csv.d.ts +17 -0
- package/dist/runtime/type-conversion/csv.d.ts.map +1 -0
- package/dist/runtime/type-conversion/csv.js +31 -0
- package/dist/runtime/type-conversion/index.d.ts +2 -0
- package/dist/runtime/type-conversion/index.d.ts.map +1 -1
- package/dist/runtime/type-conversion/index.js +2 -0
- package/dist/runtime/type-conversion/ip6GroupExpansion.d.ts.map +1 -1
- package/dist/runtime/type-conversion/json.d.ts +18 -0
- package/dist/runtime/type-conversion/json.d.ts.map +1 -0
- package/dist/runtime/type-conversion/json.js +27 -0
- package/dist/runtime/type-conversion/mergeObjects.d.ts.map +1 -1
- package/dist/runtime/type-conversion/mergeScalars.d.ts.map +1 -1
- package/dist/runtime/type-conversion/optional.d.ts +20 -4
- package/dist/runtime/type-conversion/optional.d.ts.map +1 -1
- package/dist/runtime/type-conversion/optional.js +24 -6
- package/dist/runtime/type-conversion/union.d.ts.map +1 -1
- package/dist/runtime/type-guards/api-tg.d.ts.map +1 -1
- package/dist/runtime/type-guards/hasErrorConditions.d.ts +2 -4
- package/dist/runtime/type-guards/hasErrorConditions.d.ts.map +1 -1
- package/dist/runtime/type-guards/hasIndexOf.d.ts +2 -2
- package/dist/runtime/type-guards/hasIndexOf.d.ts.map +1 -1
- package/dist/runtime/type-guards/hasKeys.d.ts.map +1 -1
- package/dist/runtime/type-guards/hasWhitespace.d.ts.map +1 -1
- package/dist/runtime/type-guards/hasWhitespace.js +1 -1
- package/dist/runtime/type-guards/higher-order/endsWith.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/isEqual.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/isEqual.js +1 -1
- package/dist/runtime/type-guards/higher-order/isLength.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/isLength.js +1 -5
- package/dist/runtime/type-guards/higher-order/isSameTypeOf.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/isTuple.d.ts +1 -2
- package/dist/runtime/type-guards/higher-order/isTuple.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/isTuple.js +1 -2
- package/dist/runtime/type-guards/higher-order/isTypeOf.d.ts +1 -1
- package/dist/runtime/type-guards/higher-order/isTypeOf.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/startsWith.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/startsWith.js +1 -2
- package/dist/runtime/type-guards/index.d.ts +5 -0
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +5 -0
- package/dist/runtime/type-guards/isAlpha.d.ts.map +1 -1
- package/dist/runtime/type-guards/isBooleanLike.d.ts +9 -0
- package/dist/runtime/type-guards/isBooleanLike.d.ts.map +1 -0
- package/dist/runtime/type-guards/isBooleanLike.js +11 -0
- package/dist/runtime/type-guards/isCssAspectRatio.d.ts +1 -1
- package/dist/runtime/type-guards/isCssAspectRatio.d.ts.map +1 -1
- package/dist/runtime/type-guards/isDoneFn.d.ts.map +1 -1
- package/dist/runtime/type-guards/isEmail.d.ts +2 -1
- package/dist/runtime/type-guards/isEmail.d.ts.map +1 -1
- package/dist/runtime/type-guards/isEmail.js +10 -4
- package/dist/runtime/type-guards/isFalsy.d.ts.map +1 -1
- package/dist/runtime/type-guards/isHexadecimal.d.ts.map +1 -1
- package/dist/runtime/type-guards/isInlineSvg.d.ts +2 -1
- package/dist/runtime/type-guards/isInlineSvg.d.ts.map +1 -1
- package/dist/runtime/type-guards/isLeftRight.d.ts +2 -2
- package/dist/runtime/type-guards/isLeftRight.d.ts.map +1 -1
- package/dist/runtime/type-guards/isNever.d.ts.map +1 -1
- package/dist/runtime/type-guards/isNumericString.d.ts +8 -0
- package/dist/runtime/type-guards/isNumericString.d.ts.map +1 -1
- package/dist/runtime/type-guards/isNumericString.js +11 -0
- package/dist/runtime/type-guards/isPhoneNumber.d.ts +1 -1
- package/dist/runtime/type-guards/isPhoneNumber.d.ts.map +1 -1
- package/dist/runtime/type-guards/isPhoneNumber.js +16 -10
- package/dist/runtime/type-guards/isRegExp.d.ts +17 -0
- package/dist/runtime/type-guards/isRegExp.d.ts.map +1 -0
- package/dist/runtime/type-guards/isRegExp.js +32 -0
- package/dist/runtime/type-guards/isRuntimeUnion.d.ts.map +1 -1
- package/dist/runtime/type-guards/isSpecificConstant.d.ts.map +1 -1
- package/dist/runtime/type-guards/isTrimmable.d.ts.map +1 -1
- package/dist/runtime/type-guards/isTruthy.d.ts.map +1 -1
- package/dist/runtime/type-guards/isUnset.d.ts.map +1 -1
- package/dist/runtime/type-guards/isUrl.d.ts +3 -3
- package/dist/runtime/type-guards/isUrl.d.ts.map +1 -1
- package/dist/runtime/type-guards/network-tg.d.ts +6 -7
- package/dist/runtime/type-guards/network-tg.d.ts.map +1 -1
- package/dist/runtime/type-guards/network-tg.js +4 -9
- package/dist/runtime/type-guards/repos.d.ts +9 -7
- package/dist/runtime/type-guards/repos.d.ts.map +1 -1
- package/dist/runtime/type-guards/repos.js +1 -3
- package/dist/runtime/type-guards/tokens/index.d.ts +6 -0
- package/dist/runtime/type-guards/tokens/index.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/index.js +5 -0
- package/dist/runtime/type-guards/tokens/isAtomicToken.d.ts +9 -0
- package/dist/runtime/type-guards/tokens/isAtomicToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isAtomicToken.js +12 -0
- package/dist/runtime/type-guards/tokens/isContainerToken.d.ts +21 -0
- package/dist/runtime/type-guards/tokens/isContainerToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isContainerToken.js +48 -0
- package/dist/runtime/type-guards/tokens/isFunctionToken.d.ts +4 -0
- package/dist/runtime/type-guards/tokens/isFunctionToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isFunctionToken.js +7 -0
- package/dist/runtime/type-guards/tokens/isShapeToken.d.ts +9 -0
- package/dist/runtime/type-guards/tokens/isShapeToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isShapeToken.js +21 -0
- package/dist/runtime/type-guards/tokens/isSimpleToken.d.ts +53 -0
- package/dist/runtime/type-guards/tokens/isSimpleToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isSimpleToken.js +74 -0
- package/dist/runtime/type-guards/tokens/isSingletonToken.d.ts +9 -0
- package/dist/runtime/type-guards/tokens/isSingletonToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isSingletonToken.js +12 -0
- package/dist/runtime/type-guards/tokens/isTupleToken.d.ts +1 -0
- package/dist/runtime/type-guards/tokens/isTupleToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isTupleToken.js +1 -0
- package/dist/runtime/type-guards/tokens/isUnionSetToken.d.ts +1 -0
- package/dist/runtime/type-guards/tokens/isUnionSetToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isUnionSetToken.js +1 -0
- package/dist/runtime/type-guards/tokens/isUnionToken.d.ts +9 -0
- package/dist/runtime/type-guards/tokens/isUnionToken.d.ts.map +1 -0
- package/dist/runtime/type-guards/tokens/isUnionToken.js +12 -0
- package/dist/runtime/type-guards/youtube.d.ts +5 -5
- package/dist/runtime/type-guards/youtube.d.ts.map +1 -1
- package/dist/runtime/type-guards/youtube.js +1 -3
- package/dist/runtime/vuejs/asVueRef.d.ts +1 -1
- package/dist/runtime/vuejs/asVueRef.d.ts.map +1 -1
- package/dist/types/base-types/LikeRegExp.d.ts +9 -0
- package/dist/types/base-types/LikeRegExp.d.ts.map +1 -0
- package/dist/types/base-types/Something.d.ts.map +1 -1
- package/dist/types/base-types/Something.js +1 -0
- package/dist/types/base-types/fns/AnyFunction.d.ts.map +1 -1
- package/dist/types/base-types/fns/AnyFunction.js +1 -1
- package/dist/types/base-types/fns/FnAllowingProps.d.ts +11 -0
- package/dist/types/base-types/fns/FnAllowingProps.d.ts.map +1 -0
- package/dist/types/base-types/fns/index.d.ts +1 -2
- package/dist/types/base-types/fns/index.d.ts.map +1 -1
- package/dist/types/base-types/fns/index.js +1 -2
- package/dist/types/base-types/index.d.ts +1 -0
- package/dist/types/base-types/index.d.ts.map +1 -1
- package/dist/types/base-types/index.js +1 -0
- package/dist/types/boolean-logic/branching/OnPass.d.ts.map +1 -1
- package/dist/types/boolean-logic/combinators/Compare.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/AreSameLength.d.ts +2 -2
- package/dist/types/boolean-logic/operators/AreSameLength.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/Contains.d.ts +4 -3
- package/dist/types/boolean-logic/operators/Contains.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasArray.d.ts +10 -0
- package/dist/types/boolean-logic/operators/HasArray.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/HasRequiredProps.d.ts +1 -2
- package/dist/types/boolean-logic/operators/HasRequiredProps.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HaveSameNumericSign.d.ts +9 -0
- package/dist/types/boolean-logic/operators/HaveSameNumericSign.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/HaveSameNumericSign.js +1 -0
- package/dist/types/boolean-logic/operators/IsEmptyString.d.ts +12 -0
- package/dist/types/boolean-logic/operators/IsEmptyString.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsEmptyString.js +1 -0
- package/dist/types/boolean-logic/operators/IsFloat.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsFloat.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts +8 -2
- package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsInteger.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsInteger.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsLessThan.d.ts +8 -2
- package/dist/types/boolean-logic/operators/IsLessThan.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts +2 -4
- package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsNonLiteralUnion.d.ts +1 -1
- package/dist/types/boolean-logic/operators/IsNonLiteralUnion.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsPositiveNumber.d.ts +11 -0
- package/dist/types/boolean-logic/operators/IsPositiveNumber.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsPositiveNumber.js +1 -0
- package/dist/types/boolean-logic/operators/IsTuple.d.ts +1 -1
- package/dist/types/boolean-logic/operators/IsUrl.d.ts +7 -8
- package/dist/types/boolean-logic/operators/IsUrl.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/MaybeError.d.ts +20 -0
- package/dist/types/boolean-logic/operators/MaybeError.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/MaybeError.js +2 -0
- package/dist/types/boolean-logic/operators/PhoneOperators.d.ts +2 -3
- package/dist/types/boolean-logic/operators/PhoneOperators.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/StartsWith.d.ts +8 -9
- package/dist/types/boolean-logic/operators/StartsWith.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/UnionHasArray.d.ts +14 -0
- package/dist/types/boolean-logic/operators/UnionHasArray.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/UnionHasArray.js +1 -0
- package/dist/types/boolean-logic/operators/index.d.ts +6 -0
- package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/index.js +6 -0
- package/dist/types/containers/RemoveEmpty.d.ts +30 -0
- package/dist/types/containers/RemoveEmpty.d.ts.map +1 -0
- package/dist/types/containers/RemoveEmpty.js +1 -0
- package/dist/types/containers/RemoveMarked.d.ts +1 -1
- package/dist/types/containers/RemoveMarked.d.ts.map +1 -1
- package/dist/types/containers/RemoveUndefined.d.ts +1 -7
- package/dist/types/containers/RemoveUndefined.d.ts.map +1 -1
- package/dist/types/containers/index.d.ts +1 -0
- package/dist/types/containers/index.d.ts.map +1 -1
- package/dist/types/containers/index.js +1 -0
- package/dist/types/dictionary/EnsureKeys.d.ts +1 -3
- package/dist/types/dictionary/EnsureKeys.d.ts.map +1 -1
- package/dist/types/dictionary/Keys.d.ts +2 -2
- package/dist/types/dictionary/Keys.d.ts.map +1 -1
- package/dist/types/dictionary/OptionalKeys.d.ts +2 -2
- package/dist/types/dictionary/OptionalKeys.d.ts.map +1 -1
- package/dist/types/dictionary/OptionalKeys.js +0 -1
- package/dist/types/dictionary/RequireProps.d.ts +2 -2
- package/dist/types/dictionary/RequireProps.d.ts.map +1 -1
- package/dist/types/dictionary/RequiredKeys.d.ts +2 -2
- package/dist/types/dictionary/RequiredKeys.d.ts.map +1 -1
- package/dist/types/dictionary/WithValue.d.ts +2 -3
- package/dist/types/dictionary/WithValue.d.ts.map +1 -1
- package/dist/types/dictionary/WithoutKeys.d.ts +3 -3
- package/dist/types/dictionary/WithoutKeys.d.ts.map +1 -1
- package/dist/types/functional/Result.d.ts +1 -1
- package/dist/types/functional/Result.d.ts.map +1 -1
- package/dist/types/functions/FnFrom.d.ts +1 -1
- package/dist/types/functions/FnFrom.d.ts.map +1 -1
- package/dist/types/functions/FnWithProps.d.ts +10 -0
- package/dist/types/functions/FnWithProps.d.ts.map +1 -0
- package/dist/types/functions/FnWithProps.js +1 -0
- package/dist/types/functions/IdentityFn.d.ts +1 -2
- package/dist/types/functions/IdentityFn.d.ts.map +1 -1
- package/dist/types/functions/index.d.ts +1 -0
- package/dist/types/functions/index.d.ts.map +1 -1
- package/dist/types/functions/index.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/lists/AsArray.d.ts +7 -2
- package/dist/types/lists/AsArray.d.ts.map +1 -1
- package/dist/types/lists/BeforeLast.d.ts +3 -3
- package/dist/types/lists/Filter.d.ts +2 -9
- package/dist/types/lists/Filter.d.ts.map +1 -1
- package/dist/types/lists/FilterByProp.d.ts +37 -0
- package/dist/types/lists/FilterByProp.d.ts.map +1 -0
- package/dist/types/lists/FilterByProp.js +1 -0
- package/dist/types/lists/Flatten.d.ts +31 -14
- package/dist/types/lists/Flatten.d.ts.map +1 -1
- package/dist/types/lists/Last.d.ts +2 -2
- package/dist/types/lists/Last.d.ts.map +1 -1
- package/dist/types/lists/Length.d.ts +3 -4
- package/dist/types/lists/Length.d.ts.map +1 -1
- package/dist/types/lists/RetainByProp.d.ts +38 -0
- package/dist/types/lists/RetainByProp.d.ts.map +1 -0
- package/dist/types/lists/RetainByProp.js +1 -0
- package/dist/types/lists/Shift.d.ts +5 -3
- package/dist/types/lists/Shift.d.ts.map +1 -1
- package/dist/types/lists/Slice.d.ts +17 -9
- package/dist/types/lists/Slice.d.ts.map +1 -1
- package/dist/types/lists/TakeFirst.d.ts +21 -0
- package/dist/types/lists/TakeFirst.d.ts.map +1 -0
- package/dist/types/lists/TakeFirst.js +1 -0
- package/dist/types/lists/TakeLast.d.ts +16 -0
- package/dist/types/lists/TakeLast.d.ts.map +1 -0
- package/dist/types/lists/TakeLast.js +1 -0
- package/dist/types/lists/index.d.ts +4 -0
- package/dist/types/lists/index.d.ts.map +1 -1
- package/dist/types/lists/index.js +4 -0
- package/dist/types/literals/BooleanLike.d.ts +8 -0
- package/dist/types/literals/BooleanLike.d.ts.map +1 -0
- package/dist/types/literals/BooleanLike.js +1 -0
- package/dist/types/literals/NarrowableDefined.d.ts +2 -1
- package/dist/types/literals/NarrowableDefined.d.ts.map +1 -1
- package/dist/types/literals/NarrowableDefined.js +0 -1
- package/dist/types/literals/Shape.d.ts +10 -1
- package/dist/types/literals/Shape.d.ts.map +1 -1
- package/dist/types/literals/index.d.ts +1 -0
- package/dist/types/literals/index.d.ts.map +1 -1
- package/dist/types/literals/index.js +1 -0
- package/dist/types/numeric-literals/Abs.d.ts +2 -2
- package/dist/types/numeric-literals/Abs.d.ts.map +1 -1
- package/dist/types/numeric-literals/Add.d.ts +5 -3
- package/dist/types/numeric-literals/Add.d.ts.map +1 -1
- package/dist/types/numeric-literals/AsNegativeNumber.d.ts +12 -0
- package/dist/types/numeric-literals/AsNegativeNumber.d.ts.map +1 -0
- package/dist/types/numeric-literals/AsNegativeNumber.js +1 -0
- package/dist/types/numeric-literals/CSV.d.ts +73 -0
- package/dist/types/numeric-literals/CSV.d.ts.map +1 -0
- package/dist/types/numeric-literals/CSV.js +1 -0
- package/dist/types/numeric-literals/Delta.d.ts +14 -0
- package/dist/types/numeric-literals/Delta.d.ts.map +1 -0
- package/dist/types/numeric-literals/Delta.js +1 -0
- package/dist/types/numeric-literals/Digit.d.ts +2 -3
- package/dist/types/numeric-literals/Digit.d.ts.map +1 -1
- package/dist/types/numeric-literals/Digitize.d.ts +10 -20
- package/dist/types/numeric-literals/Digitize.d.ts.map +1 -1
- package/dist/types/numeric-literals/Increment.d.ts +2 -5
- package/dist/types/numeric-literals/Increment.d.ts.map +1 -1
- package/dist/types/numeric-literals/InvertNumericSign.d.ts +9 -0
- package/dist/types/numeric-literals/InvertNumericSign.d.ts.map +1 -0
- package/dist/types/numeric-literals/InvertNumericSign.js +1 -0
- package/dist/types/numeric-literals/NumberLike.d.ts.map +1 -1
- package/dist/types/numeric-literals/Subtract.d.ts +11 -8
- package/dist/types/numeric-literals/Subtract.d.ts.map +1 -1
- package/dist/types/numeric-literals/Zero.d.ts +8 -0
- package/dist/types/numeric-literals/Zero.d.ts.map +1 -0
- package/dist/types/numeric-literals/Zero.js +1 -0
- package/dist/types/numeric-literals/index.d.ts +5 -0
- package/dist/types/numeric-literals/index.d.ts.map +1 -1
- package/dist/types/numeric-literals/index.js +5 -0
- package/dist/types/queues/FifoQueue.d.ts +31 -0
- package/dist/types/queues/FifoQueue.d.ts.map +1 -0
- package/dist/types/queues/FifoQueue.js +1 -0
- package/dist/types/queues/LifoQueue.d.ts +31 -0
- package/dist/types/queues/LifoQueue.d.ts.map +1 -0
- package/dist/types/queues/LifoQueue.js +1 -0
- package/dist/types/queues/index.d.ts +3 -0
- package/dist/types/queues/index.d.ts.map +1 -0
- package/dist/types/queues/index.js +2 -0
- package/dist/types/runtime-types/AsType.d.ts +16 -0
- package/dist/types/runtime-types/AsType.d.ts.map +1 -0
- package/dist/types/runtime-types/AsType.js +1 -0
- package/dist/types/runtime-types/SimpleType.d.ts +47 -0
- package/dist/types/runtime-types/SimpleType.d.ts.map +1 -0
- package/dist/types/runtime-types/SimpleType.js +1 -0
- package/dist/types/runtime-types/Type.d.ts +1 -1
- package/dist/types/runtime-types/Type.d.ts.map +1 -1
- package/dist/types/runtime-types/TypeOf.d.ts +1 -1
- package/dist/types/runtime-types/TypeOf.d.ts.map +1 -1
- package/dist/types/runtime-types/TypeToken.d.ts +119 -9
- package/dist/types/runtime-types/TypeToken.d.ts.map +1 -1
- package/dist/types/runtime-types/index.d.ts +2 -1
- package/dist/types/runtime-types/index.d.ts.map +1 -1
- package/dist/types/runtime-types/index.js +2 -1
- package/dist/types/sets/Intersection.d.ts +1 -1
- package/dist/types/sets/Intersection.d.ts.map +1 -1
- package/dist/types/string-literals/Date.d.ts +4 -4
- package/dist/types/string-literals/Date.d.ts.map +1 -1
- package/dist/types/string-literals/EnsureLeading.d.ts +10 -6
- package/dist/types/string-literals/EnsureLeading.d.ts.map +1 -1
- package/dist/types/string-literals/EnsureTrailing.d.ts +5 -6
- package/dist/types/string-literals/EnsureTrailing.d.ts.map +1 -1
- package/dist/types/string-literals/Join.d.ts +3 -2
- package/dist/types/string-literals/Join.d.ts.map +1 -1
- package/dist/types/string-literals/Proxmox.d.ts +2 -3
- package/dist/types/string-literals/Proxmox.d.ts.map +1 -1
- package/dist/types/string-literals/Split.d.ts +1 -1
- package/dist/types/string-literals/Split.d.ts.map +1 -1
- package/dist/types/string-literals/StripLeading.d.ts +2 -2
- package/dist/types/string-literals/StripLeading.d.ts.map +1 -1
- package/dist/types/string-literals/StripSurround.d.ts +16 -0
- package/dist/types/string-literals/StripSurround.d.ts.map +1 -0
- package/dist/types/string-literals/StripSurround.js +1 -0
- package/dist/types/string-literals/StripTrailing.d.ts +2 -2
- package/dist/types/string-literals/StripTrailing.d.ts.map +1 -1
- package/dist/types/string-literals/StripUntil.d.ts +1 -1
- package/dist/types/string-literals/StripUntil.d.ts.map +1 -1
- package/dist/types/string-literals/Suggest.d.ts.map +1 -1
- package/dist/types/string-literals/Surround.d.ts +2 -2
- package/dist/types/string-literals/Surround.d.ts.map +1 -1
- package/dist/types/string-literals/Truncate.d.ts +4 -4
- package/dist/types/string-literals/Truncate.d.ts.map +1 -1
- package/dist/types/string-literals/UnderlyingType.d.ts +18 -0
- package/dist/types/string-literals/UnderlyingType.d.ts.map +1 -0
- package/dist/types/string-literals/UnderlyingType.js +1 -0
- package/dist/types/string-literals/character-sets/Consonants.d.ts +3 -4
- package/dist/types/string-literals/character-sets/Consonants.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/DomainName.d.ts +1 -1
- package/dist/types/string-literals/character-sets/DomainName.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/IpAddress.d.ts +1 -1
- package/dist/types/string-literals/character-sets/IpAddress.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts +2 -3
- package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/NumericChar.d.ts +3 -4
- package/dist/types/string-literals/character-sets/NumericChar.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Repos.d.ts +2 -1
- package/dist/types/string-literals/character-sets/Repos.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/SingularNoun.d.ts +1 -1
- package/dist/types/string-literals/character-sets/SingularNoun.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts +2 -3
- package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Url.d.ts +4 -3
- package/dist/types/string-literals/character-sets/Url.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Url.js +0 -1
- package/dist/types/string-literals/character-sets/Whitespace.d.ts +1 -1
- package/dist/types/string-literals/character-sets/Whitespace.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/css/color.d.ts +24 -0
- package/dist/types/string-literals/character-sets/css/color.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/css/color.js +1 -0
- package/dist/types/string-literals/character-sets/css/display-position.d.ts +26 -0
- package/dist/types/string-literals/character-sets/css/display-position.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/css/display-position.js +1 -0
- package/dist/types/string-literals/character-sets/css/index.d.ts +4 -0
- package/dist/types/string-literals/character-sets/css/index.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/css/index.js +3 -0
- package/dist/types/string-literals/character-sets/css/sizing.d.ts +10 -0
- package/dist/types/string-literals/character-sets/css/sizing.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/css/sizing.js +1 -0
- package/dist/types/string-literals/character-sets/index.d.ts +3 -2
- package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.js +3 -2
- package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.d.ts +12 -0
- package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.js +1 -0
- package/dist/types/string-literals/character-sets/phone/DialCountryCode.d.ts +9 -0
- package/dist/types/string-literals/character-sets/phone/DialCountryCode.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/DialCountryCode.js +1 -0
- package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.d.ts +14 -0
- package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.js +1 -0
- package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.d.ts +10 -0
- package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.js +1 -0
- package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.d.ts +12 -0
- package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.js +1 -0
- package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.d.ts +12 -0
- package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.js +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.d.ts +6 -0
- package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.js +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.d.ts +13 -0
- package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.js +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneNumber.d.ts +23 -0
- package/dist/types/string-literals/character-sets/phone/PhoneNumber.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneNumber.js +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.d.ts +5 -0
- package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.js +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneShortCode.d.ts +19 -0
- package/dist/types/string-literals/character-sets/phone/PhoneShortCode.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/PhoneShortCode.js +1 -0
- package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.d.ts +30 -0
- package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.js +1 -0
- package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.d.ts +27 -0
- package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.js +1 -0
- package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.d.ts +17 -0
- package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.js +1 -0
- package/dist/types/string-literals/character-sets/phone/index.d.ts +15 -0
- package/dist/types/string-literals/character-sets/phone/index.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone/index.js +14 -0
- package/dist/types/string-literals/character-sets/phone.d.ts +0 -187
- package/dist/types/string-literals/character-sets/phone.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/tw/TwColor.d.ts +41 -0
- package/dist/types/string-literals/character-sets/tw/TwColor.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/tw/TwColor.js +1 -0
- package/dist/types/string-literals/character-sets/tw/index.d.ts +2 -0
- package/dist/types/string-literals/character-sets/tw/index.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/tw/index.js +1 -0
- package/dist/types/string-literals/geo/state.d.ts +1 -1
- package/dist/types/string-literals/geo/state.d.ts.map +1 -1
- package/dist/types/string-literals/geo/zip.d.ts +1 -1
- package/dist/types/string-literals/geo/zip.d.ts.map +1 -1
- package/dist/types/string-literals/index.d.ts +2 -0
- package/dist/types/string-literals/index.d.ts.map +1 -1
- package/dist/types/string-literals/index.js +2 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/type-conversion/AsBoolean.d.ts +7 -4
- package/dist/types/type-conversion/AsBoolean.d.ts.map +1 -1
- package/dist/types/type-conversion/AsNumber.d.ts +8 -3
- package/dist/types/type-conversion/AsNumber.d.ts.map +1 -1
- package/dist/types/type-conversion/AsString.d.ts +3 -1
- package/dist/types/type-conversion/AsString.d.ts.map +1 -1
- package/dist/types/type-conversion/AsStringUnion.d.ts +25 -0
- package/dist/types/type-conversion/AsStringUnion.d.ts.map +1 -0
- package/dist/types/type-conversion/AsStringUnion.js +1 -0
- package/dist/types/type-conversion/JSON.d.ts +25 -0
- package/dist/types/type-conversion/JSON.d.ts.map +1 -0
- package/dist/types/type-conversion/JSON.js +1 -0
- package/dist/types/type-conversion/StringLiteralFromTuple.d.ts +18 -0
- package/dist/types/type-conversion/StringLiteralFromTuple.d.ts.map +1 -0
- package/dist/types/type-conversion/StringLiteralFromTuple.js +1 -0
- package/dist/types/type-conversion/StripChars.d.ts +7 -6
- package/dist/types/type-conversion/StripChars.d.ts.map +1 -1
- package/dist/types/type-conversion/ToJsonValue.d.ts +11 -0
- package/dist/types/type-conversion/ToJsonValue.d.ts.map +1 -0
- package/dist/types/type-conversion/ToJsonValue.js +1 -0
- package/dist/types/type-conversion/ToStringArray.d.ts +4 -3
- package/dist/types/type-conversion/ToStringArray.d.ts.map +1 -1
- package/dist/types/type-conversion/TupleToUnion.d.ts +2 -2
- package/dist/types/type-conversion/TupleToUnion.d.ts.map +1 -1
- package/dist/types/type-conversion/Widen.js +1 -0
- package/dist/types/type-conversion/index.d.ts +4 -0
- package/dist/types/type-conversion/index.d.ts.map +1 -1
- package/dist/types/type-conversion/index.js +4 -0
- package/package.json +38 -37
- package/dist/runtime/lists/pop.d.ts +0 -17
- package/dist/runtime/lists/pop.d.ts.map +0 -1
- package/dist/runtime/lists/pop.js +0 -16
- package/dist/runtime/literals/asPhoneNumber.d.ts +0 -10
- package/dist/runtime/literals/asPhoneNumber.d.ts.map +0 -1
- package/dist/runtime/literals/asPhoneNumber.js +0 -62
- package/dist/runtime/runtime-types/dict.d.ts +0 -10
- package/dist/runtime/runtime-types/dict.d.ts.map +0 -1
- package/dist/runtime/runtime-types/dict.js +0 -11
- package/dist/runtime/runtime-types/parse.d.ts +0 -16
- package/dist/runtime/runtime-types/parse.d.ts.map +0 -1
- package/dist/runtime/runtime-types/parse.js +0 -29
- package/dist/types/base-types/fns/AnyFnWithDict.d.ts +0 -9
- package/dist/types/base-types/fns/AnyFnWithDict.d.ts.map +0 -1
- package/dist/types/base-types/fns/FnWithDict.d.ts +0 -10
- package/dist/types/base-types/fns/FnWithDict.d.ts.map +0 -1
- package/dist/types/runtime-types/DescribeType.d.ts +0 -40
- package/dist/types/runtime-types/DescribeType.d.ts.map +0 -1
- package/dist/types/runtime-types/DescribeType.js +0 -2
- package/dist/types/string-literals/character-sets/CSS.d.ts +0 -13
- package/dist/types/string-literals/character-sets/CSS.d.ts.map +0 -1
- /package/dist/types/base-types/{fns/AnyFnWithDict.js → LikeRegExp.js} +0 -0
- /package/dist/types/base-types/fns/{FnWithDict.js → FnAllowingProps.js} +0 -0
- /package/dist/types/{string-literals/character-sets/CSS.js → boolean-logic/operators/HasArray.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,0BAAwB;AAIzE;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"withKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,0BAAwB;AAIzE;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GACnB,IAAI,SAAS,UAAU,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC,EAC3C,CAAC,SAAS,UAAU,EACpB,KAAK,SAAS,SAAS,CAAC,SAAS,GAAG,MAAM,IAAI,CAAC,EAAE,QAE3C,IAAI,WACD,KAAK;;;;;;;iqBACU,CAAC"}
|
|
@@ -9,17 +9,5 @@ import type { NarrowObject, Narrowable } from "../../types/index";
|
|
|
9
9
|
*
|
|
10
10
|
* **Related**: `omit`, `createOmission`
|
|
11
11
|
*/
|
|
12
|
-
export declare const withoutKeys: <TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys) => import("../../types/index").
|
|
13
|
-
[x: string]: never;
|
|
14
|
-
[x: symbol]: never;
|
|
15
|
-
} ? {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
[x: symbol]: never;
|
|
18
|
-
} : import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>>, TObj | (import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>> extends {
|
|
19
|
-
[x: string]: never;
|
|
20
|
-
[x: symbol]: never;
|
|
21
|
-
} ? {
|
|
22
|
-
[x: string]: never;
|
|
23
|
-
[x: symbol]: never;
|
|
24
|
-
} : import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>>)>>>;
|
|
12
|
+
export declare const withoutKeys: <TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys) => import("../../types/index").WithoutKeys<TObj, [...TKeys]>;
|
|
25
13
|
//# sourceMappingURL=withoutKeys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withoutKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,0BAAwB;AAIhE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"withoutKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,0BAAwB;AAIhE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GACtB,IAAI,SAAS,YAAY,CAAC,CAAC,CAAC,EAC5B,CAAC,SAAS,UAAU,EACpB,KAAK,SAAS,SAAS,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,QAExC,IAAI,cACE,KAAK,8DACQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withoutValue.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,0BAAwB;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,IAAI,SAAS,UAAU,EAAE,GAAG,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"withoutValue.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,0BAAwB;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,IAAI,SAAS,UAAU,EAAE,GAAG,EAAE,IAAI,IACrD,IAAI,SAAS,SAAS,OAAO,IAAI,KAAG,YAAY,CAAC,IAAI,EAAC,IAAI,CAAC,CAQpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KindError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/KindError.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACb,KAAK,EACN,0BAAwB;AAGzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"KindError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/KindError.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACb,KAAK,EACN,0BAAwB;AAGzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,GACpB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,gBAEnC,CAAC,mBACU,CAAC,KACjB,aAAa,CAAC,CAAC,EAAC,CAAC,CAkBnB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/TypedError.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,UAAU,EAAG,0BAAwB;AAGtE,MAAM,WAAW,UAAU,CACzB,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,QAAQ,SAAS,SAAS,GAAG,SAAS,CACtC,SAAQ,KAAK;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,MAAM,IAAI,CAC5C,IAAI,SAAS,MAAM,EACnB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAC7B,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,KAAK,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAEtE,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,EAC9C,IAAI,EAAE,KAAK,EACX,GAAG,EAAE,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEtC;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;CAC7D,CAAC;AAyBF,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"TypedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/TypedError.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,UAAU,EAAG,0BAAwB;AAGtE,MAAM,WAAW,UAAU,CACzB,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,QAAQ,SAAS,SAAS,GAAG,SAAS,CACtC,SAAQ,KAAK;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,MAAM,IAAI,CAC5C,IAAI,SAAS,MAAM,EACnB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAC7B,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,KAAK,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAEtE,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,EAC9C,IAAI,EAAE,KAAK,EACX,GAAG,EAAE,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEtC;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;CAC7D,CAAC;AAyBF,eAAO,MAAM,UAAU,IAPR,IAAI,SAAS,MAAM,OAAO,IAAI;;;;aAOK,CAAC"}
|
|
@@ -6,4 +6,9 @@ import { Throw } from "../../types/index";
|
|
|
6
6
|
* runtime.
|
|
7
7
|
*/
|
|
8
8
|
export declare const createErrorCondition: <TKind extends string, TMsg extends string = never, TUtility extends string = never>(kind: TKind, msg?: TMsg, utility?: TUtility) => Throw<TKind, TMsg, TUtility>;
|
|
9
|
+
export declare const errCondition: (kind: string, msg?: string) => {
|
|
10
|
+
__kind: string;
|
|
11
|
+
kind: string;
|
|
12
|
+
msg: string | undefined;
|
|
13
|
+
};
|
|
9
14
|
//# sourceMappingURL=createErrorCondition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createErrorCondition.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/createErrorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAGxC;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"createErrorCondition.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/createErrorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAGxC;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,KAAK,SAAS,MAAM,EACpB,IAAI,SAAS,MAAM,UACnB,QAAQ,SAAS,MAAM,gBAEjB,KAAK,QACN,IAAI,YACA,QAAQ,KAOD,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAC5C,CAAC;AAGF,eAAO,MAAM,YAAY,SACjB,MAAM,QACN,MAAM;;;;CAKZ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kindedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/kindedError.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACd,0BAAwB;AAEzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"kindedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/kindedError.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACd,0BAAwB;AAEzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,GACpB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,aAE3B,CAAC,mBACU,CAAC,KACjB,aAAa,CAAC,CAAC,EAAC,CAAC,CAkBnB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fnMeta.d.ts","sourceRoot":"","sources":["../../../src/runtime/functions/fnMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAG,QAAQ,EAAE,0BAAwB;AAEzD,KAAK,MAAM,CAAC,GAAG,SAAS,WAAW,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;AAE9D;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"fnMeta.d.ts","sourceRoot":"","sources":["../../../src/runtime/functions/fnMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAG,QAAQ,EAAE,0BAAwB;AAEzD,KAAK,MAAM,CAAC,GAAG,SAAS,WAAW,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;AAE9D;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,SAAS,WAAW,QAAQ,GAAG;SAErD,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,WACrB,CAAC;;CAWd,CAAC"}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./api/index";
|
|
2
|
+
export * from "./boolean-logic/index";
|
|
2
3
|
export * from "./combinators/index";
|
|
3
4
|
export * from "./dictionary/index";
|
|
4
5
|
export * from "./errors/index";
|
|
@@ -8,6 +9,7 @@ export * from "./initializers/index";
|
|
|
8
9
|
export * from "./lists/index";
|
|
9
10
|
export * from "./literals/index";
|
|
10
11
|
export * from "./meta/index";
|
|
12
|
+
export * from "./queues/index";
|
|
11
13
|
export * from "./runtime-types/index";
|
|
12
14
|
export * from "./sets/index";
|
|
13
15
|
export * from "./type-conversion/index";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAA"}
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./api/index.js";
|
|
2
|
+
export * from "./boolean-logic/index.js";
|
|
2
3
|
export * from "./combinators/index.js";
|
|
3
4
|
export * from "./dictionary/index.js";
|
|
4
5
|
export * from "./errors/index.js";
|
|
@@ -8,6 +9,7 @@ export * from "./initializers/index.js";
|
|
|
8
9
|
export * from "./lists/index.js";
|
|
9
10
|
export * from "./literals/index.js";
|
|
10
11
|
export * from "./meta/index.js";
|
|
12
|
+
export * from "./queues/index.js";
|
|
11
13
|
export * from "./runtime-types/index.js";
|
|
12
14
|
export * from "./sets/index.js";
|
|
13
15
|
export * from "./type-conversion/index.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FnWithProps, Narrowable, TypedFunction } from "../../types/index";
|
|
2
2
|
/**
|
|
3
3
|
* **addPropsToFn**(fn, [clone]) => (props) => FnWithProps
|
|
4
4
|
*
|
|
5
5
|
* A higher order function which takes a dictionary object and
|
|
6
6
|
* then a function and combines them into a single type.
|
|
7
7
|
*/
|
|
8
|
-
export declare const addPropsToFn: <TFn extends TypedFunction, TClone extends boolean | undefined>(fn: TFn, clone_fn?: TClone) => <K extends PropertyKey, N extends Narrowable, TProps extends Record<K, N>>(obj: TProps) =>
|
|
8
|
+
export declare const addPropsToFn: <TFn extends TypedFunction, TClone extends boolean | undefined>(fn: TFn, clone_fn?: TClone) => <K extends PropertyKey, N extends Narrowable, TProps extends Record<K, N>>(obj: TProps) => FnWithProps<TFn, TProps, TClone>;
|
|
9
9
|
//# sourceMappingURL=addFnToProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addFnToProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/addFnToProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAG,
|
|
1
|
+
{"version":3,"file":"addFnToProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/addFnToProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAG,WAAW,EAAE,UAAU,EAAE,aAAa,EAAI,0BAAwB;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,GAAG,SAAS,aAAa,EACzB,MAAM,SAAS,OAAO,GAAG,SAAS,MAC9B,GAAG,aAAa,MAAM,MAMtB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,UAAU,EACpB,MAAM,SAAS,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,OACrB,MAAM,KAMO,WAAW,CAC3B,GAAG,EACH,MAAM,EACN,MAAM,CAIb,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FnWithProps, Narrowable, TypedFunction } from "../../types/index";
|
|
2
2
|
/**
|
|
3
3
|
* **addFnToProps**(props, [clone]) => (fn) => FnWithProps
|
|
4
4
|
*
|
|
@@ -11,5 +11,5 @@ import { FnWithDict, Narrowable, TypedFunction } from "../../types/index";
|
|
|
11
11
|
* This is partially applied to reveal a function which takes a
|
|
12
12
|
* function as input.
|
|
13
13
|
*/
|
|
14
|
-
export declare const addFnToProps: <K extends string, N extends Narrowable, TProps extends Record<K, N>, TClone extends boolean | undefined>(props: TProps, _clone_fn?: TClone) => <TFn extends TypedFunction>(fn: TFn) =>
|
|
14
|
+
export declare const addFnToProps: <K extends string, N extends Narrowable, TProps extends Record<K, N>, TClone extends boolean | undefined>(props: TProps, _clone_fn?: TClone) => <TFn extends TypedFunction>(fn: TFn) => FnWithProps<TFn, TProps, TClone>;
|
|
15
15
|
//# sourceMappingURL=addPropsToFn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addPropsToFn.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/addPropsToFn.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"addPropsToFn.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/addPropsToFn.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,aAAa,EACd,0BAAwB;AAEzB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GACvB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,UAAU,EACpB,MAAM,SAAS,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,EAC1B,MAAM,SAAS,OAAO,GAAG,SAAS,SAE3B,MAAM,cAAc,MAAM,MAEjC,GAAG,SAAS,aAAa,MACrB,GAAG,KAQa,WAAW,CAAC,GAAG,EAAC,MAAM,EAAC,MAAM,CAEhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFnWithProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/createFnWithProps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,MAAM,EACN,UAAU,EACV,SAAS,EACV,0BAAwB;AAIzB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"createFnWithProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/createFnWithProps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,MAAM,EACN,UAAU,EACV,SAAS,EACV,0BAAwB;AAIzB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,OAAO,SAAS,UAAU,EAC1B,CAAC,SAAS,UAAU,EACpB,MAAM,SAAS,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,EACnC,UAAU,SAAS,OAAO,cAEtB,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,SACxB,MAAM,cACF,UAAU,KAWhB,EAAE,CACL,MAAM,CAAC,UAAU,CAAC,EAClB,CAAC,CAAC,CAAe,SAAL,KAAK,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,GAAG,MAAM,EACnD,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,MAAM,CAEzC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExpandDictionary, IsNonEmptyObject, Narrowable, RemoveIndex, Widen } from "../../types/index";
|
|
1
|
+
import { EmptyObject, ExpandDictionary, IsNonEmptyObject, Narrowable, RemoveIndex, Widen } from "../../types/index";
|
|
2
2
|
/**
|
|
3
3
|
* **defineObj**(literal) -> (wide) -> object
|
|
4
4
|
*
|
|
@@ -13,5 +13,5 @@ import { ExpandDictionary, IsNonEmptyObject, Narrowable, RemoveIndex, Widen } fr
|
|
|
13
13
|
* const fooBarBaz = defineObj({foo: 1})({bar: 2, baz: 3});
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
export declare function defineObj<N extends Narrowable, TLiteral extends Record<string, N>>(literal?: TLiteral): <N2 extends Narrowable, TWide extends Record<string, N2>>(wide?: TWide) => ExpandDictionary<RemoveIndex<TLiteral> & (IsNonEmptyObject<TWide> extends true ? Widen<TWide> :
|
|
16
|
+
export declare function defineObj<N extends Narrowable, TLiteral extends Record<string, N>>(literal?: TLiteral): <N2 extends Narrowable, TWide extends Record<string, N2>>(wide?: TWide) => ExpandDictionary<RemoveIndex<TLiteral> & (IsNonEmptyObject<TWide> extends true ? Widen<TWide> : EmptyObject)>;
|
|
17
17
|
//# sourceMappingURL=defineObj.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineObj.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/defineObj.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"defineObj.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/defineObj.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,KAAK,EACN,0BAAwB;AAEzB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CACvB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EAElC,OAAO,GAAE,QAA0B,IAOjC,EAAE,SAAS,UAAU,EACrB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAC,EAAE,CAAC,SACzB,KAAK,KAQG,gBAAgB,CAC5B,WAAW,CAAC,QAAQ,CAAC,GAAG,CACtB,gBAAgB,CAAC,KAAK,CAAC,SAAS,IAAI,GAChC,KAAK,CAAC,KAAK,CAAC,GACZ,WAAW,CACd,CACF,CAEN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineTuple.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/defineTuple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,cAAc,EAAE,0BAAwB;AAG1E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"defineTuple.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/defineTuple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,cAAc,EAAE,0BAAwB;AAG1E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,GACtB,CAAC,SAAS,SAAS,cAAc,EAAE,aACxB,CAAC,KAKI,QAAQ,CAAC,CAAC,CAC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asArray.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/asArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAEtD;;GAEG;AACH,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,SAAS,EAAE,SAAS,CAAC,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC;AAEjG;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"asArray.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/asArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAEtD;;GAEG;AACH,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,SAAS,EAAE,SAAS,CAAC,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC;AAEjG;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,UAAU,SAAS,CAAC,KAQ/C,OAAO,CAAC,CAAC,CACf,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ComparatorOperation, Comparison, ParamsForComparison } from "../../types/
|
|
2
|
-
import { Narrowable } from "../../types/literals";
|
|
1
|
+
import { ComparatorOperation, Comparison, ParamsForComparison, Narrowable } from "../../types/index";
|
|
3
2
|
/**
|
|
4
3
|
* **createComparison**(op, ...args)
|
|
5
4
|
*
|
|
6
5
|
* Creates a _future_ comparison which can be used with the `filter`, `retain`, and
|
|
7
6
|
* other runtime utilities.
|
|
8
7
|
*/
|
|
9
|
-
export declare const createComparison: <TOp extends ComparatorOperation, TArgs extends readonly Narrowable[]>(
|
|
8
|
+
export declare const createComparison: <TOp extends ComparatorOperation, TArgs extends readonly Narrowable[]>(_op: TOp, ...args: TArgs & ParamsForComparison<TOp>) => Comparison<TOp, typeof args>;
|
|
10
9
|
//# sourceMappingURL=createComparison.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComparison.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createComparison.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"createComparison.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createComparison.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,mBAAmB,EAAE,UAAU,EAAE,mBAAmB,EAAE,UAAU,EAAE,0BAAwB;AAEpG;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,GAAG,SAAS,mBAAmB,EAC/B,KAAK,SAAS,SAAS,UAAU,EAAE,OAC9B,GAAG,WAAW,KAAK,GAAG,mBAAmB,CAAC,GAAG,CAAC,KACH,UAAU,CAAC,GAAG,EAAE,OAAO,IAAI,CAC5E,CAAA"}
|
|
@@ -20,6 +20,6 @@ type ConversionResult<TConvert extends Partial<ConverterDefn<any, any, any, any,
|
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export declare function createConverter<TStr extends Narrowable = never, TNum extends Narrowable = never, TBool extends Narrowable = never, TObj extends Narrowable = never, TTuple extends Narrowable = never, TNothing extends Narrowable = never>(mapper: Partial<ConverterDefn<TStr, TNum, TBool, TObj, TTuple, TNothing>>): <TInput extends Narrowable |
|
|
23
|
+
export declare function createConverter<TStr extends Narrowable = never, TNum extends Narrowable = never, TBool extends Narrowable = never, TObj extends Narrowable = never, TTuple extends Narrowable = never, TNothing extends Narrowable = never>(mapper: Partial<ConverterDefn<TStr, TNum, TBool, TObj, TTuple, TNothing>>): <TInput extends Narrowable | Tuple>(input: TInput) => ConversionResult<typeof mapper, TInput>;
|
|
24
24
|
export {};
|
|
25
25
|
//# sourceMappingURL=createConverter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createConverter.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createConverter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,aAAa,EACd,0BAAwB;AAKzB,KAAK,aAAa,CAChB,OAAO,IACL,OAAO,SAAS,aAAa,GAC7B,UAAU,CAAC,OAAO,CAAC,GACnB,KAAK,CAAC;AAEV,KAAK,gBAAgB,CACnB,QAAQ,SAAS,OAAO,CAEtB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAC5C,EACD,MAAM,SAAS,UAAU,GAAG,KAAK,IAC/B,MAAM,SAAS,MAAM,GACrB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,MAAM,GACrB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,OAAO,GACtB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,MAAM,SAAS,SAAS,GACxB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,KAAK,GACpB,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAChC,MAAM,SAAS,OAAO,GACtB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAC7B,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,KAAK,SAAS,UAAU,GAAG,KAAK,EAChC,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,MAAM,SAAS,UAAU,GAAG,KAAK,EACjC,QAAQ,SAAS,UAAU,GAAG,KAAK,EACnC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"createConverter.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createConverter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,aAAa,EACd,0BAAwB;AAKzB,KAAK,aAAa,CAChB,OAAO,IACL,OAAO,SAAS,aAAa,GAC7B,UAAU,CAAC,OAAO,CAAC,GACnB,KAAK,CAAC;AAEV,KAAK,gBAAgB,CACnB,QAAQ,SAAS,OAAO,CAEtB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAC5C,EACD,MAAM,SAAS,UAAU,GAAG,KAAK,IAC/B,MAAM,SAAS,MAAM,GACrB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,MAAM,GACrB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,OAAO,GACtB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,MAAM,SAAS,SAAS,GACxB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,KAAK,GACpB,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAChC,MAAM,SAAS,OAAO,GACtB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAC7B,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,KAAK,SAAS,UAAU,GAAG,KAAK,EAChC,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,MAAM,SAAS,UAAU,GAAG,KAAK,EACjC,QAAQ,SAAS,UAAU,GAAG,KAAK,EACnC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,IACjE,MAAM,SAAS,UAAU,GAAG,KAAK,SAAS,MAAM,KAkCrC,gBAAgB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAG3D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const filter = "NOT READY";
|
|
2
2
|
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// import { isSameTypeOf } from "../type-guards/higher-order/isSameTypeOf";
|
|
3
3
|
// import { endsWith,startsWith } from "../type-guards";
|
|
4
4
|
// import { asArray } from "./asArray";
|
|
5
|
-
// import { Never } from "src/constants/
|
|
5
|
+
// import { Never } from "src/constants/index";
|
|
6
6
|
// /**
|
|
7
7
|
// * **createFilter**(op,comparator) → (list) → _filtered results_
|
|
8
|
-
// *
|
|
8
|
+
// *
|
|
9
9
|
// * A higher order runtime utility.
|
|
10
|
-
// *
|
|
10
|
+
// *
|
|
11
11
|
// * - on it's first call it specifies the comparison that will be
|
|
12
12
|
// * made in the future
|
|
13
13
|
// * ```ts
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
// }
|
|
53
53
|
// return result as Filter<TList, TComparator, TOp>;
|
|
54
54
|
// };
|
|
55
|
-
export const
|
|
55
|
+
export const filter = "NOT READY";
|
|
@@ -11,5 +11,5 @@ export type Finder<TList extends Tuple, TDeref extends string | number | null> =
|
|
|
11
11
|
* A higher order function that allows _finding_ an element in a list
|
|
12
12
|
* while preserving any available type information.
|
|
13
13
|
*/
|
|
14
|
-
export declare const find: <TList extends
|
|
14
|
+
export declare const find: <TList extends Tuple, TDeref extends string | number | null = null>(list: TList, deref?: TDeref) => Finder<TList, TDeref>;
|
|
15
15
|
//# sourceMappingURL=find.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/find.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,EACN,0BAAwB;AAIzB;;;;GAIG;AACH,MAAM,MAAM,MAAM,CAChB,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,IACnC,CAAC,QAAQ,SAAS,UAAU,GAAG,aAAa,EAAE,KAAK,EAAE,QAAQ,KAAK,IAAI,CACxE,KAAK,EACL,QAAQ,EACR,QAAQ,CAAC,QAAQ,CAAC,EAClB,MAAM,CACP,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/find.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,EACN,0BAAwB;AAIzB;;;;GAIG;AACH,MAAM,MAAM,MAAM,CAChB,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,IACnC,CAAC,QAAQ,SAAS,UAAU,GAAG,aAAa,EAAE,KAAK,EAAE,QAAQ,KAAK,IAAI,CACxE,KAAK,EACL,QAAQ,EACR,QAAQ,CAAC,QAAQ,CAAC,EAClB,MAAM,CACP,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,IAAI,GACf,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,eAE/B,KAAK,UACJ,MAAM,KACZ,MAAM,CAAC,KAAK,EAAE,MAAM,CAYtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/index.ts"],"names":[],"mappings":"AAOA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/index.ts"],"names":[],"mappings":"AAOA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/indexOf.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,UAAU,EACV,KAAK,EACN,0BAAwB;
|
|
1
|
+
{"version":3,"file":"indexOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/indexOf.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,UAAU,EACV,KAAK,EACN,0BAAwB;AAGzB;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CACrB,UAAU,SAAS,UAAU,GAAG,KAAK,EACrC,IAAI,SAAS,WAAW,GAAG,IAAI,EAC/B,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,GA6BvB,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAC/B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isArray, isNull, isNumber, isObject } from "../index.js";
|
|
1
|
+
import { errCondition, isArray, isNull, isNumber, isObject } from "../index.js";
|
|
3
2
|
/**
|
|
4
3
|
* **indexOf**(val, index)
|
|
5
4
|
*
|
|
@@ -28,8 +27,12 @@ export function indexOf(val, index) {
|
|
|
28
27
|
: isNull(idx)
|
|
29
28
|
? val
|
|
30
29
|
: isArray(val)
|
|
31
|
-
? Number(idx) in val
|
|
30
|
+
? Number(idx) in val
|
|
31
|
+
? val[Number(idx)]
|
|
32
|
+
: errCondition("invalid-index", `attempt to index a numeric array with an invalid index: ${Number(idx)}`)
|
|
32
33
|
: isObject(val)
|
|
33
|
-
? String(idx) in val
|
|
34
|
-
|
|
34
|
+
? String(idx) in val
|
|
35
|
+
? val[String(idx)]
|
|
36
|
+
: errCondition("invalid-index", `attempt to index a dictionary object with an invalid index: ${String(idx)}`)
|
|
37
|
+
: errCondition("invalid-container-type", `Attempt to use indexOf() on an invalid container type: ${typeof val}`));
|
|
35
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/intersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAG,0BAAwB;AA4ChE;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/intersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAG,0BAAwB;AA4ChE;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GACvB,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,MAAM,SAAS,MAAM,GAAG,IAAI,YAEzB,CAAC,KACD,CAAC,UACG,MAAM,KACZ,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAM3B,CAAC"}
|
|
@@ -13,5 +13,5 @@ export type Joiner<TJoin extends string> = <TContent extends Tuple<string>>(...t
|
|
|
13
13
|
* const list = join(", ")("foo", "bar", "baz");
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function joinWith<TJoin extends string>(joinWith: TJoin): <TContent extends readonly string[]>(...tuple: TContent) => Join<TContent, TJoin>;
|
|
17
17
|
//# sourceMappingURL=join.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/join.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,0BAAwB;AAE9C,MAAM,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/join.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,0BAAwB;AAE9C,MAAM,MAAM,MAAM,CAChB,KAAK,SAAS,MAAM,IAAI,CAAC,QAAQ,SAAS,KAAK,CAAC,MAAM,CAAC,EACvD,GAAG,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC,QAAQ,EAAC,KAAK,CAAC,CAAC;AAG9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,KAAK,SAAS,MAAM,EAC3C,QAAQ,EAAE,KAAK,IAMP,QAAQ,SAAS,SAAS,MAAM,EAAE,YAC9B,QAAQ,KACjB,IAAI,CAAC,QAAQ,EAAC,KAAK,CAAC,CAIxB"}
|
|
@@ -11,8 +11,12 @@
|
|
|
11
11
|
* const list = join(", ")("foo", "bar", "baz");
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
export function
|
|
14
|
+
export function joinWith(joinWith) {
|
|
15
|
+
/**
|
|
16
|
+
* add elements of the tuple you want to join
|
|
17
|
+
*/
|
|
15
18
|
return (...tuple) => {
|
|
16
|
-
|
|
19
|
+
const tup = tuple;
|
|
20
|
+
return tup.join(joinWith);
|
|
17
21
|
};
|
|
18
22
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Last } from "../../types/index";
|
|
2
|
-
export declare const last: <T extends
|
|
1
|
+
import { Last, Tuple } from "../../types/index";
|
|
2
|
+
export declare const last: <T extends Tuple>(list: T) => Last<T>;
|
|
3
3
|
//# sourceMappingURL=last.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"last.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/last.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"last.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/last.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,0BAAwB;AAE9C,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,KAAK,QAAQ,CAAC,KAAG,IAAI,CAAC,CAAC,CAErD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logicalReturns.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/logicalReturns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,0BAAwB;AAKhE,wBAAgB,cAAc,CAC5B,WAAW,SAAS,SAAS,CAAC,OAAO,GAAG,aAAa,CAAC,EAAE,EACxD,UAAU,EAAE,WAAW
|
|
1
|
+
{"version":3,"file":"logicalReturns.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/logicalReturns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,0BAAwB;AAKhE,wBAAgB,cAAc,CAC5B,WAAW,SAAS,SAAS,CAAC,OAAO,GAAG,aAAa,CAAC,EAAE,EACxD,UAAU,EAAE,WAAW,GAOP,cAAc,CAAC,WAAW,CAAC,CAE5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/reverse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,0BAAwB;AAE1C;;;;GAIG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/reverse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,0BAAwB;AAE1C;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,SAAS,OAAO,EAAE,QAAQ,CAAC,KAAG,OAAO,CAAC,CAAC,CAExE,CAAC"}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { First, IsEqual, IsUndefined, Narrowable } from "../../types/index";
|
|
2
|
+
type Rtn<T extends readonly K[] | K[] | undefined, K extends Narrowable> = IsUndefined<T> extends true ? undefined : T extends readonly K[] | K[] ? IsEqual<T["length"], number> extends true ? undefined | string : T["length"] extends 0 ? undefined : First<T> : never;
|
|
3
3
|
/**
|
|
4
4
|
* **shift**(list)
|
|
5
5
|
*
|
|
6
|
-
* Takes a list of elements and
|
|
7
|
-
*
|
|
6
|
+
* Takes a list of elements and:
|
|
7
|
+
*
|
|
8
|
+
* - if the list is empty returns _undefined_
|
|
9
|
+
* - otherwise returns the first element in the list
|
|
10
|
+
*
|
|
11
|
+
* **Note:** unlike using the builtin `ARR.shift()` method:
|
|
12
|
+
*
|
|
13
|
+
* - the source array is _never_ mutated
|
|
14
|
+
* - you can shift off the first element of the readonly array as well a mutable one
|
|
15
|
+
* (because the underlying array is _not_ mutated)
|
|
16
|
+
* - in **many** cases, you should be using a queue of some sort with utils like
|
|
17
|
+
* `createLifoQueue()` or `createFifoQueue()`
|
|
18
|
+
*
|
|
8
19
|
*/
|
|
9
|
-
export declare const shift: <
|
|
20
|
+
export declare const shift: <T extends readonly K[] | K[] | undefined, K extends Narrowable>(list: T) => Rtn<T, K>;
|
|
21
|
+
export {};
|
|
10
22
|
//# sourceMappingURL=shift.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shift.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/shift.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shift.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/shift.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,OAAO,EACP,WAAW,EACX,UAAU,EACX,0BAAwB;AAGzB,KAAK,GAAG,CACN,CAAC,SAAS,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,SAAS,EACxC,CAAC,SAAS,UAAU,IAClB,WAAW,CAAC,CAAC,CAAC,SAAS,IAAI,GAC3B,SAAS,GACT,CAAC,SAAS,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,GAC5B,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,SAAS,IAAI,GACvC,SAAS,GAAG,MAAM,GAClB,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GACnB,SAAS,GACT,KAAK,CAAC,CAAC,CAAC,GACZ,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,KAAK,GAChB,CAAC,SAAU,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,SAAS,EACzC,CAAC,SAAS,UAAU,QACd,CAAC,KAAG,GAAG,CAAC,CAAC,EAAC,CAAC,CAuBlB,CAAC"}
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
+
import { isDefined } from "../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* **shift**(list)
|
|
3
4
|
*
|
|
4
|
-
* Takes a list of elements and
|
|
5
|
-
*
|
|
5
|
+
* Takes a list of elements and:
|
|
6
|
+
*
|
|
7
|
+
* - if the list is empty returns _undefined_
|
|
8
|
+
* - otherwise returns the first element in the list
|
|
9
|
+
*
|
|
10
|
+
* **Note:** unlike using the builtin `ARR.shift()` method:
|
|
11
|
+
*
|
|
12
|
+
* - the source array is _never_ mutated
|
|
13
|
+
* - you can shift off the first element of the readonly array as well a mutable one
|
|
14
|
+
* (because the underlying array is _not_ mutated)
|
|
15
|
+
* - in **many** cases, you should be using a queue of some sort with utils like
|
|
16
|
+
* `createLifoQueue()` or `createFifoQueue()`
|
|
17
|
+
*
|
|
6
18
|
*/
|
|
7
19
|
export const shift = (list) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
20
|
+
let rtn;
|
|
21
|
+
if (isDefined(list)) {
|
|
22
|
+
rtn = (list.length === 0
|
|
23
|
+
? undefined
|
|
24
|
+
: list[0]);
|
|
25
|
+
try {
|
|
26
|
+
// remove item from source array where possible
|
|
27
|
+
// note: not possible when array is frozen by being
|
|
28
|
+
// made readonly
|
|
29
|
+
list = list.slice(1);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
// ignore
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
rtn = undefined;
|
|
37
|
+
}
|
|
38
|
+
return rtn;
|
|
11
39
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Slice } from "../../types/index";
|
|
1
|
+
import { Slice, Tuple } from "../../types/index";
|
|
2
2
|
/**
|
|
3
3
|
* **slice**(list, start, end)
|
|
4
4
|
*
|
|
5
5
|
* Runtime utility to slice an array while maintaining strong
|
|
6
6
|
* types.
|
|
7
7
|
*/
|
|
8
|
-
export declare const slice: <TList extends
|
|
8
|
+
export declare const slice: <TList extends Tuple, TStart extends number, TEnd extends number>(list: TList, start: TStart, end: TEnd) => Slice<TList, TStart, TEnd>;
|
|
9
9
|
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,0BAAwB;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAChB,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,EACrB,IAAI,SAAS,MAAM,QACb,KAAK,SAAS,MAAM,OAAO,IAAI,KACL,KAAK,CAAC,KAAK,EAAC,MAAM,EAAC,IAAI,CACxD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { First, Narrowable, UnionToTuple } from "../../types/index";
|
|
1
|
+
import { First, Narrowable, UnionToTuple, Unique } from "../../types/index";
|
|
2
2
|
/**
|
|
3
3
|
* **unique**
|
|
4
4
|
*
|
|
5
5
|
* Runtime utility which removes intersecting values from two sets and
|
|
6
6
|
* provides a unique values contained in each set.
|
|
7
7
|
*/
|
|
8
|
-
export declare const unique: <N extends Narrowable, K extends number, T extends readonly (
|
|
8
|
+
export declare const unique: <N extends Narrowable, K extends number, T extends readonly (Record<K, N> | Narrowable)[]>(...values: T) => First<T> extends readonly (Record<K, N> | Narrowable)[] ? Unique<UnionToTuple<First<T>>> : Unique<T>;
|
|
9
9
|
//# sourceMappingURL=unique.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/unique.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,KAAK,EAAG,UAAU,EAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/unique.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,KAAK,EAAG,UAAU,EAAG,YAAY,EAAE,MAAM,EAAE,0BAAwB;AAG7E;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GACnB,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,aAClC,CAAC,KASA,KAAK,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,GAC5D,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAChC,MAAM,CAAC,CAAC,CACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/box.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,GAAG,EACH,SAAS,EACV,0BAAwB;AAGzB,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAElF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACtE,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,OAAO,GACrC,CAAC,GACD,EAAE,GACJ,EAAE,CAAC;AAGP;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAU1D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,IAAI,GAAG,CAAC,OAAO,CAAC,CAK9D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/box.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,GAAG,EACH,SAAS,EACV,0BAAwB;AAGzB,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAElF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACtE,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,OAAO,GACrC,CAAC,GACD,EAAE,GACJ,EAAE,CAAC;AAGP;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAU1D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,IAAI,GAAG,CAAC,OAAO,CAAC,CAK9D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,MAMzD,CAAC,2BAGP;AAED,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAMtD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAK5D"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnsureLeading } from "../../types/index";
|
|
2
2
|
/**
|
|
3
3
|
* **ensureLeading**(content, strip)
|
|
4
4
|
*
|
|
5
5
|
* Runtime utility which ensures that last part of a string -- `content` -- has the
|
|
6
6
|
* substring `ensure` at the end and adds it if not present.
|
|
7
7
|
*/
|
|
8
|
-
export declare function ensureLeading<T extends string | number, U extends string>(content: T, ensure: U): EnsureLeading<
|
|
8
|
+
export declare function ensureLeading<T extends string | number, U extends string | number>(content: T, ensure: U): EnsureLeading<T, U>;
|
|
9
9
|
//# sourceMappingURL=ensureLeading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensureLeading.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/ensureLeading.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ensureLeading.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/ensureLeading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,aAAa,EAAE,0BAAwB;AAGjD;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,CAAC,SAAS,MAAM,GAAG,MAAM,EAEzB,OAAO,EAAE,CAAC,EACV,MAAM,EAAE,CAAC,GAUH,aAAa,CAAC,CAAC,EAAC,CAAC,CAAC,CAEzB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isString } from "../type-guards/isString.js";
|
|
1
2
|
/**
|
|
2
3
|
* **ensureLeading**(content, strip)
|
|
3
4
|
*
|
|
@@ -5,7 +6,10 @@
|
|
|
5
6
|
* substring `ensure` at the end and adds it if not present.
|
|
6
7
|
*/
|
|
7
8
|
export function ensureLeading(content, ensure) {
|
|
8
|
-
|
|
9
|
+
let output = String(content);
|
|
10
|
+
return (output.startsWith(String(ensure))
|
|
9
11
|
? content
|
|
10
|
-
:
|
|
12
|
+
: isString(content)
|
|
13
|
+
? `${ensure}${content}`
|
|
14
|
+
: Number(`${ensure}${content}`));
|
|
11
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensureSurround.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/ensureSurround.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,0BAAwB;AAGjD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,OAAO,SAAS,MAAM,EACtB,QAAQ,SAAS,MAAM,EACvB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ensureSurround.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/ensureSurround.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,0BAAwB;AAGjD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,OAAO,SAAS,MAAM,EACtB,QAAQ,SAAS,MAAM,EACvB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,IAEtB,MAAM,SAAS,MAAM,SACxB,MAAM,KACZ,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAU7C"}
|