inferred-types 0.46.0 → 0.47.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/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/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/tsconfig.tsbuildinfo +1 -1
- package/dist/inferred-types/index.cjs +3973 -0
- 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/HasArray.js +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/CSS.d.ts +13 -0
- package/dist/types/string-literals/character-sets/CSS.d.ts.map +1 -1
- 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/index.d.ts +1 -1
- package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.js +1 -1
- 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/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 -36
- 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/base-types/{fns/AnyFnWithDict.js → LikeRegExp.js} +0 -0
- /package/dist/types/base-types/fns/{FnWithDict.js → FnAllowingProps.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/queues/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifo.d.ts","sourceRoot":"","sources":["../../../src/runtime/queues/lifo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,UAAU,EAAE,0BAAwB;AAsC1E,eAAO,MAAM,eAAe,GAC1B,CAAC,SAAS,SAAS,CAAC,EAAE,EACtB,CAAC,SAAS,UAAU,WACX,CAAC,yBAGX,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const queue = (state) => ({
|
|
2
|
+
queue: state,
|
|
3
|
+
size: state.length,
|
|
4
|
+
isEmpty() {
|
|
5
|
+
return state.length === 0;
|
|
6
|
+
},
|
|
7
|
+
push(...add) {
|
|
8
|
+
state.push(...add);
|
|
9
|
+
},
|
|
10
|
+
drop(quantity) {
|
|
11
|
+
state.splice(-quantity);
|
|
12
|
+
},
|
|
13
|
+
clear() {
|
|
14
|
+
state.slice(0, 0);
|
|
15
|
+
},
|
|
16
|
+
drain() {
|
|
17
|
+
const old_state = [...state];
|
|
18
|
+
state.slice(0, 0);
|
|
19
|
+
return old_state;
|
|
20
|
+
},
|
|
21
|
+
take(quantity) {
|
|
22
|
+
const result = state.slice(-quantity);
|
|
23
|
+
state.splice(-quantity);
|
|
24
|
+
return result;
|
|
25
|
+
},
|
|
26
|
+
[Symbol.iterator]: function* () {
|
|
27
|
+
for (let i = state.length - 1; i >= 0; i--) {
|
|
28
|
+
yield state[i];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export const createLifoQueue = (...list) => {
|
|
33
|
+
return queue([...list]);
|
|
34
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Narrowable, SimpleContainerToken, SimpleScalarToken, SimpleType, SimpleUnionToken } from "../../types/index";
|
|
2
|
+
export declare const asSimpleToken: <T extends Narrowable>(_val: T) => string;
|
|
3
|
+
/**
|
|
4
|
+
* **simpleScalarTokenToTypeToken**`(val)`
|
|
5
|
+
*
|
|
6
|
+
* Receives a `SimpleScalarToken` and converts it's runtime value to a
|
|
7
|
+
* more full fledged `TypeToken` while converting the _type_ to be the
|
|
8
|
+
* type that the token represents.
|
|
9
|
+
*
|
|
10
|
+
* **Related:** `simplContainerTokenToTypeToken`, `asTypeToken`
|
|
11
|
+
*/
|
|
12
|
+
export declare const simpleScalarTokenToTypeToken: <T extends SimpleScalarToken>(val: T) => SimpleType<T>;
|
|
13
|
+
/**
|
|
14
|
+
* **simpleUnionTokenToTypeToken**`(val)`
|
|
15
|
+
*
|
|
16
|
+
* Converts a `SimpleUnionToken` to a `TypeToken` and converts the type to
|
|
17
|
+
* the type _represented_ by the token.
|
|
18
|
+
*
|
|
19
|
+
* Note:
|
|
20
|
+
* - when passing in _literals_ such as `opt(42)` it will evaluate the value
|
|
21
|
+
* as being a numeric or a boolean literal and use that type if it is
|
|
22
|
+
*/
|
|
23
|
+
export declare const simpleUnionTokenToTypeToken: <T extends SimpleUnionToken>(val: T) => SimpleType<T>;
|
|
24
|
+
/**
|
|
25
|
+
* **simpleContainerTokenToTypeToken**`(val)`
|
|
26
|
+
*
|
|
27
|
+
* Receives a `SimpleContainerToken` and converts it's runtime value to a
|
|
28
|
+
* more full fledged `TypeToken` while converting the _type_ to be the
|
|
29
|
+
* type that the token represents.
|
|
30
|
+
*
|
|
31
|
+
* **Related:** `simpleScalarTokenToTypeToken`, `asTypeToken`
|
|
32
|
+
*/
|
|
33
|
+
export declare const simpleContainerTokenToTypeToken: <T extends SimpleContainerToken>(_val: T) => void;
|
|
34
|
+
export declare const asTypeToken: <T extends Narrowable>(_val: T) => string;
|
|
35
|
+
//# sourceMappingURL=asToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asToken.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/asToken.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EACjB,0BAAwB;AAazB,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,UAAU,QAAQ,CAAC,WAE1D,CAAA;AAoCD;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,iBAAiB,OAAO,CAAC,KAazE,UAAU,CAAC,CAAC,CAClB,CAAA;AA8BD;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,gBAAgB,OAAO,CAAC,KASvE,UAAU,CAAC,CAAC,CAClB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,oBAAoB,QAAQ,CAAC,SAEtF,CAAA;AAID,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,UAAU,QAAQ,CAAC,WAExD,CAAA"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { isBooleanLike, isNumberLike, isSimpleContainerToken, isSimpleScalarToken, simpleScalarToken, stripAfter, stripBefore, stripSurround } from "../index.js";
|
|
2
|
+
// TODO
|
|
3
|
+
export const asSimpleToken = (_val) => {
|
|
4
|
+
return "not ready";
|
|
5
|
+
};
|
|
6
|
+
const scalarToToken = {
|
|
7
|
+
string: "<<string>>",
|
|
8
|
+
number: "<<number>>",
|
|
9
|
+
boolean: "<<boolean>>",
|
|
10
|
+
true: "<<true>>",
|
|
11
|
+
false: "<<false>>",
|
|
12
|
+
null: "<<null>>",
|
|
13
|
+
undefined: "<<undefined>>",
|
|
14
|
+
unknown: "<<unknown>>",
|
|
15
|
+
any: "<<any>>",
|
|
16
|
+
never: "<<never>>",
|
|
17
|
+
};
|
|
18
|
+
const _containerToToken = {
|
|
19
|
+
"array(string)": "",
|
|
20
|
+
"array(boolean)": "",
|
|
21
|
+
"array(number)": "",
|
|
22
|
+
"array(unknown)": "",
|
|
23
|
+
};
|
|
24
|
+
const unionToToken = {
|
|
25
|
+
"opt(string)": "<<union::[ <<string>>, <<undefined>> ]>>",
|
|
26
|
+
"opt(number)": "<<union::[ <<number>>, <<undefined>> ]>>",
|
|
27
|
+
"opt(unknown)": "<<union::[ <<unknown>>, <<undefined>> ]>>",
|
|
28
|
+
"opt(boolean)": "<<union::[ <<boolean>>, <<undefined>> ]>>",
|
|
29
|
+
};
|
|
30
|
+
const stringLiteral = (str) => {
|
|
31
|
+
return stripAfter(stripBefore(str, "string("), ")");
|
|
32
|
+
};
|
|
33
|
+
const numericLiteral = (str) => {
|
|
34
|
+
return stripAfter(stripBefore(str, "number("), ")");
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* **simpleScalarTokenToTypeToken**`(val)`
|
|
38
|
+
*
|
|
39
|
+
* Receives a `SimpleScalarToken` and converts it's runtime value to a
|
|
40
|
+
* more full fledged `TypeToken` while converting the _type_ to be the
|
|
41
|
+
* type that the token represents.
|
|
42
|
+
*
|
|
43
|
+
* **Related:** `simplContainerTokenToTypeToken`, `asTypeToken`
|
|
44
|
+
*/
|
|
45
|
+
export const simpleScalarTokenToTypeToken = (val) => {
|
|
46
|
+
return (val in scalarToToken
|
|
47
|
+
? scalarToToken[val]
|
|
48
|
+
: val.startsWith("string(")
|
|
49
|
+
? stringLiteral(val).includes(",")
|
|
50
|
+
? `<<union::[ ${stringLiteral(val).split(/,\s{0,1}/).map(i => `"${i}"`).join(", ")} ]>>`
|
|
51
|
+
: `<<string::${stringLiteral(val)}>>`
|
|
52
|
+
: val.startsWith("number(")
|
|
53
|
+
? numericLiteral(val).includes(",")
|
|
54
|
+
? `<<union::[ ${numericLiteral(val).split(/,\s{0,1}/).join(", ")} ]>>`
|
|
55
|
+
: `<<number::${numericLiteral(val)}>>`
|
|
56
|
+
: `<<never>>`);
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* converts a node in the union to a proper token or tokens
|
|
60
|
+
*/
|
|
61
|
+
const unionNode = (node) => {
|
|
62
|
+
return isNumberLike(node)
|
|
63
|
+
? `<<number::${node}>>`
|
|
64
|
+
: isBooleanLike(node)
|
|
65
|
+
? `<<${node}>>`
|
|
66
|
+
: isSimpleContainerToken(node)
|
|
67
|
+
? simpleContainerTokenToTypeToken(node)
|
|
68
|
+
: isSimpleScalarToken(node)
|
|
69
|
+
? simpleScalarToken(node)
|
|
70
|
+
: `<<string::${node}>>`;
|
|
71
|
+
};
|
|
72
|
+
const union = (nodes) => {
|
|
73
|
+
return Array.isArray(nodes)
|
|
74
|
+
? nodes.map(n => unionNode(n))
|
|
75
|
+
: nodes.includes(",")
|
|
76
|
+
? nodes.split(/,\s{0,1}/).map(n => unionNode(n)).join(", ")
|
|
77
|
+
: unionNode(nodes);
|
|
78
|
+
};
|
|
79
|
+
const stripOpt = stripSurround("opt(", ")");
|
|
80
|
+
const stripUnion = stripSurround("Union(", ")");
|
|
81
|
+
/**
|
|
82
|
+
* **simpleUnionTokenToTypeToken**`(val)`
|
|
83
|
+
*
|
|
84
|
+
* Converts a `SimpleUnionToken` to a `TypeToken` and converts the type to
|
|
85
|
+
* the type _represented_ by the token.
|
|
86
|
+
*
|
|
87
|
+
* Note:
|
|
88
|
+
* - when passing in _literals_ such as `opt(42)` it will evaluate the value
|
|
89
|
+
* as being a numeric or a boolean literal and use that type if it is
|
|
90
|
+
*/
|
|
91
|
+
export const simpleUnionTokenToTypeToken = (val) => {
|
|
92
|
+
return (val in unionToToken
|
|
93
|
+
? unionToToken[val]
|
|
94
|
+
: val.startsWith(`Union(`) && val.endsWith(`)`)
|
|
95
|
+
? `<<union::[ ${union(stripUnion(val))} ]>>`
|
|
96
|
+
: val.startsWith(`opt(`) && val.endsWith(`)`)
|
|
97
|
+
? `<<union::[ ${union(stripOpt(val))}, <<undefined>> ]>>`
|
|
98
|
+
: `<<never>>`);
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* **simpleContainerTokenToTypeToken**`(val)`
|
|
102
|
+
*
|
|
103
|
+
* Receives a `SimpleContainerToken` and converts it's runtime value to a
|
|
104
|
+
* more full fledged `TypeToken` while converting the _type_ to be the
|
|
105
|
+
* type that the token represents.
|
|
106
|
+
*
|
|
107
|
+
* **Related:** `simpleScalarTokenToTypeToken`, `asTypeToken`
|
|
108
|
+
*/
|
|
109
|
+
export const simpleContainerTokenToTypeToken = (_val) => {
|
|
110
|
+
// TODO
|
|
111
|
+
};
|
|
112
|
+
// TODO
|
|
113
|
+
export const asTypeToken = (_val) => {
|
|
114
|
+
return "not ready";
|
|
115
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SimpleScalarToken, SimpleToken, SimpleType } from "../../types/runtime-types";
|
|
2
|
+
export declare const asType: <T extends SimpleToken>(val: T) => SimpleType<T>;
|
|
3
|
+
export declare const asStringLiteral: <T extends readonly SimpleScalarToken[]>(...values: T) => any[];
|
|
4
|
+
//# sourceMappingURL=asType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asType.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/asType.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EACjB,WAAW,EACX,UAAU,EACX,kCAAgC;AAGjC,eAAO,MAAM,MAAM,GACjB,CAAC,SAAS,WAAW,OAChB,CAAC,KAID,UAAU,CAAC,CAAC,CAClB,CAAA;AAED,eAAO,MAAM,eAAe,GAC1B,CAAC,SAAS,SAAS,iBAAiB,EAAE,aAC3B,CAAC,UAGb,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// /* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
// /* eslint-disable no-use-before-define */
|
|
3
|
-
// import {
|
|
4
|
-
// Choice,
|
|
3
|
+
// import {
|
|
4
|
+
// Choice,
|
|
5
5
|
// ChoiceValue,
|
|
6
6
|
// AsChoice,
|
|
7
7
|
// Scalar,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// } from "src/types/index";
|
|
14
14
|
// import { isDoneFn, isFunction, isString, isTuple, isUndefined } from "../type-guards/index";
|
|
15
15
|
// import { shape } from "./shape";
|
|
16
|
-
// import { Never } from "src/constants/
|
|
16
|
+
// import { Never } from "src/constants/index";
|
|
17
17
|
// export const createChoice: CreateChoice = <
|
|
18
18
|
// TName extends string,
|
|
19
19
|
// TValue extends ChoiceValue
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
// ? { name, value: value(shape) }
|
|
25
25
|
// : { name, value }
|
|
26
26
|
// return (
|
|
27
|
-
// isDoneFn(result)
|
|
28
|
-
// ? result.done()
|
|
27
|
+
// isDoneFn(result)
|
|
28
|
+
// ? result.done()
|
|
29
29
|
// : result
|
|
30
30
|
// ) as AsChoice<TName,TValue>;
|
|
31
31
|
// }
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
// TChoices extends readonly Choice[],
|
|
34
34
|
// TOptions extends ChoiceApiOptions
|
|
35
35
|
// >(
|
|
36
|
-
// choices: TChoices,
|
|
36
|
+
// choices: TChoices,
|
|
37
37
|
// options: TOptions
|
|
38
38
|
// ): ChoiceApiConfig<TChoices,TOptions> => ({
|
|
39
39
|
// done: () => ({} as unknown as ChoiceApi<TChoices,TOptions>),
|
|
40
40
|
// allowChoicesToBeUsedOnlyOnce: () => configureChoiceApi(
|
|
41
|
-
// choices,
|
|
41
|
+
// choices,
|
|
42
42
|
// {...options, unique: true}
|
|
43
43
|
// ),
|
|
44
44
|
// allowChoicesToBeUsedMultipleTimes: () => configureChoiceApi(
|
|
45
|
-
// choices,
|
|
45
|
+
// choices,
|
|
46
46
|
// {...options, unique: false}
|
|
47
47
|
// ),
|
|
48
48
|
// setStyle: (style) => configureChoiceApi(
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from "./shape";
|
|
2
2
|
export * from "./choices";
|
|
3
3
|
export * from "./list";
|
|
4
|
-
export * from "./dict";
|
|
5
4
|
export * from "./ip6Prefix";
|
|
6
|
-
export * from "./
|
|
5
|
+
export * from "./asType";
|
|
6
|
+
export * from "./asToken";
|
|
7
|
+
export * from "./tokens/index";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./shape.js";
|
|
2
2
|
export * from "./choices.js";
|
|
3
3
|
export * from "./list.js";
|
|
4
|
-
export * from "./dict.js";
|
|
5
4
|
export * from "./ip6Prefix.js";
|
|
6
|
-
export * from "./
|
|
5
|
+
export * from "./asType.js";
|
|
6
|
+
export * from "./asToken.js";
|
|
7
|
+
export * from "./tokens/index.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AsIp6Prefix } from "../../types/index";
|
|
2
|
-
export declare const ip6Prefix: <T extends readonly
|
|
1
|
+
import { AsIp6Prefix, Ip6Group } from "../../types/index";
|
|
2
|
+
export declare const ip6Prefix: <T extends readonly Ip6Group[]>(...groups: T) => AsIp6Prefix<T>;
|
|
3
3
|
//# sourceMappingURL=ip6Prefix.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip6Prefix.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/ip6Prefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"ip6Prefix.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/ip6Prefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,0BAAwB;AAIxD,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,SAAS,QAAQ,EAAE,aAAa,CAAC,KAc1C,WAAW,CAAC,CAAC,CACvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/list.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,EACT,OAAO,EACP,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,0BAAuB;AAIxB,KAAK,YAAY,CACf,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GACnD,OAAO,GACP,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAG9B,KAAK,QAAQ,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACtC,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GACzC,CAAC,SAAS,MAAM,GAChB,GAAG,GACH,CAAC,SAAS,MAAM,GAChB,GAAG,GACH,CAAC,SAAS,OAAO,GACjB,GAAG,GACH,CAAC,SAAS,KAAK,GACb,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACrB,OAAO,GACP,OAAO,GACX,CAAC,SAAS,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,GAClC,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GACrB,CAAC,SAAS,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAC7B,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GACrB,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,IAAI,GAC9B,GAAG,GACL,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,IAAI,GAC3B,GAAG,GACL,GAAG,CAAC;AAGR,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACxB,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GAC7B,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GACf,EAAE,GACJ,CAAC,SAAS,MAAM,GACd,gBAAgB,CAAC,CAAC,CAAC,SAAS,IAAI,GAC9B,GAAG,CAAC,EAAE,GACN,EAAE,GACJ,EAAE,CAAC;AAEX,KAAK,WAAW,CACd,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,OAAO,SAAS,MAAM,GAAG,EAAE,IACzB,EAAE,SAAS,CAAC,GACd,OAAO,GACP,WAAW,CACT,UAAU,CAAC,CAAC,CAAC,EACb,GAAG,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAC7B,CAAC;AAGJ,KAAK,QAAQ,CACX,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAC/C,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,GAC/B,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,CAAA;AAE/D,MAAM,MAAM,MAAM,CAChB,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,IAAI,CACN,YAAY,CAAC,CAAC,CAAC,EACf,QAAQ,CAAC,CAAC,CAAC,CACZ,CAAC;AAoBF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/list.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,EACT,OAAO,EACP,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,0BAAuB;AAIxB,KAAK,YAAY,CACf,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GACnD,OAAO,GACP,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAG9B,KAAK,QAAQ,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACtC,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GACzC,CAAC,SAAS,MAAM,GAChB,GAAG,GACH,CAAC,SAAS,MAAM,GAChB,GAAG,GACH,CAAC,SAAS,OAAO,GACjB,GAAG,GACH,CAAC,SAAS,KAAK,GACb,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACrB,OAAO,GACP,OAAO,GACX,CAAC,SAAS,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,GAClC,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GACrB,CAAC,SAAS,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAC7B,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GACrB,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,IAAI,GAC9B,GAAG,GACL,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,IAAI,GAC3B,GAAG,GACL,GAAG,CAAC;AAGR,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACxB,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GAC7B,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GACf,EAAE,GACJ,CAAC,SAAS,MAAM,GACd,gBAAgB,CAAC,CAAC,CAAC,SAAS,IAAI,GAC9B,GAAG,CAAC,EAAE,GACN,EAAE,GACJ,EAAE,CAAC;AAEX,KAAK,WAAW,CACd,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,OAAO,SAAS,MAAM,GAAG,EAAE,IACzB,EAAE,SAAS,CAAC,GACd,OAAO,GACP,WAAW,CACT,UAAU,CAAC,CAAC,CAAC,EACb,GAAG,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAC7B,CAAC;AAGJ,KAAK,QAAQ,CACX,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAC/C,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,GAC/B,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,CAAA;AAE/D,MAAM,MAAM,MAAM,CAChB,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,IAAI,CACN,YAAY,CAAC,CAAC,CAAC,EACf,QAAQ,CAAC,CAAC,CAAC,CACZ,CAAC;AAoBF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,GACf,KAAK,SAAS,SAAS,CAAC,EAAE,GAAG,SAAS,CAAE,SAAS,CAAC,EAAE,CAAE,EACtD,CAAC,SAAS,UAAU,WACX,KAAK,KAME,KAAK,SAAS,SAAS,CAAE,SAAS,CAAC,EAAE,CAAE,GACnD,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAChD,KAAK,SAAS,SAAS,CAAC,EAAE,GAC1B,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,GAC1C,KACL,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rec.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/rec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAG7C,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"rec.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/rec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAG7C,eAAO,MAAM,GAAG,GACd,CAAC,SAAS,UAAU,EACpB,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,QAExB,IAAI,SAGX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/addToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,6BAAwB;AAE3D;;;GAGG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"addToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/addToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,6BAAwB;AAE3D;;;GAGG;AACH,eAAO,MAAM,QAAQ,GACnB,CAAC,SAAS,aAAa,EACvB,KAAK,SAAS,SAAS,MAAM,EAAE,SACxB,CAAC,aAAa,KAAK,KAC2C,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atomics.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/atomics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,6BAAwB;AAEtD,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"atomics.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/atomics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,6BAAwB;AAEtD,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,OAAO,YAAY,CAAC,KAQtC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AAEpE,eAAO,MAAM,OAAO,QAA0B,OAAO,CAAC;AAEtD,eAAO,MAAM,aAAa,QAAuC,SAAS,CAAC;AAE3E,eAAO,MAAM,QAAQ,QAAkC,IAAI,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAmC,KAAK,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { AsLiteralFn, FnArgsDefn, FnReturnTypeDefn, FromDefn, FromWideTokens } from "../../../types/index";
|
|
1
|
+
import { AsLiteralFn, FnArgsDefn, FnPropertiesDefn, FnReturnTypeDefn, FromDefn, FromWideTokens } from "../../../types/index";
|
|
2
|
+
/**
|
|
3
|
+
* **fn**
|
|
4
|
+
*
|
|
5
|
+
* provides an API surface for function definition
|
|
6
|
+
*/
|
|
2
7
|
export declare const fn: <TArgs extends readonly FnArgsDefn[]>(..._args: TArgs) => {
|
|
3
8
|
returns: <TReturn extends FnReturnTypeDefn>(_rtn: TReturn) => {
|
|
4
|
-
addProperties: <TProps extends
|
|
9
|
+
addProperties: <TProps extends FnPropertiesDefn>(_kv: TProps) => AsLiteralFn<FromWideTokens<TArgs, FromDefn<TArgs>>, FromWideTokens<TReturn, FromDefn<TReturn>>, FromDefn<TProps>>;
|
|
5
10
|
done: () => AsLiteralFn<FromDefn<TArgs>, FromDefn<TReturn>>;
|
|
6
11
|
};
|
|
7
12
|
done: () => AsLiteralFn<FromDefn<TArgs>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACf,6BAAwB;AAEzB;;;;GAIG;AACH,eAAO,MAAM,EAAE,GAAI,KAAK,SAAS,SAAS,UAAU,EAAE,YAAY,KAAK;cAC3D,OAAO,SAAS,gBAAgB,QAAQ,OAAO;wBACvC,MAAM,SAAS,gBAAgB,OAAO,MAAM,KAEhC,WAAW,CACnC,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,EACtC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,EAC1C,QAAQ,CAAC,MAAM,CAAC,CACjB;oBAGyB,WAAW,CACnC,QAAQ,CAAC,KAAK,CAAC,EACf,QAAQ,CAAC,OAAO,CAAC,CAClB;;gBAKyB,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;CAE1D,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Shape } from "../../../types/index";
|
|
1
2
|
/**
|
|
2
3
|
* **getTokenData**`(token)`
|
|
3
4
|
*
|
|
4
5
|
* Given a `Shape` token, this function will extract the
|
|
5
6
|
* data parameters from the token.
|
|
6
7
|
*/
|
|
7
|
-
export declare const getTokenData: <T extends
|
|
8
|
+
export declare const getTokenData: <T extends Shape>(token: T) => string[];
|
|
8
9
|
//# sourceMappingURL=getTokenData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenData.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/getTokenData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTokenData.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/getTokenData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,6BAAwB;AAGxC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,KAAK,SAAS,CAAC,aAIrD,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Shape } from "../../../types/index";
|
|
1
2
|
/**
|
|
2
3
|
* **getTokenName**`(token)`
|
|
3
4
|
*
|
|
4
5
|
* Given a `Shape` token, this function will extract the
|
|
5
6
|
*/
|
|
6
|
-
export declare const getTokenName: <T extends
|
|
7
|
+
export declare const getTokenName: <T extends Shape>(token: T) => string;
|
|
7
8
|
//# sourceMappingURL=getTokenName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenName.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/getTokenName.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTokenName.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/getTokenName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,6BAAwB;AAGxC;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,KAAK,SAAS,CAAC,WAIrD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"literal-containers.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/literal-containers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,6BAAwB;AAI1E,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"literal-containers.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/literal-containers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,6BAAwB;AAI1E,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,kBAAkB,QAAQ,CAAC,KAGpC,QAAQ,CAAC,CAAC,CACrC,CAAC;AAGF,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,SAAS,SAAS,EAAE,gBAAgB,CAAC,KAEzC,QAAQ,CAAC,CAAC,CACrC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AsType, SimpleToken } from "../../../types/index";
|
|
2
|
+
/**
|
|
3
|
+
* **regexToken**`(re, ...rep)`
|
|
4
|
+
*
|
|
5
|
+
* Creates a `TypeToken` that is a form of string literal and
|
|
6
|
+
* represented in the type system via the use of the `SimpleToken`
|
|
7
|
+
* elements defined in "rep" but then with the RegExp encoded into
|
|
8
|
+
* the token too so that it can be used for validation during
|
|
9
|
+
* runtime.
|
|
10
|
+
*/
|
|
11
|
+
export declare const regexToken: <TExp extends RegExp | string, TRep extends readonly SimpleToken[]>(re: TExp, ...rep: TRep) => AsType<TRep>;
|
|
12
|
+
//# sourceMappingURL=regexToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regexToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/regexToken.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,6BAAwB;AAEtD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GACrB,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,IAAI,SAAS,SAAS,WAAW,EAAE,MAC/B,IAAI,UAAU,IAAI,KA2BN,MAAM,CAAC,IAAI,CAC5B,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { isRegExp, isString } from "../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* **regexToken**`(re, ...rep)`
|
|
4
|
+
*
|
|
5
|
+
* Creates a `TypeToken` that is a form of string literal and
|
|
6
|
+
* represented in the type system via the use of the `SimpleToken`
|
|
7
|
+
* elements defined in "rep" but then with the RegExp encoded into
|
|
8
|
+
* the token too so that it can be used for validation during
|
|
9
|
+
* runtime.
|
|
10
|
+
*/
|
|
11
|
+
export const regexToken = (re, ...rep) => {
|
|
12
|
+
let exp = "";
|
|
13
|
+
if (isString(re)) {
|
|
14
|
+
// regex's coming in as a string must be validated
|
|
15
|
+
try {
|
|
16
|
+
const test = new RegExp(re);
|
|
17
|
+
if (!isRegExp(test)) {
|
|
18
|
+
const err = Error(`Invalid RegEx passed into regexToken(${re}, ${JSON.stringify(rep)})!`);
|
|
19
|
+
err.name = "InvalidRegEx";
|
|
20
|
+
throw err;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
exp = re;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
catch (_e) {
|
|
27
|
+
const err = Error(`Invalid RegEx passed into regexToken(${re}, ${JSON.stringify(rep)})!`);
|
|
28
|
+
err.name = "InvalidRegEx";
|
|
29
|
+
throw err;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else if (isRegExp(re)) {
|
|
33
|
+
// all representations must be stored as as a string
|
|
34
|
+
exp = re.toString();
|
|
35
|
+
}
|
|
36
|
+
// exp has been validated as valid
|
|
37
|
+
const token = `<<string-set::regexp::${encodeURIComponent(exp)}>>`;
|
|
38
|
+
return token;
|
|
39
|
+
};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { StringTokenUtilities, TupleToUnion } from "../../../types/index";
|
|
2
|
+
/**
|
|
3
|
+
* **string**
|
|
4
|
+
*
|
|
5
|
+
* The API surface for adding string tokens
|
|
6
|
+
*/
|
|
2
7
|
export declare const string: <L extends readonly string[]>(...literals: L) => L["length"] extends 0 ? StringTokenUtilities<string> : L["length"] extends 1 ? L[0] : TupleToUnion<L>;
|
|
8
|
+
/**
|
|
9
|
+
* **number**
|
|
10
|
+
*
|
|
11
|
+
* The API surface for adding number tokens
|
|
12
|
+
*/
|
|
3
13
|
export declare const number: <L extends readonly number[]>(...literals: L) => L["length"] extends 0 ? number : L["length"] extends 1 ? L[0] : TupleToUnion<L>;
|
|
4
14
|
//# sourceMappingURL=singletons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"singletons.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/singletons.ts"],"names":[],"mappings":"AAAC,OAAO,EAMN,oBAAoB,EAGpB,YAAY,
|
|
1
|
+
{"version":3,"file":"singletons.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/singletons.ts"],"names":[],"mappings":"AAAC,OAAO,EAMN,oBAAoB,EAGpB,YAAY,EAMb,6BAAwB;AA8EzB;;;;GAIG;AACH,eAAO,MAAM,MAAM,GApEjB,CAAC,oJAoEoD,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GA3EjB,CAAC,8HA2EyC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { addToken } from "./addToken.js";
|
|
2
|
+
import { regexToken } from "./regexToken.js";
|
|
2
3
|
/**
|
|
3
4
|
* Generates a token and then types it appropriates for the given Singleton
|
|
4
5
|
*/
|
|
@@ -26,7 +27,21 @@ const stringApi = ({
|
|
|
26
27
|
numericString: () => addToken("string-set", "numeric"),
|
|
27
28
|
ipv4Address: () => addToken("string-set", "ipv4Address"),
|
|
28
29
|
ipv6Address: () => addToken("string-set", "ipv6Address"),
|
|
30
|
+
regex: (exp, ...literalRepresentation) => {
|
|
31
|
+
const token = regexToken(exp, ...literalRepresentation);
|
|
32
|
+
return token;
|
|
33
|
+
},
|
|
29
34
|
done: () => addToken("string")
|
|
30
35
|
});
|
|
36
|
+
/**
|
|
37
|
+
* **string**
|
|
38
|
+
*
|
|
39
|
+
* The API surface for adding string tokens
|
|
40
|
+
*/
|
|
31
41
|
export const string = addSingleton("string", stringApi);
|
|
42
|
+
/**
|
|
43
|
+
* **number**
|
|
44
|
+
*
|
|
45
|
+
* The API surface for adding number tokens
|
|
46
|
+
*/
|
|
32
47
|
export const number = addSingleton("number");
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { AsUnion, UnionElDefn } from "../../../types/index";
|
|
2
|
+
/**
|
|
3
|
+
* **union**
|
|
4
|
+
*
|
|
5
|
+
* provides API implementation for defining a union
|
|
6
|
+
*/
|
|
2
7
|
export declare const union: <U extends readonly [UnionElDefn, ...UnionElDefn[]]>(...elements: U) => AsUnion<U>;
|
|
3
8
|
//# sourceMappingURL=union.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/union.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,6BAAwB;
|
|
1
|
+
{"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/union.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,6BAAwB;AAGvD;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,SAAS,CAAC,WAAW,EAAC,GAAG,WAAW,EAAE,CAAC,eAAe,CAAC,KAKpE,OAAO,CAAC,CAAC,CAC3B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArrayTypeDefn, AsArray, FromDefn, HandleDoneFn, MapKeyDefn, MapValueDefn, ObjKeyDefn, RecordValueTypeDefn, ShapeCallback, WeakMapKeyDefn, WeakMapValueDefn, WideTokenNames } from "../../../types/index";
|
|
2
2
|
export declare const record: <TKey extends ObjKeyDefn = "string | symbol", TValue extends RecordValueTypeDefn = "unknown">(_key?: TKey, _value?: TValue) => Record<FromDefn<TKey>, FromDefn<TValue>>;
|
|
3
3
|
export declare const array: <T extends ArrayTypeDefn = "unknown[]">(_type?: T) => AsArray<FromDefn<T>>;
|
|
4
|
-
export declare const set: <T extends
|
|
4
|
+
export declare const set: <T extends WideTokenNames | ShapeCallback = "unknown">(_type?: T) => T extends ShapeCallback ? Set<HandleDoneFn<ReturnType<T>>> : T extends WideTokenNames ? Set<FromDefn<T>> : Set<unknown>;
|
|
5
5
|
export declare const map: <TKey extends MapKeyDefn = "unknown", TValue extends MapValueDefn = "unknown">(_key?: TKey, _value?: TValue) => Map<FromDefn<TKey>, FromDefn<TValue>>;
|
|
6
6
|
export declare const weakMap: <TKey extends WeakMapKeyDefn = "object", TValue extends WeakMapValueDefn = "unknown">(_key?: TKey, _value?: TValue) => WeakMap<FromDefn<TKey> extends object ? FromDefn<TKey> : never, FromDefn<TValue>>;
|
|
7
7
|
//# sourceMappingURL=wide-containers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wide-containers.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/wide-containers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACf,6BAAwB;AAGzB,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"wide-containers.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/wide-containers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACf,6BAAwB;AAGzB,eAAO,MAAM,MAAM,GACjB,IAAI,SAAS,UAAU,sBACvB,MAAM,SAAS,mBAAmB,qBAC3B,IAAI,WAAW,MAAM,KAEF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAClE,CAAA;AAED,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,aAAa,wBACnC,CAAC,KAGiB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,CAAC,SAAS,cAAc,GAAG,aAAa,sBAAsB,CAAC,KACvD,CAAC,SAAS,aAAa,GAC7C,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAChC,CAAC,SAAS,cAAc,GACtB,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAChB,GAAG,CAAC,OAAO,CAClB,CAAC;AAEF,eAAO,MAAM,GAAG,GACd,IAAI,SAAS,UAAU,cACvB,MAAM,SAAS,YAAY,qBACpB,IAAI,WAAW,MAAM,KAEF,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAC/D,CAAA;AAED,eAAO,MAAM,OAAO,GAClB,IAAI,SAAS,cAAc,aAC3B,MAAM,SAAS,gBAAgB,qBACxB,IAAI,WAAW,MAAM,KAEF,OAAO,CAC/B,QAAQ,CAAC,IAAI,CAAC,SAAS,MAAM,GAC3B,QAAQ,CAAC,IAAI,CAAC,GACd,KAAK,EACP,QAAQ,CAAC,MAAM,CAAC,CAEnB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ShapeApi as TShapeApi, ShapeCallback, HandleDoneFn } from "../../types/index";
|
|
1
|
+
import { Shape, ShapeApi as TShapeApi, ShapeCallback, HandleDoneFn } from "../../types/index";
|
|
2
2
|
export declare const ShapeApiImplementation: TShapeApi;
|
|
3
3
|
/**
|
|
4
4
|
* **shape**(s => s.[API])
|
|
@@ -14,5 +14,5 @@ export declare const shape: <T extends ShapeCallback>(cb: T) => HandleDoneFn<Ret
|
|
|
14
14
|
*
|
|
15
15
|
* Type guard which tests whether a value is a _type_ defined by a `Shape`.
|
|
16
16
|
*/
|
|
17
|
-
export declare const isShape: (v: unknown) => v is
|
|
17
|
+
export declare const isShape: (v: unknown) => v is Shape;
|
|
18
18
|
//# sourceMappingURL=shape.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/shape.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/shape.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAEL,QAAQ,IAAI,SAAS,EACrB,aAAa,EACb,YAAY,EACb,0BAAwB;AA8BzB,eAAO,MAAM,sBAAsB,EAgBnB,SAAS,CAAA;AAEzB;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,GAChB,CAAC,SAAS,aAAa,MACnB,CAAC,KAAG,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAKnC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,MAAO,OAAO,KAAG,CAAC,IAAI,KAMzC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SHAPE_PREFIXES } from "../../constants/
|
|
1
|
+
import { SHAPE_PREFIXES } from "../../constants/index.js";
|
|
2
2
|
import { isString, hasKeys, isObject, handleDoneFn, } from "../index.js";
|
|
3
3
|
import { boolean, nullType, undefinedType, unknown } from "./shape-helpers/atomics.js";
|
|
4
4
|
import { number, string } from "./shape-helpers/singletons.js";
|