inferred-types 0.40.7 → 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/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/dictionary/get.d.ts.map +1 -1
- package/dist/runtime/dictionary/get.js +2 -2
- 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 +0 -2
- package/dist/runtime/dictionary/withKeys.d.ts +1 -1
- package/dist/runtime/dictionary/withoutKeys.d.ts +1 -1
- package/dist/runtime/lists/createConverter.d.ts.map +1 -1
- package/dist/runtime/lists/find.d.ts.map +1 -1
- package/dist/runtime/lists/find.js +10 -2
- package/dist/runtime/lists/indexOf.d.ts.map +1 -1
- package/dist/runtime/lists/indexOf.js +8 -9
- 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/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/pluralize.d.ts.map +1 -1
- package/dist/runtime/literals/pluralize.js +1 -1
- 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/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 +0 -2
- package/dist/runtime/runtime-types/kind.d.ts +1 -1
- package/dist/runtime/runtime-types/typeTuples.d.ts +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +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 +0 -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/isNumericString.d.ts.map +1 -1
- package/dist/runtime/type-guards/isNumericString.js +1 -0
- package/dist/runtime/type-guards/isRef.d.ts +1 -1
- package/dist/runtime/type-guards/isRef.d.ts.map +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/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 +3 -0
- 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/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 +0 -1
- 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 +1 -0
- package/dist/types/containers/WithKey.d.ts +16 -6
- package/dist/types/containers/WithKey.d.ts.map +1 -1
- 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 +1 -0
- package/dist/types/errors/ErrorConditionHandler.d.ts.map +1 -1
- package/dist/types/errors/ReportError.d.ts.map +1 -1
- package/dist/types/functional/Left.d.ts.map +1 -1
- package/dist/types/functional/Right.d.ts.map +1 -1
- 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 +1 -1
- package/dist/types/kv/KeyValue.d.ts.map +1 -1
- 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/RemoveFromList.d.ts.map +1 -1
- package/dist/types/lists/extractors/RetainFromList.d.ts.map +1 -1
- 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 +1 -0
- 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/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 +15 -11
- 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/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/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/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/index.d.ts +1 -2
- package/dist/types/string-literals/index.d.ts.map +1 -1
- package/dist/types/string-literals/index.js +1 -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/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 +2 -0
- package/package.json +5 -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 +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
1
|
import { NO_DEFAULT_VALUE, NOT_DEFINED } from "../../constants/index.js";
|
|
2
|
-
import { hasDefaultValue, isTruthy, isRef, hasIndexOf, isSpecificConstant, createErrorCondition,
|
|
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"}
|
|
@@ -12,10 +12,8 @@ export * from "./mapValues.js";
|
|
|
12
12
|
export * from "./omit.js";
|
|
13
13
|
export * from "./retain.js";
|
|
14
14
|
export * from "./sharedKeys.js";
|
|
15
|
-
export * from "./strArrayToDict.js";
|
|
16
15
|
export * from "./withKeys.js";
|
|
17
16
|
export * from "./withoutKeys.js";
|
|
18
|
-
export * from "./withValue.js";
|
|
19
17
|
export * from "./withoutValue.js";
|
|
20
18
|
// #endregion auto-indexed files
|
|
21
19
|
// see https://github.com/inocan-group/do-devops/docs/autoindex.md
|
|
@@ -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
|
-
{"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
|
};
|
|
@@ -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"}
|
|
@@ -12,9 +12,6 @@ import { Never } from "../../constants/index.js";
|
|
|
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"}
|
|
@@ -29,6 +29,7 @@ export * from "./pluralize.js";
|
|
|
29
29
|
export * from "./retainAfter.js";
|
|
30
30
|
export * from "./surround.js";
|
|
31
31
|
export * from "./stripAfter.js";
|
|
32
|
+
export * from "./stripBefore.js";
|
|
32
33
|
export * from "./trim.js";
|
|
33
34
|
export * from "./toPascalCase.js";
|
|
34
35
|
export * from "./toUppercase.js";
|
|
@@ -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"}
|
|
@@ -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/index.js";
|
|
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
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StripBefore } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* **stripBefore**(content, find)
|
|
4
|
+
*
|
|
5
|
+
* Runtime utility which strips out all characters Before (and including)
|
|
6
|
+
* the "find" string while returning a strong type.
|
|
7
|
+
*
|
|
8
|
+
* ### Example
|
|
9
|
+
* ```ts
|
|
10
|
+
* // "hello"
|
|
11
|
+
* const hello = stripBefore("hello world", " ");
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare function stripBefore<TContent extends string, TBreak extends string>(content: TContent, find: TBreak): StripBefore<TContent, TBreak>;
|
|
15
|
+
//# sourceMappingURL=stripBefore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripBefore.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/stripBefore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAkB;AAExC;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,QAAQ,SAAS,MAAM,EACvB,MAAM,SAAS,MAAM,EACrB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,iCAKhC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **stripBefore**(content, find)
|
|
3
|
+
*
|
|
4
|
+
* Runtime utility which strips out all characters Before (and including)
|
|
5
|
+
* the "find" string while returning a strong type.
|
|
6
|
+
*
|
|
7
|
+
* ### Example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // "hello"
|
|
10
|
+
* const hello = stripBefore("hello world", " ");
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export function stripBefore(content, find) {
|
|
14
|
+
return content
|
|
15
|
+
.split(find)
|
|
16
|
+
.slice(1)
|
|
17
|
+
.join(find);
|
|
18
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isArray, isBoolean, isFunction, isNull, isNumber, isObject, isString, isSymbol, isTypeToken, isUndefined } from "
|
|
1
|
+
import { isArray, isBoolean, isFunction, isNull, isNumber, isObject, isString, isSymbol, isTypeToken, isUndefined } from "..";
|
|
2
2
|
const tokenDesc = (token) => {
|
|
3
3
|
// TODO: implement
|
|
4
4
|
return token;
|
|
@@ -2,8 +2,6 @@ export * from "./createType";
|
|
|
2
2
|
export * from "./determineIdentity";
|
|
3
3
|
export * from "./determineType";
|
|
4
4
|
export * from "./describeType";
|
|
5
|
-
export * from "./extractTypeToken";
|
|
6
5
|
export * from "./kind";
|
|
7
|
-
export * from "./extractTypeToken";
|
|
8
6
|
export * from "./valueTypes";
|
|
9
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AAEvB,cAAc,cAAc,CAAC"}
|
|
@@ -2,8 +2,6 @@ export * from "./createType.js";
|
|
|
2
2
|
export * from "./determineIdentity.js";
|
|
3
3
|
export * from "./determineType.js";
|
|
4
4
|
export * from "./describeType.js";
|
|
5
|
-
export * from "./extractTypeToken.js";
|
|
6
5
|
export * from "./kind.js";
|
|
7
|
-
export * from "./extractTypeToken.js";
|
|
8
6
|
// export * from "./typeTuples";
|
|
9
7
|
export * from "./valueTypes.js";
|