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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,0BAAwB;
|
|
1
|
+
{"version":3,"file":"withKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,0BAAwB;AAIzE;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,+HAKb,IAAI,WACD,KAAK;;;;;;;8sBACU,CAAC"}
|
|
@@ -9,10 +9,17 @@ import type { NarrowObject, Narrowable } from "../../types/index";
|
|
|
9
9
|
*
|
|
10
10
|
* **Related**: `omit`, `createOmission`
|
|
11
11
|
*/
|
|
12
|
-
export declare const withoutKeys: <TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
export declare const withoutKeys: <TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys) => import("../../types/index").ExpandRecursively<import("../../types/index").RemoveIndexKeys<import("../../types/index").IfLength<import("../../types/index").AsArray<[...TKeys]>, 0, TObj, import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>> extends {
|
|
13
|
+
[x: string]: never;
|
|
14
|
+
[x: symbol]: never;
|
|
15
|
+
} ? {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
[x: symbol]: never;
|
|
18
|
+
} : import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>>, TObj | (import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>> extends {
|
|
19
|
+
[x: string]: never;
|
|
20
|
+
[x: symbol]: never;
|
|
21
|
+
} ? {
|
|
22
|
+
[x: string]: never;
|
|
23
|
+
[x: symbol]: never;
|
|
24
|
+
} : import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>>)>>>;
|
|
18
25
|
//# sourceMappingURL=withoutKeys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withoutKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,0BAAwB;
|
|
1
|
+
{"version":3,"file":"withoutKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,0BAAwB;AAIhE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,6GAKhB,IAAI,cACE,KAAK;;;;;;;;;;;;4JACQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withoutValue.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,0BAAwB;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,IAAI,SAAS,UAAU,EAAE,GAAG,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"withoutValue.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,0BAAwB;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,IAAI,SAAS,UAAU,EAAE,GAAG,EAAE,IAAI,iCACxB,IAAI,KAAG,aAAa,IAAI,EAAC,IAAI,CAAC,CAQpE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { KindErrorDefn } from "../../types/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 declare const kindError: <K extends string, C extends Record<string, unknown> = {}>(kind: K, _defineContext?: C) => KindErrorDefn<K, C>;
|
|
27
|
+
//# sourceMappingURL=KindError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KindError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/KindError.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,aAAa,EAAE,0BAAwB;AAGzF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,mEAId,CAAC,mBACU,CAAC,KACjB,cAAc,CAAC,EAAC,CAAC,CAkBnB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { toKebabCase, toPascalCase } from "../index.js";
|
|
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 const kindError = (kind, _defineContext) => (msg, context) => {
|
|
27
|
+
const err = new Error(msg);
|
|
28
|
+
err.name = toPascalCase(kind);
|
|
29
|
+
err.kind = toKebabCase(kind);
|
|
30
|
+
err.__kind = "KindError";
|
|
31
|
+
err.context = context;
|
|
32
|
+
return err;
|
|
33
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/TypedError.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"TypedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/TypedError.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,UAAU,EAAG,0BAAwB;AAGtE,MAAM,WAAW,UAAU,CACzB,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,QAAQ,SAAS,SAAS,GAAG,SAAS,CACtC,SAAQ,KAAK;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,MAAM,IAAI,CAC5C,IAAI,SAAS,MAAM,EACnB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAC7B,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,KAAK,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAEtE,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,EAC9C,IAAI,EAAE,KAAK,EACX,GAAG,EAAE,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEtC;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;CAC7D,CAAC;AAyBF,eAAO,MAAM,UAAU,8BAPkB,IAAI;;;;aAOK,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Throw } from "../../types/index";
|
|
2
2
|
/**
|
|
3
|
-
* **createErrorConditionTemplate
|
|
3
|
+
* **createErrorConditionTemplate**`(kind,[msg],[utility]) => ErrorCondition`
|
|
4
4
|
*
|
|
5
5
|
* A higher order runtime utility for generating reusable `ErrorCondition`'s at
|
|
6
6
|
* runtime.
|
|
7
7
|
*/
|
|
8
|
-
export declare const createErrorCondition: <
|
|
9
|
-
library: TLibrary;
|
|
10
|
-
}>;
|
|
8
|
+
export declare const createErrorCondition: <TKind extends string, TMsg extends string = never, TUtility extends string = never>(kind: TKind, msg?: TMsg, utility?: TUtility) => Throw<TKind, TMsg, TUtility>;
|
|
11
9
|
//# sourceMappingURL=createErrorCondition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createErrorCondition.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/createErrorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createErrorCondition.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/createErrorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAGxC;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,6FAKzB,KAAK,QACN,IAAI,YACA,QAAQ,iCAQlB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* **createErrorConditionTemplate
|
|
2
|
+
* **createErrorConditionTemplate**`(kind,[msg],[utility]) => ErrorCondition`
|
|
3
3
|
*
|
|
4
4
|
* A higher order runtime utility for generating reusable `ErrorCondition`'s at
|
|
5
5
|
* runtime.
|
|
6
6
|
*/
|
|
7
|
-
export const createErrorCondition = (
|
|
7
|
+
export const createErrorCondition = (kind, msg = "", utility = "") => {
|
|
8
8
|
return {
|
|
9
|
-
|
|
10
|
-
library,
|
|
9
|
+
__kind: "ErrorCondition",
|
|
11
10
|
kind,
|
|
12
|
-
|
|
11
|
+
msg,
|
|
12
|
+
utility,
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { KindErrorDefn } from "../../types/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 declare const kindError: <K extends string, C extends Record<string, unknown> = {}>(kind: K, _defineContext?: C) => KindErrorDefn<K, C>;
|
|
27
|
+
//# sourceMappingURL=kindedError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kindedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/kindedError.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACd,0BAAwB;AAEzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,mEAId,CAAC,mBACU,CAAC,KACjB,cAAc,CAAC,EAAC,CAAC,CAkBnB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { toKebabCase, toPascalCase } from "../literals/index.js";
|
|
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 const kindError = (kind, _defineContext) => (msg, context) => {
|
|
27
|
+
const err = new Error(msg);
|
|
28
|
+
err.name = toPascalCase(kind);
|
|
29
|
+
err.kind = toKebabCase(kind);
|
|
30
|
+
err.__kind = "KindError";
|
|
31
|
+
err.context = context;
|
|
32
|
+
return err;
|
|
33
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/functional/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/functional/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./right.js";
|
|
1
|
+
export * from "./result.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../src/runtime/functional/result.ts"],"names":[],"mappings":"AAoTA,eAAO,MAAM,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
// /* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
// /* eslint-disable no-use-before-define */
|
|
3
|
+
// import { RESULT } from "src/constants/Functional"
|
|
4
|
+
// import {
|
|
5
|
+
// Ok,
|
|
6
|
+
// Result,
|
|
7
|
+
// AsFunction,
|
|
8
|
+
// Narrowable,
|
|
9
|
+
// Err,
|
|
10
|
+
// ResultErr,
|
|
11
|
+
// ObjectKey,
|
|
12
|
+
// ResultTuple,
|
|
13
|
+
// TupleToUnion,
|
|
14
|
+
// ResultApi,
|
|
15
|
+
// IfEqual,
|
|
16
|
+
// IsOk,
|
|
17
|
+
// IsErr,
|
|
18
|
+
// ErrInput,
|
|
19
|
+
// IsFunction,
|
|
20
|
+
// If,
|
|
21
|
+
// } from "src/types/index"
|
|
22
|
+
// import { Never } from "src/constants/index";
|
|
23
|
+
// import { isFunction, isObject, isString } from "../type-guards/index";
|
|
24
|
+
// import { toKebabCase } from "../literals/toKebabCase";
|
|
25
|
+
// import { asUnion } from "../type-conversion/asUnion";
|
|
26
|
+
// import { isRuntimeUnion } from "../type-guards/isRuntimeUnion";
|
|
27
|
+
// import { takeProp } from "../dictionary";
|
|
28
|
+
// import { kindError } from "../errors";
|
|
29
|
+
// import { toPascalCase } from "../literals";
|
|
30
|
+
// const errInputs: ErrInput = "undefined" as const;
|
|
31
|
+
// export const isResult = (val: unknown): val is Result => {
|
|
32
|
+
// return typeof val === "object" &&
|
|
33
|
+
// "__kind" in (val as object) &&
|
|
34
|
+
// "state" in (val as object) &&
|
|
35
|
+
// [RESULT.Err, RESULT.Ok].includes((val as any).state)
|
|
36
|
+
// }
|
|
37
|
+
// function resultTuple<
|
|
38
|
+
// T,
|
|
39
|
+
// E extends ErrInput
|
|
40
|
+
// >(val: T, err: E) {
|
|
41
|
+
// return {
|
|
42
|
+
// __kind: ["Result", val, err]
|
|
43
|
+
// } as ResultTuple<T,E>;
|
|
44
|
+
// }
|
|
45
|
+
// export const asResult = <
|
|
46
|
+
// T,
|
|
47
|
+
// E extends ErrInput
|
|
48
|
+
// >(val: T, err: E): ResultApi<T,E> => ({
|
|
49
|
+
// kind: "Result API",
|
|
50
|
+
// result: null as unknown as Result<T,E>,
|
|
51
|
+
// ok: (v) => {
|
|
52
|
+
// return {
|
|
53
|
+
// ...resultTuple(val,err), state: RESULT.Ok, val: v
|
|
54
|
+
// } as Ok<T>
|
|
55
|
+
// },
|
|
56
|
+
// err: (e) => {
|
|
57
|
+
// return {
|
|
58
|
+
// ...resultTuple(val,err),
|
|
59
|
+
// state: RESULT.Err,
|
|
60
|
+
// err: transformErrInput(e)
|
|
61
|
+
// } as unknown as Err<E>
|
|
62
|
+
// },
|
|
63
|
+
// isErr: (v) => {
|
|
64
|
+
// return isResult(v) && v.state === RESULT.Err;
|
|
65
|
+
// },
|
|
66
|
+
// isOk: (v) => {
|
|
67
|
+
// return isResult(v) && v.state === RESULT.Ok;
|
|
68
|
+
// },
|
|
69
|
+
// okOrElse: (result, otherwise) => {
|
|
70
|
+
// return result.state === RESULT.Ok
|
|
71
|
+
// ? result.val
|
|
72
|
+
// : typeof otherwise === "function"
|
|
73
|
+
// ? otherwise(result)
|
|
74
|
+
// : otherwise
|
|
75
|
+
// },
|
|
76
|
+
// okOrThrow: (result) => {
|
|
77
|
+
// if (isErr(result)) {
|
|
78
|
+
// const { msg, kind, context } = result.err;
|
|
79
|
+
// throw kindError(kind)(msg, context);
|
|
80
|
+
// }
|
|
81
|
+
// }
|
|
82
|
+
// }) as ResultApi<T,E>;
|
|
83
|
+
// /**
|
|
84
|
+
// * **ok**(val)
|
|
85
|
+
// *
|
|
86
|
+
// * Places a value into the `Ok` state of a `Result` structure.
|
|
87
|
+
// *
|
|
88
|
+
// * Note: if you need/want the value to be narrowly typed then use `okN()` instead.
|
|
89
|
+
// */
|
|
90
|
+
// export function ok<
|
|
91
|
+
// T,
|
|
92
|
+
// E extends ErrInput
|
|
93
|
+
// >(val: T, _err: E = errInputs as E): IfEqual<E, ErrInput, Ok<T>, Ok<T,E>> {
|
|
94
|
+
// const tuple = resultTuple(val, _err) as unknown as ResultTuple<T,E>;
|
|
95
|
+
// return { ...tuple, state: RESULT.Ok, val }
|
|
96
|
+
// }
|
|
97
|
+
// /**
|
|
98
|
+
// * **ok**(val)
|
|
99
|
+
// *
|
|
100
|
+
// * Places a value into the `Ok` state of a `Result` structure.
|
|
101
|
+
// *
|
|
102
|
+
// * Note: this can only receive _narrowable_ types in order to provide the
|
|
103
|
+
// * narrowest type possible for `T` but if you don't need this then use the
|
|
104
|
+
// * `ok(val)` function instead.
|
|
105
|
+
// */
|
|
106
|
+
// export function okN<
|
|
107
|
+
// T extends Narrowable,
|
|
108
|
+
// E extends ErrInput
|
|
109
|
+
// >(val: T, _err: E = errInputs as E): Ok<T> {
|
|
110
|
+
// const tuple = resultTuple(val, "unknown") as unknown as ResultTuple<T,E>;
|
|
111
|
+
// return { ...tuple, state: RESULT.Ok, val }
|
|
112
|
+
// }
|
|
113
|
+
// /**
|
|
114
|
+
// * Used to convert an `ErrInput` into `ResultErr[]`
|
|
115
|
+
// */
|
|
116
|
+
// const transformErrInput = <
|
|
117
|
+
// T extends ErrInput
|
|
118
|
+
// >(input: T): TupleToUnion<Err<T>> => {
|
|
119
|
+
// const members = (
|
|
120
|
+
// isRuntimeUnion(input)
|
|
121
|
+
// ? input.members
|
|
122
|
+
// : typeof input === "string"
|
|
123
|
+
// ? [{ msg: input, kind: toKebabCase(input as string), context: {} }]
|
|
124
|
+
// : typeof input === "object"
|
|
125
|
+
// ? [{
|
|
126
|
+
// msg: takeProp((input as Record<ObjectKey, unknown>), "msg", "" as string),
|
|
127
|
+
// kind: toKebabCase(takeProp((input as Record<ObjectKey, unknown>), "kind", "unspecified-kind") as string),
|
|
128
|
+
// context: takeProp((input as Record<ObjectKey, unknown>), "context", {} as NonNullable<unknown>),
|
|
129
|
+
// trace: takeProp((input as Record<ObjectKey, unknown>), "trace", false),
|
|
130
|
+
// }]
|
|
131
|
+
// : Array.isArray(input)
|
|
132
|
+
// ? input
|
|
133
|
+
// : Never
|
|
134
|
+
// ) as ResultErr[];
|
|
135
|
+
// const union = asUnion(...members);
|
|
136
|
+
// return union as unknown as TupleToUnion<Err<T>>;
|
|
137
|
+
// }
|
|
138
|
+
// /**
|
|
139
|
+
// * **createErr**(e) → `<ResultErr>`
|
|
140
|
+
// *
|
|
141
|
+
// * Creates a reusable error template which will allow for:
|
|
142
|
+
// *
|
|
143
|
+
// * - a strict `kind` definition
|
|
144
|
+
// * - a _shape_ and default values for the `context` property
|
|
145
|
+
// * - a strict `stack` definition (default is false)
|
|
146
|
+
// *
|
|
147
|
+
// * The `msg` property will be left as `string` allowing each variant of
|
|
148
|
+
// * this type of error to add their own.
|
|
149
|
+
// */
|
|
150
|
+
// export const createErr = <
|
|
151
|
+
// TKind extends string,
|
|
152
|
+
// TContextDefn extends Record<string, unknown> = NonNullable<unknown>
|
|
153
|
+
// >(kind: TKind, contextDefn?: TContextDefn) => {
|
|
154
|
+
// return {
|
|
155
|
+
// msg: "" as string,
|
|
156
|
+
// kind,
|
|
157
|
+
// context: (contextDefn || {}) as TContextDefn
|
|
158
|
+
// } as ResultErr<TKind, TContextDefn>
|
|
159
|
+
// }
|
|
160
|
+
// /**
|
|
161
|
+
// * **err**(input) -> Err`<E>`
|
|
162
|
+
// *
|
|
163
|
+
// * Creates a `Err` error for use inside a `Result<T,E>` block.
|
|
164
|
+
// */
|
|
165
|
+
// export function err<
|
|
166
|
+
// TErr extends string | ResultErr<any, any>,
|
|
167
|
+
// TVal = unknown
|
|
168
|
+
// >(
|
|
169
|
+
// err: TErr,
|
|
170
|
+
// _val: TVal = null as unknown as ErrInput as TVal
|
|
171
|
+
// ): IfEqual<TVal, unknown, Err<TErr>, Err<TErr,TVal>> {
|
|
172
|
+
// return {
|
|
173
|
+
// ...(resultTuple(_val, err)),
|
|
174
|
+
// state: RESULT.Err,
|
|
175
|
+
// err: transformErrInput(err)
|
|
176
|
+
// } as unknown as IfEqual<TVal, unknown, Err<TErr>, Err<TErr,TVal>>
|
|
177
|
+
// }
|
|
178
|
+
// /**
|
|
179
|
+
// * **isOk**(result)
|
|
180
|
+
// *
|
|
181
|
+
// * Type guard which tests whether the `Result<T,E>` is in the **Ok** state.
|
|
182
|
+
// */
|
|
183
|
+
// export const isOk = <
|
|
184
|
+
// T,
|
|
185
|
+
// >(result: Result<T>): result is T & Ok<T> => {
|
|
186
|
+
// return result.state === RESULT.Ok;
|
|
187
|
+
// }
|
|
188
|
+
// /**
|
|
189
|
+
// * **okOrThrow**(result)
|
|
190
|
+
// *
|
|
191
|
+
// * Returns the Ok _value_ if it's in the Ok status; otherwise throws
|
|
192
|
+
// * an error.
|
|
193
|
+
// */
|
|
194
|
+
// export function okOrThrow<
|
|
195
|
+
// R extends Result<T,E>,
|
|
196
|
+
// T = undefined,
|
|
197
|
+
// E extends ErrInput = ErrInput
|
|
198
|
+
// >(result: R): IsOk<R> extends true ? T : never {
|
|
199
|
+
// if(result.state === RESULT.Err) {
|
|
200
|
+
// if (typeof result.err === "string") {
|
|
201
|
+
// throw new Error(result.err);
|
|
202
|
+
// } else {
|
|
203
|
+
// let e = new Error(result.err.msg);
|
|
204
|
+
// for (const key of Object.keys(result.err)) {
|
|
205
|
+
// if(key !== "msg") {
|
|
206
|
+
// e = {...e, [key]: result.err[key as keyof typeof result.err]}
|
|
207
|
+
// }
|
|
208
|
+
// }
|
|
209
|
+
// throw e;
|
|
210
|
+
// }
|
|
211
|
+
// }
|
|
212
|
+
// return result.val as IsOk<R> extends true ? T : never;
|
|
213
|
+
// }
|
|
214
|
+
// /**
|
|
215
|
+
// * **okOrElse**(result, els)
|
|
216
|
+
// *
|
|
217
|
+
// * Returns the _value_ of the `Result<T,E>` if in the **Ok** state, otherwise
|
|
218
|
+
// * returns `els`.
|
|
219
|
+
// *
|
|
220
|
+
// * - **Note:** if `els` is a function it will be called while passing the error
|
|
221
|
+
// * object to the function.
|
|
222
|
+
// */
|
|
223
|
+
// export function okOrElse<
|
|
224
|
+
// R extends Result<T,E>,
|
|
225
|
+
// T,
|
|
226
|
+
// E extends ResultErr,
|
|
227
|
+
// Els
|
|
228
|
+
// >(
|
|
229
|
+
// result: R,
|
|
230
|
+
// els: Els
|
|
231
|
+
// ): IsOk<R> extends true ? T : If<IsFunction<Els>, ReturnType<AsFunction<Els>>, Els> {
|
|
232
|
+
// return result.state === RESULT.Err
|
|
233
|
+
// ? isFunction(els)
|
|
234
|
+
// ? els(result.err)
|
|
235
|
+
// : els
|
|
236
|
+
// : result.val;
|
|
237
|
+
// }
|
|
238
|
+
// export function isErr<
|
|
239
|
+
// T,
|
|
240
|
+
// E extends ErrInput
|
|
241
|
+
// >(result: Result<T,E>): result is Err<E,T> {
|
|
242
|
+
// return (
|
|
243
|
+
// isString(result)
|
|
244
|
+
// ? {
|
|
245
|
+
// state: RESULT.Err,
|
|
246
|
+
// err:{
|
|
247
|
+
// msg: result,
|
|
248
|
+
// kind: toPascalCase(result),
|
|
249
|
+
// context: {},
|
|
250
|
+
// stack: false
|
|
251
|
+
// }
|
|
252
|
+
// }
|
|
253
|
+
// : isObject(result)
|
|
254
|
+
// ? {
|
|
255
|
+
// state: RESULT.Err,
|
|
256
|
+
// err: {
|
|
257
|
+
// msg: result.err.msg || "no message",
|
|
258
|
+
// kind: takeProp(result, "kind", "no-kind"),
|
|
259
|
+
// context: takeProp(result, "context", {}),
|
|
260
|
+
// stack: takeProp(result, "stack", false)
|
|
261
|
+
// }
|
|
262
|
+
// }
|
|
263
|
+
// : false
|
|
264
|
+
// )
|
|
265
|
+
// ? true
|
|
266
|
+
// : false
|
|
267
|
+
// }
|
|
268
|
+
// /**
|
|
269
|
+
// * **assertErr**(result)
|
|
270
|
+
// *
|
|
271
|
+
// * Asserts that a _result_ is of the `Err` type.
|
|
272
|
+
// */
|
|
273
|
+
// export function assertErr<
|
|
274
|
+
// T
|
|
275
|
+
// >(result: T): IsErr<T> {
|
|
276
|
+
// return (
|
|
277
|
+
// typeof result === "object" &&
|
|
278
|
+
// (result as any).state === RESULT.Err && "err" in (result as object) && (
|
|
279
|
+
// typeof (result as any).err === "string" ||
|
|
280
|
+
// typeof (result as any).err === "object"
|
|
281
|
+
// )
|
|
282
|
+
// ? true
|
|
283
|
+
// : false
|
|
284
|
+
// ) as IsErr<typeof result>;
|
|
285
|
+
// }
|
|
286
|
+
export const result = "NOT READY";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AnyFunction } from "../../types/index";
|
|
1
|
+
import { AnyFunction, AsFnMeta } from "../../types/index";
|
|
2
|
+
type _Props<TFn extends AnyFunction> = AsFnMeta<TFn>["props"];
|
|
2
3
|
/**
|
|
3
4
|
* **fnMeta**(func)
|
|
4
5
|
*
|
|
@@ -8,13 +9,8 @@ import { AnyFunction } from "../../types/index";
|
|
|
8
9
|
* - the `fn` is a clone of the underlying function
|
|
9
10
|
*/
|
|
10
11
|
export declare const fnMeta: <TFn extends AnyFunction>(func: TFn) => {
|
|
11
|
-
fn: <A extends
|
|
12
|
-
props:
|
|
13
|
-
[x: string]: unknown;
|
|
14
|
-
[x: symbol]: unknown;
|
|
15
|
-
} ? {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
[x: symbol]: unknown;
|
|
18
|
-
} & import("../../types/index").IfNever<import("../../types/index").ExpandRecursively<keyof TFn>, {}, import("../../types/index").ExpandRecursively<Pick<TFn, import("../../types/index").ExpandRecursively<keyof TFn>>>> : never;
|
|
12
|
+
fn: <A extends AsFnMeta<TFn>["args"]>(...args: A) => any;
|
|
13
|
+
props: _Props<TFn>;
|
|
19
14
|
};
|
|
15
|
+
export {};
|
|
20
16
|
//# sourceMappingURL=fnMeta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fnMeta.d.ts","sourceRoot":"","sources":["../../../src/runtime/functions/fnMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"fnMeta.d.ts","sourceRoot":"","sources":["../../../src/runtime/functions/fnMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAG,QAAQ,EAAE,0BAAwB;AAEzD,KAAK,MAAM,CAAC,GAAG,SAAS,WAAW,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;AAE9D;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,kCAAmC,GAAG;mDAG3C,CAAC;;CAWd,CAAC"}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from "./lists/index";
|
|
|
9
9
|
export * from "./literals/index";
|
|
10
10
|
export * from "./runtime-types/index";
|
|
11
11
|
export * from "./sets/index";
|
|
12
|
-
export * from "./state/index";
|
|
13
12
|
export * from "./type-conversion/index";
|
|
14
13
|
export * from "./type-guards/index";
|
|
14
|
+
export * from "./vuejs/index";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAA"}
|
package/dist/runtime/index.js
CHANGED
|
@@ -15,9 +15,9 @@ export * from "./lists/index.js";
|
|
|
15
15
|
export * from "./literals/index.js";
|
|
16
16
|
export * from "./runtime-types/index.js";
|
|
17
17
|
export * from "./sets/index.js";
|
|
18
|
-
export * from "./state/index.js";
|
|
19
18
|
export * from "./type-conversion/index.js";
|
|
20
19
|
export * from "./type-guards/index.js";
|
|
20
|
+
export * from "./vuejs/index.js";
|
|
21
21
|
// #endregion auto-indexed files
|
|
22
22
|
// see https://github.com/inocan-group/do-devops/docs/autoindex.md
|
|
23
23
|
// for more info
|