inferred-types 0.40.6 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/Comma.js +1 -1
- package/dist/constants/Never.js +1 -1
- package/dist/constants/NoDefaultValue.js +1 -1
- package/dist/constants/NotDefined.js +1 -1
- package/dist/constants/TypeComparisons.js +1 -1
- package/dist/constants/index.js +22 -22
- package/dist/constants/tsconfig.tsbuildinfo +1 -1
- package/dist/inferred-types/index.js +3 -3
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/boolean-logic/ifChar.js +1 -1
- package/dist/runtime/boolean-logic/index.js +19 -19
- package/dist/runtime/combinators/index.js +3 -3
- package/dist/runtime/dictionary/get.d.ts.map +1 -1
- package/dist/runtime/dictionary/get.js +3 -3
- package/dist/runtime/dictionary/index.d.ts +0 -2
- package/dist/runtime/dictionary/index.d.ts.map +1 -1
- package/dist/runtime/dictionary/index.js +11 -13
- package/dist/runtime/dictionary/withKeys.d.ts +1 -1
- package/dist/runtime/dictionary/withoutKeys.d.ts +1 -1
- package/dist/runtime/errors/index.js +1 -1
- package/dist/runtime/functional/index.js +2 -2
- package/dist/runtime/functions/index.js +1 -1
- package/dist/runtime/index.js +14 -14
- package/dist/runtime/initializers/index.js +8 -8
- package/dist/runtime/lists/createConverter.d.ts.map +1 -1
- package/dist/runtime/lists/createConverter.js +1 -1
- package/dist/runtime/lists/find.d.ts.map +1 -1
- package/dist/runtime/lists/find.js +10 -2
- package/dist/runtime/lists/getEach.js +1 -1
- package/dist/runtime/lists/index.js +15 -15
- package/dist/runtime/lists/indexOf.d.ts.map +1 -1
- package/dist/runtime/lists/indexOf.js +9 -10
- 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 +10 -15
- package/dist/runtime/literals/ifLowercase.js +1 -1
- package/dist/runtime/literals/ifUppercase.js +1 -1
- 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 +31 -30
- package/dist/runtime/literals/pluralize.d.ts.map +1 -1
- package/dist/runtime/literals/pluralize.js +2 -2
- package/dist/runtime/literals/split.d.ts +1 -1
- package/dist/runtime/literals/split.d.ts.map +1 -1
- package/dist/runtime/literals/split.js +1 -7
- package/dist/runtime/literals/stripBefore.d.ts +15 -0
- package/dist/runtime/literals/stripBefore.d.ts.map +1 -0
- package/dist/runtime/literals/stripBefore.js +18 -0
- package/dist/runtime/runtime-types/createType.js +1 -1
- package/dist/runtime/runtime-types/describeType.js +1 -1
- package/dist/runtime/runtime-types/index.d.ts +0 -2
- package/dist/runtime/runtime-types/index.d.ts.map +1 -1
- package/dist/runtime/runtime-types/index.js +6 -8
- package/dist/runtime/runtime-types/kind.d.ts +1 -1
- package/dist/runtime/runtime-types/typeTuples.d.ts +1 -1
- package/dist/runtime/runtime-types/typeTuples.js +1 -1
- package/dist/runtime/sets/index.js +1 -1
- package/dist/runtime/state/index.js +2 -2
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-conversion/index.js +9 -9
- package/dist/runtime/type-guards/higher-order/endsWith.js +1 -1
- package/dist/runtime/type-guards/higher-order/index.js +6 -6
- package/dist/runtime/type-guards/higher-order/isEqual.js +1 -1
- package/dist/runtime/type-guards/higher-order/isLength.js +1 -1
- package/dist/runtime/type-guards/higher-order/startsWith.js +1 -1
- package/dist/runtime/type-guards/index.d.ts +0 -1
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +32 -33
- package/dist/runtime/type-guards/isAlpha.js +1 -1
- package/dist/runtime/type-guards/isArray.d.ts +1 -1
- package/dist/runtime/type-guards/isArray.d.ts.map +1 -1
- package/dist/runtime/type-guards/isFalsy.js +1 -1
- package/dist/runtime/type-guards/isNumericString.d.ts.map +1 -1
- package/dist/runtime/type-guards/isNumericString.js +2 -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/isTruthy.js +1 -1
- package/dist/runtime/type-guards/isTypeToken.js +1 -1
- package/dist/runtime/type-guards/runtime-type-guards.js +1 -1
- package/dist/types/base-types/AnyFunction.d.ts.map +1 -1
- package/dist/types/base-types/Container.d.ts.map +1 -1
- package/dist/types/base-types/CouldHaveValue.d.ts.map +1 -1
- package/dist/types/base-types/Digital.d.ts.map +1 -1
- package/dist/types/base-types/Indexable.d.ts.map +1 -1
- package/dist/types/base-types/IndexableObject.d.ts.map +1 -1
- package/dist/types/base-types/IndexedObject.d.ts.map +1 -1
- package/dist/types/base-types/NarrowObject.d.ts.map +1 -1
- package/dist/types/base-types/Tuple.d.ts.map +1 -1
- package/dist/types/base-types/fns/NarrowingFn.d.ts +1 -1
- package/dist/types/base-types/fns/NarrowingFn.d.ts.map +1 -1
- package/dist/types/base-types/fns/index.js +3 -3
- package/dist/types/base-types/functional/index.js +1 -1
- package/dist/types/base-types/index.js +24 -24
- package/dist/types/boolean-logic/branching/IfAllExtend.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfAllLiteral.d.ts +1 -2
- package/dist/types/boolean-logic/branching/IfAllLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfAnd.d.ts +5 -2
- package/dist/types/boolean-logic/branching/IfAnd.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfArray.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfBoolean.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfBooleanLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfChar.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfContainer.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfContains.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfDotPath.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfEmptyObject.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfErrorCondition.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfExtends.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfExtendsAll.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfExtendsSome.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfFalse.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfFalsy.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfFnWithParams.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfFnWithoutParams.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfFunction.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfGreaterThan.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfHasCharacters.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfLength.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfLessThan.d.ts +10 -0
- package/dist/types/boolean-logic/branching/IfLessThan.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/IfLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfMaybeFalse.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfMaybeTrue.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfNarrowlyContains.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfNegativeNumber.d.ts +10 -0
- package/dist/types/boolean-logic/branching/IfNegativeNumber.d.ts.map +1 -0
- 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/IfNotEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfNotLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfNotNever.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfNotTuple.d.ts +8 -0
- package/dist/types/boolean-logic/branching/IfNotTuple.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/IfNull.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfNumber.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfNumericLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfObject.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfObjectLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfOptionalScalar.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfOr.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfPositive.d.ts +10 -0
- package/dist/types/boolean-logic/branching/IfPositive.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/IfReadonlyArray.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfReadonlyObject.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfRef.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfReturns.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfScalar.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfSingularNoun.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfSomeEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfSomeExtend.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfSomeTruthy.d.ts +1 -2
- package/dist/types/boolean-logic/branching/IfSomeTruthy.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfStartsWith.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfString.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfStringLiteral.d.ts +13 -2
- package/dist/types/boolean-logic/branching/IfStringLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfSymbol.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfTrue.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfTruthy.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfTuple.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfUndefined.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfUnion.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfValidDotPath.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfWide.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/index.d.ts +3 -0
- package/dist/types/boolean-logic/branching/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/index.js +69 -66
- package/dist/types/boolean-logic/combinators/And.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/types/boolean-logic/combinators/index.js +3 -3
- package/dist/types/boolean-logic/index.js +5 -5
- package/dist/types/boolean-logic/narrowing/index.d.ts +0 -1
- package/dist/types/boolean-logic/narrowing/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/narrowing/index.js +1 -2
- package/dist/types/boolean-logic/operators/AllExtend.d.ts +1 -2
- package/dist/types/boolean-logic/operators/AllExtend.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/Contains.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ContainsAll.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/EndsWith.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ExtendsAll.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ExtendsNone.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ExtendsSome.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasCharacters.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasParameters.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasSameValues.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/HasUnionType.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/Includes.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsAllLowercase.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsAny.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsAnyEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsBooleanLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsChar.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsContainer.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsDefined.d.ts +7 -0
- package/dist/types/boolean-logic/operators/IsDefined.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsDefined.js +1 -0
- package/dist/types/boolean-logic/operators/IsDotPath.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsEmptyObject.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsErrorCondition.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsFalse.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsFalsy.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/types/boolean-logic/operators/IsLength.d.ts +1 -2
- package/dist/types/boolean-logic/operators/IsLength.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsMaybeTrue.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts +5 -4
- package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsNotEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsNumericLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsObject.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsObjectLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsOptionalScalar.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsOptionalScalar.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsRef.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsScalar.d.ts +7 -3
- package/dist/types/boolean-logic/operators/IsScalar.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsSingularNoun.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsStringLiteral.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsTrue.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsTruthy.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsTuple.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsTuple.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsUnion.d.ts +1 -1
- package/dist/types/boolean-logic/operators/IsUnion.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsValidDotPath.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsValidKey.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsWideType.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/NarrowlyContains.d.ts +1 -2
- package/dist/types/boolean-logic/operators/NarrowlyContains.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/NotCharacters.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/NotEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/NotLength.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/Returns.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ReturnsBoolean.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ReturnsFalse.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ReturnsTrue.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/SomeEqual.d.ts +1 -2
- package/dist/types/boolean-logic/operators/SomeEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/SomeExtend.d.ts +2 -3
- package/dist/types/boolean-logic/operators/SomeExtend.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/StartsWith.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/index.d.ts +1 -0
- package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/index.js +75 -74
- package/dist/types/classes/index.js +1 -1
- package/dist/types/containers/WithKey.d.ts +16 -6
- package/dist/types/containers/WithKey.d.ts.map +1 -1
- package/dist/types/containers/index.js +3 -3
- package/dist/types/dictionary/AddKeyValue.d.ts.map +1 -1
- package/dist/types/dictionary/CombinedKeys.d.ts +19 -0
- package/dist/types/dictionary/CombinedKeys.d.ts.map +1 -0
- package/dist/types/dictionary/CombinedKeys.js +1 -0
- package/dist/types/dictionary/DictChangeValue.d.ts.map +1 -1
- package/dist/types/dictionary/ExplicitKeys.d.ts.map +1 -1
- package/dist/types/dictionary/FromMaybeRef.d.ts.map +1 -1
- package/dist/types/dictionary/Keys.d.ts +1 -1
- package/dist/types/dictionary/Keys.d.ts.map +1 -1
- package/dist/types/dictionary/KeysEqualValue.d.ts.map +1 -1
- package/dist/types/dictionary/KeysNotEqualValue.d.ts.map +1 -1
- package/dist/types/dictionary/KeysWithValue.d.ts +2 -2
- package/dist/types/dictionary/KeysWithValue.d.ts.map +1 -1
- package/dist/types/dictionary/KeysWithoutValue.d.ts.map +1 -1
- package/dist/types/dictionary/MapTo.d.ts.map +1 -1
- package/dist/types/dictionary/MaybeRef.d.ts.map +1 -1
- package/dist/types/dictionary/MutableProps.d.ts.map +1 -1
- package/dist/types/dictionary/NonStringKeys.d.ts +1 -1
- package/dist/types/dictionary/NonStringKeys.d.ts.map +1 -1
- package/dist/types/dictionary/OptionalProps.d.ts.map +1 -1
- package/dist/types/dictionary/PrivateKeys.d.ts.map +1 -1
- package/dist/types/dictionary/ReadonlyProps.d.ts.map +1 -1
- package/dist/types/dictionary/RemoveIndexKeys.d.ts +2 -2
- package/dist/types/dictionary/RemoveIndexKeys.d.ts.map +1 -1
- package/dist/types/dictionary/RequireProps.d.ts.map +1 -1
- package/dist/types/dictionary/RequiredKeys.d.ts.map +1 -1
- package/dist/types/dictionary/RequiredProps.d.ts.map +1 -1
- package/dist/types/dictionary/SharedKeys.d.ts.map +1 -1
- package/dist/types/dictionary/SimplifyObject.d.ts.map +1 -1
- package/dist/types/dictionary/UpsertKeyValue.d.ts.map +1 -1
- package/dist/types/dictionary/ValidKey.d.ts.map +1 -1
- package/dist/types/dictionary/WithKeys.d.ts.map +1 -1
- package/dist/types/dictionary/WithNumericKeys.d.ts.map +1 -1
- package/dist/types/dictionary/WithStringKeys.d.ts.map +1 -1
- package/dist/types/dictionary/WithValue.d.ts +4 -2
- package/dist/types/dictionary/WithValue.d.ts.map +1 -1
- package/dist/types/dictionary/WithoutKeys.d.ts.map +1 -1
- package/dist/types/dictionary/WithoutValue.d.ts.map +1 -1
- package/dist/types/dictionary/index.d.ts +1 -0
- package/dist/types/dictionary/index.d.ts.map +1 -1
- package/dist/types/dictionary/index.js +41 -40
- package/dist/types/errors/ErrorConditionHandler.d.ts.map +1 -1
- package/dist/types/errors/ReportError.d.ts.map +1 -1
- package/dist/types/errors/index.js +4 -4
- package/dist/types/functional/Left.d.ts.map +1 -1
- package/dist/types/functional/Right.d.ts.map +1 -1
- package/dist/types/functional/index.js +2 -2
- package/dist/types/functions/AsFnMeta.d.ts.map +1 -1
- package/dist/types/functions/FnMeta.d.ts.map +1 -1
- package/dist/types/functions/FnProps.d.ts.map +1 -1
- package/dist/types/functions/PromiseAll.d.ts.map +1 -1
- package/dist/types/functions/RemoveFnProps.d.ts.map +1 -1
- package/dist/types/functions/ToFn.d.ts.map +1 -1
- package/dist/types/functions/TypeGuard.d.ts.map +1 -1
- package/dist/types/functions/index.js +9 -9
- package/dist/types/index.js +17 -17
- package/dist/types/kv/KeyValue.d.ts.map +1 -1
- package/dist/types/kv/index.js +4 -4
- package/dist/types/lists/AfterFirst.d.ts.map +1 -1
- package/dist/types/lists/ArrayElementType.d.ts +1 -2
- package/dist/types/lists/ArrayElementType.d.ts.map +1 -1
- package/dist/types/lists/AsArray.d.ts +0 -2
- package/dist/types/lists/AsArray.d.ts.map +1 -1
- package/dist/types/lists/AsTuple.d.ts +12 -0
- package/dist/types/lists/AsTuple.d.ts.map +1 -0
- package/dist/types/lists/AsTuple.js +1 -0
- package/dist/types/lists/BeforeLast.d.ts.map +1 -1
- package/dist/types/lists/ConvertAndMap.d.ts.map +1 -1
- package/dist/types/lists/ConvertSet.d.ts.map +1 -1
- package/dist/types/lists/Filter.d.ts.map +1 -1
- package/dist/types/lists/Find.d.ts.map +1 -1
- package/dist/types/lists/First.d.ts +1 -2
- package/dist/types/lists/First.d.ts.map +1 -1
- package/dist/types/lists/FirstOrElse.d.ts.map +1 -1
- package/dist/types/lists/Flatten.d.ts +1 -2
- package/dist/types/lists/Flatten.d.ts.map +1 -1
- package/dist/types/lists/GetEach.d.ts.map +1 -1
- package/dist/types/lists/IndexOf.d.ts.map +1 -1
- package/dist/types/lists/IntersectAll.d.ts.map +1 -1
- package/dist/types/lists/Last.d.ts.map +1 -1
- package/dist/types/lists/Length.d.ts +2 -2
- package/dist/types/lists/Length.d.ts.map +1 -1
- package/dist/types/lists/NumericKeys.d.ts.map +1 -1
- package/dist/types/lists/Pop.d.ts.map +1 -1
- package/dist/types/lists/ReplaceLast.d.ts.map +1 -1
- package/dist/types/lists/Retain.d.ts.map +1 -1
- package/dist/types/lists/ReturnTypes.d.ts.map +1 -1
- package/dist/types/lists/Reverse.d.ts.map +1 -1
- package/dist/types/lists/Shift.d.ts.map +1 -1
- package/dist/types/lists/TruthyReturns.d.ts.map +1 -1
- package/dist/types/lists/UnionFromProp.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RemoveEquals.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RemoveErrors.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RemoveExtends.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RemoveNever.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RemoveNotExtends.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RemoveStrings.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RetainEquals.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RetainExtends.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RetainNotExtends.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/RetainStrings.d.ts.map +1 -1
- package/dist/types/lists/extractors/2nd-order/index.js +10 -10
- package/dist/types/lists/extractors/RemoveFromList.d.ts.map +1 -1
- package/dist/types/lists/extractors/RetainFromList.d.ts.map +1 -1
- package/dist/types/lists/extractors/index.js +4 -4
- package/dist/types/lists/index.d.ts +1 -0
- package/dist/types/lists/index.d.ts.map +1 -1
- package/dist/types/lists/index.js +33 -32
- package/dist/types/literals/Box.d.ts.map +1 -1
- package/dist/types/literals/Color.d.ts.map +1 -1
- package/dist/types/literals/ContainerBlockKey.d.ts.map +1 -1
- package/dist/types/literals/ContainerKeyGuarantee.d.ts.map +1 -1
- package/dist/types/literals/ExpandRecursively.d.ts.map +1 -1
- package/dist/types/literals/index.js +10 -10
- package/dist/types/numeric-literals/Abs.d.ts +2 -2
- package/dist/types/numeric-literals/Abs.d.ts.map +1 -1
- package/dist/types/numeric-literals/AbsMaybe.d.ts.map +1 -1
- package/dist/types/numeric-literals/Add.d.ts +77 -0
- package/dist/types/numeric-literals/Add.d.ts.map +1 -0
- package/dist/types/numeric-literals/Add.js +1 -0
- package/dist/types/numeric-literals/AsNumberWhenPossible.d.ts.map +1 -1
- package/dist/types/numeric-literals/Decrement.d.ts.map +1 -1
- package/dist/types/numeric-literals/Digit.d.ts.map +1 -1
- package/dist/types/numeric-literals/DigitNonZero.d.ts.map +1 -1
- package/dist/types/numeric-literals/Digitize.d.ts.map +1 -1
- package/dist/types/numeric-literals/Float.d.ts.map +1 -1
- package/dist/types/numeric-literals/Increment.d.ts.map +1 -1
- package/dist/types/numeric-literals/Negative.d.ts.map +1 -1
- package/dist/types/numeric-literals/NextDigit.d.ts.map +1 -1
- package/dist/types/numeric-literals/NumberLike.d.ts +8 -0
- package/dist/types/numeric-literals/NumberLike.d.ts.map +1 -0
- package/dist/types/numeric-literals/NumberLike.js +1 -0
- package/dist/types/numeric-literals/NumericRange.d.ts +1 -1
- package/dist/types/numeric-literals/NumericRange.d.ts.map +1 -1
- package/dist/types/numeric-literals/PriorDigit.d.ts.map +1 -1
- package/dist/types/numeric-literals/Subtract.d.ts +3 -1
- package/dist/types/numeric-literals/Subtract.d.ts.map +1 -1
- package/dist/types/numeric-literals/ToInteger.d.ts.map +1 -1
- package/dist/types/numeric-literals/index.d.ts +14 -11
- package/dist/types/numeric-literals/index.d.ts.map +1 -1
- package/dist/types/numeric-literals/index.js +23 -19
- package/dist/types/runtime-types/DescribeType.d.ts.map +1 -1
- package/dist/types/runtime-types/FromLiteralTokens.d.ts.map +1 -1
- package/dist/types/runtime-types/LiteralType.d.ts.map +1 -1
- package/dist/types/runtime-types/StringLiteralToken.d.ts.map +1 -1
- package/dist/types/runtime-types/TokenizeStringLiteral.d.ts.map +1 -1
- package/dist/types/runtime-types/Type.d.ts.map +1 -1
- package/dist/types/runtime-types/TypeOf.d.ts.map +1 -1
- package/dist/types/runtime-types/TypeToken.d.ts.map +1 -1
- package/dist/types/runtime-types/TypeTuple.d.ts.map +1 -1
- package/dist/types/runtime-types/api/boolean.d.ts.map +1 -1
- package/dist/types/runtime-types/api/number.d.ts.map +1 -1
- package/dist/types/runtime-types/api/string.d.ts.map +1 -1
- package/dist/types/runtime-types/api/stringLiteral.d.ts.map +1 -1
- package/dist/types/runtime-types/index.js +10 -10
- package/dist/types/sets/AllKeys.d.ts.map +1 -1
- package/dist/types/sets/Dedupe.d.ts.map +1 -1
- package/dist/types/sets/IntersectingKeys.d.ts.map +1 -1
- package/dist/types/sets/Intersection.d.ts.map +1 -1
- package/dist/types/sets/Relate.d.ts.map +1 -1
- package/dist/types/sets/SetCandidate.d.ts.map +1 -1
- package/dist/types/sets/SetRemoval.d.ts.map +1 -1
- package/dist/types/sets/Unique.d.ts +12 -1
- package/dist/types/sets/Unique.d.ts.map +1 -1
- package/dist/types/sets/UniqueKeys.d.ts.map +1 -1
- package/dist/types/sets/UniqueKeysUnion.d.ts.map +1 -1
- package/dist/types/sets/UniqueKv.d.ts.map +1 -1
- package/dist/types/sets/index.js +11 -11
- package/dist/types/string-literals/Cardinality.d.ts +2 -2
- package/dist/types/string-literals/Cardinality.d.ts.map +1 -1
- package/dist/types/string-literals/Chars.d.ts +2 -2
- package/dist/types/string-literals/Chars.d.ts.map +1 -1
- package/dist/types/string-literals/Concat.d.ts.map +1 -1
- package/dist/types/string-literals/Date.d.ts.map +1 -1
- package/dist/types/string-literals/DateTime.d.ts.map +1 -1
- package/dist/types/string-literals/DropChars.d.ts.map +1 -1
- package/dist/types/string-literals/EmptyStringOr.d.ts.map +1 -1
- package/dist/types/string-literals/EnsureLeading.d.ts.map +1 -1
- package/dist/types/string-literals/EnsureLeadingEvery.d.ts.map +1 -1
- package/dist/types/string-literals/EnsureTrailing.d.ts.map +1 -1
- package/dist/types/string-literals/FirstChar.d.ts.map +1 -1
- package/dist/types/string-literals/HasUppercase.d.ts.map +1 -1
- package/dist/types/string-literals/Join.d.ts.map +1 -1
- package/dist/types/string-literals/LastChar.d.ts.map +1 -1
- package/dist/types/string-literals/PathJoin.d.ts.map +1 -1
- package/dist/types/string-literals/Pluralize.d.ts.map +1 -1
- package/dist/types/string-literals/Prepend.d.ts.map +1 -1
- package/dist/types/string-literals/PrependAll.d.ts.map +1 -1
- package/dist/types/string-literals/RemainingChars.d.ts.map +1 -1
- package/dist/types/string-literals/Repeat.d.ts.map +1 -1
- package/dist/types/string-literals/RetainAfter.d.ts +7 -4
- package/dist/types/string-literals/RetainAfter.d.ts.map +1 -1
- package/dist/types/string-literals/Split.d.ts +10 -7
- package/dist/types/string-literals/Split.d.ts.map +1 -1
- package/dist/types/string-literals/StrLen.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 +18 -0
- package/dist/types/string-literals/StripBefore.d.ts.map +1 -0
- package/dist/types/string-literals/StripBefore.js +1 -0
- package/dist/types/string-literals/StripLeading.d.ts.map +1 -1
- package/dist/types/string-literals/StripTrailing.d.ts.map +1 -1
- package/dist/types/string-literals/Suggest.d.ts.map +1 -1
- package/dist/types/string-literals/Time.d.ts.map +1 -1
- package/dist/types/string-literals/Truncate.d.ts.map +1 -1
- package/dist/types/string-literals/casing/AllCaps.d.ts +3 -3
- package/dist/types/string-literals/casing/AllCaps.d.ts.map +1 -1
- package/dist/types/string-literals/casing/CamelCase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/CapFirstAlpha.d.ts.map +1 -1
- package/dist/types/string-literals/casing/DashUppercase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/KebabCase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/LowerAllCaps.d.ts.map +1 -1
- package/dist/types/string-literals/casing/PascalCase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/RaiseAllLowercase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/SnakeCase.d.ts.map +1 -1
- package/dist/types/string-literals/casing/index.js +12 -12
- package/dist/types/string-literals/character-sets/Alpha.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/AlphaChar.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/AlphaNumeric.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/CSV.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Consonants.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/DomainName.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/DotPath.d.ts +1 -1
- package/dist/types/string-literals/character-sets/DotPath.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/DotPathFor.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Hexadecimal.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/IpAddress.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/LowerAlpha.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/NonAlpha.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/NumericChar.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/SingularNoun.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/ValueAtDotPath.d.ts +1 -1
- package/dist/types/string-literals/character-sets/ValueAtDotPath.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/brackets/index.js +3 -3
- package/dist/types/string-literals/character-sets/index.js +26 -26
- package/dist/types/string-literals/character-sets/quotation-marks/index.js +6 -6
- package/dist/types/string-literals/index.d.ts +1 -2
- package/dist/types/string-literals/index.d.ts.map +1 -1
- package/dist/types/string-literals/index.js +36 -37
- package/dist/types/string-literals/options/index.js +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/tuples/FirstKey.d.ts.map +1 -1
- package/dist/types/tuples/FirstKeyValue.d.ts +1 -1
- package/dist/types/tuples/FirstKeyValue.d.ts.map +1 -1
- package/dist/types/tuples/FromDictArray.d.ts.map +1 -1
- package/dist/types/tuples/LastOfEach.d.ts +14 -0
- package/dist/types/tuples/LastOfEach.d.ts.map +1 -0
- package/dist/types/tuples/LastOfEach.js +1 -0
- package/dist/types/tuples/index.js +7 -7
- package/dist/types/type-conversion/ArrConcat.d.ts.map +1 -1
- package/dist/types/type-conversion/AsBoolean.d.ts +7 -0
- package/dist/types/type-conversion/AsBoolean.d.ts.map +1 -0
- package/dist/types/type-conversion/AsBoolean.js +1 -0
- package/dist/types/type-conversion/AsFunction.d.ts.map +1 -1
- package/dist/types/type-conversion/AsNumber.d.ts +10 -3
- package/dist/types/type-conversion/AsNumber.d.ts.map +1 -1
- package/dist/types/type-conversion/AsPropertyKey.d.ts +13 -0
- package/dist/types/type-conversion/AsPropertyKey.d.ts.map +1 -0
- package/dist/types/type-conversion/AsPropertyKey.js +1 -0
- package/dist/types/type-conversion/AsString.d.ts +5 -1
- package/dist/types/type-conversion/AsString.d.ts.map +1 -1
- package/dist/types/type-conversion/IntersectWithAll.d.ts.map +1 -1
- package/dist/types/type-conversion/MergeObjects.d.ts +3 -6
- package/dist/types/type-conversion/MergeObjects.d.ts.map +1 -1
- package/dist/types/type-conversion/ObjValues.d.ts +10 -9
- package/dist/types/type-conversion/ObjValues.d.ts.map +1 -1
- package/dist/types/type-conversion/ObjectToKvDict.d.ts +7 -10
- package/dist/types/type-conversion/ObjectToKvDict.d.ts.map +1 -1
- package/dist/types/type-conversion/ReplaceAll.d.ts +1 -1
- package/dist/types/type-conversion/ReplaceAll.d.ts.map +1 -1
- package/dist/types/type-conversion/ReturnValues.d.ts.map +1 -1
- package/dist/types/type-conversion/ToBoolean.d.ts.map +1 -1
- package/dist/types/type-conversion/ToContainer.d.ts.map +1 -1
- package/dist/types/type-conversion/ToNumber.d.ts.map +1 -1
- package/dist/types/type-conversion/ToString.d.ts.map +1 -1
- package/dist/types/type-conversion/Trim.d.ts.map +1 -1
- package/dist/types/type-conversion/TrimLeft.d.ts.map +1 -1
- package/dist/types/type-conversion/TrimRight.d.ts.map +1 -1
- package/dist/types/type-conversion/TupleToUnion.d.ts.map +1 -1
- package/dist/types/type-conversion/UnionToTuple.d.ts +10 -6
- package/dist/types/type-conversion/UnionToTuple.d.ts.map +1 -1
- package/dist/types/type-conversion/UnionToTuple.js +0 -1
- package/dist/types/type-conversion/ValueOrReturnValue.d.ts.map +1 -1
- package/dist/types/type-conversion/Widen.d.ts.map +1 -1
- package/dist/types/type-conversion/WidenProps.d.ts.map +1 -1
- package/dist/types/type-conversion/WithDefault.d.ts.map +1 -1
- package/dist/types/type-conversion/form-fields.d.ts.map +1 -1
- package/dist/types/type-conversion/index.d.ts +2 -0
- package/dist/types/type-conversion/index.d.ts.map +1 -1
- package/dist/types/type-conversion/index.js +40 -38
- package/package.json +6 -5
- package/dist/runtime/dictionary/strArrayToDict.d.ts +0 -7
- package/dist/runtime/dictionary/strArrayToDict.d.ts.map +0 -1
- package/dist/runtime/dictionary/strArrayToDict.js +0 -10
- package/dist/runtime/dictionary/withValue.d.ts +0 -26
- package/dist/runtime/dictionary/withValue.d.ts.map +0 -1
- package/dist/runtime/dictionary/withValue.js +0 -21
- package/dist/runtime/runtime-types/extractTypeToken.d.ts +0 -2
- package/dist/runtime/runtime-types/extractTypeToken.d.ts.map +0 -1
- package/dist/runtime/runtime-types/extractTypeToken.js +0 -11
- package/dist/runtime/type-guards/isSameType.d.ts +0 -10
- package/dist/runtime/type-guards/isSameType.d.ts.map +0 -1
- package/dist/runtime/type-guards/isSameType.js +0 -64
- package/dist/types/boolean-logic/combinators/FirstIdx.d.ts +0 -11
- package/dist/types/boolean-logic/combinators/FirstIdx.d.ts.map +0 -1
- package/dist/types/boolean-logic/narrowing/AsPropertyKey.d.ts +0 -21
- package/dist/types/boolean-logic/narrowing/AsPropertyKey.d.ts.map +0 -1
- package/dist/types/string-literals/CaseInsensitive.d.ts +0 -30
- package/dist/types/string-literals/CaseInsensitive.d.ts.map +0 -1
- package/dist/types/string-literals/Interpolate.d.ts +0 -15
- package/dist/types/string-literals/Interpolate.d.ts.map +0 -1
- /package/dist/types/boolean-logic/{combinators/FirstIdx.js → branching/IfLessThan.js} +0 -0
- /package/dist/types/boolean-logic/{narrowing/AsPropertyKey.js → branching/IfNegativeNumber.js} +0 -0
- /package/dist/types/{string-literals/CaseInsensitive.js → boolean-logic/branching/IfNotTuple.js} +0 -0
- /package/dist/types/{string-literals/Interpolate.js → boolean-logic/branching/IfPositive.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export * from "./ifArray";
|
|
2
|
-
export * from "./ifBoolean";
|
|
3
|
-
export * from "./ifNumber";
|
|
4
|
-
export * from "./ifString";
|
|
5
|
-
export * from "./ifNotNull";
|
|
6
|
-
export * from "./ifSameType";
|
|
7
|
-
export * from "./ifFunction";
|
|
8
|
-
export * from "./ifContainer";
|
|
9
|
-
export * from "./ifHasKey";
|
|
10
|
-
export * from "./ifLength";
|
|
11
|
-
export * from "./ifScalar";
|
|
12
|
-
export * from "./ifNull";
|
|
13
|
-
export * from "./ifObject";
|
|
14
|
-
export * from "./ifTrue";
|
|
15
|
-
export * from "./ifFalse";
|
|
16
|
-
export * from "./ifChar";
|
|
17
|
-
export * from "./ifRef";
|
|
1
|
+
export * from "./ifArray.js";
|
|
2
|
+
export * from "./ifBoolean.js";
|
|
3
|
+
export * from "./ifNumber.js";
|
|
4
|
+
export * from "./ifString.js";
|
|
5
|
+
export * from "./ifNotNull.js";
|
|
6
|
+
export * from "./ifSameType.js";
|
|
7
|
+
export * from "./ifFunction.js";
|
|
8
|
+
export * from "./ifContainer.js";
|
|
9
|
+
export * from "./ifHasKey.js";
|
|
10
|
+
export * from "./ifLength.js";
|
|
11
|
+
export * from "./ifScalar.js";
|
|
12
|
+
export * from "./ifNull.js";
|
|
13
|
+
export * from "./ifObject.js";
|
|
14
|
+
export * from "./ifTrue.js";
|
|
15
|
+
export * from "./ifFalse.js";
|
|
16
|
+
export * from "./ifChar.js";
|
|
17
|
+
export * from "./ifRef.js";
|
|
18
18
|
// export * from "./ifStartsWith";
|
|
19
|
-
export * from "./ifUndefined";
|
|
20
|
-
export * from "./ifArrayPartial";
|
|
19
|
+
export * from "./ifUndefined.js";
|
|
20
|
+
export * from "./ifArrayPartial.js";
|
|
21
21
|
// export * from "./ifTypeOf";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./and";
|
|
2
|
-
export * from "./or";
|
|
3
|
-
export * from "./filter";
|
|
1
|
+
export * from "./and.js";
|
|
2
|
+
export * from "./or.js";
|
|
3
|
+
export * from "./filter.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,GAAG,EACH,OAAO,EAIR,oBAAkB;AACnB,OAAO,EAEL,cAAc,EACd,UAAU,EAEX,wBAAsB;
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,GAAG,EACH,OAAO,EAIR,oBAAkB;AACnB,OAAO,EAEL,cAAc,EACd,UAAU,EAEX,wBAAsB;AAuFvB,MAAM,WAAW,UAAU,CACzB,OAAO,SAAS,UAAU,EAC1B,QAAQ,SAAS,UAAU;IAE3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,QAAQ,CAAC;CACjC;AAGD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CACjB,MAAM,SAAS,UAAU,GAAG,SAAS,OAAO,EAAE,EAC9C,QAAQ,SAAS,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC5C,OAAO,SAAS,UAAU,GAAG,cAAc,EAC3C,QAAQ,SAAS,UAAU,GAAG,UAAU,EAEtC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,QAAQ,GAAG,IAAI,EACxB,OAAO,GAAE,UAAU,CAAC,OAAO,EAAE,QAAQ,CAGH,yBAcrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NO_DEFAULT_VALUE, NOT_DEFINED } from "../../constants";
|
|
2
|
-
import { hasDefaultValue, isTruthy, isRef, hasIndexOf, isSpecificConstant, createErrorCondition,
|
|
1
|
+
import { NO_DEFAULT_VALUE, NOT_DEFINED } from "../../constants/index.js";
|
|
2
|
+
import { hasDefaultValue, isTruthy, isRef, hasIndexOf, isSpecificConstant, createErrorCondition, isContainer, } from "..";
|
|
3
3
|
/** updates based on whether segment is a Ref or not */
|
|
4
4
|
function updatedDotPath(value, dotpath, segment) {
|
|
5
5
|
return isRef(value)
|
|
@@ -12,7 +12,7 @@ function updatedDotPath(value, dotpath, segment) {
|
|
|
12
12
|
function getValue(value, dotPath, defaultValue, handleInvalid, fullDotPath) {
|
|
13
13
|
/** the remaining segments that need processing */
|
|
14
14
|
const pathSegments = isTruthy(dotPath)
|
|
15
|
-
? split(
|
|
15
|
+
? dotPath.split(".")
|
|
16
16
|
: [];
|
|
17
17
|
/** current index property */
|
|
18
18
|
const idx = pathSegments[0];
|
|
@@ -6,9 +6,7 @@ export * from "./mapValues";
|
|
|
6
6
|
export * from "./omit";
|
|
7
7
|
export * from "./retain";
|
|
8
8
|
export * from "./sharedKeys";
|
|
9
|
-
export * from "./strArrayToDict";
|
|
10
9
|
export * from "./withKeys";
|
|
11
10
|
export * from "./withoutKeys";
|
|
12
|
-
export * from "./withValue";
|
|
13
11
|
export * from "./withoutValue";
|
|
14
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/index.ts"],"names":[],"mappings":"AAMA,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AAEzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/index.ts"],"names":[],"mappings":"AAMA,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AAEzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
|
@@ -3,20 +3,18 @@
|
|
|
3
3
|
// index last changed at: 8th Aug, 2022, 09:51 AM ( GMT-7 )
|
|
4
4
|
// hash-code: b0051c37
|
|
5
5
|
// file exports
|
|
6
|
-
export * from "./arrayToKeyLookup";
|
|
7
|
-
export * from "./entries";
|
|
8
|
-
export * from "./get";
|
|
9
|
-
export * from "./keysOf";
|
|
6
|
+
export * from "./arrayToKeyLookup.js";
|
|
7
|
+
export * from "./entries.js";
|
|
8
|
+
export * from "./get.js";
|
|
9
|
+
export * from "./keysOf.js";
|
|
10
10
|
// export * from "./mapTo";
|
|
11
|
-
export * from "./mapValues";
|
|
12
|
-
export * from "./omit";
|
|
13
|
-
export * from "./retain";
|
|
14
|
-
export * from "./sharedKeys";
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./withValue";
|
|
19
|
-
export * from "./withoutValue";
|
|
11
|
+
export * from "./mapValues.js";
|
|
12
|
+
export * from "./omit.js";
|
|
13
|
+
export * from "./retain.js";
|
|
14
|
+
export * from "./sharedKeys.js";
|
|
15
|
+
export * from "./withKeys.js";
|
|
16
|
+
export * from "./withoutKeys.js";
|
|
17
|
+
export * from "./withoutValue.js";
|
|
20
18
|
// #endregion auto-indexed files
|
|
21
19
|
// see https://github.com/inocan-group/do-devops/docs/autoindex.md
|
|
22
20
|
// for more info
|
|
@@ -7,7 +7,7 @@ import type { Narrowable, ObjectKey } from "../../types";
|
|
|
7
7
|
*
|
|
8
8
|
* - note: this function is an alias for `retain()`
|
|
9
9
|
*/
|
|
10
|
-
export declare const withKeys: <TObj extends Record<string | symbol, N>, N extends Narrowable, TKeys extends readonly (ObjectKey & keyof TObj)[]>(dict: TObj, ...keys: TKeys) => ([] extends [...TKeys] ? false : import("../../types").IfUnion<import("../../types").First<[...TKeys]>, true, [] extends import("../../types").AfterFirst<[...TKeys]> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<[...TKeys]>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>> ? false : true
|
|
10
|
+
export declare const withKeys: <TObj extends Record<string | symbol, N>, N extends Narrowable, TKeys extends readonly (ObjectKey & keyof TObj)[]>(dict: TObj, ...keys: TKeys) => ([] extends [...TKeys] ? false : import("../../types").IfUnion<import("../../types").First<[...TKeys]>, true, [] extends import("../../types").AfterFirst<[...TKeys]> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<[...TKeys]>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>>>>, true, any>>>>>>>>>>>) extends true ? import("../../types").ErrorCondition<"invalid-union", "the retain(obj, keys) function was called with keys which included a value which was a union type; this would make the typing inconsistent with the runtime type and should be avoided. Note that at runtime this will not produce an error but rather produce the valid runtime value.", {
|
|
11
11
|
context: {
|
|
12
12
|
keys: [...TKeys];
|
|
13
13
|
};
|
|
@@ -9,7 +9,7 @@ import type { NarrowObject, Narrowable } from "../../types";
|
|
|
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) => ([] extends [...TKeys] ? false : import("../../types").IfUnion<import("../../types").First<[...TKeys]>, true, [] extends import("../../types").AfterFirst<[...TKeys]> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<[...TKeys]>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>> ? false : true
|
|
12
|
+
export declare const withoutKeys: <TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys) => ([] extends [...TKeys] ? false : import("../../types").IfUnion<import("../../types").First<[...TKeys]>, true, [] extends import("../../types").AfterFirst<[...TKeys]> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<[...TKeys]>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>>> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>>>>>>>>>>>, true, any>>>>>>>>>>>) extends true ? import("../../types").ErrorCondition<"invalid-union", "the omit(obj, keys) function was called with keys which included a value which was a union type; this would make the typing inconsistent with the runtime type and should be avoided. Note that at runtime this will not produce an error but rather produce the valid runtime value.", {
|
|
13
13
|
context: {
|
|
14
14
|
keys: [...TKeys];
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./createErrorCondition";
|
|
1
|
+
export * from "./createErrorCondition.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./left";
|
|
2
|
-
export * from "./right";
|
|
1
|
+
export * from "./left.js";
|
|
2
|
+
export * from "./right.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./fnMeta";
|
|
1
|
+
export * from "./fnMeta.js";
|
package/dist/runtime/index.js
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
// hash-code: 9dd9ac96
|
|
5
5
|
// file exports
|
|
6
6
|
// directory exports
|
|
7
|
-
export * from "./boolean-logic/index";
|
|
8
|
-
export * from "./combinators/index";
|
|
9
|
-
export * from "./dictionary/index";
|
|
10
|
-
export * from "./errors/index";
|
|
11
|
-
export * from "./functional/index";
|
|
12
|
-
export * from "./functions/index";
|
|
13
|
-
export * from "./initializers/index";
|
|
14
|
-
export * from "./lists/index";
|
|
15
|
-
export * from "./literals/index";
|
|
16
|
-
export * from "./runtime-types/index";
|
|
17
|
-
export * from "./sets/index";
|
|
18
|
-
export * from "./state/index";
|
|
19
|
-
export * from "./type-conversion/index";
|
|
20
|
-
export * from "./type-guards/index";
|
|
7
|
+
export * from "./boolean-logic/index.js";
|
|
8
|
+
export * from "./combinators/index.js";
|
|
9
|
+
export * from "./dictionary/index.js";
|
|
10
|
+
export * from "./errors/index.js";
|
|
11
|
+
export * from "./functional/index.js";
|
|
12
|
+
export * from "./functions/index.js";
|
|
13
|
+
export * from "./initializers/index.js";
|
|
14
|
+
export * from "./lists/index.js";
|
|
15
|
+
export * from "./literals/index.js";
|
|
16
|
+
export * from "./runtime-types/index.js";
|
|
17
|
+
export * from "./sets/index.js";
|
|
18
|
+
export * from "./state/index.js";
|
|
19
|
+
export * from "./type-conversion/index.js";
|
|
20
|
+
export * from "./type-guards/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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./addFnToProps";
|
|
2
|
-
export * from "./addPropsToFn";
|
|
3
|
-
export * from "./createTypeGuard";
|
|
4
|
-
export * from "./createTypeTuple";
|
|
5
|
-
export * from "./createValidator";
|
|
6
|
-
export * from "./createFnWithProps";
|
|
7
|
-
export * from "./defineObj";
|
|
8
|
-
export * from "./defineTuple";
|
|
1
|
+
export * from "./addFnToProps.js";
|
|
2
|
+
export * from "./addPropsToFn.js";
|
|
3
|
+
export * from "./createTypeGuard.js";
|
|
4
|
+
export * from "./createTypeTuple.js";
|
|
5
|
+
export * from "./createValidator.js";
|
|
6
|
+
export * from "./createFnWithProps.js";
|
|
7
|
+
export * from "./defineObj.js";
|
|
8
|
+
export * from "./defineTuple.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createConverter.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createConverter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,WAAW,EACZ,oBAAkB;AAQnB,KAAK,aAAa,CAChB,OAAO,IACL,OAAO,SAAS,WAAW,GAC3B,UAAU,CAAC,OAAO,CAAC,GACnB,KAAK,CAAC;AAEV,KAAK,gBAAgB,CACnB,QAAQ,SAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"createConverter.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createConverter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,WAAW,EACZ,oBAAkB;AAQnB,KAAK,aAAa,CAChB,OAAO,IACL,OAAO,SAAS,WAAW,GAC3B,UAAU,CAAC,OAAO,CAAC,GACnB,KAAK,CAAC;AAEV,KAAK,gBAAgB,CACnB,QAAQ,SAAS,OAAO,CAEtB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAC5C,EACD,MAAM,SAAS,UAAU,GAAG,KAAK,IAC/B,MAAM,SAAS,MAAM,GACrB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,MAAM,GACnB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,OAAO,GACpB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,MAAM,SAAS,SAAS,GACtB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,KAAK,GAClB,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAChC,MAAM,SAAS,OAAO,GACpB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,KAAK,CAAC;AAEpB;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAC7B,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,KAAK,SAAS,UAAU,GAAG,KAAK,EAChC,IAAI,SAAS,UAAU,GAAG,KAAK,EAC/B,MAAM,SAAS,UAAU,GAAG,KAAK,EACjC,QAAQ,SAAS,UAAU,GAAG,KAAK,EACnC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,CAAC,CAAC,kKAwCrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/find.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,IAAI,EAAG,UAAU,EAAE,KAAK,EAAE,oBAAkB;AAGtD;;;;GAIG;AACH,MAAM,MAAM,MAAM,CAChB,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,IACnC,CAAC,QAAQ,SAAS,UAAU,EAAE,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AAEpF;;;;;GAKG;AACH,eAAO,MAAM,IAAI,wIAkBhB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isContainer } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* **find**(list, [deref]) => (value) => el | undefined
|
|
4
4
|
*
|
|
@@ -6,5 +6,13 @@ import { indexOf } from "..";
|
|
|
6
6
|
* while preserving any available type information.
|
|
7
7
|
*/
|
|
8
8
|
export const find = (list, deref = null) => (value) => {
|
|
9
|
-
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
|
+
return list.find((i) => {
|
|
11
|
+
const comparator = deref
|
|
12
|
+
? isContainer(i)
|
|
13
|
+
? deref in i ? i[deref] : undefined
|
|
14
|
+
: i
|
|
15
|
+
: i;
|
|
16
|
+
return comparator === value;
|
|
17
|
+
});
|
|
10
18
|
};
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
// index last changed at: 8th Aug, 2022, 09:51 AM ( GMT-7 )
|
|
4
4
|
// hash-code: bf4a6791
|
|
5
5
|
// file exports
|
|
6
|
-
export * from "./asArray";
|
|
7
|
-
export * from "./getEach";
|
|
8
|
-
export * from "./indexOf";
|
|
9
|
-
export * from "./intersection";
|
|
10
|
-
export * from "./unique";
|
|
11
|
-
export * from "./logicalReturns";
|
|
12
|
-
export * from "./find";
|
|
13
|
-
export * from "./filter";
|
|
14
|
-
export * from "./createConverter";
|
|
15
|
-
export * from "./slice";
|
|
16
|
-
export * from "./last";
|
|
17
|
-
export * from "./reverse";
|
|
18
|
-
export * from "./pop";
|
|
19
|
-
export * from "./join";
|
|
20
|
-
export * from "./shift";
|
|
6
|
+
export * from "./asArray.js";
|
|
7
|
+
export * from "./getEach.js";
|
|
8
|
+
export * from "./indexOf.js";
|
|
9
|
+
export * from "./intersection.js";
|
|
10
|
+
export * from "./unique.js";
|
|
11
|
+
export * from "./logicalReturns.js";
|
|
12
|
+
export * from "./find.js";
|
|
13
|
+
export * from "./filter.js";
|
|
14
|
+
export * from "./createConverter.js";
|
|
15
|
+
export * from "./slice.js";
|
|
16
|
+
export * from "./last.js";
|
|
17
|
+
export * from "./reverse.js";
|
|
18
|
+
export * from "./pop.js";
|
|
19
|
+
export * from "./join.js";
|
|
20
|
+
export * from "./shift.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/indexOf.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,UAAU,EACV,KAAK,EACN,oBAAkB;AAInB;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CACvB,UAAU,SAAS,UAAU,GAAG,KAAK,EACrC,IAAI,SAAS,WAAW,GAAG,IAAI,EAC7B,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"indexOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/indexOf.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,UAAU,EACV,KAAK,EACN,oBAAkB;AAInB;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CACvB,UAAU,SAAS,UAAU,GAAG,KAAK,EACrC,IAAI,SAAS,WAAW,GAAG,IAAI,EAC7B,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,6BA4B7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isArray, isNull, isNumber, isObject } from "..";
|
|
2
|
-
import { Never } from "../../constants";
|
|
2
|
+
import { Never } from "../../constants/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* **indexOf**(val, index)
|
|
5
5
|
*
|
|
@@ -12,9 +12,6 @@ import { Never } from "../../constants";
|
|
|
12
12
|
* off the back of the array.
|
|
13
13
|
*/
|
|
14
14
|
export function indexOf(val, index) {
|
|
15
|
-
if (index === null) {
|
|
16
|
-
return val;
|
|
17
|
-
}
|
|
18
15
|
const isNegative = isNumber(index) && index < 0;
|
|
19
16
|
if (isNegative && !Array.isArray(val)) {
|
|
20
17
|
throw new Error(`The indexOf(val,idx) utility received a negative index value [${index}] but the value being de-references is not an array [${typeof val}]!`);
|
|
@@ -26,11 +23,13 @@ export function indexOf(val, index) {
|
|
|
26
23
|
const idx = isNegative && Array.isArray(val)
|
|
27
24
|
? val.length + 1 - Math.abs(index)
|
|
28
25
|
: index;
|
|
29
|
-
return (
|
|
26
|
+
return (index === null
|
|
30
27
|
? val
|
|
31
|
-
:
|
|
32
|
-
?
|
|
33
|
-
:
|
|
34
|
-
?
|
|
35
|
-
:
|
|
28
|
+
: isNull(idx)
|
|
29
|
+
? val
|
|
30
|
+
: isArray(val)
|
|
31
|
+
? Number(idx) in val ? val[Number(idx)] : Never
|
|
32
|
+
: isObject(val)
|
|
33
|
+
? String(idx) in val ? val[String(idx)] : Never
|
|
34
|
+
: Never);
|
|
36
35
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { First, Narrowable, UnionToTuple, Unique } from "../../types";
|
|
2
2
|
/**
|
|
3
3
|
* **unique**
|
|
4
4
|
*
|
|
5
5
|
* Runtime utility which removes intersecting values from two sets and
|
|
6
6
|
* provides a unique values contained in each set.
|
|
7
7
|
*/
|
|
8
|
-
export declare
|
|
8
|
+
export declare const unique: <N extends Narrowable, K extends number, T extends readonly (Narrowable | Record<K, N>)[]>(...values: T) => First<T> extends readonly (Narrowable | Record<K, N>)[] ? Unique<UnionToTuple<First<T>>> : Unique<T>;
|
|
9
9
|
//# sourceMappingURL=unique.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/unique.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/unique.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,KAAK,EAAG,UAAU,EAAG,YAAY,EAAE,MAAM,EAAE,oBAAkB;AAGvE;;;;;GAKG;AACH,eAAO,MAAM,MAAM,kNAgBlB,CAAA"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { isString, indexOf } from "..";
|
|
2
1
|
/**
|
|
3
2
|
* **unique**
|
|
4
3
|
*
|
|
5
4
|
* Runtime utility which removes intersecting values from two sets and
|
|
6
5
|
* provides a unique values contained in each set.
|
|
7
6
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const forA = a.filter(i => !bValues.includes(indexOf(i, offset)));
|
|
19
|
-
const forB = b.filter(i => !aValues.includes(indexOf(i, offset)));
|
|
20
|
-
return [forA, forB];
|
|
21
|
-
}
|
|
7
|
+
export const unique = (...values) => {
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
+
const u = [];
|
|
10
|
+
for (const i of values.flat()) {
|
|
11
|
+
if (!u.includes(i)) {
|
|
12
|
+
u.push(i);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return u;
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/index.ts"],"names":[],"mappings":"AAMA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/index.ts"],"names":[],"mappings":"AAMA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
@@ -3,36 +3,37 @@
|
|
|
3
3
|
// index last changed at: 8th Aug, 2022, 09:51 AM ( GMT-7 )
|
|
4
4
|
// hash-code: 7a22bbbc
|
|
5
5
|
// file exports
|
|
6
|
-
export * from "./box";
|
|
7
|
-
export * from "./identity";
|
|
8
|
-
export * from "./literal";
|
|
9
|
-
export * from "./stripTrailing";
|
|
10
|
-
export * from "./stripLeading";
|
|
11
|
-
export * from "./ensureTrailing";
|
|
12
|
-
export * from "./ensureLeading";
|
|
13
|
-
export * from "./ifUppercase";
|
|
14
|
-
export * from "./pathJoin";
|
|
15
|
-
export * from "./narrow";
|
|
16
|
-
export * from "./split";
|
|
17
|
-
export * from "./tuple";
|
|
18
|
-
export * from "./capitalize";
|
|
19
|
-
export * from "./uncapitalize";
|
|
20
|
-
export * from "./uppercase";
|
|
21
|
-
export * from "./lowercase";
|
|
22
|
-
export * from "./widen";
|
|
23
|
-
export * from "./toCamelCase";
|
|
24
|
-
export * from "./toKebabCase";
|
|
25
|
-
export * from "./ifLowercase";
|
|
26
|
-
export * from "./toSnakeCase";
|
|
27
|
-
export * from "./toString";
|
|
28
|
-
export * from "./pluralize";
|
|
29
|
-
export * from "./retainAfter";
|
|
30
|
-
export * from "./surround";
|
|
31
|
-
export * from "./stripAfter";
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./
|
|
34
|
-
export * from "./
|
|
35
|
-
export * from "./
|
|
6
|
+
export * from "./box.js";
|
|
7
|
+
export * from "./identity.js";
|
|
8
|
+
export * from "./literal.js";
|
|
9
|
+
export * from "./stripTrailing.js";
|
|
10
|
+
export * from "./stripLeading.js";
|
|
11
|
+
export * from "./ensureTrailing.js";
|
|
12
|
+
export * from "./ensureLeading.js";
|
|
13
|
+
export * from "./ifUppercase.js";
|
|
14
|
+
export * from "./pathJoin.js";
|
|
15
|
+
export * from "./narrow.js";
|
|
16
|
+
export * from "./split.js";
|
|
17
|
+
export * from "./tuple.js";
|
|
18
|
+
export * from "./capitalize.js";
|
|
19
|
+
export * from "./uncapitalize.js";
|
|
20
|
+
export * from "./uppercase.js";
|
|
21
|
+
export * from "./lowercase.js";
|
|
22
|
+
export * from "./widen.js";
|
|
23
|
+
export * from "./toCamelCase.js";
|
|
24
|
+
export * from "./toKebabCase.js";
|
|
25
|
+
export * from "./ifLowercase.js";
|
|
26
|
+
export * from "./toSnakeCase.js";
|
|
27
|
+
export * from "./toString.js";
|
|
28
|
+
export * from "./pluralize.js";
|
|
29
|
+
export * from "./retainAfter.js";
|
|
30
|
+
export * from "./surround.js";
|
|
31
|
+
export * from "./stripAfter.js";
|
|
32
|
+
export * from "./stripBefore.js";
|
|
33
|
+
export * from "./trim.js";
|
|
34
|
+
export * from "./toPascalCase.js";
|
|
35
|
+
export * from "./toUppercase.js";
|
|
36
|
+
export * from "./toNumericArray.js";
|
|
36
37
|
// #endregion auto-indexed files
|
|
37
38
|
// see https://github.com/inocan-group/do-devops/docs/autoindex.md
|
|
38
39
|
// for more info
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluralize.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/pluralize.ts"],"names":[],"mappings":"AAQA,OAAO,EAAY,SAAS,EAAgB,oBAAkB;
|
|
1
|
+
{"version":3,"file":"pluralize.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/pluralize.ts"],"names":[],"mappings":"AAQA,OAAO,EAAY,SAAS,EAAgB,oBAAkB;AA0C9D;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,6CAUrB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { ALPHA_CHARS, CONSONANTS, PLURAL_EXCEPTIONS, SINGULAR_NOUN_ENDINGS } from "../../constants";
|
|
2
|
+
import { ALPHA_CHARS, CONSONANTS, PLURAL_EXCEPTIONS, SINGULAR_NOUN_ENDINGS } from "../../constants/index.js";
|
|
3
3
|
import { split, stripTrailing } from "..";
|
|
4
4
|
const isException = (word) => Object.keys(PLURAL_EXCEPTIONS).includes(word);
|
|
5
5
|
const END_IN = [
|
|
@@ -14,7 +14,7 @@ const endingIn = (word, postfix) => {
|
|
|
14
14
|
return word.endsWith(postfix) ? `${word}es` : undefined;
|
|
15
15
|
case "singular-noun":
|
|
16
16
|
return SINGULAR_NOUN_ENDINGS.some(i => word.endsWith(i))
|
|
17
|
-
? split(word).every((i) => ALPHA_CHARS.includes(i))
|
|
17
|
+
? split(word).every((i) => [...ALPHA_CHARS].includes(i))
|
|
18
18
|
? `${word}es`
|
|
19
19
|
: undefined
|
|
20
20
|
: undefined;
|
|
@@ -9,5 +9,5 @@ import { Split } from "../../types";
|
|
|
9
9
|
*
|
|
10
10
|
* All are other types are disallowed.
|
|
11
11
|
*/
|
|
12
|
-
export declare function split<T extends string
|
|
12
|
+
export declare function split<T extends string, S extends string>(str: T, sep?: S): Split<T, S>;
|
|
13
13
|
//# sourceMappingURL=split.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/split.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,KAAK,EAAE,oBAAkB;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CACnB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,EAChB,GAAG,EAAE,CAAC,EAAE,GAAG,GAAE,CAAW,eAEzB"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { errorCondition } from "../../types";
|
|
2
|
-
import { isNumber, isString } from "..";
|
|
3
1
|
/**
|
|
4
2
|
* **split**(str, sep)
|
|
5
3
|
*
|
|
@@ -11,9 +9,5 @@ import { isNumber, isString } from "..";
|
|
|
11
9
|
* All are other types are disallowed.
|
|
12
10
|
*/
|
|
13
11
|
export function split(str, sep = "") {
|
|
14
|
-
return
|
|
15
|
-
? str.split(sep)
|
|
16
|
-
: isNumber(str)
|
|
17
|
-
? String(str).split(sep)
|
|
18
|
-
: errorCondition("invalid-type", `split() function allows string, numbers, and the null value but found a type of ${typeof str}.`);
|
|
12
|
+
return str.split(sep);
|
|
19
13
|
}
|