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
|
@@ -1,56 +1,93 @@
|
|
|
1
|
-
import { EmptyObject,
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { EmptyObject, ExpandRecursively, RemoveNever } from "../index";
|
|
2
|
+
export interface TypeErrorInfo<TContext extends Record<string, unknown> = EmptyObject> {
|
|
3
|
+
/**
|
|
4
|
+
* if there is a particular "id" value which is useful to separate from the error message
|
|
5
|
+
* you can add it here.
|
|
6
|
+
*/
|
|
6
7
|
id?: string | number;
|
|
8
|
+
/**
|
|
9
|
+
* a _key_ involved in the ErrorCondition
|
|
10
|
+
*/
|
|
11
|
+
key?: unknown;
|
|
12
|
+
keys?: readonly unknown[];
|
|
13
|
+
/**
|
|
14
|
+
* a _value_ involved in the ErrorCondition
|
|
15
|
+
*/
|
|
16
|
+
value?: any | readonly any[];
|
|
17
|
+
extends?: any | readonly any[];
|
|
18
|
+
doesNotExtend?: any | readonly any[];
|
|
19
|
+
values?: readonly unknown[];
|
|
20
|
+
offset?: unknown;
|
|
21
|
+
index?: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* If this error condition is originating in a library/repo then you can
|
|
24
|
+
* mark this as being the case.
|
|
25
|
+
*/
|
|
7
26
|
library?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface TypeErrorInfo<TContext extends object = object, TUtility extends string | never = string | never, TStack extends readonly string[] = readonly string[], TId extends string | number | never = string | number | never, TLibrary extends string | never = string | never> {
|
|
10
27
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
28
|
+
* used typically for boolean operators to indicate the value
|
|
29
|
+
* being tested
|
|
13
30
|
*/
|
|
14
|
-
|
|
31
|
+
test?: unknown;
|
|
15
32
|
/**
|
|
16
|
-
*
|
|
33
|
+
* used typically for boolean operators to indicate the value
|
|
34
|
+
* if the test is `true`
|
|
17
35
|
*/
|
|
18
|
-
|
|
36
|
+
if?: unknown;
|
|
19
37
|
/**
|
|
20
|
-
*
|
|
38
|
+
* used typically for boolean operators to indicate the value
|
|
39
|
+
* if the test is `false`
|
|
21
40
|
*/
|
|
22
|
-
|
|
41
|
+
else?: unknown;
|
|
23
42
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
43
|
+
* used typically for boolean operators to indicate the value
|
|
44
|
+
* if the test is `boolean`
|
|
26
45
|
*/
|
|
27
|
-
|
|
46
|
+
maybe?: unknown;
|
|
28
47
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
48
|
+
* an underlying ErrorCondition for which this ErrorCondition
|
|
49
|
+
* is based
|
|
50
|
+
*/
|
|
51
|
+
underlying?: ErrorCondition;
|
|
52
|
+
/**
|
|
53
|
+
* In cases where a utility provides a means to handle the "never" value
|
|
54
|
+
* then this indicates what type _never_ would be mapped to.
|
|
55
|
+
*/
|
|
56
|
+
handleNever?: any;
|
|
57
|
+
container?: any | readonly any[];
|
|
58
|
+
/**
|
|
59
|
+
* A place to add a dictionary of key/value pairs specifically related
|
|
60
|
+
* to the error which don't fit into the other props provided.
|
|
31
61
|
*/
|
|
32
|
-
|
|
62
|
+
ctx?: TContext;
|
|
63
|
+
[key: string]: unknown;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* **ErrorConditionShape**
|
|
67
|
+
*
|
|
68
|
+
* Represents the basic shape of any `ErrorCondition`
|
|
69
|
+
*/
|
|
70
|
+
export interface ErrorConditionShape extends TypeErrorInfo {
|
|
71
|
+
__kind: "ErrorCondition";
|
|
72
|
+
kind: string;
|
|
73
|
+
msg: string;
|
|
33
74
|
}
|
|
34
75
|
/**
|
|
35
76
|
* **ErrorCondition**`<TKind,[TMsg],[TDomain],[TVars]>`
|
|
36
77
|
*
|
|
37
|
-
* A way to express a meaningful error message in type system
|
|
78
|
+
* A way to express a meaningful error message in type system.
|
|
79
|
+
*
|
|
80
|
+
* **Related:** `Throw`, `ProxyError`, `MapError`, `IsErrorCondition`
|
|
38
81
|
*/
|
|
39
|
-
export
|
|
40
|
-
_type: "ErrorCondition";
|
|
82
|
+
export type ErrorCondition<TKind extends string = string, TMsg extends string = never, TUtility extends string = never, TStack extends readonly string[] = never, TRest extends TypeErrorInfo = EmptyObject> = ExpandRecursively<RemoveNever<{
|
|
41
83
|
/** the kind/category of error this is */
|
|
42
84
|
kind: TKind;
|
|
43
85
|
/** an error about the message */
|
|
44
|
-
|
|
45
|
-
/** Error specific context */
|
|
46
|
-
context: TInfo extends NotNull ? TInfo["context"] : EmptyObject;
|
|
86
|
+
msg: TMsg;
|
|
47
87
|
/** the originating type utility which threw the error */
|
|
48
|
-
utility:
|
|
88
|
+
utility: TUtility;
|
|
49
89
|
/** the stack of utility types which were used to get to this error */
|
|
50
|
-
stack:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/** the library this error came from */
|
|
54
|
-
library: TInfo extends NotNull ? TInfo["library"] : never;
|
|
55
|
-
}
|
|
90
|
+
stack: TStack;
|
|
91
|
+
__kind: "ErrorCondition";
|
|
92
|
+
}> & TRest>;
|
|
56
93
|
//# sourceMappingURL=ErrorCondition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorCondition.d.ts","sourceRoot":"","sources":["../../../src/types/errors/ErrorCondition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorCondition.d.ts","sourceRoot":"","sources":["../../../src/types/errors/ErrorCondition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,WAAW,EACZ,iBAAwB;AAEzB,MAAM,WAAW,aAAa,CAC5B,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW;IAEtD;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd,IAAI,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,GAAG,SAAS,GAAG,EAAE,CAAC;IAE7B,OAAO,CAAC,EAAE,GAAG,GAAG,SAAS,GAAG,EAAE,CAAC;IAE/B,aAAa,CAAC,EAAE,GAAG,GAAG,SAAS,GAAG,EAAE,CAAC;IAErC,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAE5B,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IAEH,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B;;;OAGG;IAEH,WAAW,CAAC,EAAE,GAAG,CAAC;IAElB,SAAS,CAAC,EAAE,GAAG,GAAG,SAAS,GAAG,EAAE,CAAC;IAEjC;;;OAGG;IACH,GAAG,CAAC,EAAE,QAAQ,CAAC;IAEf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAGD;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAExB,KAAK,SAAS,MAAM,GAAG,MAAM,EAE7B,IAAI,SAAS,MAAM,GAAG,KAAK,EAC3B,QAAQ,SAAS,MAAM,GAAG,KAAK,EAC/B,MAAM,SAAS,SAAS,MAAM,EAAE,GAAG,KAAK,EACxC,KAAK,SAAS,aAAa,GAAG,WAAW,IACvC,iBAAiB,CACrB,WAAW,CAAC;IACV,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC;IACZ,iCAAiC;IACjC,GAAG,EAAE,IAAI,CAAC;IACV,yDAAyD;IACzD,OAAO,EAAE,QAAQ,CAAC;IAClB,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PascalCase, KebabCase } from "../index";
|
|
2
|
+
/**
|
|
3
|
+
* **KindError**
|
|
4
|
+
*
|
|
5
|
+
* An error which:
|
|
6
|
+
*
|
|
7
|
+
* - must have a "kind" type defined which can be used to categorize the error
|
|
8
|
+
* - is allowed to express other key/value pairs in the `context` property
|
|
9
|
+
*
|
|
10
|
+
* This error is generated with the `kindError(kind, _defineContext) => (msg, ctx)`
|
|
11
|
+
* higher order function.
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* // Defines the Error
|
|
15
|
+
* const BadJuju = kindError("bad-juju", { flavor?: "" });
|
|
16
|
+
* // BadJuju {
|
|
17
|
+
* // name: BadJuju;
|
|
18
|
+
* // kind: "bad-juju";
|
|
19
|
+
* // msg: "oh my god!";
|
|
20
|
+
* // context: { flavor?: string}
|
|
21
|
+
* // }
|
|
22
|
+
* BadJuju("oh my god!");
|
|
23
|
+
* BadJuju("oh my god!", { flavor: "strawberry"})
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export interface KindError<K extends string, C extends Record<string, unknown> = NonNullable<unknown>> extends Error {
|
|
27
|
+
__kind: "KindError";
|
|
28
|
+
name: PascalCase<K>;
|
|
29
|
+
kind: KebabCase<K>;
|
|
30
|
+
context: C;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* **KindErrorDefn**`<K,C>`
|
|
34
|
+
*
|
|
35
|
+
* A definition for a `KindError`. Simply call this function to
|
|
36
|
+
* turn it into a `KindError` as specified by this definition.
|
|
37
|
+
*/
|
|
38
|
+
export type KindErrorDefn<K extends string, C extends Record<string, unknown> = NonNullable<unknown>> = (msg: string, context?: C) => KindError<K, C>;
|
|
39
|
+
//# sourceMappingURL=KindError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KindError.d.ts","sourceRoot":"","sources":["../../../src/types/errors/KindError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,iBAAwB;AAEtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,SAAS,CACxB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CACxD,SAAQ,KAAK;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACpB,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACnB,OAAO,EAAE,CAAC,CAAC;CACZ;AAED;;;;;GAKG;AACH,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,IACtD,CACF,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,CAAC,KACR,SAAS,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ErrorConditionShape } from "./ErrorCondition";
|
|
2
|
+
import { Throw } from "./Throw";
|
|
3
|
+
/**
|
|
4
|
+
* **MapError**`<TError,TUtility,[TGeneric]>`
|
|
5
|
+
*
|
|
6
|
+
* Allows a type utility which receives an `ErrorCondition` to
|
|
7
|
+
* proxy that through while changing the "type" of error to
|
|
8
|
+
* whatever is appropriate now in this new scope of execution.
|
|
9
|
+
*
|
|
10
|
+
* **Related:** `ProxyError`
|
|
11
|
+
*/
|
|
12
|
+
export type MapError<TError extends ErrorConditionShape, TKind extends string, TUtility extends string, TGeneric extends string | null = null> = Throw<TKind, TGeneric extends string ? `The "${TUtility}" type utility received an ErrorCondition<"${TError["kind"]}"> in it's ${TGeneric} parameter. The underlying error was: ${TError["msg"]}` : `The "${TUtility}" type utility an ErrorCondition<"${TError["kind"]}">. The underlying error was: ${TError["msg"]}`, TUtility, {
|
|
13
|
+
underlying: TError;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=MapError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapError.d.ts","sourceRoot":"","sources":["../../../src/types/errors/MapError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;;;;;;;;GAQG;AACH,MAAM,MAAM,QAAQ,CAElB,MAAM,SAAS,mBAAmB,EAElC,KAAK,SAAS,MAAM,EAEpB,QAAQ,SAAS,MAAM,EAEvB,QAAQ,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IACnC,KAAK,CACP,KAAK,EACL,QAAQ,SAAS,MAAM,GACnB,QAAQ,QAAQ,8CAA8C,MAAM,CAAC,MAAM,CAAC,cAAc,QAAQ,yCAAyC,MAAM,CAAC,KAAK,CAAC,EAAE,GAC1J,QAAQ,QAAQ,qCAAqC,MAAM,CAAC,MAAM,CAAC,iCAAiC,MAAM,CAAC,KAAK,CAAC,EAAE,EACvH,QAAQ,EACR;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CACrB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ExpandRecursively } from "../literals/ExpandRecursively";
|
|
2
|
+
import { ErrorCondition } from "./ErrorCondition";
|
|
3
|
+
export interface PartialErrorDefn {
|
|
4
|
+
kind?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
utility?: string;
|
|
7
|
+
library?: string;
|
|
8
|
+
underlying?: ErrorCondition;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* **PartialError**`<[TKind],[TMessage],[]>`
|
|
12
|
+
*
|
|
13
|
+
* Allows an author to configure part of an `ErrorCondition`
|
|
14
|
+
* and then complete it with `CompleteError`.
|
|
15
|
+
*/
|
|
16
|
+
export type PartialError<TConfig extends PartialErrorDefn = PartialErrorDefn> = ExpandRecursively<{
|
|
17
|
+
__kind: "PartialError";
|
|
18
|
+
} & TConfig>;
|
|
19
|
+
//# sourceMappingURL=PartialError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartialError.d.ts","sourceRoot":"","sources":["../../../src/types/errors/PartialError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CACtB,OAAO,SAAS,gBAAgB,GAAG,gBAAgB,IACjD,iBAAiB,CACnB;IAAC,MAAM,EAAE,cAAc,CAAA;CAAC,GAAG,OAAO,CACnC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ErrorCondition } from "./ErrorCondition";
|
|
2
|
+
import { Throw } from "./Throw";
|
|
3
|
+
type Underlying<T extends ErrorCondition> = "msg" extends keyof T ? T["msg"] extends string ? T["msg"] : "no message" : "no message";
|
|
4
|
+
type StackDesc<T extends ErrorCondition> = "stack" extends keyof T ? T["stack"] extends readonly [string, ...string[]] ? ` [ from ${T["stack"][0]} ]` : "" : "";
|
|
5
|
+
/**
|
|
6
|
+
* **ProxyError**`<TError,TUtility,[TGeneric]>`
|
|
7
|
+
*
|
|
8
|
+
* Allows a type utility which receives an `ErrorCondition` to
|
|
9
|
+
* proxy that through to the caller but with a small amount of additional
|
|
10
|
+
* context to allow the user to better understand the call chain.
|
|
11
|
+
*
|
|
12
|
+
* **Notes:**
|
|
13
|
+
* - the "kind" of error is not modified; if you want that behavior use `MapError`
|
|
14
|
+
* instead.
|
|
15
|
+
* - you can improve the error message by stating the generic parameter which
|
|
16
|
+
* received the error
|
|
17
|
+
*/
|
|
18
|
+
export type ProxyError<TError extends ErrorCondition, TUtility extends string, TGeneric extends string | null = null> = Throw<TError["kind"], TGeneric extends string ? `The "${TUtility}" type utility detected an ErrorCondition in the "${TGeneric}" property passed into it. The underlying error message${StackDesc<TError>} was: ${Underlying<TError>}` : `The "${TUtility}" type utility detected an ErrorCondition. The underlying error message${StackDesc<TError>} was: ${Underlying<TError>}`, TUtility, {
|
|
19
|
+
underlying: TError;
|
|
20
|
+
}>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=ProxyError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProxyError.d.ts","sourceRoot":"","sources":["../../../src/types/errors/ProxyError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,KAAK,UAAU,CAAC,CAAC,SAAS,cAAc,IAAI,KAAK,SAAS,MAAM,CAAC,GAC/D,CAAC,CAAC,KAAK,CAAC,SAAS,MAAM,GACrB,CAAC,CAAC,KAAK,CAAC,GACR,YAAY,GACd,YAAY,CAAA;AAEd,KAAK,SAAS,CAAC,CAAC,SAAS,cAAc,IAAI,OAAO,SAAS,MAAM,CAAC,GAChE,CAAC,CAAC,OAAO,CAAC,SAAS,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAC/C,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,GAC7B,EAAE,GACJ,EAAE,CAAC;AAEL;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,UAAU,CAEpB,MAAM,SAAS,cAAc,EAE7B,QAAQ,SAAS,MAAM,EAEvB,QAAQ,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IACnC,KAAK,CACP,MAAM,CAAC,MAAM,CAAC,EACd,QAAQ,SAAS,MAAM,GACnB,QAAQ,QAAQ,qDAAqD,QAAQ,0DAA0D,SAAS,CAAC,MAAM,CAAC,SAAS,UAAU,CAAC,MAAM,CAAC,EAAE,GACrL,QAAQ,QAAQ,0EAA0E,SAAS,CAAC,MAAM,CAAC,SAAS,UAAU,CAAC,MAAM,CAAC,EAAE,EAC1I,QAAQ,EACR;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CACzB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SymbolKind = "function" | "method";
|
|
2
|
+
export type StackFrame = {
|
|
3
|
+
type: string;
|
|
4
|
+
fn_name: string;
|
|
5
|
+
method_name: string;
|
|
6
|
+
filename: string;
|
|
7
|
+
line_number: number;
|
|
8
|
+
col_number: number;
|
|
9
|
+
is_native: boolean;
|
|
10
|
+
is_constructor: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type StackTrace = StackFrame[];
|
|
13
|
+
//# sourceMappingURL=StackTrace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackTrace.d.ts","sourceRoot":"","sources":["../../../src/types/errors/StackTrace.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ErrorCondition, TypeErrorInfo, IfNever, EmptyObject } from "../index";
|
|
2
|
+
type Stack<TRest extends TypeErrorInfo> = "underlying" extends keyof TRest ? TRest["underlying"] extends ErrorCondition ? "stack" extends keyof TRest["underlying"] ? TRest["underlying"]["stack"] extends readonly string[] ? TRest["underlying"]["stack"] : never : never : never : never;
|
|
3
|
+
type HandleStack<TUtility extends string, TRest extends TypeErrorInfo> = IfNever<TUtility, IfNever<Stack<TRest>, never, ["unspecified", ...Stack<TRest>]>, IfNever<Stack<TRest>, [TUtility], [TUtility, ...Stack<TRest>]>>;
|
|
4
|
+
/**
|
|
5
|
+
* **Throw**`<TKind,[TMessage],[TUtility],[TRest]>`
|
|
6
|
+
*
|
|
7
|
+
* Allows a user to conveniently create a well formed `ErrorCondition`
|
|
8
|
+
* which prioritizes:
|
|
9
|
+
*
|
|
10
|
+
* - `TKind` - is **required** and gives the error a dasherized name
|
|
11
|
+
* which a caller can respond to. It provides a critical "grouping" feature.
|
|
12
|
+
* - `TMessage` - provides a user friendly message about the error
|
|
13
|
+
* - `TUtility` - the name of the _type utility_ in which this condition
|
|
14
|
+
* is being raised.
|
|
15
|
+
*
|
|
16
|
+
* The final parameter is `TRest` which provides a key/value dictionary --
|
|
17
|
+
* defined by `TypeErrorInfo` -- which can further describe the error.
|
|
18
|
+
*/
|
|
19
|
+
export type Throw<TKind extends string, TMessage extends string = never, TUtility extends string = never, TRest extends TypeErrorInfo = EmptyObject, TStack extends readonly string[] = HandleStack<TUtility, TRest>> = ErrorCondition<TKind, TMessage, TUtility, TStack, TRest>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=Throw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Throw.d.ts","sourceRoot":"","sources":["../../../src/types/errors/Throw.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EACb,OAAO,EACP,WAAW,EACZ,iBAAwB;AAEzB,KAAK,KAAK,CACR,KAAK,SAAS,aAAa,IACzB,YAAY,SAAS,MAAM,KAAK,GAClC,KAAK,CAAC,YAAY,CAAC,SAAS,cAAc,GACxC,OAAO,SAAS,MAAM,KAAK,CAAC,YAAY,CAAC,GACvC,KAAK,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,SAAS,SAAS,MAAM,EAAE,GACpD,KAAK,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GAC5B,KAAK,GACP,KAAK,GACP,KAAK,GACP,KAAK,CAAC;AAGR,KAAK,WAAW,CACd,QAAQ,SAAS,MAAM,EACvB,KAAK,SAAS,aAAa,IACzB,OAAO,CACT,QAAQ,EACR,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,aAAa,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAC9D,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAC/D,CAAA;AAGD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,KAAK,CACf,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,MAAM,GAAG,KAAK,EAC/B,QAAQ,SAAS,MAAM,GAAG,KAAK,EAC/B,KAAK,SAAS,aAAa,GAAG,WAAW,EACzC,MAAM,SAAS,SAAS,MAAM,EAAE,GAAG,WAAW,CAAC,QAAQ,EAAC,KAAK,CAAC,IAC5D,cAAc,CAChB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,CACN,CAAC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export * from "./AsError";
|
|
2
2
|
export * from "./ErrorCondition";
|
|
3
3
|
export * from "./ErrorConditionHandler";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./StackTrace";
|
|
5
|
+
export * from "./KindError";
|
|
6
|
+
export * from "./ProxyError";
|
|
7
|
+
export * from "./MapError";
|
|
8
|
+
export * from "./Throw";
|
|
9
|
+
export * from "./PartialError";
|
|
10
|
+
export * from "./CompleteError";
|
|
5
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export * from "./AsError.js";
|
|
2
2
|
export * from "./ErrorCondition.js";
|
|
3
3
|
export * from "./ErrorConditionHandler.js";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./StackTrace.js";
|
|
5
|
+
export * from "./KindError.js";
|
|
6
|
+
export * from "./ProxyError.js";
|
|
7
|
+
export * from "./MapError.js";
|
|
8
|
+
export * from "./Throw.js";
|
|
9
|
+
export * from "./PartialError.js";
|
|
10
|
+
export * from "./CompleteError.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=Option.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/types/functional/Option.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { AsString, TupleToUnion, Widen, KebabCase, RuntimeUnion, Narrowable, TypeGuard, StackTrace, TakeProp, DoesExtend, If, IsFunction, Something, IsEqual, And } from "../index";
|
|
2
|
+
import { RESULT } from "../../constants/index";
|
|
3
|
+
type OK = typeof RESULT.Ok;
|
|
4
|
+
type ERR = typeof RESULT.Err;
|
|
5
|
+
/**`
|
|
6
|
+
* **ResultErr**
|
|
7
|
+
*
|
|
8
|
+
* A `ResultErr` provides the structure of an
|
|
9
|
+
*/
|
|
10
|
+
export type ResultErr<K extends string = string, C extends Record<string, unknown> = Record<string, unknown>, S extends boolean = boolean> = {
|
|
11
|
+
/**
|
|
12
|
+
* **kind**
|
|
13
|
+
*
|
|
14
|
+
* The _kind_ property in a `ResultErr` is used **categorize** an error
|
|
15
|
+
* and can be highly useful when people are attempting to recover from the
|
|
16
|
+
* error.
|
|
17
|
+
*/
|
|
18
|
+
kind: KebabCase<K>;
|
|
19
|
+
/**
|
|
20
|
+
* **msg**
|
|
21
|
+
*
|
|
22
|
+
* The `msg` property allows developer to use _prose_ to describe the error.
|
|
23
|
+
* It is useful for people debugging an error as it may provide some additional
|
|
24
|
+
* summary insight into the error but it is typically not used programmatically
|
|
25
|
+
* to recover from an error.
|
|
26
|
+
*/
|
|
27
|
+
msg: string;
|
|
28
|
+
/**
|
|
29
|
+
* **context**
|
|
30
|
+
*
|
|
31
|
+
* The `context` property is a dictionary of key/value pairs that allows for
|
|
32
|
+
* deeper context to be provided when an error is encountered.
|
|
33
|
+
*/
|
|
34
|
+
context?: C;
|
|
35
|
+
/**
|
|
36
|
+
* **stack**
|
|
37
|
+
*
|
|
38
|
+
* Allows a user to express whether a stack trace should be generated for
|
|
39
|
+
* a given error.
|
|
40
|
+
*/
|
|
41
|
+
stack?: S;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* **ResultErrInputs**
|
|
45
|
+
*
|
|
46
|
+
* The types which can _represent_ an error within an `Err` block.
|
|
47
|
+
*/
|
|
48
|
+
export type ErrInput = string | ResultErr | ResultErr[] | RuntimeUnion<ResultErr[]>;
|
|
49
|
+
/**
|
|
50
|
+
* **AsErr**`<T>`
|
|
51
|
+
*
|
|
52
|
+
* **Related:** `AsErrKind`, `ResultErr`
|
|
53
|
+
*/
|
|
54
|
+
export type AsErr<T extends ErrInput> = TupleToUnion<T extends RuntimeUnion<ResultErr[]> ? T["type"] : T extends string ? [{
|
|
55
|
+
msg: T;
|
|
56
|
+
kind: KebabCase<T>;
|
|
57
|
+
context: NonNullable<unknown>;
|
|
58
|
+
stack: false;
|
|
59
|
+
}] : T extends ResultErr ? [
|
|
60
|
+
{
|
|
61
|
+
kind: TakeProp<T, "kind", "undefined">;
|
|
62
|
+
msg: TakeProp<T, "msg", "undefined">;
|
|
63
|
+
context: TakeProp<T, "context", NonNullable<unknown>>;
|
|
64
|
+
stack: TakeProp<T, "stack", false>;
|
|
65
|
+
}
|
|
66
|
+
] : T extends readonly Required<ResultErr>[] ? T : never>;
|
|
67
|
+
/**
|
|
68
|
+
* **AsErrKind**
|
|
69
|
+
*
|
|
70
|
+
* Provides a useful way to build a `ResultErr` which will be used as a "template"
|
|
71
|
+
* (aka., "msg" is always just a wide string value)
|
|
72
|
+
*
|
|
73
|
+
* **Related:** `AsErr`, `ResultErr`
|
|
74
|
+
*/
|
|
75
|
+
export type AsErrKind<T extends string | {
|
|
76
|
+
kind: string;
|
|
77
|
+
context?: Record<string, unknown>;
|
|
78
|
+
stack?: boolean;
|
|
79
|
+
}> = T extends string ? {
|
|
80
|
+
kind: KebabCase<T>;
|
|
81
|
+
msg: string;
|
|
82
|
+
context: NonNullable<unknown>;
|
|
83
|
+
stack: false;
|
|
84
|
+
} : T extends {
|
|
85
|
+
kind: string;
|
|
86
|
+
context: Record<string, unknown>;
|
|
87
|
+
stack?: boolean;
|
|
88
|
+
} ? {
|
|
89
|
+
kind: KebabCase<AsString<T["kind"]>>;
|
|
90
|
+
msg: string;
|
|
91
|
+
context: "context" extends keyof T ? T["context"] extends Record<string, unknown> ? Widen<T["context"]> : NonNullable<unknown> : NonNullable<unknown>;
|
|
92
|
+
stack: TakeProp<T, "stack", false>;
|
|
93
|
+
} : never;
|
|
94
|
+
/**
|
|
95
|
+
* **ResultTuple**
|
|
96
|
+
*
|
|
97
|
+
* A tuple containing the types of both possible OK and ERR conditions and
|
|
98
|
+
* are stored in the `__kind` property of a `Result<T,E>`.
|
|
99
|
+
*/
|
|
100
|
+
export type ResultTuple<T = unknown, E extends ErrInput = ErrInput> = {
|
|
101
|
+
__kind: ["Result", ok: T, err: E];
|
|
102
|
+
};
|
|
103
|
+
export type RealizedErr<T extends ResultErr = ResultErr> = Exclude<T, "stack"> & {
|
|
104
|
+
stack: T["stack"] extends true ? StackTrace : never;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* **Err**`<E>`
|
|
108
|
+
*
|
|
109
|
+
* A type utility which receives a _representation_ of an error when using
|
|
110
|
+
* the `Result<T,E>` structure. It will expand this _representation_ to a fully
|
|
111
|
+
* formed **state** and **err** property.
|
|
112
|
+
*/
|
|
113
|
+
export type Err<E extends ErrInput = ErrInput, T = unknown> = {
|
|
114
|
+
state: ERR;
|
|
115
|
+
err: AsErr<E>;
|
|
116
|
+
} & ResultTuple<T, E>;
|
|
117
|
+
/**
|
|
118
|
+
* **Ok**`<T>`
|
|
119
|
+
*
|
|
120
|
+
* The **ok** state of a `Result<T,E>` structure.
|
|
121
|
+
*/
|
|
122
|
+
export type Ok<T = unknown, E extends ErrInput = ErrInput> = {
|
|
123
|
+
state: OK;
|
|
124
|
+
val: T;
|
|
125
|
+
} & ResultTuple<T, E>;
|
|
126
|
+
/**
|
|
127
|
+
* **Result**`<T,E>`
|
|
128
|
+
*
|
|
129
|
+
* A structure which contains the union of either an OK or ERR
|
|
130
|
+
* state. This is meant to resemble the **Rust** type of the same
|
|
131
|
+
* name as much as possible.
|
|
132
|
+
*/
|
|
133
|
+
export type Result<T = unknown, E extends ErrInput = ErrInput> = Ok<T, E> | Err<E, T>;
|
|
134
|
+
/**
|
|
135
|
+
* **ErrFrom**`<T>`
|
|
136
|
+
*
|
|
137
|
+
* Extracts the `Err` type from a `Result<T,E>`.
|
|
138
|
+
*/
|
|
139
|
+
export type ErrFrom<TResult extends Result> = TResult["__kind"][2];
|
|
140
|
+
/**
|
|
141
|
+
* **KindFrom**`<T>`
|
|
142
|
+
*
|
|
143
|
+
* Extracts the _kind_ property from the `Err` type of a `Result<T,E>`.
|
|
144
|
+
*/
|
|
145
|
+
export type KindFrom<TResult extends Result> = AsErr<TResult["__kind"][2]>["kind"];
|
|
146
|
+
export type OkFrom<TResult extends Result> = TResult["__kind"][1];
|
|
147
|
+
type _IsResult<TTest extends Something, TVal = unknown, TErr extends ErrInput = ErrInput> = TTest extends Result ? OkFrom<TTest> extends TVal ? KindFrom<TTest> extends AsErr<TErr>["kind"] ? true : false : false : false;
|
|
148
|
+
/**
|
|
149
|
+
* **IsResult**`<TTest,[TOk],[TErr]>`
|
|
150
|
+
*
|
|
151
|
+
* Boolean utility which tests whether `TTest` qualifies as a `Result<T,E>` type.
|
|
152
|
+
*
|
|
153
|
+
* **Note:** you may include explicit `TOk` or `TErr` values if you want to narrow
|
|
154
|
+
* the check condition but they are not required.
|
|
155
|
+
*/
|
|
156
|
+
export type IsResult<TTest extends Something, TVal = unknown, TErr extends ErrInput = ErrInput> = TTest extends ResultTuple ? If<IsEqual<_IsResult<TTest, TVal, TErr>, boolean>, false, _IsResult<TTest, TVal, TErr>> : false;
|
|
157
|
+
/**
|
|
158
|
+
* **IsOk**`<TTest,[TVal]>`
|
|
159
|
+
*
|
|
160
|
+
* Boolean utility which detects whether `TTest` is in the "Ok" state
|
|
161
|
+
* for a `Result<T,E>`.
|
|
162
|
+
*/
|
|
163
|
+
export type IsOk<TTest, TVal = unknown> = TTest extends {
|
|
164
|
+
state: OK;
|
|
165
|
+
val: TVal;
|
|
166
|
+
} ? true : false;
|
|
167
|
+
/**
|
|
168
|
+
* **IsErr**`<TTest, [TErr]>`
|
|
169
|
+
*
|
|
170
|
+
* Boolean utility which detects whether `TTest` is in the "Err" state
|
|
171
|
+
* for a `Result<T,E>`.
|
|
172
|
+
*/
|
|
173
|
+
export type IsErr<TTest, TErr extends ErrInput = ErrInput> = If<And<[
|
|
174
|
+
DoesExtend<TTest, {
|
|
175
|
+
state: ERR;
|
|
176
|
+
}>,
|
|
177
|
+
TTest extends {
|
|
178
|
+
err: {
|
|
179
|
+
kind: string;
|
|
180
|
+
};
|
|
181
|
+
} ? AsErr<TErr> extends {
|
|
182
|
+
kind: string;
|
|
183
|
+
} ? TTest["err"]["kind"] extends AsErr<TErr>["kind"] ? true : false : true : true
|
|
184
|
+
]>, true, false>;
|
|
185
|
+
export type ResultApi<T, E extends ErrInput = ErrInput> = {
|
|
186
|
+
kind: "Result API";
|
|
187
|
+
/**
|
|
188
|
+
* **Result<T,E>**
|
|
189
|
+
*
|
|
190
|
+
* the _type_ of the result created
|
|
191
|
+
*/
|
|
192
|
+
result: Result<T, E>;
|
|
193
|
+
/**
|
|
194
|
+
* **ok**`<T>`(val: T) -> Ok`<T>`
|
|
195
|
+
*
|
|
196
|
+
* Allows a developer inside of a function with a `Result<T,E>`
|
|
197
|
+
* return type to express the "OK" variant in a type safe manner.
|
|
198
|
+
*/
|
|
199
|
+
ok: <V extends T>(v: V) => Ok<V, E>;
|
|
200
|
+
/**
|
|
201
|
+
* **err**`<E>`(err: E) => Err`<E>`
|
|
202
|
+
*
|
|
203
|
+
* Allows a developer inside of a function with a `Result<T,E>`
|
|
204
|
+
* return type to express the "ERR" variant in a type safe manner.
|
|
205
|
+
*/
|
|
206
|
+
err: <TErr extends E>(e: Err) => Err<TErr, T>;
|
|
207
|
+
/**
|
|
208
|
+
* **isOk**(val)
|
|
209
|
+
*
|
|
210
|
+
* A type guard which helps to _narrow_ a `Result` type into the `Ok` variant.
|
|
211
|
+
*/
|
|
212
|
+
isOk: TypeGuard<Ok<T>, IsEqual<T, unknown> extends true ? Narrowable : T>;
|
|
213
|
+
/**
|
|
214
|
+
* **isErr**(val)
|
|
215
|
+
*
|
|
216
|
+
* A type guard which helps to _narrow_ a `Result` type into the `Err` variant.
|
|
217
|
+
*/
|
|
218
|
+
isErr: TypeGuard<Err<AsErr<E>>, ErrInput>;
|
|
219
|
+
/**
|
|
220
|
+
* **okOrElse**(val, otherwise)
|
|
221
|
+
*
|
|
222
|
+
* Allows you to accept the `Ok` variant's value when it arrives but
|
|
223
|
+
* handle the `Err` variant with another value.
|
|
224
|
+
*
|
|
225
|
+
* The handler for the `Err` condition can be a static value or a function
|
|
226
|
+
* (which will receive the `Err` as it's input).
|
|
227
|
+
*/
|
|
228
|
+
okOrElse: <V extends Result<T, E>, TElse>(v: V, otherwise: TElse) => V extends Ok<V> ? Ok<V> : If<IsFunction<TElse>>;
|
|
229
|
+
/**
|
|
230
|
+
* **okOrThrow**(val) -> Ok<T>["val"]
|
|
231
|
+
*
|
|
232
|
+
* A function which either returns the _value_ of the `Ok` variant or
|
|
233
|
+
* throws a JS error.
|
|
234
|
+
*/
|
|
235
|
+
okOrThrow: <V extends Result<T, E>>(v: V) => Ok<V>["val"];
|
|
236
|
+
};
|
|
237
|
+
export {};
|
|
238
|
+
//# sourceMappingURL=Result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Result.d.ts","sourceRoot":"","sources":["../../../src/types/functional/Result.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/functional/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/functional/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { AnyFunction,
|
|
1
|
+
import type { AnyFunction, FnMeta, FnProps, EmptyObject, ExpandDictionary, TypedFunction, IsNonEmptyObject } from "../index";
|
|
2
2
|
/**
|
|
3
3
|
* **AsFnMeta**`<TFn>`
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* format.
|
|
5
|
+
* Converts any function into `FnMeta` format.
|
|
7
6
|
*/
|
|
8
|
-
export type AsFnMeta<TFn extends AnyFunction> =
|
|
7
|
+
export type AsFnMeta<TFn extends AnyFunction> = TFn extends TypedFunction ? [IsNonEmptyObject<FnProps<TFn>>] extends [true] ? FnMeta<TFn, Parameters<TFn>, ReturnType<TFn>, ExpandDictionary<FnProps<TFn>>> : FnMeta<TFn, Parameters<TFn>, ReturnType<TFn>, EmptyObject> : FnMeta<TypedFunction, any[], any, EmptyObject>;
|
|
9
8
|
//# sourceMappingURL=AsFnMeta.d.ts.map
|