inferred-types 0.42.1 → 0.43.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/Comma.d.ts +1 -1
- package/dist/constants/Comma.d.ts.map +1 -1
- package/dist/constants/Comma.js +1 -1
- package/dist/constants/Functional.d.ts +19 -0
- package/dist/constants/Functional.d.ts.map +1 -0
- package/dist/constants/Functional.js +18 -0
- package/dist/constants/Geo.d.ts +386 -0
- package/dist/constants/Geo.d.ts.map +1 -0
- package/dist/constants/Geo.js +95 -0
- package/dist/constants/HashTable.d.ts +199 -0
- package/dist/constants/HashTable.d.ts.map +1 -0
- package/dist/constants/HashTable.js +121 -0
- package/dist/constants/Marked.d.ts +2 -0
- package/dist/constants/Marked.d.ts.map +1 -0
- package/dist/constants/Marked.js +2 -0
- package/dist/constants/Shape.d.ts +3 -0
- package/dist/constants/Shape.d.ts.map +1 -0
- package/dist/constants/Shape.js +15 -0
- package/dist/constants/TCP_IP.d.ts +11 -0
- package/dist/constants/TCP_IP.d.ts.map +1 -0
- package/dist/constants/TCP_IP.js +10 -0
- package/dist/constants/TypeTokens.d.ts +23 -0
- package/dist/constants/TypeTokens.d.ts.map +1 -1
- package/dist/constants/TypeTokens.js +47 -0
- package/dist/constants/index.d.ts +6 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +6 -0
- package/dist/constants/tsconfig.tsbuildinfo +1 -1
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/boolean-logic/handleDoneFn.d.ts +12 -0
- package/dist/runtime/boolean-logic/handleDoneFn.d.ts.map +1 -0
- package/dist/runtime/boolean-logic/handleDoneFn.js +22 -0
- package/dist/runtime/boolean-logic/ifArray.d.ts +2 -2
- 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 +2 -2
- package/dist/runtime/boolean-logic/ifBoolean.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifChar.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifChar.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifContainer.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifContainer.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifContainer.js +1 -1
- package/dist/runtime/boolean-logic/ifFalse.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifFalse.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifFunction.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifFunction.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifFunction.js +0 -1
- package/dist/runtime/boolean-logic/ifHasKey.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifHasKey.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifLength.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifLength.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifLength.js +0 -1
- package/dist/runtime/boolean-logic/ifNotNull.d.ts +2 -2
- 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 +2 -2
- package/dist/runtime/boolean-logic/ifNumber.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifObject.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifObject.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifSameType.d.ts +3 -3
- package/dist/runtime/boolean-logic/ifSameType.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifSameType.js +6 -6
- package/dist/runtime/boolean-logic/ifScalar.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifScalar.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifString.d.ts +2 -2
- package/dist/runtime/boolean-logic/ifString.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifTrue.d.ts +2 -2
- 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/boolean-logic/index.d.ts +1 -1
- package/dist/runtime/boolean-logic/index.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/index.js +1 -3
- package/dist/runtime/combinators/and.d.ts +1 -1
- package/dist/runtime/combinators/and.d.ts.map +1 -1
- package/dist/runtime/combinators/index.d.ts +0 -1
- package/dist/runtime/combinators/index.d.ts.map +1 -1
- package/dist/runtime/combinators/index.js +0 -1
- package/dist/runtime/combinators/or.d.ts.map +1 -1
- package/dist/runtime/combinators/or.js +2 -1
- package/dist/runtime/dictionary/entries.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/get.js +8 -8
- package/dist/runtime/dictionary/index.d.ts +3 -2
- package/dist/runtime/dictionary/index.d.ts.map +1 -1
- package/dist/runtime/dictionary/index.js +3 -3
- package/dist/runtime/dictionary/keysOf.d.ts +2 -2
- package/dist/runtime/dictionary/keysOf.d.ts.map +1 -1
- package/dist/runtime/dictionary/keysOf.js +3 -2
- package/dist/runtime/dictionary/omit.d.ts +2 -7
- package/dist/runtime/dictionary/omit.d.ts.map +1 -1
- package/dist/runtime/dictionary/omit.js +2 -2
- package/dist/runtime/dictionary/retain.d.ts +9 -7
- package/dist/runtime/dictionary/retain.d.ts.map +1 -1
- package/dist/runtime/dictionary/sharedKeys.d.ts +2 -2
- package/dist/runtime/dictionary/sharedKeys.d.ts.map +1 -1
- package/dist/runtime/dictionary/takeProp.d.ts +12 -0
- package/dist/runtime/dictionary/takeProp.d.ts.map +1 -0
- package/dist/runtime/dictionary/takeProp.js +15 -0
- package/dist/runtime/dictionary/valuesOf.d.ts +10 -0
- package/dist/runtime/dictionary/valuesOf.d.ts.map +1 -0
- package/dist/runtime/dictionary/valuesOf.js +14 -0
- package/dist/runtime/dictionary/withDefaults.d.ts +9 -0
- package/dist/runtime/dictionary/withDefaults.d.ts.map +1 -0
- package/dist/runtime/dictionary/withDefaults.js +13 -0
- package/dist/runtime/dictionary/withKeys.d.ts +9 -7
- package/dist/runtime/dictionary/withKeys.d.ts.map +1 -1
- package/dist/runtime/dictionary/withKeys.js +1 -1
- package/dist/runtime/dictionary/withoutKeys.d.ts +13 -6
- 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 +27 -0
- package/dist/runtime/errors/KindError.d.ts.map +1 -0
- package/dist/runtime/errors/KindError.js +33 -0
- package/dist/runtime/errors/TypedError.d.ts.map +1 -1
- package/dist/runtime/errors/createErrorCondition.d.ts +3 -5
- package/dist/runtime/errors/createErrorCondition.d.ts.map +1 -1
- package/dist/runtime/errors/createErrorCondition.js +5 -5
- package/dist/runtime/errors/index.d.ts +1 -0
- package/dist/runtime/errors/index.d.ts.map +1 -1
- package/dist/runtime/errors/index.js +1 -0
- package/dist/runtime/errors/kindedError.d.ts +27 -0
- package/dist/runtime/errors/kindedError.d.ts.map +1 -0
- package/dist/runtime/errors/kindedError.js +33 -0
- package/dist/runtime/functional/index.d.ts +1 -2
- package/dist/runtime/functional/index.d.ts.map +1 -1
- package/dist/runtime/functional/index.js +1 -2
- package/dist/runtime/functional/result.d.ts +2 -0
- package/dist/runtime/functional/result.d.ts.map +1 -0
- package/dist/runtime/functional/result.js +286 -0
- package/dist/runtime/functions/fnMeta.d.ts +5 -9
- package/dist/runtime/functions/fnMeta.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -1
- 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/addPropsToFn.js +1 -2
- package/dist/runtime/initializers/createFnWithProps.d.ts +4 -21
- package/dist/runtime/initializers/createFnWithProps.d.ts.map +1 -1
- package/dist/runtime/initializers/createFnWithProps.js +12 -20
- package/dist/runtime/initializers/defineObj.d.ts +2 -2
- package/dist/runtime/initializers/defineObj.d.ts.map +1 -1
- package/dist/runtime/initializers/defineObj.js +4 -2
- package/dist/runtime/initializers/defineTuple.d.ts +3 -3
- package/dist/runtime/initializers/defineTuple.d.ts.map +1 -1
- package/dist/runtime/initializers/defineTuple.js +7 -2
- package/dist/runtime/initializers/index.d.ts +0 -3
- package/dist/runtime/initializers/index.d.ts.map +1 -1
- package/dist/runtime/initializers/index.js +0 -3
- package/dist/runtime/lists/asArray.d.ts.map +1 -1
- package/dist/runtime/lists/asArray.js +0 -1
- package/dist/runtime/lists/createComparison.d.ts +10 -0
- package/dist/runtime/lists/createComparison.d.ts.map +1 -0
- package/dist/runtime/lists/createComparison.js +9 -0
- package/dist/runtime/lists/createConverter.d.ts +2 -2
- package/dist/runtime/lists/createConverter.d.ts.map +1 -1
- package/dist/runtime/lists/createConverter.js +12 -12
- package/dist/runtime/lists/filter.d.ts +1 -2
- package/dist/runtime/lists/filter.d.ts.map +1 -1
- package/dist/runtime/lists/filter.js +55 -19
- package/dist/runtime/lists/find.d.ts +2 -2
- package/dist/runtime/lists/find.d.ts.map +1 -1
- package/dist/runtime/lists/find.js +3 -4
- package/dist/runtime/lists/getEach.d.ts +1 -1
- package/dist/runtime/lists/getEach.d.ts.map +1 -1
- package/dist/runtime/lists/getEach.js +5 -8
- package/dist/runtime/lists/indexOf.d.ts.map +1 -1
- package/dist/runtime/lists/indexOf.js +1 -1
- package/dist/runtime/lists/intersection.d.ts +1 -1
- package/dist/runtime/lists/intersection.d.ts.map +1 -1
- package/dist/runtime/lists/intersection.js +3 -3
- package/dist/runtime/lists/last.d.ts.map +1 -1
- package/dist/runtime/lists/logicalReturns.d.ts +2 -2
- package/dist/runtime/lists/logicalReturns.d.ts.map +1 -1
- package/dist/runtime/lists/logicalReturns.js +8 -3
- package/dist/runtime/lists/pop.d.ts +6 -3
- package/dist/runtime/lists/pop.d.ts.map +1 -1
- package/dist/runtime/lists/reverse.d.ts.map +1 -1
- package/dist/runtime/lists/shift.d.ts +2 -2
- package/dist/runtime/lists/shift.d.ts.map +1 -1
- 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/lists/unique.js +0 -1
- package/dist/runtime/literals/box.js +1 -3
- package/dist/runtime/literals/ensureLeading.d.ts +2 -2
- package/dist/runtime/literals/ensureLeading.d.ts.map +1 -1
- package/dist/runtime/literals/ensureSurround.d.ts +2 -4
- package/dist/runtime/literals/ensureSurround.d.ts.map +1 -1
- package/dist/runtime/literals/ensureSurround.js +6 -3
- package/dist/runtime/literals/ensureTrailing.d.ts.map +1 -1
- package/dist/runtime/literals/identity.d.ts.map +1 -1
- package/dist/runtime/literals/ifLowercase.d.ts +3 -3
- package/dist/runtime/literals/ifLowercase.d.ts.map +1 -1
- package/dist/runtime/literals/ifLowercase.js +0 -1
- package/dist/runtime/literals/ifUppercase.d.ts +5 -5
- package/dist/runtime/literals/ifUppercase.d.ts.map +1 -1
- package/dist/runtime/literals/ifUppercase.js +2 -3
- package/dist/runtime/literals/index.d.ts +1 -0
- package/dist/runtime/literals/index.d.ts.map +1 -1
- package/dist/runtime/literals/index.js +1 -0
- package/dist/runtime/literals/narrow.d.ts +2 -2
- package/dist/runtime/literals/narrow.d.ts.map +1 -1
- package/dist/runtime/literals/pathJoin.d.ts +1 -1
- package/dist/runtime/literals/pathJoin.d.ts.map +1 -1
- package/dist/runtime/literals/pathJoin.js +7 -9
- package/dist/runtime/literals/pluralize.d.ts.map +1 -1
- package/dist/runtime/literals/pluralize.js +4 -5
- package/dist/runtime/literals/split.d.ts +2 -2
- package/dist/runtime/literals/split.d.ts.map +1 -1
- package/dist/runtime/literals/stripTrailing.d.ts +1 -1
- package/dist/runtime/literals/stripTrailing.d.ts.map +1 -1
- package/dist/runtime/literals/stripTrailing.js +8 -1
- package/dist/runtime/literals/toLowercase.js +1 -1
- package/dist/runtime/literals/toNumericArray.d.ts.map +1 -1
- package/dist/runtime/literals/toPascalCase.d.ts.map +1 -1
- package/dist/runtime/literals/toSnakeCase.d.ts +2 -1
- package/dist/runtime/literals/toSnakeCase.d.ts.map +1 -1
- package/dist/runtime/literals/truncate.d.ts +3 -0
- package/dist/runtime/literals/truncate.d.ts.map +1 -0
- package/dist/runtime/literals/truncate.js +8 -0
- package/dist/runtime/literals/tuple.d.ts +2 -2
- package/dist/runtime/literals/tuple.d.ts.map +1 -1
- package/dist/runtime/runtime-types/choices.d.ts +2 -0
- package/dist/runtime/runtime-types/choices.d.ts.map +1 -0
- package/dist/runtime/runtime-types/choices.js +76 -0
- package/dist/runtime/runtime-types/dict.d.ts +10 -0
- package/dist/runtime/runtime-types/dict.d.ts.map +1 -0
- package/dist/runtime/runtime-types/dict.js +11 -0
- package/dist/runtime/runtime-types/index.d.ts +6 -6
- package/dist/runtime/runtime-types/index.d.ts.map +1 -1
- package/dist/runtime/runtime-types/index.js +6 -7
- package/dist/runtime/runtime-types/ip6Prefix.d.ts +3 -0
- package/dist/runtime/runtime-types/ip6Prefix.d.ts.map +1 -0
- package/dist/runtime/runtime-types/ip6Prefix.js +17 -0
- package/dist/runtime/runtime-types/list.d.ts +31 -0
- package/dist/runtime/runtime-types/list.d.ts.map +1 -0
- package/dist/runtime/runtime-types/list.js +36 -0
- package/dist/runtime/runtime-types/parse.d.ts +25 -0
- package/dist/runtime/runtime-types/parse.d.ts.map +1 -0
- package/dist/runtime/runtime-types/parse.js +29 -0
- package/dist/runtime/runtime-types/rec.d.ts +3 -0
- package/dist/runtime/runtime-types/rec.d.ts.map +1 -0
- package/dist/runtime/runtime-types/rec.js +3 -0
- package/dist/runtime/runtime-types/shape-helpers/addToken.d.ts +7 -0
- package/dist/runtime/runtime-types/shape-helpers/addToken.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/addToken.js +5 -0
- package/dist/runtime/runtime-types/shape-helpers/atomics.d.ts +7 -0
- package/dist/runtime/runtime-types/shape-helpers/atomics.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/atomics.js +13 -0
- package/dist/runtime/runtime-types/shape-helpers/functions.d.ts +9 -0
- package/dist/runtime/runtime-types/shape-helpers/functions.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/functions.js +15 -0
- package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts +8 -0
- package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/getTokenData.js +11 -0
- package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts +7 -0
- package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/getTokenName.js +10 -0
- package/dist/runtime/runtime-types/shape-helpers/literal-containers.d.ts +4 -0
- package/dist/runtime/runtime-types/shape-helpers/literal-containers.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/literal-containers.js +9 -0
- package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts +4 -0
- package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/singletons.js +32 -0
- package/dist/runtime/runtime-types/shape-helpers/union.d.ts +3 -0
- package/dist/runtime/runtime-types/shape-helpers/union.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/union.js +6 -0
- package/dist/runtime/runtime-types/shape-helpers/wide-containers.d.ts +7 -0
- package/dist/runtime/runtime-types/shape-helpers/wide-containers.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape-helpers/wide-containers.js +19 -0
- package/dist/runtime/runtime-types/shape.d.ts +18 -0
- package/dist/runtime/runtime-types/shape.d.ts.map +1 -0
- package/dist/runtime/runtime-types/shape.js +69 -0
- package/dist/runtime/sets/uniqueKeys.d.ts.map +1 -1
- package/dist/runtime/sets/uniqueKeys.js +14 -9
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-conversion/asRecord.d.ts +10 -0
- package/dist/runtime/type-conversion/asRecord.d.ts.map +1 -0
- package/dist/runtime/type-conversion/asRecord.js +10 -0
- package/dist/runtime/type-conversion/asString.d.ts +14 -0
- package/dist/runtime/type-conversion/asString.d.ts.map +1 -0
- package/dist/runtime/type-conversion/asString.js +21 -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/mergeObjects.d.ts +2 -2
- package/dist/runtime/type-conversion/mergeObjects.d.ts.map +1 -1
- package/dist/runtime/type-conversion/mergeObjects.js +4 -2
- package/dist/runtime/type-conversion/mergeScalars.d.ts.map +1 -1
- package/dist/runtime/type-conversion/mergeScalars.js +1 -1
- package/dist/runtime/type-conversion/union.d.ts.map +1 -1
- package/dist/runtime/type-guards/hasDefaultValue.d.ts.map +1 -1
- package/dist/runtime/type-guards/hasDefaultValue.js +1 -1
- package/dist/runtime/type-guards/hasErrorConditions.d.ts +4 -2
- package/dist/runtime/type-guards/hasErrorConditions.d.ts.map +1 -1
- package/dist/runtime/type-guards/hasErrorConditions.js +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/hasIndexOf.js +9 -2
- package/dist/runtime/type-guards/hasKeys.d.ts +15 -0
- package/dist/runtime/type-guards/hasKeys.d.ts.map +1 -0
- package/dist/runtime/type-guards/hasKeys.js +26 -0
- package/dist/runtime/type-guards/higher-order/endsWith.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/endsWith.js +2 -1
- package/dist/runtime/type-guards/higher-order/index.d.ts +1 -0
- package/dist/runtime/type-guards/higher-order/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/index.js +1 -0
- 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 +5 -1
- package/dist/runtime/type-guards/higher-order/isSameTypeOf.d.ts +2 -0
- package/dist/runtime/type-guards/higher-order/isSameTypeOf.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/isSameTypeOf.js +3 -2
- package/dist/runtime/type-guards/higher-order/isTuple.d.ts +8 -0
- package/dist/runtime/type-guards/higher-order/isTuple.d.ts.map +1 -0
- package/dist/runtime/type-guards/higher-order/isTuple.js +13 -0
- package/dist/runtime/type-guards/higher-order/isTypeOf.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/startsWith.d.ts +13 -2
- package/dist/runtime/type-guards/higher-order/startsWith.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/startsWith.js +15 -3
- package/dist/runtime/type-guards/index.d.ts +4 -1
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +4 -1
- package/dist/runtime/type-guards/isAlpha.d.ts.map +1 -1
- package/dist/runtime/type-guards/isConstant.js +1 -1
- package/dist/runtime/type-guards/isContainer.d.ts.map +1 -1
- package/dist/runtime/type-guards/isDoneFn.d.ts +9 -0
- package/dist/runtime/type-guards/isDoneFn.d.ts.map +1 -0
- package/dist/runtime/type-guards/isDoneFn.js +10 -0
- package/dist/runtime/type-guards/isErrorCondition.d.ts +1 -3
- package/dist/runtime/type-guards/isErrorCondition.d.ts.map +1 -1
- package/dist/runtime/type-guards/isErrorCondition.js +6 -4
- package/dist/runtime/type-guards/isFalsy.d.ts.map +1 -1
- package/dist/runtime/type-guards/isFunction.d.ts +2 -2
- package/dist/runtime/type-guards/isFunction.d.ts.map +1 -1
- package/dist/runtime/type-guards/isIndexable.d.ts.map +1 -1
- package/dist/runtime/type-guards/isLeftRight.d.ts.map +1 -1
- package/dist/runtime/type-guards/isLeftRight.js +0 -1
- package/dist/runtime/type-guards/isNever.d.ts +8 -0
- package/dist/runtime/type-guards/isNever.d.ts.map +1 -0
- package/dist/runtime/type-guards/isNever.js +10 -0
- package/dist/runtime/type-guards/isNumericString.d.ts.map +1 -1
- package/dist/runtime/type-guards/isNumericString.js +1 -2
- package/dist/runtime/type-guards/isObject.d.ts +2 -2
- package/dist/runtime/type-guards/isObject.d.ts.map +1 -1
- package/dist/runtime/type-guards/isRef.d.ts +1 -1
- package/dist/runtime/type-guards/isRef.d.ts.map +1 -1
- package/dist/runtime/type-guards/isRef.js +4 -2
- package/dist/runtime/type-guards/isRuntimeUnion.d.ts +8 -0
- package/dist/runtime/type-guards/isRuntimeUnion.d.ts.map +1 -0
- package/dist/runtime/type-guards/isRuntimeUnion.js +8 -0
- package/dist/runtime/type-guards/isScalar.d.ts.map +1 -1
- package/dist/runtime/type-guards/isScalar.js +4 -1
- package/dist/runtime/type-guards/isSpecificConstant.d.ts.map +1 -1
- package/dist/runtime/type-guards/isSpecificConstant.js +2 -1
- package/dist/runtime/type-guards/isTruthy.d.ts.map +1 -1
- package/dist/runtime/type-guards/isTypeToken.d.ts.map +1 -1
- package/dist/runtime/type-guards/isTypeToken.js +2 -5
- package/dist/runtime/vuejs/asVueRef.d.ts +15 -0
- package/dist/runtime/vuejs/asVueRef.d.ts.map +1 -0
- package/dist/runtime/vuejs/asVueRef.js +16 -0
- package/dist/runtime/vuejs/index.d.ts +2 -0
- package/dist/runtime/vuejs/index.d.ts.map +1 -0
- package/dist/runtime/vuejs/index.js +1 -0
- package/dist/types/base-types/AnyObject.d.ts +3 -2
- package/dist/types/base-types/AnyObject.d.ts.map +1 -1
- package/dist/types/base-types/AnyObject.js +0 -1
- package/dist/types/base-types/Container.d.ts +7 -3
- package/dist/types/base-types/Container.d.ts.map +1 -1
- package/dist/types/base-types/Dictionary.d.ts +11 -0
- package/dist/types/base-types/Dictionary.d.ts.map +1 -0
- package/dist/types/base-types/EmptyObject.d.ts +11 -3
- package/dist/types/base-types/EmptyObject.d.ts.map +1 -1
- package/dist/types/base-types/IndexableObject.d.ts +15 -9
- package/dist/types/base-types/IndexableObject.d.ts.map +1 -1
- package/dist/types/base-types/List.d.ts +319 -0
- package/dist/types/base-types/List.d.ts.map +1 -0
- package/dist/types/base-types/NarrowObject.d.ts +5 -0
- package/dist/types/base-types/NarrowObject.d.ts.map +1 -1
- package/dist/types/base-types/NonArray.d.ts +8 -0
- package/dist/types/base-types/NonArray.d.ts.map +1 -0
- package/dist/types/base-types/Tuple.d.ts +6 -3
- package/dist/types/base-types/Tuple.d.ts.map +1 -1
- package/dist/types/base-types/fns/AnyFnWithDict.d.ts +9 -0
- package/dist/types/base-types/fns/AnyFnWithDict.d.ts.map +1 -0
- package/dist/types/base-types/fns/AnyFunction.d.ts +8 -0
- package/dist/types/base-types/fns/AnyFunction.d.ts.map +1 -0
- package/dist/types/base-types/fns/AnyFunction.js +2 -0
- package/dist/types/base-types/fns/FnWithDict.d.ts +2 -17
- package/dist/types/base-types/fns/FnWithDict.d.ts.map +1 -1
- package/dist/types/base-types/fns/IdentityFunction.d.ts.map +1 -0
- package/dist/types/base-types/fns/JustFunction.d.ts +9 -0
- package/dist/types/base-types/fns/JustFunction.d.ts.map +1 -0
- package/dist/types/base-types/fns/TypedFunction.d.ts +9 -0
- package/dist/types/base-types/fns/TypedFunction.d.ts.map +1 -0
- package/dist/types/base-types/fns/index.d.ts +5 -1
- package/dist/types/base-types/fns/index.d.ts.map +1 -1
- package/dist/types/base-types/fns/index.js +5 -1
- package/dist/types/base-types/functional/LeftRight.d.ts +3 -3
- package/dist/types/base-types/functional/LeftRight.d.ts.map +1 -1
- package/dist/types/base-types/index.d.ts +3 -4
- package/dist/types/base-types/index.d.ts.map +1 -1
- package/dist/types/base-types/index.js +3 -4
- package/dist/types/boolean-logic/branching/Default.d.ts +11 -0
- package/dist/types/boolean-logic/branching/Default.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/Fail.d.ts +21 -0
- package/dist/types/boolean-logic/branching/Fail.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/Handle.d.ts +17 -0
- package/dist/types/boolean-logic/branching/Handle.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/If.d.ts +14 -0
- package/dist/types/boolean-logic/branching/If.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/IfErrorCondition.d.ts +2 -2
- package/dist/types/boolean-logic/branching/IfErrorCondition.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfLength.d.ts +2 -2
- package/dist/types/boolean-logic/branching/IfLength.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfNever.d.ts +1 -1
- package/dist/types/boolean-logic/branching/IfNever.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/Iff.d.ts +24 -0
- package/dist/types/boolean-logic/branching/Iff.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/Passthrough.d.ts +11 -0
- package/dist/types/boolean-logic/branching/Passthrough.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/index.d.ts +6 -63
- package/dist/types/boolean-logic/branching/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/index.js +6 -63
- package/dist/types/boolean-logic/combinators/And.d.ts +4 -8
- package/dist/types/boolean-logic/combinators/And.d.ts.map +1 -1
- package/dist/types/boolean-logic/combinators/Compare.d.ts +47 -0
- package/dist/types/boolean-logic/combinators/Compare.d.ts.map +1 -0
- package/dist/types/boolean-logic/combinators/Not.d.ts +7 -6
- package/dist/types/boolean-logic/combinators/Not.d.ts.map +1 -1
- package/dist/types/boolean-logic/combinators/Or.d.ts +16 -5
- package/dist/types/boolean-logic/combinators/Or.d.ts.map +1 -1
- package/dist/types/boolean-logic/combinators/index.d.ts +1 -0
- package/dist/types/boolean-logic/combinators/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/combinators/index.js +1 -0
- package/dist/types/boolean-logic/narrowing/As.d.ts +7 -0
- package/dist/types/boolean-logic/narrowing/As.d.ts.map +1 -0
- package/dist/types/boolean-logic/narrowing/AsDoneFn.d.ts +12 -0
- package/dist/types/boolean-logic/narrowing/AsDoneFn.d.ts.map +1 -0
- package/dist/types/boolean-logic/narrowing/AsIndexOf.d.ts +2 -6
- package/dist/types/boolean-logic/narrowing/AsIndexOf.d.ts.map +1 -1
- package/dist/types/boolean-logic/narrowing/AsSomething.d.ts +20 -0
- package/dist/types/boolean-logic/narrowing/AsSomething.d.ts.map +1 -0
- package/dist/types/boolean-logic/narrowing/index.d.ts +3 -0
- package/dist/types/boolean-logic/narrowing/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/narrowing/index.js +3 -0
- package/dist/types/boolean-logic/operators/AllExtend.d.ts +2 -2
- package/dist/types/boolean-logic/operators/AllExtend.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/AllLiteral.d.ts +4 -4
- package/dist/types/boolean-logic/operators/AllLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/AllNumericLiterals.d.ts +12 -0
- package/dist/types/boolean-logic/operators/AllNumericLiterals.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/AllStringLiterals.d.ts +12 -0
- package/dist/types/boolean-logic/operators/AllStringLiterals.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/AreSameLength.d.ts +9 -0
- package/dist/types/boolean-logic/operators/AreSameLength.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/AreSameType.d.ts +18 -0
- package/dist/types/boolean-logic/operators/AreSameType.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/Contains.d.ts +19 -4
- package/dist/types/boolean-logic/operators/Contains.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/DoesExtend.d.ts +2 -1
- package/dist/types/boolean-logic/operators/DoesExtend.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/EndsWith.d.ts +16 -15
- package/dist/types/boolean-logic/operators/EndsWith.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/Extends.d.ts +9 -0
- package/dist/types/boolean-logic/operators/Extends.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/HasCharacters.d.ts +14 -9
- package/dist/types/boolean-logic/operators/HasCharacters.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasIndex.d.ts +9 -0
- package/dist/types/boolean-logic/operators/HasIndex.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/HasOtherCharacters.d.ts +16 -0
- package/dist/types/boolean-logic/operators/HasOtherCharacters.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/HasParameters.d.ts +2 -2
- package/dist/types/boolean-logic/operators/HasParameters.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasProp.d.ts +11 -0
- package/dist/types/boolean-logic/operators/HasProp.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/HasRequiredProps.d.ts +10 -0
- package/dist/types/boolean-logic/operators/HasRequiredProps.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/HasSameKeys.d.ts +13 -0
- package/dist/types/boolean-logic/operators/HasSameKeys.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/HasSameValues.d.ts +8 -4
- package/dist/types/boolean-logic/operators/HasSameValues.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasUnionType.d.ts +2 -2
- package/dist/types/boolean-logic/operators/HasUnionType.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasWideValues.d.ts +2 -2
- package/dist/types/boolean-logic/operators/HasWideValues.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsAllLowercase.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsAllLowercase.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsAny.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsAny.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsBooleanLiteral.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsBooleanLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsContainer.d.ts +2 -4
- package/dist/types/boolean-logic/operators/IsContainer.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsDotPath.d.ts +5 -3
- package/dist/types/boolean-logic/operators/IsDotPath.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsEmptyObject.d.ts +3 -2
- package/dist/types/boolean-logic/operators/IsEmptyObject.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsEqual.d.ts +1 -1
- package/dist/types/boolean-logic/operators/IsEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsErrorCondition.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsErrorCondition.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsFalsy.d.ts +7 -2
- package/dist/types/boolean-logic/operators/IsFalsy.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsFloat.d.ts +13 -0
- package/dist/types/boolean-logic/operators/IsFloat.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsFnWithParams.d.ts +3 -3
- package/dist/types/boolean-logic/operators/IsFnWithParams.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsFunction.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts +6 -2
- package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsHexadecimal.d.ts +9 -0
- package/dist/types/boolean-logic/operators/IsHexadecimal.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsInteger.d.ts +9 -0
- package/dist/types/boolean-logic/operators/IsInteger.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsIterable.d.ts +10 -0
- package/dist/types/boolean-logic/operators/IsIterable.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsLiteral.d.ts +14 -27
- package/dist/types/boolean-logic/operators/IsLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsLiteralFn.d.ts +16 -0
- package/dist/types/boolean-logic/operators/IsLiteralFn.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsLiteralUnion.d.ts +13 -0
- package/dist/types/boolean-logic/operators/IsLiteralUnion.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsNarrowingFn.d.ts +12 -0
- package/dist/types/boolean-logic/operators/IsNarrowingFn.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts +4 -2
- package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsNonLiteralUnion.d.ts +13 -0
- package/dist/types/boolean-logic/operators/IsNonLiteralUnion.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsNothing.d.ts +9 -0
- package/dist/types/boolean-logic/operators/IsNothing.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsNull.d.ts +5 -1
- package/dist/types/boolean-logic/operators/IsNull.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsNumber.d.ts +2 -1
- package/dist/types/boolean-logic/operators/IsNumber.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsObject.d.ts +4 -4
- package/dist/types/boolean-logic/operators/IsObject.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsObjectLiteral.d.ts +7 -4
- package/dist/types/boolean-logic/operators/IsObjectLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsOptionalScalar.d.ts +4 -5
- package/dist/types/boolean-logic/operators/IsOptionalScalar.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsReadonlyObject.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsReadonlyObject.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsScalar.d.ts +2 -8
- package/dist/types/boolean-logic/operators/IsScalar.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsSingleChar.d.ts +8 -0
- package/dist/types/boolean-logic/operators/IsSingleChar.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsSingularNoun.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsSingularNoun.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsString.d.ts +2 -1
- package/dist/types/boolean-logic/operators/IsString.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsStringLiteral.d.ts +2 -4
- package/dist/types/boolean-logic/operators/IsStringLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsTrue.d.ts +4 -2
- package/dist/types/boolean-logic/operators/IsTrue.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsTruthy.d.ts +5 -3
- package/dist/types/boolean-logic/operators/IsTruthy.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsTuple.d.ts +4 -2
- package/dist/types/boolean-logic/operators/IsTuple.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsUnion.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsUnion.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsValidDotPath.d.ts +11 -16
- package/dist/types/boolean-logic/operators/IsValidDotPath.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsValidIndex.d.ts +11 -0
- package/dist/types/boolean-logic/operators/IsValidIndex.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsVueRef.d.ts +14 -0
- package/dist/types/boolean-logic/operators/IsVueRef.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsWideType.d.ts +47 -4
- package/dist/types/boolean-logic/operators/IsWideType.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsWideUnion.d.ts +15 -0
- package/dist/types/boolean-logic/operators/IsWideUnion.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/NotLength.d.ts +2 -2
- package/dist/types/boolean-logic/operators/NotLength.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/Returns.d.ts +2 -2
- package/dist/types/boolean-logic/operators/Returns.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ReturnsBoolean.d.ts +2 -2
- package/dist/types/boolean-logic/operators/ReturnsBoolean.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ReturnsFalse.d.ts +2 -2
- package/dist/types/boolean-logic/operators/ReturnsFalse.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ReturnsTrue.d.ts +2 -2
- package/dist/types/boolean-logic/operators/ReturnsTrue.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/SomeEqual.d.ts +2 -2
- package/dist/types/boolean-logic/operators/SomeEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/SomeExtend.d.ts +2 -2
- package/dist/types/boolean-logic/operators/SomeExtend.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/StartsWith.d.ts +20 -7
- package/dist/types/boolean-logic/operators/StartsWith.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/Validate.d.ts +20 -0
- package/dist/types/boolean-logic/operators/Validate.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/index.d.ts +24 -11
- package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/index.js +24 -11
- package/dist/types/classes/Constructor.d.ts +1 -1
- package/dist/types/classes/Constructor.d.ts.map +1 -1
- package/dist/types/classes/KlassMeta.d.ts +21 -0
- package/dist/types/classes/KlassMeta.d.ts.map +1 -0
- package/dist/types/classes/index.d.ts +1 -0
- package/dist/types/classes/index.d.ts.map +1 -1
- package/dist/types/classes/index.js +1 -0
- package/dist/types/containers/IsEmptyContainer.d.ts +11 -0
- package/dist/types/containers/IsEmptyContainer.d.ts.map +1 -0
- package/dist/types/containers/IsNonEmptyContainer.d.ts +12 -0
- package/dist/types/containers/IsNonEmptyContainer.d.ts.map +1 -0
- package/dist/types/containers/RemoveMarked.d.ts +13 -0
- package/dist/types/containers/RemoveMarked.d.ts.map +1 -0
- package/dist/types/containers/RemoveNever.d.ts +18 -0
- package/dist/types/containers/RemoveNever.d.ts.map +1 -0
- package/dist/types/containers/RemoveUndefined.d.ts +17 -0
- package/dist/types/containers/RemoveUndefined.d.ts.map +1 -0
- package/dist/types/containers/index.d.ts +5 -3
- package/dist/types/containers/index.d.ts.map +1 -1
- package/dist/types/containers/index.js +5 -3
- package/dist/types/dictionary/AddKeyValue.d.ts +2 -2
- package/dist/types/dictionary/AddKeyValue.d.ts.map +1 -1
- package/dist/types/dictionary/CombinedKeys.d.ts +4 -6
- package/dist/types/dictionary/CombinedKeys.d.ts.map +1 -1
- package/dist/types/dictionary/CreateKV.d.ts +15 -0
- package/dist/types/dictionary/CreateKV.d.ts.map +1 -0
- package/dist/types/dictionary/CreateLookup.d.ts +13 -0
- package/dist/types/dictionary/CreateLookup.d.ts.map +1 -0
- package/dist/types/dictionary/EnsureKeys.d.ts +19 -0
- package/dist/types/dictionary/EnsureKeys.d.ts.map +1 -0
- package/dist/types/dictionary/FromMaybeRef.d.ts +2 -2
- package/dist/types/dictionary/FromMaybeRef.d.ts.map +1 -1
- package/dist/types/dictionary/Get.d.ts +4 -25
- package/dist/types/dictionary/Get.d.ts.map +1 -1
- package/dist/types/dictionary/Get.js +0 -1
- package/dist/types/dictionary/Keys.d.ts +8 -2
- package/dist/types/dictionary/Keys.d.ts.map +1 -1
- package/dist/types/dictionary/KeysWithValue.d.ts +5 -5
- package/dist/types/dictionary/KeysWithValue.d.ts.map +1 -1
- package/dist/types/dictionary/KvFn.d.ts +15 -0
- package/dist/types/dictionary/KvFn.d.ts.map +1 -0
- package/dist/types/dictionary/MakeKeysOptional.d.ts +15 -0
- package/dist/types/dictionary/MakeKeysOptional.d.ts.map +1 -0
- package/dist/types/dictionary/MakePropsMutable.d.ts +1 -1
- package/dist/types/dictionary/MakePropsMutable.d.ts.map +1 -1
- package/dist/types/dictionary/MapTo.d.ts +2 -2
- package/dist/types/dictionary/MapTo.d.ts.map +1 -1
- package/dist/types/dictionary/MergeKVs.d.ts +20 -0
- package/dist/types/dictionary/MergeKVs.d.ts.map +1 -0
- package/dist/types/dictionary/MutableProps.d.ts +2 -2
- package/dist/types/dictionary/MutableProps.d.ts.map +1 -1
- package/dist/types/dictionary/OptionalProps.d.ts +2 -2
- package/dist/types/dictionary/OptionalProps.d.ts.map +1 -1
- package/dist/types/dictionary/RemoveIndexKeys.d.ts +3 -2
- package/dist/types/dictionary/RemoveIndexKeys.d.ts.map +1 -1
- package/dist/types/dictionary/SharedKeys.d.ts +3 -3
- package/dist/types/dictionary/SharedKeys.d.ts.map +1 -1
- package/dist/types/dictionary/TakeProp.d.ts +9 -0
- package/dist/types/dictionary/TakeProp.d.ts.map +1 -0
- package/dist/types/dictionary/UpsertKeyValue.d.ts +4 -2
- package/dist/types/dictionary/UpsertKeyValue.d.ts.map +1 -1
- package/dist/types/dictionary/Values.d.ts +18 -0
- package/dist/types/dictionary/Values.d.ts.map +1 -0
- package/dist/types/dictionary/WithKeys.d.ts +3 -2
- package/dist/types/dictionary/WithKeys.d.ts.map +1 -1
- package/dist/types/dictionary/WithValue.d.ts +8 -3
- package/dist/types/dictionary/WithValue.d.ts.map +1 -1
- package/dist/types/dictionary/WithoutKeys.d.ts +4 -2
- package/dist/types/dictionary/WithoutKeys.d.ts.map +1 -1
- package/dist/types/dictionary/index.d.ts +8 -2
- package/dist/types/dictionary/index.d.ts.map +1 -1
- package/dist/types/dictionary/index.js +8 -2
- package/dist/types/errors/AsError.d.ts +6 -21
- package/dist/types/errors/AsError.d.ts.map +1 -1
- package/dist/types/errors/CompleteError.d.ts +22 -0
- package/dist/types/errors/CompleteError.d.ts.map +1 -0
- package/dist/types/errors/ErrorCondition.d.ts +70 -33
- package/dist/types/errors/ErrorCondition.d.ts.map +1 -1
- package/dist/types/errors/KindError.d.ts +39 -0
- package/dist/types/errors/KindError.d.ts.map +1 -0
- package/dist/types/errors/MapError.d.ts +15 -0
- package/dist/types/errors/MapError.d.ts.map +1 -0
- package/dist/types/errors/PartialError.d.ts +19 -0
- package/dist/types/errors/PartialError.d.ts.map +1 -0
- package/dist/types/errors/ProxyError.d.ts +22 -0
- package/dist/types/errors/ProxyError.d.ts.map +1 -0
- package/dist/types/errors/StackTrace.d.ts +13 -0
- package/dist/types/errors/StackTrace.d.ts.map +1 -0
- package/dist/types/errors/Throw.d.ts +21 -0
- package/dist/types/errors/Throw.d.ts.map +1 -0
- package/dist/types/errors/index.d.ts +7 -1
- package/dist/types/errors/index.d.ts.map +1 -1
- package/dist/types/errors/index.js +7 -1
- package/dist/types/functional/Option.d.ts +1 -0
- package/dist/types/functional/Option.d.ts.map +1 -0
- package/dist/types/functional/Result.d.ts +238 -0
- package/dist/types/functional/Result.d.ts.map +1 -0
- package/dist/types/functional/Result.js +2 -0
- package/dist/types/functional/index.d.ts +1 -0
- package/dist/types/functional/index.d.ts.map +1 -1
- package/dist/types/functional/index.js +1 -0
- package/dist/types/functions/AsFnMeta.d.ts +3 -4
- package/dist/types/functions/AsFnMeta.d.ts.map +1 -1
- package/dist/types/functions/Fn.d.ts +9 -0
- package/dist/types/functions/Fn.d.ts.map +1 -0
- package/dist/types/functions/FnFrom.d.ts +3 -0
- package/dist/types/functions/FnFrom.d.ts.map +1 -0
- package/dist/types/functions/FnMeta.d.ts +6 -2
- package/dist/types/functions/FnMeta.d.ts.map +1 -1
- package/dist/types/functions/FnProps.d.ts +4 -2
- package/dist/types/functions/FnProps.d.ts.map +1 -1
- package/dist/types/functions/HandleDoneFn.d.ts +12 -0
- package/dist/types/functions/HandleDoneFn.d.ts.map +1 -0
- package/dist/types/functions/IdentityFn.d.ts +11 -0
- package/dist/types/functions/IdentityFn.d.ts.map +1 -0
- package/dist/types/functions/LiteralFn.d.ts +20 -0
- package/dist/types/functions/LiteralFn.d.ts.map +1 -0
- package/dist/types/functions/LogicFunction.d.ts +1 -1
- package/dist/types/functions/LogicFunction.d.ts.map +1 -1
- package/dist/types/functions/NarrowingFn.d.ts +32 -0
- package/dist/types/functions/NarrowingFn.d.ts.map +1 -0
- package/dist/types/functions/OnlyFnProps.d.ts +9 -0
- package/dist/types/functions/OnlyFnProps.d.ts.map +1 -0
- package/dist/types/functions/RemoveFnProps.d.ts.map +1 -1
- package/dist/types/functions/ToFn.d.ts +2 -2
- package/dist/types/functions/ToFn.d.ts.map +1 -1
- package/dist/types/functions/TypeGuard.d.ts +1 -1
- package/dist/types/functions/TypeGuard.d.ts.map +1 -1
- package/dist/types/functions/index.d.ts +6 -0
- package/dist/types/functions/index.d.ts.map +1 -1
- package/dist/types/functions/index.js +6 -0
- package/dist/types/lists/ArrayElementType.d.ts +2 -2
- package/dist/types/lists/ArrayElementType.d.ts.map +1 -1
- package/dist/types/lists/AsArray.d.ts +2 -2
- package/dist/types/lists/AsArray.d.ts.map +1 -1
- package/dist/types/lists/AsTuple.d.ts +2 -2
- package/dist/types/lists/AsTuple.d.ts.map +1 -1
- package/dist/types/lists/BeforeLast.d.ts +10 -3
- package/dist/types/lists/BeforeLast.d.ts.map +1 -1
- package/dist/types/lists/Filter.d.ts +19 -8
- package/dist/types/lists/Filter.d.ts.map +1 -1
- package/dist/types/lists/FilterLiterals.d.ts +19 -0
- package/dist/types/lists/FilterLiterals.d.ts.map +1 -0
- package/dist/types/lists/FilterWideTypes.d.ts +18 -0
- package/dist/types/lists/FilterWideTypes.d.ts.map +1 -0
- package/dist/types/lists/Find.d.ts +3 -3
- package/dist/types/lists/Find.d.ts.map +1 -1
- package/dist/types/lists/First.d.ts +7 -3
- package/dist/types/lists/First.d.ts.map +1 -1
- package/dist/types/lists/Flatten.d.ts +31 -8
- package/dist/types/lists/Flatten.d.ts.map +1 -1
- package/dist/types/lists/GetEach.d.ts +10 -9
- package/dist/types/lists/GetEach.d.ts.map +1 -1
- package/dist/types/lists/IndexOf.d.ts +47 -10
- package/dist/types/lists/IndexOf.d.ts.map +1 -1
- package/dist/types/lists/Last.d.ts +5 -3
- package/dist/types/lists/Last.d.ts.map +1 -1
- package/dist/types/lists/Length.d.ts +13 -2
- package/dist/types/lists/Length.d.ts.map +1 -1
- package/dist/types/lists/LogicalReturns.d.ts +6 -13
- package/dist/types/lists/LogicalReturns.d.ts.map +1 -1
- package/dist/types/lists/NumericKeys.d.ts +4 -3
- package/dist/types/lists/NumericKeys.d.ts.map +1 -1
- package/dist/types/lists/Pop.d.ts +2 -2
- package/dist/types/lists/Pop.d.ts.map +1 -1
- package/dist/types/lists/Push.d.ts +15 -0
- package/dist/types/lists/Push.d.ts.map +1 -0
- package/dist/types/lists/Retain.d.ts +13 -7
- package/dist/types/lists/Retain.d.ts.map +1 -1
- package/dist/types/lists/RetainLiterals.d.ts +20 -0
- package/dist/types/lists/RetainLiterals.d.ts.map +1 -0
- package/dist/types/lists/RetainWideTypes.d.ts +21 -0
- package/dist/types/lists/RetainWideTypes.d.ts.map +1 -0
- package/dist/types/lists/ReturnTypes.d.ts +2 -2
- package/dist/types/lists/ReturnTypes.d.ts.map +1 -1
- package/dist/types/lists/Reverse.d.ts +4 -1
- package/dist/types/lists/Reverse.d.ts.map +1 -1
- package/dist/types/lists/Second.d.ts +13 -0
- package/dist/types/lists/Second.d.ts.map +1 -0
- package/dist/types/lists/Shift.d.ts +2 -2
- package/dist/types/lists/Shift.d.ts.map +1 -1
- package/dist/types/lists/Slice.d.ts +2 -2
- package/dist/types/lists/Slice.d.ts.map +1 -1
- package/dist/types/lists/TruthyReturns.d.ts +2 -2
- package/dist/types/lists/TruthyReturns.d.ts.map +1 -1
- package/dist/types/lists/index.d.ts +7 -1
- package/dist/types/lists/index.d.ts.map +1 -1
- package/dist/types/lists/index.js +7 -1
- package/dist/types/literals/Box.d.ts +2 -2
- package/dist/types/literals/Box.d.ts.map +1 -1
- package/dist/types/literals/Choices.d.ts +102 -0
- package/dist/types/literals/Choices.d.ts.map +1 -0
- package/dist/types/literals/DoneFnTuple.d.ts +28 -0
- package/dist/types/literals/DoneFnTuple.d.ts.map +1 -0
- package/dist/types/literals/ExpandRecursively.d.ts +13 -6
- package/dist/types/literals/ExpandRecursively.d.ts.map +1 -1
- package/dist/types/literals/FromDefn.d.ts +55 -0
- package/dist/types/literals/FromDefn.d.ts.map +1 -0
- package/dist/types/literals/FromTokenNames.d.ts +19 -0
- package/dist/types/literals/FromTokenNames.d.ts.map +1 -0
- package/dist/types/literals/Narrow.d.ts +10 -0
- package/dist/types/literals/Narrow.d.ts.map +1 -0
- package/dist/types/literals/RuntimeUnion.d.ts +14 -0
- package/dist/types/literals/RuntimeUnion.d.ts.map +1 -0
- package/dist/types/literals/Shape.d.ts +222 -0
- package/dist/types/literals/Shape.d.ts.map +1 -0
- package/dist/types/literals/VueComputedRef.d.ts +35 -0
- package/dist/types/literals/VueComputedRef.d.ts.map +1 -0
- package/dist/types/literals/VueComputedRef.js +11 -0
- package/dist/types/literals/VueRef.d.ts +13 -2
- package/dist/types/literals/VueRef.d.ts.map +1 -1
- package/dist/types/literals/index.d.ts +8 -0
- package/dist/types/literals/index.d.ts.map +1 -1
- package/dist/types/literals/index.js +8 -0
- package/dist/types/numeric-literals/Abs.d.ts +4 -4
- package/dist/types/numeric-literals/Abs.d.ts.map +1 -1
- package/dist/types/numeric-literals/AbsMaybe.d.ts +2 -2
- package/dist/types/numeric-literals/AbsMaybe.d.ts.map +1 -1
- package/dist/types/numeric-literals/Add.d.ts +12 -16
- package/dist/types/numeric-literals/Add.d.ts.map +1 -1
- package/dist/types/numeric-literals/AsNumberWhenPossible.d.ts +3 -3
- package/dist/types/numeric-literals/AsNumberWhenPossible.d.ts.map +1 -1
- package/dist/types/numeric-literals/Decrement.d.ts +2 -2
- package/dist/types/numeric-literals/Decrement.d.ts.map +1 -1
- package/dist/types/numeric-literals/Digitize.d.ts +10 -3
- package/dist/types/numeric-literals/Digitize.d.ts.map +1 -1
- package/dist/types/numeric-literals/Increment.d.ts +2 -2
- package/dist/types/numeric-literals/Increment.d.ts.map +1 -1
- package/dist/types/numeric-literals/Negative.d.ts +2 -2
- package/dist/types/numeric-literals/Negative.d.ts.map +1 -1
- package/dist/types/numeric-literals/NextDigit.d.ts +2 -2
- package/dist/types/numeric-literals/NextDigit.d.ts.map +1 -1
- package/dist/types/numeric-literals/PriorDigit.d.ts +2 -2
- package/dist/types/numeric-literals/Subtract.d.ts +3 -3
- package/dist/types/numeric-literals/Subtract.d.ts.map +1 -1
- package/dist/types/numeric-literals/ToInteger.d.ts +2 -2
- package/dist/types/numeric-literals/ToInteger.d.ts.map +1 -1
- package/dist/types/numeric-literals/ToNumericArray.d.ts +6 -6
- package/dist/types/numeric-literals/ToNumericArray.d.ts.map +1 -1
- package/dist/types/numeric-literals/ValueCallback.d.ts +87 -0
- package/dist/types/numeric-literals/ValueCallback.d.ts.map +1 -1
- package/dist/types/numeric-literals/index.d.ts +0 -2
- package/dist/types/numeric-literals/index.d.ts.map +1 -1
- package/dist/types/numeric-literals/index.js +0 -2
- package/dist/types/runtime-types/DescribeType.d.ts +31 -23
- package/dist/types/runtime-types/DescribeType.d.ts.map +1 -1
- package/dist/types/runtime-types/DescribeType.js +1 -0
- package/dist/types/runtime-types/Dict.d.ts +24 -0
- package/dist/types/runtime-types/Dict.d.ts.map +1 -0
- package/dist/types/runtime-types/Dict.js +2 -0
- package/dist/types/runtime-types/FromLiteralTokens.d.ts +3 -3
- package/dist/types/runtime-types/FromLiteralTokens.d.ts.map +1 -1
- package/dist/types/runtime-types/Rec.d.ts +15 -0
- package/dist/types/runtime-types/Rec.d.ts.map +1 -0
- package/dist/types/runtime-types/Rec.js +2 -0
- package/dist/types/runtime-types/TokenizeStringLiteral.d.ts +3 -3
- package/dist/types/runtime-types/TokenizeStringLiteral.d.ts.map +1 -1
- package/dist/types/runtime-types/Type.d.ts +12 -12
- 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 +61 -26
- package/dist/types/runtime-types/TypeToken.d.ts.map +1 -1
- package/dist/types/runtime-types/index.d.ts +1 -2
- package/dist/types/runtime-types/index.d.ts.map +1 -1
- package/dist/types/runtime-types/index.js +1 -2
- package/dist/types/sets/IntersectingKeys.d.ts +5 -3
- package/dist/types/sets/IntersectingKeys.d.ts.map +1 -1
- package/dist/types/sets/Intersection.d.ts +43 -21
- package/dist/types/sets/Intersection.d.ts.map +1 -1
- package/dist/types/sets/Relate.d.ts.map +1 -1
- package/dist/types/sets/Unique.d.ts +18 -33
- package/dist/types/sets/Unique.d.ts.map +1 -1
- package/dist/types/sets/index.d.ts +0 -3
- package/dist/types/sets/index.d.ts.map +1 -1
- package/dist/types/sets/index.js +0 -3
- package/dist/types/string-literals/{RemainingChars.d.ts → AfterFirstChar.d.ts} +4 -4
- package/dist/types/string-literals/AfterFirstChar.d.ts.map +1 -0
- package/dist/types/string-literals/Chars.d.ts +7 -2
- package/dist/types/string-literals/Chars.d.ts.map +1 -1
- package/dist/types/string-literals/Concat.d.ts +3 -3
- package/dist/types/string-literals/Concat.d.ts.map +1 -1
- package/dist/types/string-literals/Date.d.ts +7 -12
- package/dist/types/string-literals/Date.d.ts.map +1 -1
- package/dist/types/string-literals/DateTime.d.ts +12 -5
- package/dist/types/string-literals/DateTime.d.ts.map +1 -1
- package/dist/types/string-literals/EnsureLeading.d.ts +17 -8
- package/dist/types/string-literals/EnsureLeading.d.ts.map +1 -1
- package/dist/types/string-literals/EnsureSurround.d.ts +10 -0
- package/dist/types/string-literals/EnsureSurround.d.ts.map +1 -0
- package/dist/types/string-literals/EnsureTrailing.d.ts +9 -3
- package/dist/types/string-literals/EnsureTrailing.d.ts.map +1 -1
- package/dist/types/string-literals/FirstChar.d.ts +14 -17
- package/dist/types/string-literals/FirstChar.d.ts.map +1 -1
- package/dist/types/string-literals/Join.d.ts +3 -4
- package/dist/types/string-literals/Join.d.ts.map +1 -1
- package/dist/types/string-literals/LastChar.d.ts +14 -16
- package/dist/types/string-literals/LastChar.d.ts.map +1 -1
- package/dist/types/string-literals/PathJoin.d.ts +9 -3
- package/dist/types/string-literals/PathJoin.d.ts.map +1 -1
- package/dist/types/string-literals/Pluralize.d.ts +3 -3
- package/dist/types/string-literals/Pluralize.d.ts.map +1 -1
- package/dist/types/string-literals/Split.d.ts +22 -41
- package/dist/types/string-literals/Split.d.ts.map +1 -1
- package/dist/types/string-literals/StripAfter.d.ts +2 -2
- package/dist/types/string-literals/StripAfter.d.ts.map +1 -1
- package/dist/types/string-literals/StripBefore.d.ts +2 -2
- package/dist/types/string-literals/StripBefore.d.ts.map +1 -1
- package/dist/types/string-literals/StripLeading.d.ts +6 -7
- package/dist/types/string-literals/StripLeading.d.ts.map +1 -1
- package/dist/types/string-literals/StripTrailing.d.ts +9 -9
- package/dist/types/string-literals/StripTrailing.d.ts.map +1 -1
- package/dist/types/string-literals/Suggest.d.ts +4 -2
- package/dist/types/string-literals/Suggest.d.ts.map +1 -1
- package/dist/types/string-literals/Surround.d.ts +6 -6
- package/dist/types/string-literals/Surround.d.ts.map +1 -1
- package/dist/types/string-literals/Time.d.ts +87 -30
- package/dist/types/string-literals/Time.d.ts.map +1 -1
- package/dist/types/string-literals/Truncate.d.ts +3 -3
- package/dist/types/string-literals/Truncate.d.ts.map +1 -1
- package/dist/types/string-literals/casing/AllCaps.d.ts +2 -2
- package/dist/types/string-literals/casing/AllCaps.d.ts.map +1 -1
- package/dist/types/string-literals/casing/CamelCase.d.ts +2 -2
- package/dist/types/string-literals/casing/CamelCase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/KebabCase.d.ts +1 -1
- package/dist/types/string-literals/casing/KebabCase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/KebabCase.js +0 -1
- package/dist/types/string-literals/casing/SnakeCase.d.ts +4 -4
- package/dist/types/string-literals/casing/SnakeCase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/index.d.ts +0 -1
- package/dist/types/string-literals/casing/index.d.ts.map +1 -1
- package/dist/types/string-literals/casing/index.js +0 -1
- package/dist/types/string-literals/character-sets/Alpha.d.ts +2 -2
- package/dist/types/string-literals/character-sets/Alpha.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/BCP.d.ts +12 -0
- package/dist/types/string-literals/character-sets/BCP.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/DomainName.d.ts +3 -3
- package/dist/types/string-literals/character-sets/DomainName.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/DotPathFor.d.ts +6 -17
- package/dist/types/string-literals/character-sets/DotPathFor.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Hexadecimal.d.ts +7 -5
- package/dist/types/string-literals/character-sets/Hexadecimal.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/IpAddress.d.ts +51 -5
- package/dist/types/string-literals/character-sets/IpAddress.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/LowerAlpha.d.ts +2 -2
- package/dist/types/string-literals/character-sets/LowerAlpha.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/NumericChar.d.ts +9 -0
- package/dist/types/string-literals/character-sets/NumericChar.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/SingularNoun.d.ts +5 -3
- package/dist/types/string-literals/character-sets/SingularNoun.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Url.d.ts +2 -2
- package/dist/types/string-literals/character-sets/Url.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/ValueAtDotPath.d.ts +3 -8
- package/dist/types/string-literals/character-sets/ValueAtDotPath.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.d.ts +0 -1
- package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.js +0 -1
- package/dist/types/string-literals/geo/index.d.ts +3 -0
- package/dist/types/string-literals/geo/index.d.ts.map +1 -0
- package/dist/types/string-literals/geo/index.js +2 -0
- package/dist/types/string-literals/geo/state.d.ts +47 -0
- package/dist/types/string-literals/geo/state.d.ts.map +1 -0
- package/dist/types/string-literals/geo/zip.d.ts +24 -0
- package/dist/types/string-literals/geo/zip.d.ts.map +1 -0
- package/dist/types/string-literals/index.d.ts +3 -2
- package/dist/types/string-literals/index.d.ts.map +1 -1
- package/dist/types/string-literals/index.js +3 -2
- package/dist/types/string-literals/options/DropChars.d.ts +24 -0
- package/dist/types/string-literals/options/DropChars.d.ts.map +1 -0
- package/dist/types/string-literals/options/index.d.ts +1 -0
- package/dist/types/string-literals/options/index.d.ts.map +1 -1
- package/dist/types/string-literals/options/index.js +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/tuples/FirstKey.d.ts +2 -2
- package/dist/types/tuples/FirstKey.d.ts.map +1 -1
- package/dist/types/tuples/FirstKeyValue.d.ts +2 -2
- package/dist/types/tuples/FirstKeyValue.d.ts.map +1 -1
- package/dist/types/tuples/FirstOfEach.d.ts +2 -2
- package/dist/types/tuples/FixedLengthArray.d.ts +2 -1
- package/dist/types/tuples/FixedLengthArray.d.ts.map +1 -1
- package/dist/types/tuples/LastOfEach.d.ts +6 -4
- package/dist/types/tuples/LastOfEach.d.ts.map +1 -1
- package/dist/types/tuples/index.d.ts +1 -0
- package/dist/types/tuples/index.d.ts.map +1 -1
- package/dist/types/tuples/index.js +1 -0
- package/dist/types/type-conversion/AsBoolean.d.ts +3 -5
- package/dist/types/type-conversion/AsBoolean.d.ts.map +1 -1
- package/dist/types/type-conversion/AsContainer.d.ts +9 -0
- package/dist/types/type-conversion/AsContainer.d.ts.map +1 -0
- package/dist/types/type-conversion/AsDefined.d.ts +8 -0
- package/dist/types/type-conversion/AsDefined.d.ts.map +1 -0
- package/dist/types/type-conversion/AsDictionary.d.ts +3 -0
- package/dist/types/type-conversion/AsDictionary.d.ts.map +1 -0
- package/dist/types/type-conversion/AsFunction.d.ts +2 -3
- package/dist/types/type-conversion/AsFunction.d.ts.map +1 -1
- package/dist/types/type-conversion/AsNonNull.d.ts +21 -0
- package/dist/types/type-conversion/AsNonNull.d.ts.map +1 -0
- package/dist/types/type-conversion/AsNumber.d.ts +1 -1
- package/dist/types/type-conversion/AsNumber.d.ts.map +1 -1
- package/dist/types/type-conversion/AsObject.d.ts +2 -0
- package/dist/types/type-conversion/AsObject.d.ts.map +1 -0
- package/dist/types/type-conversion/AsObjectKeys.d.ts +15 -0
- package/dist/types/type-conversion/AsObjectKeys.d.ts.map +1 -0
- package/dist/types/type-conversion/AsPropertyKey.d.ts +1 -6
- package/dist/types/type-conversion/AsPropertyKey.d.ts.map +1 -1
- package/dist/types/type-conversion/AsRecord.d.ts +10 -0
- package/dist/types/type-conversion/AsRecord.d.ts.map +1 -0
- package/dist/types/type-conversion/AsRef.d.ts +5 -0
- package/dist/types/type-conversion/AsRef.d.ts.map +1 -0
- package/dist/types/type-conversion/AsString.d.ts +1 -1
- package/dist/types/type-conversion/AsString.d.ts.map +1 -1
- package/dist/types/type-conversion/Awaited.d.ts +1 -1
- package/dist/types/type-conversion/Awaited.d.ts.map +1 -1
- package/dist/types/type-conversion/Break.d.ts +2 -0
- package/dist/types/type-conversion/Break.d.ts.map +1 -1
- package/dist/types/type-conversion/IntersectWithAll.d.ts +3 -3
- package/dist/types/type-conversion/IntersectWithAll.d.ts.map +1 -1
- package/dist/types/type-conversion/LeftWhitespace.d.ts +1 -1
- package/dist/types/type-conversion/LeftWhitespace.d.ts.map +1 -1
- package/dist/types/type-conversion/Merge.d.ts +42 -15
- package/dist/types/type-conversion/Merge.d.ts.map +1 -1
- package/dist/types/type-conversion/MergeObjects.d.ts +3 -3
- package/dist/types/type-conversion/MergeObjects.d.ts.map +1 -1
- package/dist/types/type-conversion/Mutable.d.ts +14 -5
- package/dist/types/type-conversion/Mutable.d.ts.map +1 -1
- package/dist/types/type-conversion/ObjectToKvDict.d.ts.map +1 -1
- package/dist/types/type-conversion/RemoveIndex.js +0 -1
- package/dist/types/type-conversion/ReplaceAll.d.ts +7 -4
- package/dist/types/type-conversion/ReplaceAll.d.ts.map +1 -1
- package/dist/types/type-conversion/ReturnValues.d.ts +2 -2
- package/dist/types/type-conversion/ReturnValues.d.ts.map +1 -1
- package/dist/types/type-conversion/ToBoolean.d.ts +2 -2
- package/dist/types/type-conversion/ToBoolean.d.ts.map +1 -1
- package/dist/types/type-conversion/ToNumber.d.ts +5 -4
- package/dist/types/type-conversion/ToNumber.d.ts.map +1 -1
- package/dist/types/type-conversion/ToString.d.ts +6 -4
- package/dist/types/type-conversion/ToString.d.ts.map +1 -1
- package/dist/types/type-conversion/ToStringArray.d.ts +12 -0
- package/dist/types/type-conversion/ToStringArray.d.ts.map +1 -0
- package/dist/types/type-conversion/ToUnion.js +0 -1
- package/dist/types/type-conversion/UnionFilter.d.ts +27 -0
- package/dist/types/type-conversion/UnionFilter.d.ts.map +1 -0
- package/dist/types/type-conversion/UnionShift.d.ts +22 -0
- package/dist/types/type-conversion/UnionShift.d.ts.map +1 -0
- package/dist/types/type-conversion/UnionToTuple.d.ts +1 -1
- package/dist/types/type-conversion/UnionToTuple.d.ts.map +1 -1
- package/dist/types/type-conversion/ValueOrReturnValue.d.ts +2 -2
- package/dist/types/type-conversion/ValueOrReturnValue.d.ts.map +1 -1
- package/dist/types/type-conversion/Widen.d.ts +43 -7
- package/dist/types/type-conversion/Widen.d.ts.map +1 -1
- package/dist/types/type-conversion/Widen.js +1 -0
- package/dist/types/type-conversion/WidenValues.d.ts +16 -0
- package/dist/types/type-conversion/WidenValues.d.ts.map +1 -0
- package/dist/types/type-conversion/WithDefault.d.ts +2 -2
- package/dist/types/type-conversion/WithDefault.d.ts.map +1 -1
- package/dist/types/type-conversion/form-fields.d.ts +0 -8
- package/dist/types/type-conversion/form-fields.d.ts.map +1 -1
- package/dist/types/type-conversion/index.d.ts +13 -4
- package/dist/types/type-conversion/index.d.ts.map +1 -1
- package/dist/types/type-conversion/index.js +13 -4
- package/package.json +26 -26
- package/dist/runtime/boolean-logic/ifRef.d.ts +0 -13
- package/dist/runtime/boolean-logic/ifRef.d.ts.map +0 -1
- package/dist/runtime/boolean-logic/ifRef.js +0 -18
- package/dist/runtime/combinators/filter.d.ts +0 -85
- package/dist/runtime/combinators/filter.d.ts.map +0 -1
- package/dist/runtime/combinators/filter.js +0 -118
- package/dist/runtime/dictionary/arrayToKeyLookup.d.ts +0 -12
- package/dist/runtime/dictionary/arrayToKeyLookup.d.ts.map +0 -1
- package/dist/runtime/dictionary/arrayToKeyLookup.js +0 -17
- package/dist/runtime/dictionary/mapValues.d.ts +0 -14
- package/dist/runtime/dictionary/mapValues.d.ts.map +0 -1
- package/dist/runtime/dictionary/mapValues.js +0 -17
- package/dist/runtime/functional/left.d.ts +0 -8
- package/dist/runtime/functional/left.d.ts.map +0 -1
- package/dist/runtime/functional/left.js +0 -6
- package/dist/runtime/functional/right.d.ts +0 -8
- package/dist/runtime/functional/right.d.ts.map +0 -1
- package/dist/runtime/functional/right.js +0 -6
- package/dist/runtime/initializers/createTypeGuard.d.ts +0 -3
- package/dist/runtime/initializers/createTypeGuard.d.ts.map +0 -1
- package/dist/runtime/initializers/createTypeGuard.js +0 -14
- package/dist/runtime/initializers/createTypeTuple.d.ts +0 -8
- package/dist/runtime/initializers/createTypeTuple.d.ts.map +0 -1
- package/dist/runtime/initializers/createTypeTuple.js +0 -8
- package/dist/runtime/initializers/createValidator.d.ts +0 -6
- package/dist/runtime/initializers/createValidator.d.ts.map +0 -1
- package/dist/runtime/initializers/createValidator.js +0 -20
- package/dist/runtime/runtime-types/createType.d.ts +0 -40
- package/dist/runtime/runtime-types/createType.d.ts.map +0 -1
- package/dist/runtime/runtime-types/createType.js +0 -116
- package/dist/runtime/runtime-types/describeType.d.ts +0 -13
- package/dist/runtime/runtime-types/describeType.d.ts.map +0 -1
- package/dist/runtime/runtime-types/describeType.js +0 -32
- package/dist/runtime/runtime-types/determineIdentity.d.ts +0 -3
- package/dist/runtime/runtime-types/determineIdentity.d.ts.map +0 -1
- package/dist/runtime/runtime-types/determineIdentity.js +0 -13
- package/dist/runtime/runtime-types/determineType.d.ts +0 -3
- package/dist/runtime/runtime-types/determineType.d.ts.map +0 -1
- package/dist/runtime/runtime-types/determineType.js +0 -50
- package/dist/runtime/runtime-types/kind.d.ts +0 -99
- package/dist/runtime/runtime-types/kind.d.ts.map +0 -1
- package/dist/runtime/runtime-types/kind.js +0 -108
- package/dist/runtime/runtime-types/typeTuples.d.ts +0 -11
- package/dist/runtime/runtime-types/typeTuples.d.ts.map +0 -1
- package/dist/runtime/runtime-types/typeTuples.js +0 -34
- package/dist/runtime/runtime-types/valueTypes.d.ts +0 -28
- package/dist/runtime/runtime-types/valueTypes.d.ts.map +0 -1
- package/dist/runtime/runtime-types/valueTypes.js +0 -20
- package/dist/runtime/state/Configurator.d.ts +0 -39
- package/dist/runtime/state/Configurator.d.ts.map +0 -1
- package/dist/runtime/state/Configurator.js +0 -55
- package/dist/runtime/state/FluentConfigurator.d.ts +0 -28
- package/dist/runtime/state/FluentConfigurator.d.ts.map +0 -1
- package/dist/runtime/state/FluentConfigurator.js +0 -29
- package/dist/runtime/state/index.d.ts +0 -3
- package/dist/runtime/state/index.d.ts.map +0 -1
- package/dist/runtime/state/index.js +0 -10
- package/dist/runtime/type-guards/runtime-type-guards.d.ts +0 -46
- package/dist/runtime/type-guards/runtime-type-guards.d.ts.map +0 -1
- package/dist/runtime/type-guards/runtime-type-guards.js +0 -76
- package/dist/types/base-types/AnyFunction.d.ts +0 -13
- package/dist/types/base-types/AnyFunction.d.ts.map +0 -1
- package/dist/types/base-types/CouldHaveValue.d.ts +0 -14
- package/dist/types/base-types/CouldHaveValue.d.ts.map +0 -1
- package/dist/types/base-types/IdentityFunction.d.ts.map +0 -1
- package/dist/types/base-types/IndexedObject.d.ts +0 -3
- package/dist/types/base-types/IndexedObject.d.ts.map +0 -1
- package/dist/types/base-types/fns/NarrowingFn.d.ts +0 -10
- package/dist/types/base-types/fns/NarrowingFn.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfAnd.d.ts +0 -14
- package/dist/types/boolean-logic/branching/IfAnd.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfArray.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfArray.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfBoolean.d.ts +0 -3
- package/dist/types/boolean-logic/branching/IfBoolean.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfBooleanLiteral.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfBooleanLiteral.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfChar.d.ts +0 -11
- package/dist/types/boolean-logic/branching/IfChar.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfContainer.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfContainer.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfContains.d.ts +0 -10
- package/dist/types/boolean-logic/branching/IfContains.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfDefined.d.ts +0 -12
- package/dist/types/boolean-logic/branching/IfDefined.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfDoesNotExtend.d.ts +0 -10
- package/dist/types/boolean-logic/branching/IfDoesNotExtend.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfDotPath.d.ts +0 -14
- package/dist/types/boolean-logic/branching/IfDotPath.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfEmptyContainer.d.ts +0 -12
- package/dist/types/boolean-logic/branching/IfEmptyContainer.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfEmptyObject.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfEmptyObject.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfEqualLength.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfEqualLength.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfError.d.ts +0 -15
- package/dist/types/boolean-logic/branching/IfError.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfExtends.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfExtends.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfExtendsAll.d.ts +0 -11
- package/dist/types/boolean-logic/branching/IfExtendsAll.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfExtendsSome.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfExtendsSome.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfFalse.d.ts +0 -11
- package/dist/types/boolean-logic/branching/IfFalse.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfFalsy.d.ts +0 -11
- package/dist/types/boolean-logic/branching/IfFalsy.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfFnWithParams.d.ts +0 -14
- package/dist/types/boolean-logic/branching/IfFnWithParams.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfFnWithoutParams.d.ts +0 -16
- package/dist/types/boolean-logic/branching/IfFnWithoutParams.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfFunction.d.ts +0 -14
- package/dist/types/boolean-logic/branching/IfFunction.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfGreaterThan.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfGreaterThan.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfHasCharacters.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfHasCharacters.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfIndexAt.d.ts +0 -62
- package/dist/types/boolean-logic/branching/IfIndexAt.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfIndexable.d.ts +0 -11
- package/dist/types/boolean-logic/branching/IfIndexable.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfLessThan.d.ts +0 -10
- package/dist/types/boolean-logic/branching/IfLessThan.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfLiteral.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfLiteral.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfMaybeFalse.d.ts +0 -13
- package/dist/types/boolean-logic/branching/IfMaybeFalse.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfMaybeTrue.d.ts +0 -13
- package/dist/types/boolean-logic/branching/IfMaybeTrue.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNarrowlyContains.d.ts +0 -10
- package/dist/types/boolean-logic/branching/IfNarrowlyContains.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNegativeNumber.d.ts +0 -10
- package/dist/types/boolean-logic/branching/IfNegativeNumber.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNotEqual.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfNotEqual.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNotError.d.ts +0 -15
- package/dist/types/boolean-logic/branching/IfNotError.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNotLiteral.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfNotLiteral.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNotNever.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfNotNever.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNotTuple.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfNotTuple.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNull.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfNull.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNumber.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfNumber.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfNumericLiteral.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfNumericLiteral.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfObject.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfObject.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfObjectLiteral.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfObjectLiteral.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfOptionalScalar.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfOptionalScalar.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfOr.d.ts +0 -12
- package/dist/types/boolean-logic/branching/IfOr.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfPositive.d.ts +0 -10
- package/dist/types/boolean-logic/branching/IfPositive.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfReadonlyArray.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfReadonlyArray.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfReadonlyObject.d.ts +0 -3
- package/dist/types/boolean-logic/branching/IfReadonlyObject.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfRef.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfRef.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfReturns.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfReturns.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfScalar.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfScalar.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfSingularNoun.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfSingularNoun.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfSomeEqual.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfSomeEqual.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfSomeExtend.d.ts +0 -12
- package/dist/types/boolean-logic/branching/IfSomeExtend.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfSomeTruthy.d.ts +0 -11
- package/dist/types/boolean-logic/branching/IfSomeTruthy.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfStartsWith.d.ts +0 -13
- package/dist/types/boolean-logic/branching/IfStartsWith.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfString.d.ts +0 -10
- package/dist/types/boolean-logic/branching/IfString.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfStringLiteral.d.ts +0 -20
- package/dist/types/boolean-logic/branching/IfStringLiteral.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfSymbol.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfSymbol.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfTrue.d.ts +0 -12
- package/dist/types/boolean-logic/branching/IfTrue.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfTruthy.d.ts +0 -11
- package/dist/types/boolean-logic/branching/IfTruthy.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfTuple.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfTuple.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfUndefined.d.ts +0 -12
- package/dist/types/boolean-logic/branching/IfUndefined.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfUnion.d.ts +0 -8
- package/dist/types/boolean-logic/branching/IfUnion.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfValidDotPath.d.ts +0 -13
- package/dist/types/boolean-logic/branching/IfValidDotPath.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfValidKey.d.ts +0 -32
- package/dist/types/boolean-logic/branching/IfValidKey.d.ts.map +0 -1
- package/dist/types/boolean-logic/branching/IfWide.d.ts +0 -9
- package/dist/types/boolean-logic/branching/IfWide.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/Includes.d.ts +0 -13
- package/dist/types/boolean-logic/operators/Includes.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/IsChar.d.ts +0 -8
- package/dist/types/boolean-logic/operators/IsChar.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/IsError.d.ts +0 -32
- package/dist/types/boolean-logic/operators/IsError.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/IsIndexable.d.ts +0 -10
- package/dist/types/boolean-logic/operators/IsIndexable.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/IsMaybeTrue.d.ts +0 -14
- package/dist/types/boolean-logic/operators/IsMaybeTrue.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/IsRef.d.ts +0 -15
- package/dist/types/boolean-logic/operators/IsRef.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/IsValidKey.d.ts +0 -10
- package/dist/types/boolean-logic/operators/IsValidKey.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/NotCharacters.d.ts +0 -11
- package/dist/types/boolean-logic/operators/NotCharacters.d.ts.map +0 -1
- package/dist/types/boolean-logic/operators/OfSameLength.d.ts +0 -28
- package/dist/types/boolean-logic/operators/OfSameLength.d.ts.map +0 -1
- package/dist/types/containers/EmptyContainer.d.ts +0 -11
- package/dist/types/containers/EmptyContainer.d.ts.map +0 -1
- package/dist/types/containers/NonEmptyContainer.d.ts +0 -11
- package/dist/types/containers/NonEmptyContainer.d.ts.map +0 -1
- package/dist/types/containers/WithKey.d.ts +0 -32
- package/dist/types/containers/WithKey.d.ts.map +0 -1
- package/dist/types/dictionary/ExplicitKeys.d.ts +0 -13
- package/dist/types/dictionary/ExplicitKeys.d.ts.map +0 -1
- package/dist/types/dictionary/SameKeys.d.ts +0 -12
- package/dist/types/dictionary/SameKeys.d.ts.map +0 -1
- package/dist/types/errors/ReportError.d.ts +0 -9
- package/dist/types/errors/ReportError.d.ts.map +0 -1
- package/dist/types/errors/ReportError.js +0 -12
- package/dist/types/lists/Append.d.ts +0 -1
- package/dist/types/lists/Append.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RemoveEquals.d.ts +0 -9
- package/dist/types/lists/extractors/2nd-order/RemoveEquals.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RemoveErrors.d.ts +0 -11
- package/dist/types/lists/extractors/2nd-order/RemoveErrors.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RemoveExtends.d.ts +0 -9
- package/dist/types/lists/extractors/2nd-order/RemoveExtends.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RemoveNever.d.ts +0 -11
- package/dist/types/lists/extractors/2nd-order/RemoveNever.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RemoveNotExtends.d.ts +0 -9
- package/dist/types/lists/extractors/2nd-order/RemoveNotExtends.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RemoveStrings.d.ts +0 -8
- package/dist/types/lists/extractors/2nd-order/RemoveStrings.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RemoveWide.d.ts +0 -10
- package/dist/types/lists/extractors/2nd-order/RemoveWide.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RetainEquals.d.ts +0 -9
- package/dist/types/lists/extractors/2nd-order/RetainEquals.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RetainExtends.d.ts +0 -9
- package/dist/types/lists/extractors/2nd-order/RetainExtends.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RetainNotExtends.d.ts +0 -9
- package/dist/types/lists/extractors/2nd-order/RetainNotExtends.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/RetainStrings.d.ts +0 -8
- package/dist/types/lists/extractors/2nd-order/RetainStrings.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/index.d.ts +0 -12
- package/dist/types/lists/extractors/2nd-order/index.d.ts.map +0 -1
- package/dist/types/lists/extractors/2nd-order/index.js +0 -11
- package/dist/types/lists/extractors/ExtractorOp.d.ts +0 -5
- package/dist/types/lists/extractors/ExtractorOp.d.ts.map +0 -1
- package/dist/types/lists/extractors/RemoveFromList.d.ts +0 -36
- package/dist/types/lists/extractors/RemoveFromList.d.ts.map +0 -1
- package/dist/types/lists/extractors/RetainFromList.d.ts +0 -43
- package/dist/types/lists/extractors/RetainFromList.d.ts.map +0 -1
- package/dist/types/lists/extractors/index.d.ts +0 -5
- package/dist/types/lists/extractors/index.d.ts.map +0 -1
- package/dist/types/lists/extractors/index.js +0 -4
- package/dist/types/numeric-literals/Float.d.ts +0 -8
- package/dist/types/numeric-literals/Float.d.ts.map +0 -1
- package/dist/types/numeric-literals/Float.js +0 -1
- package/dist/types/numeric-literals/GreaterThan.d.ts +0 -13
- package/dist/types/numeric-literals/GreaterThan.d.ts.map +0 -1
- package/dist/types/numeric-literals/GreaterThan.js +0 -1
- package/dist/types/runtime-types/LiteralType.d.ts +0 -3
- package/dist/types/runtime-types/LiteralType.d.ts.map +0 -1
- package/dist/types/runtime-types/LiteralType.js +0 -1
- package/dist/types/runtime-types/api/boolean.d.ts +0 -9
- package/dist/types/runtime-types/api/boolean.d.ts.map +0 -1
- package/dist/types/runtime-types/api/boolean.js +0 -1
- package/dist/types/runtime-types/api/index.d.ts +0 -7
- package/dist/types/runtime-types/api/index.d.ts.map +0 -1
- package/dist/types/runtime-types/api/index.js +0 -1
- package/dist/types/runtime-types/api/number.d.ts +0 -4
- package/dist/types/runtime-types/api/number.d.ts.map +0 -1
- package/dist/types/runtime-types/api/number.js +0 -1
- package/dist/types/runtime-types/api/numericLiteral.d.ts +0 -1
- package/dist/types/runtime-types/api/numericLiteral.d.ts.map +0 -1
- package/dist/types/runtime-types/api/numericLiteral.js +0 -22
- package/dist/types/runtime-types/api/string.d.ts +0 -4
- package/dist/types/runtime-types/api/string.d.ts.map +0 -1
- package/dist/types/runtime-types/api/string.js +0 -1
- package/dist/types/runtime-types/api/stringLiteral.d.ts +0 -21
- package/dist/types/runtime-types/api/stringLiteral.d.ts.map +0 -1
- package/dist/types/runtime-types/api/stringLiteral.js +0 -1
- package/dist/types/sets/AllKeys.d.ts +0 -11
- package/dist/types/sets/AllKeys.d.ts.map +0 -1
- package/dist/types/sets/AllKeys.js +0 -1
- package/dist/types/sets/Dedupe.d.ts +0 -18
- package/dist/types/sets/Dedupe.d.ts.map +0 -1
- package/dist/types/sets/Dedupe.js +0 -1
- package/dist/types/sets/SetRemoval.d.ts +0 -13
- package/dist/types/sets/SetRemoval.d.ts.map +0 -1
- package/dist/types/sets/SetRemoval.js +0 -1
- package/dist/types/string-literals/DropChars.d.ts +0 -13
- package/dist/types/string-literals/DropChars.d.ts.map +0 -1
- package/dist/types/string-literals/IndexesOfStr.d.ts +0 -46
- package/dist/types/string-literals/IndexesOfStr.d.ts.map +0 -1
- package/dist/types/string-literals/IndexesOfStr.js +0 -1
- package/dist/types/string-literals/RemainingChars.d.ts.map +0 -1
- package/dist/types/string-literals/RemainingChars.js +0 -1
- package/dist/types/string-literals/casing/NamingModifier.d.ts +0 -12
- package/dist/types/string-literals/casing/NamingModifier.d.ts.map +0 -1
- package/dist/types/string-literals/casing/NamingModifier.js +0 -1
- package/dist/types/string-literals/character-sets/DotPath.d.ts +0 -22
- package/dist/types/string-literals/character-sets/DotPath.d.ts.map +0 -1
- package/dist/types/string-literals/character-sets/DotPath.js +0 -1
- package/dist/types/type-conversion/ArrConcat.d.ts +0 -10
- package/dist/types/type-conversion/ArrConcat.d.ts.map +0 -1
- package/dist/types/type-conversion/ArrConcat.js +0 -1
- package/dist/types/type-conversion/KvDict.d.ts +0 -10
- package/dist/types/type-conversion/KvDict.d.ts.map +0 -1
- package/dist/types/type-conversion/KvDict.js +0 -1
- package/dist/types/type-conversion/ObjValues.d.ts +0 -21
- package/dist/types/type-conversion/ObjValues.d.ts.map +0 -1
- package/dist/types/type-conversion/ObjValues.js +0 -1
- package/dist/types/type-conversion/WidenProps.d.ts +0 -11
- package/dist/types/type-conversion/WidenProps.d.ts.map +0 -1
- package/dist/types/type-conversion/WidenProps.js +0 -1
- /package/dist/types/base-types/{AnyFunction.js → Dictionary.js} +0 -0
- /package/dist/types/base-types/{CouldHaveValue.js → List.js} +0 -0
- /package/dist/types/base-types/{IdentityFunction.js → NonArray.js} +0 -0
- /package/dist/types/base-types/{IndexedObject.js → fns/AnyFnWithDict.js} +0 -0
- /package/dist/types/base-types/{IdentityFunction.d.ts → fns/IdentityFunction.d.ts} +0 -0
- /package/dist/types/base-types/fns/{NarrowingFn.js → IdentityFunction.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfAnd.js → base-types/fns/JustFunction.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfArray.js → base-types/fns/TypedFunction.js} +0 -0
- /package/dist/types/boolean-logic/branching/{IfBoolean.js → Default.js} +0 -0
- /package/dist/types/boolean-logic/branching/{IfBooleanLiteral.js → Fail.js} +0 -0
- /package/dist/types/boolean-logic/branching/{IfChar.js → Handle.js} +0 -0
- /package/dist/types/boolean-logic/branching/{IfContainer.js → If.js} +0 -0
- /package/dist/types/boolean-logic/branching/{IfContains.js → Iff.js} +0 -0
- /package/dist/types/boolean-logic/branching/{IfDefined.js → Passthrough.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfDoesNotExtend.js → combinators/Compare.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfDotPath.js → narrowing/As.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfEmptyContainer.js → narrowing/AsDoneFn.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfEmptyObject.js → narrowing/AsSomething.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfEqualLength.js → operators/AllNumericLiterals.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfError.js → operators/AllStringLiterals.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfExtends.js → operators/AreSameLength.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfExtendsAll.js → operators/AreSameType.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfExtendsSome.js → operators/Extends.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfFalse.js → operators/HasIndex.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfFalsy.js → operators/HasOtherCharacters.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfFnWithParams.js → operators/HasProp.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfFnWithoutParams.js → operators/HasRequiredProps.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfFunction.js → operators/HasSameKeys.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfGreaterThan.js → operators/IsFloat.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfHasCharacters.js → operators/IsHexadecimal.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfIndexAt.js → operators/IsInteger.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfIndexable.js → operators/IsIterable.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfLessThan.js → operators/IsLiteralFn.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfLiteral.js → operators/IsLiteralUnion.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfMaybeFalse.js → operators/IsNarrowingFn.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfMaybeTrue.js → operators/IsNonLiteralUnion.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfNarrowlyContains.js → operators/IsNothing.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfNegativeNumber.js → operators/IsSingleChar.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfNotEqual.js → operators/IsValidIndex.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfNotError.js → operators/IsVueRef.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfNotLiteral.js → operators/IsWideUnion.js} +0 -0
- /package/dist/types/boolean-logic/{branching/IfNotNever.js → operators/Validate.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfNotTuple.js → classes/KlassMeta.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfNull.js → containers/IsEmptyContainer.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfNumber.js → containers/IsNonEmptyContainer.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfNumericLiteral.js → containers/RemoveMarked.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order → containers}/RemoveNever.js +0 -0
- /package/dist/types/{boolean-logic/branching/IfObject.js → containers/RemoveUndefined.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfObjectLiteral.js → dictionary/CreateKV.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfOptionalScalar.js → dictionary/CreateLookup.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfOr.js → dictionary/EnsureKeys.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfPositive.js → dictionary/KvFn.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfReadonlyArray.js → dictionary/MakeKeysOptional.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfReadonlyObject.js → dictionary/MergeKVs.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfRef.js → dictionary/TakeProp.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfReturns.js → dictionary/Values.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfScalar.js → errors/CompleteError.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfSingularNoun.js → errors/KindError.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfSomeEqual.js → errors/MapError.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfSomeExtend.js → errors/PartialError.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfSomeTruthy.js → errors/ProxyError.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfStartsWith.js → errors/StackTrace.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfString.js → errors/Throw.js} +0 -0
- /package/dist/types/{lists/Append.js → functional/Option.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfStringLiteral.js → functions/Fn.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfSymbol.js → functions/FnFrom.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfTrue.js → functions/HandleDoneFn.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfTruthy.js → functions/IdentityFn.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfTuple.js → functions/LiteralFn.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfUndefined.js → functions/NarrowingFn.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfUnion.js → functions/OnlyFnProps.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfValidDotPath.js → lists/FilterLiterals.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfValidKey.js → lists/FilterWideTypes.js} +0 -0
- /package/dist/types/{boolean-logic/branching/IfWide.js → lists/Push.js} +0 -0
- /package/dist/types/{boolean-logic/operators/Includes.js → lists/RetainLiterals.js} +0 -0
- /package/dist/types/{boolean-logic/operators/IsChar.js → lists/RetainWideTypes.js} +0 -0
- /package/dist/types/{boolean-logic/operators/IsError.js → lists/Second.js} +0 -0
- /package/dist/types/{boolean-logic/operators/IsIndexable.js → literals/Choices.js} +0 -0
- /package/dist/types/{boolean-logic/operators/IsMaybeTrue.js → literals/DoneFnTuple.js} +0 -0
- /package/dist/types/{boolean-logic/operators/IsRef.js → literals/FromDefn.js} +0 -0
- /package/dist/types/{boolean-logic/operators/IsValidKey.js → literals/FromTokenNames.js} +0 -0
- /package/dist/types/{boolean-logic/operators/NotCharacters.js → literals/Narrow.js} +0 -0
- /package/dist/types/{boolean-logic/operators/OfSameLength.js → literals/RuntimeUnion.js} +0 -0
- /package/dist/types/{lists/extractors/RetainFromList.js → literals/Shape.js} +0 -0
- /package/dist/types/{containers/EmptyContainer.js → string-literals/AfterFirstChar.js} +0 -0
- /package/dist/types/{containers/NonEmptyContainer.js → string-literals/EnsureSurround.js} +0 -0
- /package/dist/types/{containers/WithKey.js → string-literals/character-sets/BCP.js} +0 -0
- /package/dist/types/{dictionary/ExplicitKeys.js → string-literals/geo/state.js} +0 -0
- /package/dist/types/{dictionary/SameKeys.js → string-literals/geo/zip.js} +0 -0
- /package/dist/types/string-literals/{DropChars.js → options/DropChars.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RemoveEquals.js → type-conversion/AsContainer.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RemoveErrors.js → type-conversion/AsDefined.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RemoveExtends.js → type-conversion/AsDictionary.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RemoveNotExtends.js → type-conversion/AsNonNull.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RemoveStrings.js → type-conversion/AsObject.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RemoveWide.js → type-conversion/AsObjectKeys.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RetainEquals.js → type-conversion/AsRecord.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RetainExtends.js → type-conversion/AsRef.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RetainNotExtends.js → type-conversion/ToStringArray.js} +0 -0
- /package/dist/types/{lists/extractors/2nd-order/RetainStrings.js → type-conversion/UnionFilter.js} +0 -0
- /package/dist/types/{lists/extractors/ExtractorOp.js → type-conversion/UnionShift.js} +0 -0
- /package/dist/types/{lists/extractors/RemoveFromList.js → type-conversion/WidenValues.js} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IsUnion, Nothing, RemoveMarked, TupleToUnion, UnionToTuple } from "../../index";
|
|
2
|
+
import { Constant } from "../../../constants/index";
|
|
3
|
+
type Process<T extends readonly unknown[]> = TupleToUnion<RemoveMarked<{
|
|
4
|
+
[K in keyof T]: T[K] extends Nothing ? Constant<"Marked"> : T[K];
|
|
5
|
+
}>>;
|
|
6
|
+
/**
|
|
7
|
+
* **AsSomething**`<T>`
|
|
8
|
+
*
|
|
9
|
+
* Narrowing utility which takes a type `T` and _if it's a union_
|
|
10
|
+
* will narrow the union elements to no longer include `undefined`
|
|
11
|
+
* or `null`.
|
|
12
|
+
*
|
|
13
|
+
* - If `T` is a non-union type then:
|
|
14
|
+
* - a `null` or `undefined` value will be mapped to `TNonUnion` (
|
|
15
|
+
* which defaults to `never`)
|
|
16
|
+
* - all other values are just proxied through
|
|
17
|
+
*/
|
|
18
|
+
export type AsSomething<T, TNonUnion = never> = IsUnion<T> extends true ? Process<UnionToTuple<T>> : T extends Nothing ? TNonUnion : T;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=AsSomething.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsSomething.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/narrowing/AsSomething.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,YAAY,EACb,oBAAwB;AACzB,OAAO,EAAE,QAAQ,EAAE,iCAA4B;AAE/C,KAAK,OAAO,CACV,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,YAAY,CAChB,YAAY,CAAC;KACV,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,GAChC,QAAQ,CAAC,QAAQ,CAAC,GAClB,CAAC,CAAC,CAAC,CAAC;CACT,CAAC,CAAC,CAAC;AAEJ;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,CACrB,CAAC,EACD,SAAS,GAAG,KAAK,IACf,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACzB,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GACxB,CAAC,SAAS,OAAO,GACf,SAAS,GACT,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/narrowing/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/narrowing/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,MAAM,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AfterFirst, First,
|
|
2
|
-
type AllAcc<TList extends readonly unknown[], TExtend> = [] extends TList ? true :
|
|
1
|
+
import { AfterFirst, First, If, Extends } from "../../index";
|
|
2
|
+
type AllAcc<TList extends readonly unknown[], TExtend> = [] extends TList ? true : If<Extends<First<TList>, TExtend>, AllAcc<AfterFirst<TList>, TExtend>, false>;
|
|
3
3
|
/**
|
|
4
4
|
* **AllExtend**`<TList, TExtend>`
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllExtend.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/AllExtend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAG,
|
|
1
|
+
{"version":3,"file":"AllExtend.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/AllExtend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAG,EAAE,EAAE,OAAO,EAAE,oBAAwB;AAElE,KAAK,MAAM,CACT,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,OAAO,IACL,EAAE,SAAS,KAAK,GAChB,IAAI,GACJ,EAAE,CACA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAC9B,MAAM,CACJ,UAAU,CAAC,KAAK,CAAC,EACjB,OAAO,CACR,EACD,KAAK,CACN,CAAC;AAGN;;;;;;;IAOI;AACJ,MAAM,MAAM,SAAS,CACnB,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,OAAO,IACL,MAAM,CAAC,KAAK,EAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Process<TRemaining extends Tuple> = [] extends TRemaining ? true : IfLiteral<First<TRemaining>, Process<AfterFirst<TRemaining>>, false>;
|
|
1
|
+
import { And, IsStringLiteral, IsNumericLiteral, IsTuple, IsBooleanLiteral, IsObjectLiteral } from "../../index";
|
|
3
2
|
/**
|
|
4
3
|
* **AllLiteral**`<TTuple>`
|
|
5
4
|
*
|
|
6
5
|
* A boolean operator which tests whether all properties in
|
|
7
6
|
* the tuple `TTuple` are _literal_ types.
|
|
8
7
|
*/
|
|
9
|
-
export type AllLiteral<T extends
|
|
10
|
-
|
|
8
|
+
export type AllLiteral<T extends readonly unknown[]> = And<{
|
|
9
|
+
[K in keyof T]: IsStringLiteral<T[K]> extends true ? true : IsNumericLiteral<T[K]> extends true ? true : IsTuple<T[K]> extends true ? true : IsBooleanLiteral<T[K]> extends true ? true : IsObjectLiteral<T[K]> extends true ? true : false;
|
|
10
|
+
}>;
|
|
11
11
|
//# sourceMappingURL=AllLiteral.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllLiteral.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/AllLiteral.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AllLiteral.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/AllLiteral.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EAChB,eAAe,EAChB,oBAAwB;AAEzB;;;;;GAKG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI,GAAG,CAAC;KACxD,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAChD,IAAI,GACJ,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GACnC,IAAI,GACJ,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAC1B,IAAI,GACJ,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GACnC,IAAI,GACJ,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAClC,IAAI,GACJ,KAAK;CACR,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { And } from "../combinators/And";
|
|
2
|
+
import { IsNumericLiteral } from "./IsNumericLiteral";
|
|
3
|
+
/**
|
|
4
|
+
* **AllNumericLiterals**`<T>`
|
|
5
|
+
*
|
|
6
|
+
* Boolean operator which checks whether **all** of the
|
|
7
|
+
* passed in elements are _numeric literals_.
|
|
8
|
+
*/
|
|
9
|
+
export type AllNumericLiterals<T extends readonly unknown[]> = And<{
|
|
10
|
+
[K in keyof T]: IsNumericLiteral<T[K]>;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=AllNumericLiterals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllNumericLiterals.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/AllNumericLiterals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,GAAG,CAAC;KACL,CAAC,IAAI,MAAM,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACvC,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { And } from "../combinators/And";
|
|
2
|
+
import { IsStringLiteral } from "./IsStringLiteral";
|
|
3
|
+
/**
|
|
4
|
+
* **AllStringLiterals**`<T>`
|
|
5
|
+
*
|
|
6
|
+
* Boolean operator which checks whether **all** of the
|
|
7
|
+
* passed in elements are _string literals_.
|
|
8
|
+
*/
|
|
9
|
+
export type AllStringLiterals<T extends readonly unknown[]> = And<{
|
|
10
|
+
[K in keyof T]: IsStringLiteral<T[K]>;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=AllStringLiterals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllStringLiterals.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/AllStringLiterals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,CAC3B,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,GAAG,CAAC;KACL,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IsEqual, IsStringLiteral, IsTuple, Length } from "../../index";
|
|
2
|
+
/**
|
|
3
|
+
* **AreSameLength**`<A,B>`
|
|
4
|
+
*
|
|
5
|
+
* Tests whether `A` and `B` are of equal length. Generics should
|
|
6
|
+
* be a `Tuple` or a string but not a combination of the two.
|
|
7
|
+
*/
|
|
8
|
+
export type AreSameLength<A extends string | readonly unknown[], B extends string | readonly unknown[]> = IsStringLiteral<A> extends true ? IsStringLiteral<B> extends true ? IsEqual<Length<A>, Length<B>> : IsTuple<B> extends true ? IsEqual<Length<A>, Length<B>> : boolean : IsTuple<A> extends true ? IsTuple<B> extends true ? IsEqual<Length<A>, Length<B>> : IsStringLiteral<B> extends true ? IsEqual<Length<A>, Length<B>> : boolean : boolean;
|
|
9
|
+
//# sourceMappingURL=AreSameLength.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreSameLength.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/AreSameLength.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,OAAO,EAAG,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAwB;AAI9E;;;;;GAKG;AACH,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS,MAAM,GAAG,SAAS,OAAO,EAAE,EACrC,CAAC,SAAS,MAAM,GAAG,SAAS,OAAO,EAAE,IAEvC,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GAC7B,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GAC7B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GACzF,OAAO,GACP,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACnB,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACnB,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAC7B,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAC/D,OAAO,GACf,OAAO,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Widen } from "../..";
|
|
2
|
+
/**
|
|
3
|
+
* **AreSameType**`<A,B>`
|
|
4
|
+
*
|
|
5
|
+
* Tests whether `A` and `B` are the same _wide_ type.
|
|
6
|
+
*
|
|
7
|
+
* - Note: for containers, the types are rolled up to the broad category of
|
|
8
|
+
* container (e.g., Dictionary, Tuple, Map, Set, WeakMap)
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* // true
|
|
12
|
+
* AreSameType<"foo","bar">;
|
|
13
|
+
* // false
|
|
14
|
+
* AreSameType<"foo",42>;
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export type AreSameType<A, B> = Widen<A, true> extends Widen<B, true> ? Widen<B, true> extends Widen<A, true> ? true : false : false;
|
|
18
|
+
//# sourceMappingURL=AreSameType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreSameType.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/AreSameType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAC,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAClE,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GACnC,IAAI,GACJ,KAAK,GACP,KAAK,CAAC"}
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AsString, IsWideType, Or } from "../../index";
|
|
2
|
+
type ProcessStr<TContent extends string, TComparator extends string> = IsWideType<TComparator> extends true ? boolean : TContent extends `${string}${TComparator}${string}` ? true : false;
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Processes each node of the tuple
|
|
5
|
+
* and then `or` the result to reach
|
|
6
|
+
* single consensus
|
|
7
|
+
*/
|
|
8
|
+
type ProcessTuple<TContent extends readonly unknown[], TComparator> = Or<{
|
|
9
|
+
[K in keyof TContent]: [TContent[K]] extends [TComparator] ? true : false;
|
|
10
|
+
}>;
|
|
11
|
+
type PreProcess<TContent, TComparator> = TContent extends readonly unknown[] ? ProcessTuple<TContent, TComparator> : TContent extends (string | number) ? ProcessStr<AsString<TContent>, AsString<TComparator>> : false;
|
|
12
|
+
/**
|
|
13
|
+
* **Contains**`<TContent, TComparator>`
|
|
14
|
+
*
|
|
15
|
+
* Checks whether `TContent` _contains_ a value of `TComparator`:
|
|
4
16
|
*
|
|
5
|
-
*
|
|
17
|
+
* - when `TContent` is an array/tuple type then each item is compared to `TComparator`
|
|
18
|
+
* - if `TContent` is a string or numeric type then it will report on whether `TComparator`
|
|
19
|
+
* has been found as a string subset
|
|
6
20
|
*
|
|
7
21
|
* **Related:** `NarrowlyContains`
|
|
8
22
|
*/
|
|
9
|
-
export type Contains<
|
|
23
|
+
export type Contains<TContent extends string | number | readonly unknown[], TComparator> = [IsWideType<TContent>] extends [true] ? boolean : PreProcess<TContent, TComparator>;
|
|
24
|
+
export {};
|
|
10
25
|
//# sourceMappingURL=Contains.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contains.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/Contains.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Contains.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/Contains.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,EAAE,EACH,oBAAwB;AAEzB,KAAK,UAAU,CACb,QAAQ,SAAS,MAAM,EACvB,WAAW,SAAS,MAAM,IACxB,UAAU,CAAC,WAAW,CAAC,SAAS,IAAI,GACpC,OAAO,GACP,QAAQ,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,EAAE,GACjD,IAAI,GACJ,KAAK,CAAC;AAGZ;;;;GAIG;AACH,KAAK,YAAY,CACf,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,IACT,EAAE,CAAC;KACJ,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,GACtD,IAAI,GACJ,KAAK;CACV,CAAC,CAAC;AAEH,KAAK,UAAU,CACb,QAAQ,EACR,WAAW,IACT,QAAQ,SAAS,SAAS,OAAO,EAAE,GACnC,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,GACnC,QAAQ,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,GAChC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,GACrD,KAAK,CAAC;AAEZ;;;;;;;;;;GAUG;AACH,MAAM,MAAM,QAAQ,CAClB,QAAQ,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,OAAO,EAAE,EACrD,WAAW,IACT,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GACnC,OAAO,GACP,UAAU,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { IsNever } from "../../index";
|
|
1
2
|
/**
|
|
2
3
|
* **DoesExtend**`<TValue, TExtends>`
|
|
3
4
|
*
|
|
4
5
|
* Boolean type utility which returns `true` if `TValue` _extends_ `TExtends`.
|
|
5
6
|
*/
|
|
6
|
-
export type DoesExtend<TValue, TExtends> = TValue extends TExtends ? true : false;
|
|
7
|
+
export type DoesExtend<TValue, TExtends> = IsNever<TValue> extends true ? false : [TValue] extends [TExtends] ? true : false;
|
|
7
8
|
//# sourceMappingURL=DoesExtend.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoesExtend.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/DoesExtend.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DoesExtend.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/DoesExtend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,oBAAwB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,UAAU,CACpB,MAAM,EACN,QAAQ,IACN,OAAO,CAAC,MAAM,CAAC,SAAS,IAAI,GAC5B,KAAK,GACL,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,GACzB,IAAI,GACJ,KAAK,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AsString, IsStringLiteral, Or } from "../../index";
|
|
2
|
+
type Test<TValue extends string, TComparator extends string> = TValue extends `${string}${TComparator}` ? true : false;
|
|
3
|
+
type Process<TValue extends string, TComparator extends string> = IsStringLiteral<TComparator> extends true ? IsStringLiteral<TValue> extends true ? Test<TValue, TComparator> : boolean : boolean;
|
|
4
|
+
type ProcessEach<TValue extends string, TComparator extends readonly string[]> = Or<{
|
|
5
|
+
[K in keyof TComparator]: Process<TValue, TComparator[K]>;
|
|
6
|
+
}>;
|
|
7
|
+
type PreProcess<TValue extends string, TComparator extends string | readonly string[]> = TComparator extends readonly string[] ? ProcessEach<TValue, TComparator> : TComparator extends string ? Process<TValue, TComparator> : never;
|
|
2
8
|
/**
|
|
3
|
-
* **EndsWith**<
|
|
9
|
+
* **EndsWith**<TValue, TComparator>
|
|
4
10
|
*
|
|
5
|
-
* A type utility which checks whether `
|
|
11
|
+
* A type utility which checks whether `TValue` _ends with_ the
|
|
12
|
+
* value of `TComparator`.
|
|
6
13
|
*
|
|
7
|
-
*
|
|
8
|
-
* to
|
|
9
|
-
*
|
|
14
|
+
* - numeric values for `TValue` will be converted into string literals
|
|
15
|
+
* prior to comparison
|
|
16
|
+
* - a tuple value in `TComparator` is allowed and will test whether
|
|
17
|
+
* _at least one_ type Ends the sequence for TValue
|
|
10
18
|
*/
|
|
11
|
-
export type EndsWith<TValue
|
|
12
|
-
|
|
13
|
-
* **IfEndsWith**<TValue, TEndsWith, IF, ELSE, MAYBE>
|
|
14
|
-
*
|
|
15
|
-
* Type utility which converts type to `IF` type _if_ `TValue` _ends with_ `TEndsWith` but
|
|
16
|
-
* otherwise converts type to `ELSE`. If there are wide types in the mix then the type will
|
|
17
|
-
* result in the union of IF and ELSE.
|
|
18
|
-
*/
|
|
19
|
-
export type IfEndsWith<TValue, TEndsWith, IF, ELSE> = TEndsWith extends string ? EndsWith<TValue, TEndsWith> extends true ? IF : EndsWith<TValue, TEndsWith> extends false ? ELSE : IF | ELSE : TEndsWith extends number ? number extends TEndsWith ? never : IfEndsWith<TValue, ToString<TEndsWith>, IF, ELSE> : never;
|
|
19
|
+
export type EndsWith<TValue extends string | number, TComparator extends string | number | readonly string[]> = PreProcess<AsString<TValue>, TComparator extends number ? AsString<TComparator> : TComparator>;
|
|
20
|
+
export {};
|
|
20
21
|
//# sourceMappingURL=EndsWith.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EndsWith.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/EndsWith.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"EndsWith.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/EndsWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE,oBAAwB;AAEjE,KAAK,IAAI,CACP,MAAM,SAAS,MAAM,EACrB,WAAW,SAAS,MAAM,IACxB,MAAM,SAAS,GAAG,MAAM,GAAG,WAAW,EAAE,GAC1C,IAAI,GACJ,KAAK,CAAC;AAER,KAAK,OAAO,CACV,MAAM,SAAS,MAAM,EACrB,WAAW,SAAS,MAAM,IACxB,eAAe,CAAC,WAAW,CAAC,SAAS,IAAI,GACzC,eAAe,CAAC,MAAM,CAAC,SAAS,IAAI,GAClC,IAAI,CAAC,MAAM,EAAC,WAAW,CAAC,GACxB,OAAO,GACT,OAAO,CAAC;AAEZ,KAAK,WAAW,CACZ,MAAM,SAAS,MAAM,EACrB,WAAW,SAAS,SAAS,MAAM,EAAE,IACrC,EAAE,CAAC;KACJ,CAAC,IAAI,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CACzD,CAAC,CAAC;AAGH,KAAK,UAAU,CACb,MAAM,SAAS,MAAM,EACrB,WAAW,SAAS,MAAM,GAAG,SAAS,MAAM,EAAE,IAC5C,WAAW,SAAS,SAAS,MAAM,EAAE,GACrC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,GAChC,WAAW,SAAS,MAAM,GACtB,OAAO,CAAC,MAAM,EAAC,WAAW,CAAC,GAC3B,KAAK,CAAC;AAEd;;;;;;;;;;GAUG;AACH,MAAM,MAAM,QAAQ,CAClB,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,WAAW,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,IACrD,UAAU,CACZ,QAAQ,CAAC,MAAM,CAAC,EAChB,WAAW,SAAS,MAAM,GACtB,QAAQ,CAAC,WAAW,CAAC,GACrB,WAAW,CAChB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DoesExtend } from "./DoesExtend";
|
|
2
|
+
/**
|
|
3
|
+
* **Extends**`<T,U>`
|
|
4
|
+
*
|
|
5
|
+
* A boolean operator which checks whether `T` extends `U` and returns
|
|
6
|
+
* **true** or **false**. This is an _alias_ for `DoesExtend`.
|
|
7
|
+
*/
|
|
8
|
+
export type Extends<T, U> = DoesExtend<T, U>;
|
|
9
|
+
//# sourceMappingURL=Extends.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Extends.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/Extends.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,EAAC,CAAC,IAAI,UAAU,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type
|
|
1
|
+
import type { IsUnion, UnionToTuple, IsStringLiteral, AllStringLiterals, AsArray, Or, And } from "../../index";
|
|
2
|
+
type Process<TStr extends string, TChars extends string, _TOp extends "any" | "all"> = TStr extends `${string}${TChars}${string}` ? true : false;
|
|
3
|
+
type ProcessTuple<TStr extends string, TChars extends readonly string[], TOp extends "any" | "all"> = TOp extends "any" ? Or<{
|
|
4
|
+
[K in keyof TChars]: TStr extends `${string}${TChars[K]}${string}` ? true : false;
|
|
5
|
+
}> : And<{
|
|
6
|
+
[K in keyof TChars]: TStr extends `${string}${TChars[K]}${string}` ? true : false;
|
|
7
|
+
}>;
|
|
8
|
+
type PreProcess<TStr extends string, TChars extends string, TOp extends "any" | "all"> = IsUnion<TChars> extends true ? UnionToTuple<TChars> extends readonly string[] ? ProcessTuple<TStr, UnionToTuple<TChars>, TOp> : never : Process<TStr, TChars, TOp>;
|
|
3
9
|
/**
|
|
4
|
-
* **
|
|
10
|
+
* **HasCharacters**`<TStr,TChars>`
|
|
5
11
|
*
|
|
6
|
-
* Boolean type utility which tests whether `TStr` has the
|
|
7
|
-
*
|
|
12
|
+
* Boolean type utility which tests whether `TStr` has _any_ of the
|
|
13
|
+
* characters in `TChars`.
|
|
8
14
|
*
|
|
9
|
-
* - If
|
|
10
|
-
*
|
|
11
|
-
* are present.
|
|
15
|
+
* - If you would prefer to test for ALL characters matching then
|
|
16
|
+
* you can change `TOp` to "all".
|
|
12
17
|
*
|
|
13
18
|
* **Related:** `NotCharacters`
|
|
14
19
|
*/
|
|
15
|
-
export type HasCharacters<TStr extends string, TChars extends string | readonly string[]> =
|
|
20
|
+
export type HasCharacters<TStr extends string, TChars extends string | readonly string[], TOp extends "any" | "all" = "any"> = IsStringLiteral<TStr> extends true ? TChars extends string ? IsStringLiteral<TChars> extends true ? PreProcess<TStr, TChars, TOp> : boolean : TChars extends readonly string[] ? AllStringLiterals<AsArray<TChars>> extends true ? ProcessTuple<TStr, TChars, TOp> : boolean : boolean : boolean;
|
|
16
21
|
export {};
|
|
17
22
|
//# sourceMappingURL=HasCharacters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HasCharacters.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasCharacters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"HasCharacters.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasCharacters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,EAAE,EACF,GAAG,EACJ,oBAAwB;AAEzB,KAAK,OAAO,CACV,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,MAAM,EACrB,IAAI,SAAS,KAAK,GAAG,KAAK,IACxB,IAAI,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAC5C,IAAI,GACJ,KAAK,CAAC;AAER,KAAK,YAAY,CACf,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,SAAS,MAAM,EAAE,EAChC,GAAG,SAAS,KAAK,GAAG,KAAK,IACvB,GAAG,SAAS,KAAK,GACnB,EAAE,CAAC;KACF,CAAC,IAAI,MAAM,MAAM,GAAG,IAAI,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,GAC9D,IAAI,GACJ,KAAK;CACV,CAAC,GACA,GAAG,CAAC;KACH,CAAC,IAAI,MAAM,MAAM,GAAG,IAAI,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,GAC9D,IAAI,GACJ,KAAK;CACV,CAAC,CAAC;AAEH,KAAK,UAAU,CACb,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,MAAM,EACrB,GAAG,SAAS,KAAK,GAAG,KAAK,IACvB,OAAO,CAAC,MAAM,CAAC,SAAS,IAAI,GAC9B,YAAY,CAAC,MAAM,CAAC,SAAS,SAAS,MAAM,EAAE,GAC5C,YAAY,CAAC,IAAI,EAAC,YAAY,CAAC,MAAM,CAAC,EAAC,GAAG,CAAC,GAC3C,KAAK,GACP,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;AAG7B;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,CACvB,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,MAAM,GAAG,SAAS,MAAM,EAAE,EACzC,GAAG,SAAS,KAAK,GAAG,KAAK,GAAG,KAAK,IAC/B,eAAe,CAAC,IAAI,CAAC,SAAS,IAAI,GAClC,MAAM,SAAS,MAAM,GACnB,eAAe,CAAC,MAAM,CAAC,SAAS,IAAI,GAClC,UAAU,CAAC,IAAI,EAAC,MAAM,EAAC,GAAG,CAAC,GAC3B,OAAO,GACX,MAAM,SAAS,SAAS,MAAM,EAAE,GAC9B,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,IAAI,GAC7C,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,GAC/B,OAAO,GACT,OAAO,GAET,OAAO,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Container } from "../../index";
|
|
2
|
+
/**
|
|
3
|
+
* **HasIndex**`<TContainer, TIdx>`
|
|
4
|
+
*
|
|
5
|
+
* Boolean operator that tests whether `TContainer` has the
|
|
6
|
+
* index value `TIdx`.
|
|
7
|
+
*/
|
|
8
|
+
export type HasIndex<TContainer, TIdx extends PropertyKey> = TContainer extends Container ? TIdx extends keyof TContainer ? true : false : false;
|
|
9
|
+
//# sourceMappingURL=HasIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HasIndex.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACV,oBAAwB;AAEzB;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,CAClB,UAAU,EACV,IAAI,SAAS,WAAW,IACtB,UAAU,SAAS,SAAS,GAC9B,IAAI,SAAS,MAAM,UAAU,GAC3B,IAAI,GACJ,KAAK,GACP,KAAK,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReplaceAll, IsWideType, TupleToUnion } from "../../index";
|
|
2
|
+
type Process<TStr extends string, TChars extends string> = ReplaceAll<TStr, TChars, ""> extends "" ? false : true;
|
|
3
|
+
/**
|
|
4
|
+
* **HasOtherCharacters**`<TStr,TChars>`
|
|
5
|
+
*
|
|
6
|
+
* Boolean type utility which tests whether `TStr` has any
|
|
7
|
+
* characters _other_ than those in `TChars`.
|
|
8
|
+
*
|
|
9
|
+
* - union types are fine for `TChars`
|
|
10
|
+
* - a tuple for `TChars` behaves the same as union type
|
|
11
|
+
*
|
|
12
|
+
* **Related:** `HasCharacters`
|
|
13
|
+
*/
|
|
14
|
+
export type HasOtherCharacters<TStr extends string, TChars extends string | readonly string[]> = [IsWideType<TStr>] extends [true] ? boolean : [TChars] extends [string] ? IsWideType<TChars> extends true ? boolean : Process<TStr, TChars> : TChars extends readonly string[] ? Process<TStr, TupleToUnion<TChars>> : never;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=HasOtherCharacters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HasOtherCharacters.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasOtherCharacters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACb,oBAAwB;AAEzB,KAAK,OAAO,CACV,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,MAAM,IACnB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,SAAS,EAAE,GACzC,KAAK,GACL,IAAI,CAAC;AAIP;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,CAC5B,IAAI,SAAS,MAAM,EACnB,MAAM,SAAS,MAAM,GAAG,SAAS,MAAM,EAAE,IACvC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GACnC,OAAO,GACP,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,GACzB,UAAU,CAAC,MAAM,CAAC,SAAS,IAAI,GAC7B,OAAO,GACP,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,GACtB,MAAM,SAAS,SAAS,MAAM,EAAE,GAC9B,OAAO,CAAC,IAAI,EAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAClC,KAAK,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Length, IsEqual, TypedFunction } from "../../index";
|
|
2
2
|
/**
|
|
3
3
|
* **HasParameters**`<T>`
|
|
4
4
|
*
|
|
@@ -10,5 +10,5 @@ import { AnyFunction, Length, IsEqual } from "../../index";
|
|
|
10
10
|
* type P = HasParameters<typeof fn>;
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
export type HasParameters<T> = T extends
|
|
13
|
+
export type HasParameters<T> = T extends TypedFunction ? IsEqual<Length<Parameters<T>>, 0> extends true ? false : true : false;
|
|
14
14
|
//# sourceMappingURL=HasParameters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HasParameters.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasParameters.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HasParameters.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasParameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,MAAM,EAAG,OAAO,EAAE,aAAa,EAAE,oBAAwB;AAEnE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,GAClD,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,GAC5C,KAAK,GACL,IAAI,GACN,KAAK,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **HasProp**<TTest,TProp,[TIf],[TElse]>
|
|
3
|
+
*
|
|
4
|
+
* Boolean operator which returns true or false (by default) based
|
|
5
|
+
* on whether `TTest` has a property defined by `TProp`.
|
|
6
|
+
*
|
|
7
|
+
* If you wish to change the true/false values you can override
|
|
8
|
+
* the `Tif` and `TElse` generics.
|
|
9
|
+
*/
|
|
10
|
+
export type HasProp<TTest, TProp extends string, TIf = true, TElse = false> = TTest extends object ? TProp extends keyof TTest ? TIf : TElse : TElse;
|
|
11
|
+
//# sourceMappingURL=HasProp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HasProp.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasProp.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,CACjB,KAAK,EACL,KAAK,SAAS,MAAM,EACpB,GAAG,GAAG,IAAI,EACV,KAAK,GAAG,KAAK,IACX,KAAK,SAAS,MAAM,GACtB,KAAK,SAAS,MAAM,KAAK,GACvB,GAAG,GACH,KAAK,GACP,KAAK,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dictionary } from "../../base-types/Dictionary";
|
|
2
|
+
import { Keys, ObjectKey, RequiredProps } from "../..";
|
|
3
|
+
/**
|
|
4
|
+
* **HasRequiredProps**`<T>`
|
|
5
|
+
*
|
|
6
|
+
* Receives an object and returns true/false based on whether
|
|
7
|
+
* the type has required properties or not.
|
|
8
|
+
*/
|
|
9
|
+
export type HasRequiredProps<T extends object> = T extends Dictionary ? Keys<RequiredProps<T>> extends readonly ObjectKey[] ? Keys<RequiredProps<T>>["length"] extends 0 ? false : true : false : false;
|
|
10
|
+
//# sourceMappingURL=HasRequiredProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HasRequiredProps.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasRequiredProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,CAC1B,CAAC,SAAS,MAAM,IACd,CAAC,SAAS,UAAU,GACtB,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,SAAS,EAAE,GACjD,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GACxC,KAAK,GACL,IAAI,GACN,KAAK,GACP,KAAK,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { And, AsTuple, Container, DoesExtend, HasSameValues, IsTuple, ObjectKey, RemoveIndexKeys, UnionToTuple } from "../../index";
|
|
2
|
+
type Process<A extends readonly unknown[], B extends readonly unknown[]> = And<{
|
|
3
|
+
[K in keyof A]: K extends keyof B ? true : false;
|
|
4
|
+
}>;
|
|
5
|
+
type _Keys<T extends object> = UnionToTuple<keyof RemoveIndexKeys<T>> extends readonly ObjectKey[] ? UnionToTuple<keyof RemoveIndexKeys<T>> : never;
|
|
6
|
+
/**
|
|
7
|
+
* **HasSameKeys**`<A,B>`
|
|
8
|
+
*
|
|
9
|
+
* Boolean operator which compares two lists to see if they have the same keys.
|
|
10
|
+
*/
|
|
11
|
+
export type HasSameKeys<A extends Container, B extends Container> = IsTuple<A> extends true ? IsTuple<B> extends true ? AsTuple<A>["length"] extends AsTuple<B>["length"] ? Process<AsTuple<A>, AsTuple<B>> : false : false : DoesExtend<A, object> extends true ? DoesExtend<B, object> extends true ? _Keys<A>["length"] extends _Keys<B>["length"] ? HasSameValues<_Keys<A>, _Keys<B>> : false : false : false;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=HasSameKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HasSameKeys.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasSameKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,GAAG,EAAG,OAAO,EAAE,SAAS,EAAE,UAAU,EAAI,aAAa,EAAI,OAAO,EAAE,SAAS,EAAC,eAAe,EAAG,YAAY,EAAE,oBAAuB;AAI7I,KAAK,OAAO,CACV,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,GAAG,CAAC;KACL,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7B,IAAI,GACJ,KAAK;CACV,CAAC,CAAA;AAEF,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,IAAI,YAAY,CAAC,MAAM,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,SAAS,EAAE,GAChG,YAAY,CAAC,MAAM,eAAe,CAAC,CAAC,CAAC,CAAC,GACtC,KAAK,CAAA;AAIP;;;;GAIG;AACH,MAAM,MAAM,WAAW,CACrB,CAAC,SAAS,SAAS,EACnB,CAAC,SAAS,SAAS,IAErB,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACnB,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACrB,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAC/C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAC9B,KAAK,GACT,KAAK,GACP,UAAU,CAAC,CAAC,EAAC,MAAM,CAAC,SAAS,IAAI,GAC/B,UAAU,CAAC,CAAC,EAAC,MAAM,CAAC,SAAS,IAAI,GAC/B,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAC3C,aAAa,CAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAClC,KAAK,GACP,KAAK,GACP,KAAK,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type
|
|
1
|
+
import { And, Or } from "../../index";
|
|
2
|
+
type Find<TList extends readonly unknown[], TComparator> = Or<{
|
|
3
|
+
[K in keyof TList]: [TList[K]] extends [TComparator] ? true : false;
|
|
4
|
+
}>;
|
|
5
|
+
type Compare<TList extends readonly unknown[], TComparator extends readonly unknown[]> = And<{
|
|
6
|
+
[K in keyof TList]: Find<TComparator, TList[K]> extends boolean ? Find<TComparator, TList[K]> : never;
|
|
7
|
+
}, true>;
|
|
3
8
|
/**
|
|
4
9
|
* **HasSameValues**`<TList,TComparator>`
|
|
5
10
|
*
|
|
@@ -7,7 +12,6 @@ type Compare<TList extends readonly unknown[], TComparator extends readonly unkn
|
|
|
7
12
|
* `TList` and `TComparator` are the same (even if the order
|
|
8
13
|
* is different).
|
|
9
14
|
*/
|
|
10
|
-
export type HasSameValues<TList extends readonly unknown[], TComparator extends readonly unknown[]> =
|
|
11
|
-
true, Compare<TList, TComparator>>, false>;
|
|
15
|
+
export type HasSameValues<TList extends readonly unknown[], TComparator extends readonly unknown[]> = TList["length"] extends TComparator["length"] ? Compare<TList, TComparator> : false;
|
|
12
16
|
export {};
|
|
13
17
|
//# sourceMappingURL=HasSameValues.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HasSameValues.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasSameValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"HasSameValues.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasSameValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,oBAAwB;AAE1C,KAAK,IAAI,CACP,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,WAAW,IACT,EAAE,CAAC;KACJ,CAAC,IAAI,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,KAAK;CACpE,CAAC,CAAC;AAEH,KAAK,OAAO,CACV,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,WAAW,SAAS,SAAS,OAAO,EAAE,IACpC,GAAG,CAAC;KACL,CAAC,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,GAC3D,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAC3B,KAAK;CACV,EAAE,IAAI,CAAC,CAAA;AAER;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CACvB,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,WAAW,SAAS,SAAS,OAAO,EAAE,IACpC,KAAK,CAAC,QAAQ,CAAC,SAAS,WAAW,CAAC,QAAQ,CAAC,GAC/C,OAAO,CACL,KAAK,EACL,WAAW,CACZ,GACD,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AfterFirst, First,
|
|
2
|
-
type _HasUnion<TList extends readonly unknown[]> = [] extends TList ? false :
|
|
1
|
+
import { AfterFirst, First, IsUnion } from "../../index";
|
|
2
|
+
type _HasUnion<TList extends readonly unknown[]> = [] extends TList ? false : IsUnion<First<TList>> extends true ? true : _HasUnion<AfterFirst<TList>>;
|
|
3
3
|
/**
|
|
4
4
|
* **HasUnionType**`<TList>`
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HasUnionType.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasUnionType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"HasUnionType.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasUnionType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAG,OAAO,EAAE,oBAAwB;AAE9D,KAAK,SAAS,CACZ,KAAK,SAAS,SAAS,OAAO,EAAE,IAC9B,EAAE,SAAS,KAAK,GAChB,KAAK,GACL,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,IAAI,GAC9B,IAAI,GACJ,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AfterFirst, First,
|
|
2
|
-
type Validate<T extends readonly unknown[]> = [] extends T ? false :
|
|
1
|
+
import { AfterFirst, First, IsWideType } from "../../index";
|
|
2
|
+
type Validate<T extends readonly unknown[]> = [] extends T ? false : IsWideType<First<T>> extends true ? true : Validate<AfterFirst<T>>;
|
|
3
3
|
/**
|
|
4
4
|
* **HasWideValues**`<T>`
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HasWideValues.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasWideValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"HasWideValues.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/HasWideValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,oBAAwB;AAEhE,KAAK,QAAQ,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,GACxD,KAAK,GACL,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAC/B,IAAI,GACJ,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5B;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UpperAlphaChar,
|
|
1
|
+
import { UpperAlphaChar, If, HasCharacters } from "../../index";
|
|
2
2
|
/**
|
|
3
3
|
* **IsAllLowercase**`<T>`
|
|
4
4
|
*
|
|
@@ -16,5 +16,5 @@ import { UpperAlphaChar, IfHasCharacters } from "../../index";
|
|
|
16
16
|
* type T = AllCaps<string>;
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export type IsAllLowercase<T extends string> = string extends T ? boolean :
|
|
19
|
+
export type IsAllLowercase<T extends string> = string extends T ? boolean : If<HasCharacters<T, UpperAlphaChar>, true, false>;
|
|
20
20
|
//# sourceMappingURL=IsAllLowercase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsAllLowercase.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/IsAllLowercase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"IsAllLowercase.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/IsAllLowercase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,EAAE,EAAC,aAAa,EAAE,oBAAwB;AAEnE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,SAAS,CAAC,GAC3D,OAAO,GACP,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsNever } from "../../index";
|
|
2
2
|
/**
|
|
3
3
|
* **IsAny**`<T>`
|
|
4
4
|
*
|
|
5
5
|
* Tests whether a given `T` is of the **any** type.
|
|
6
6
|
*/
|
|
7
|
-
export type IsAny<T> =
|
|
7
|
+
export type IsAny<T> = IsNever<T> extends true ? false : 1 extends T & 0 ? true : false;
|
|
8
8
|
//# sourceMappingURL=IsAny.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsAny.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/IsAny.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,oBAAwB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"IsAny.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/IsAny.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,oBAAwB;AAE1C;;;;GAIG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GAC5C,KAAK,GACL,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IsFalse, IsNever, IsTrue } from "../../index";
|
|
2
2
|
/**
|
|
3
3
|
* **IsBooleanLiteral**`<T>`
|
|
4
4
|
*
|
|
5
5
|
* Boolean type utility which detects whether `T`
|
|
6
6
|
* is a boolean literal (aka, is `true` or `false`)
|
|
7
7
|
*/
|
|
8
|
-
export type IsBooleanLiteral<T> =
|
|
8
|
+
export type IsBooleanLiteral<T> = [IsNever<T>] extends [true] ? false : [IsTrue<T>] extends [true] ? true : [IsFalse<T>] extends [true] ? true : false;
|
|
9
9
|
//# sourceMappingURL=IsBooleanLiteral.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsBooleanLiteral.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/IsBooleanLiteral.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"IsBooleanLiteral.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/IsBooleanLiteral.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAI,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAwB;AAIlE;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,CAC1B,CAAC,IACC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAC3B,KAAK,GACL,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GACxB,IAAI,GACJ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAC3B,IAAI,GACJ,KAAK,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IsNever, Dictionary } from "../../index";
|
|
2
2
|
/**
|
|
3
3
|
* **IsContainer**`<T>`
|
|
4
4
|
*
|
|
5
5
|
* Boolean operator which detects whether `T` is a "container" where a
|
|
6
6
|
* container is any object or array.
|
|
7
7
|
*/
|
|
8
|
-
export type IsContainer<T> =
|
|
9
|
-
T
|
|
10
|
-
] extends [AnyObject] ? true : [T] extends [any[]] ? true : false>;
|
|
8
|
+
export type IsContainer<T> = IsNever<T> extends true ? false : [T] extends [Dictionary] ? true : [T] extends [readonly any[]] ? true : false;
|
|
11
9
|
//# sourceMappingURL=IsContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsContainer.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/IsContainer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"IsContainer.d.ts","sourceRoot":"","sources":["../../../../src/types/boolean-logic/operators/IsContainer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAG,OAAO,EAAE,UAAU,EAAE,oBAAwB;AAE5D;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GAClD,KAAK,GACL,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,GACtB,IAAI,GACJ,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC,GAC1B,IAAI,GACJ,KAAK,CAAC"}
|