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.
Files changed (513) hide show
  1. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  2. package/dist/runtime/dictionary/get.d.ts.map +1 -1
  3. package/dist/runtime/dictionary/get.js +2 -2
  4. package/dist/runtime/dictionary/index.d.ts +0 -2
  5. package/dist/runtime/dictionary/index.d.ts.map +1 -1
  6. package/dist/runtime/dictionary/index.js +0 -2
  7. package/dist/runtime/dictionary/withKeys.d.ts +1 -1
  8. package/dist/runtime/dictionary/withoutKeys.d.ts +1 -1
  9. package/dist/runtime/lists/createConverter.d.ts.map +1 -1
  10. package/dist/runtime/lists/find.d.ts.map +1 -1
  11. package/dist/runtime/lists/find.js +10 -2
  12. package/dist/runtime/lists/indexOf.d.ts.map +1 -1
  13. package/dist/runtime/lists/indexOf.js +8 -9
  14. package/dist/runtime/lists/unique.d.ts +2 -2
  15. package/dist/runtime/lists/unique.d.ts.map +1 -1
  16. package/dist/runtime/lists/unique.js +10 -15
  17. package/dist/runtime/literals/index.d.ts +1 -0
  18. package/dist/runtime/literals/index.d.ts.map +1 -1
  19. package/dist/runtime/literals/index.js +1 -0
  20. package/dist/runtime/literals/pluralize.d.ts.map +1 -1
  21. package/dist/runtime/literals/pluralize.js +1 -1
  22. package/dist/runtime/literals/split.d.ts +1 -1
  23. package/dist/runtime/literals/split.d.ts.map +1 -1
  24. package/dist/runtime/literals/split.js +1 -7
  25. package/dist/runtime/literals/stripBefore.d.ts +15 -0
  26. package/dist/runtime/literals/stripBefore.d.ts.map +1 -0
  27. package/dist/runtime/literals/stripBefore.js +18 -0
  28. package/dist/runtime/runtime-types/describeType.js +1 -1
  29. package/dist/runtime/runtime-types/index.d.ts +0 -2
  30. package/dist/runtime/runtime-types/index.d.ts.map +1 -1
  31. package/dist/runtime/runtime-types/index.js +0 -2
  32. package/dist/runtime/runtime-types/kind.d.ts +1 -1
  33. package/dist/runtime/runtime-types/typeTuples.d.ts +1 -1
  34. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  35. package/dist/runtime/type-guards/index.d.ts +0 -1
  36. package/dist/runtime/type-guards/index.d.ts.map +1 -1
  37. package/dist/runtime/type-guards/index.js +0 -1
  38. package/dist/runtime/type-guards/isArray.d.ts +1 -1
  39. package/dist/runtime/type-guards/isArray.d.ts.map +1 -1
  40. package/dist/runtime/type-guards/isNumericString.d.ts.map +1 -1
  41. package/dist/runtime/type-guards/isNumericString.js +1 -0
  42. package/dist/runtime/type-guards/isRef.d.ts +1 -1
  43. package/dist/runtime/type-guards/isRef.d.ts.map +1 -1
  44. package/dist/types/base-types/AnyFunction.d.ts.map +1 -1
  45. package/dist/types/base-types/Container.d.ts.map +1 -1
  46. package/dist/types/base-types/CouldHaveValue.d.ts.map +1 -1
  47. package/dist/types/base-types/Digital.d.ts.map +1 -1
  48. package/dist/types/base-types/Indexable.d.ts.map +1 -1
  49. package/dist/types/base-types/IndexableObject.d.ts.map +1 -1
  50. package/dist/types/base-types/IndexedObject.d.ts.map +1 -1
  51. package/dist/types/base-types/NarrowObject.d.ts.map +1 -1
  52. package/dist/types/base-types/Tuple.d.ts.map +1 -1
  53. package/dist/types/base-types/fns/NarrowingFn.d.ts +1 -1
  54. package/dist/types/base-types/fns/NarrowingFn.d.ts.map +1 -1
  55. package/dist/types/boolean-logic/branching/IfAllExtend.d.ts.map +1 -1
  56. package/dist/types/boolean-logic/branching/IfAllLiteral.d.ts +1 -2
  57. package/dist/types/boolean-logic/branching/IfAllLiteral.d.ts.map +1 -1
  58. package/dist/types/boolean-logic/branching/IfAnd.d.ts +5 -2
  59. package/dist/types/boolean-logic/branching/IfAnd.d.ts.map +1 -1
  60. package/dist/types/boolean-logic/branching/IfArray.d.ts.map +1 -1
  61. package/dist/types/boolean-logic/branching/IfBoolean.d.ts.map +1 -1
  62. package/dist/types/boolean-logic/branching/IfBooleanLiteral.d.ts.map +1 -1
  63. package/dist/types/boolean-logic/branching/IfChar.d.ts.map +1 -1
  64. package/dist/types/boolean-logic/branching/IfContainer.d.ts.map +1 -1
  65. package/dist/types/boolean-logic/branching/IfContains.d.ts.map +1 -1
  66. package/dist/types/boolean-logic/branching/IfDotPath.d.ts.map +1 -1
  67. package/dist/types/boolean-logic/branching/IfEmptyObject.d.ts.map +1 -1
  68. package/dist/types/boolean-logic/branching/IfEqual.d.ts.map +1 -1
  69. package/dist/types/boolean-logic/branching/IfErrorCondition.d.ts.map +1 -1
  70. package/dist/types/boolean-logic/branching/IfExtends.d.ts.map +1 -1
  71. package/dist/types/boolean-logic/branching/IfExtendsAll.d.ts.map +1 -1
  72. package/dist/types/boolean-logic/branching/IfExtendsSome.d.ts.map +1 -1
  73. package/dist/types/boolean-logic/branching/IfFalse.d.ts.map +1 -1
  74. package/dist/types/boolean-logic/branching/IfFalsy.d.ts.map +1 -1
  75. package/dist/types/boolean-logic/branching/IfFnWithParams.d.ts.map +1 -1
  76. package/dist/types/boolean-logic/branching/IfFnWithoutParams.d.ts.map +1 -1
  77. package/dist/types/boolean-logic/branching/IfFunction.d.ts.map +1 -1
  78. package/dist/types/boolean-logic/branching/IfGreaterThan.d.ts.map +1 -1
  79. package/dist/types/boolean-logic/branching/IfHasCharacters.d.ts.map +1 -1
  80. package/dist/types/boolean-logic/branching/IfLength.d.ts.map +1 -1
  81. package/dist/types/boolean-logic/branching/IfLessThan.d.ts +10 -0
  82. package/dist/types/boolean-logic/branching/IfLessThan.d.ts.map +1 -0
  83. package/dist/types/boolean-logic/branching/IfLiteral.d.ts.map +1 -1
  84. package/dist/types/boolean-logic/branching/IfMaybeFalse.d.ts.map +1 -1
  85. package/dist/types/boolean-logic/branching/IfMaybeTrue.d.ts.map +1 -1
  86. package/dist/types/boolean-logic/branching/IfNarrowlyContains.d.ts.map +1 -1
  87. package/dist/types/boolean-logic/branching/IfNegativeNumber.d.ts +10 -0
  88. package/dist/types/boolean-logic/branching/IfNegativeNumber.d.ts.map +1 -0
  89. package/dist/types/boolean-logic/branching/IfNever.d.ts +1 -1
  90. package/dist/types/boolean-logic/branching/IfNever.d.ts.map +1 -1
  91. package/dist/types/boolean-logic/branching/IfNotEqual.d.ts.map +1 -1
  92. package/dist/types/boolean-logic/branching/IfNotLiteral.d.ts.map +1 -1
  93. package/dist/types/boolean-logic/branching/IfNotNever.d.ts.map +1 -1
  94. package/dist/types/boolean-logic/branching/IfNotTuple.d.ts +8 -0
  95. package/dist/types/boolean-logic/branching/IfNotTuple.d.ts.map +1 -0
  96. package/dist/types/boolean-logic/branching/IfNull.d.ts.map +1 -1
  97. package/dist/types/boolean-logic/branching/IfNumber.d.ts.map +1 -1
  98. package/dist/types/boolean-logic/branching/IfNumericLiteral.d.ts.map +1 -1
  99. package/dist/types/boolean-logic/branching/IfObject.d.ts.map +1 -1
  100. package/dist/types/boolean-logic/branching/IfObjectLiteral.d.ts.map +1 -1
  101. package/dist/types/boolean-logic/branching/IfOptionalScalar.d.ts.map +1 -1
  102. package/dist/types/boolean-logic/branching/IfOr.d.ts.map +1 -1
  103. package/dist/types/boolean-logic/branching/IfPositive.d.ts +10 -0
  104. package/dist/types/boolean-logic/branching/IfPositive.d.ts.map +1 -0
  105. package/dist/types/boolean-logic/branching/IfReadonlyArray.d.ts.map +1 -1
  106. package/dist/types/boolean-logic/branching/IfReadonlyObject.d.ts.map +1 -1
  107. package/dist/types/boolean-logic/branching/IfRef.d.ts.map +1 -1
  108. package/dist/types/boolean-logic/branching/IfReturns.d.ts.map +1 -1
  109. package/dist/types/boolean-logic/branching/IfScalar.d.ts.map +1 -1
  110. package/dist/types/boolean-logic/branching/IfSingularNoun.d.ts.map +1 -1
  111. package/dist/types/boolean-logic/branching/IfSomeEqual.d.ts.map +1 -1
  112. package/dist/types/boolean-logic/branching/IfSomeExtend.d.ts.map +1 -1
  113. package/dist/types/boolean-logic/branching/IfSomeTruthy.d.ts +1 -2
  114. package/dist/types/boolean-logic/branching/IfSomeTruthy.d.ts.map +1 -1
  115. package/dist/types/boolean-logic/branching/IfStartsWith.d.ts.map +1 -1
  116. package/dist/types/boolean-logic/branching/IfString.d.ts.map +1 -1
  117. package/dist/types/boolean-logic/branching/IfStringLiteral.d.ts +13 -2
  118. package/dist/types/boolean-logic/branching/IfStringLiteral.d.ts.map +1 -1
  119. package/dist/types/boolean-logic/branching/IfSymbol.d.ts.map +1 -1
  120. package/dist/types/boolean-logic/branching/IfTrue.d.ts.map +1 -1
  121. package/dist/types/boolean-logic/branching/IfTruthy.d.ts.map +1 -1
  122. package/dist/types/boolean-logic/branching/IfTuple.d.ts.map +1 -1
  123. package/dist/types/boolean-logic/branching/IfUndefined.d.ts.map +1 -1
  124. package/dist/types/boolean-logic/branching/IfUnion.d.ts.map +1 -1
  125. package/dist/types/boolean-logic/branching/IfValidDotPath.d.ts.map +1 -1
  126. package/dist/types/boolean-logic/branching/IfWide.d.ts.map +1 -1
  127. package/dist/types/boolean-logic/branching/index.d.ts +3 -0
  128. package/dist/types/boolean-logic/branching/index.d.ts.map +1 -1
  129. package/dist/types/boolean-logic/branching/index.js +3 -0
  130. package/dist/types/boolean-logic/combinators/And.d.ts.map +1 -1
  131. package/dist/types/boolean-logic/combinators/Not.d.ts +7 -6
  132. package/dist/types/boolean-logic/combinators/Not.d.ts.map +1 -1
  133. package/dist/types/boolean-logic/combinators/Or.d.ts.map +1 -1
  134. package/dist/types/boolean-logic/narrowing/index.d.ts +0 -1
  135. package/dist/types/boolean-logic/narrowing/index.d.ts.map +1 -1
  136. package/dist/types/boolean-logic/narrowing/index.js +0 -1
  137. package/dist/types/boolean-logic/operators/AllExtend.d.ts +1 -2
  138. package/dist/types/boolean-logic/operators/AllExtend.d.ts.map +1 -1
  139. package/dist/types/boolean-logic/operators/Contains.d.ts.map +1 -1
  140. package/dist/types/boolean-logic/operators/ContainsAll.d.ts.map +1 -1
  141. package/dist/types/boolean-logic/operators/EndsWith.d.ts.map +1 -1
  142. package/dist/types/boolean-logic/operators/ExtendsAll.d.ts.map +1 -1
  143. package/dist/types/boolean-logic/operators/ExtendsNone.d.ts.map +1 -1
  144. package/dist/types/boolean-logic/operators/ExtendsSome.d.ts.map +1 -1
  145. package/dist/types/boolean-logic/operators/HasCharacters.d.ts.map +1 -1
  146. package/dist/types/boolean-logic/operators/HasParameters.d.ts.map +1 -1
  147. package/dist/types/boolean-logic/operators/HasSameValues.d.ts.map +1 -1
  148. package/dist/types/boolean-logic/operators/HasUnionType.d.ts.map +1 -1
  149. package/dist/types/boolean-logic/operators/Includes.d.ts.map +1 -1
  150. package/dist/types/boolean-logic/operators/IsAllLowercase.d.ts.map +1 -1
  151. package/dist/types/boolean-logic/operators/IsAny.d.ts.map +1 -1
  152. package/dist/types/boolean-logic/operators/IsAnyEqual.d.ts.map +1 -1
  153. package/dist/types/boolean-logic/operators/IsBooleanLiteral.d.ts.map +1 -1
  154. package/dist/types/boolean-logic/operators/IsChar.d.ts.map +1 -1
  155. package/dist/types/boolean-logic/operators/IsContainer.d.ts.map +1 -1
  156. package/dist/types/boolean-logic/operators/IsDefined.d.ts +7 -0
  157. package/dist/types/boolean-logic/operators/IsDefined.d.ts.map +1 -0
  158. package/dist/types/boolean-logic/operators/IsDefined.js +1 -0
  159. package/dist/types/boolean-logic/operators/IsDotPath.d.ts.map +1 -1
  160. package/dist/types/boolean-logic/operators/IsEmptyObject.d.ts.map +1 -1
  161. package/dist/types/boolean-logic/operators/IsErrorCondition.d.ts.map +1 -1
  162. package/dist/types/boolean-logic/operators/IsFalse.d.ts.map +1 -1
  163. package/dist/types/boolean-logic/operators/IsFalsy.d.ts.map +1 -1
  164. package/dist/types/boolean-logic/operators/IsFnWithParams.d.ts.map +1 -1
  165. package/dist/types/boolean-logic/operators/IsFunction.d.ts.map +1 -1
  166. package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts.map +1 -1
  167. package/dist/types/boolean-logic/operators/IsLength.d.ts +1 -2
  168. package/dist/types/boolean-logic/operators/IsLength.d.ts.map +1 -1
  169. package/dist/types/boolean-logic/operators/IsLiteral.d.ts.map +1 -1
  170. package/dist/types/boolean-logic/operators/IsMaybeTrue.d.ts.map +1 -1
  171. package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts +5 -4
  172. package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts.map +1 -1
  173. package/dist/types/boolean-logic/operators/IsNotEqual.d.ts.map +1 -1
  174. package/dist/types/boolean-logic/operators/IsNumericLiteral.d.ts.map +1 -1
  175. package/dist/types/boolean-logic/operators/IsObject.d.ts.map +1 -1
  176. package/dist/types/boolean-logic/operators/IsObjectLiteral.d.ts.map +1 -1
  177. package/dist/types/boolean-logic/operators/IsOptionalScalar.d.ts +2 -2
  178. package/dist/types/boolean-logic/operators/IsOptionalScalar.d.ts.map +1 -1
  179. package/dist/types/boolean-logic/operators/IsRef.d.ts.map +1 -1
  180. package/dist/types/boolean-logic/operators/IsScalar.d.ts +7 -3
  181. package/dist/types/boolean-logic/operators/IsScalar.d.ts.map +1 -1
  182. package/dist/types/boolean-logic/operators/IsSingularNoun.d.ts.map +1 -1
  183. package/dist/types/boolean-logic/operators/IsStringLiteral.d.ts.map +1 -1
  184. package/dist/types/boolean-logic/operators/IsTrue.d.ts.map +1 -1
  185. package/dist/types/boolean-logic/operators/IsTruthy.d.ts.map +1 -1
  186. package/dist/types/boolean-logic/operators/IsTuple.d.ts +2 -2
  187. package/dist/types/boolean-logic/operators/IsTuple.d.ts.map +1 -1
  188. package/dist/types/boolean-logic/operators/IsUnion.d.ts +1 -1
  189. package/dist/types/boolean-logic/operators/IsUnion.d.ts.map +1 -1
  190. package/dist/types/boolean-logic/operators/IsValidDotPath.d.ts.map +1 -1
  191. package/dist/types/boolean-logic/operators/IsValidKey.d.ts.map +1 -1
  192. package/dist/types/boolean-logic/operators/IsWideType.d.ts.map +1 -1
  193. package/dist/types/boolean-logic/operators/NarrowlyContains.d.ts +1 -2
  194. package/dist/types/boolean-logic/operators/NarrowlyContains.d.ts.map +1 -1
  195. package/dist/types/boolean-logic/operators/NotCharacters.d.ts.map +1 -1
  196. package/dist/types/boolean-logic/operators/NotEqual.d.ts.map +1 -1
  197. package/dist/types/boolean-logic/operators/NotLength.d.ts.map +1 -1
  198. package/dist/types/boolean-logic/operators/Returns.d.ts.map +1 -1
  199. package/dist/types/boolean-logic/operators/ReturnsBoolean.d.ts.map +1 -1
  200. package/dist/types/boolean-logic/operators/ReturnsFalse.d.ts.map +1 -1
  201. package/dist/types/boolean-logic/operators/ReturnsTrue.d.ts.map +1 -1
  202. package/dist/types/boolean-logic/operators/SomeEqual.d.ts +1 -2
  203. package/dist/types/boolean-logic/operators/SomeEqual.d.ts.map +1 -1
  204. package/dist/types/boolean-logic/operators/SomeExtend.d.ts +2 -3
  205. package/dist/types/boolean-logic/operators/SomeExtend.d.ts.map +1 -1
  206. package/dist/types/boolean-logic/operators/StartsWith.d.ts.map +1 -1
  207. package/dist/types/boolean-logic/operators/index.d.ts +1 -0
  208. package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
  209. package/dist/types/boolean-logic/operators/index.js +1 -0
  210. package/dist/types/containers/WithKey.d.ts +16 -6
  211. package/dist/types/containers/WithKey.d.ts.map +1 -1
  212. package/dist/types/dictionary/AddKeyValue.d.ts.map +1 -1
  213. package/dist/types/dictionary/CombinedKeys.d.ts +19 -0
  214. package/dist/types/dictionary/CombinedKeys.d.ts.map +1 -0
  215. package/dist/types/dictionary/CombinedKeys.js +1 -0
  216. package/dist/types/dictionary/DictChangeValue.d.ts.map +1 -1
  217. package/dist/types/dictionary/ExplicitKeys.d.ts.map +1 -1
  218. package/dist/types/dictionary/FromMaybeRef.d.ts.map +1 -1
  219. package/dist/types/dictionary/Keys.d.ts +1 -1
  220. package/dist/types/dictionary/Keys.d.ts.map +1 -1
  221. package/dist/types/dictionary/KeysEqualValue.d.ts.map +1 -1
  222. package/dist/types/dictionary/KeysNotEqualValue.d.ts.map +1 -1
  223. package/dist/types/dictionary/KeysWithValue.d.ts +2 -2
  224. package/dist/types/dictionary/KeysWithValue.d.ts.map +1 -1
  225. package/dist/types/dictionary/KeysWithoutValue.d.ts.map +1 -1
  226. package/dist/types/dictionary/MapTo.d.ts.map +1 -1
  227. package/dist/types/dictionary/MaybeRef.d.ts.map +1 -1
  228. package/dist/types/dictionary/MutableProps.d.ts.map +1 -1
  229. package/dist/types/dictionary/NonStringKeys.d.ts +1 -1
  230. package/dist/types/dictionary/NonStringKeys.d.ts.map +1 -1
  231. package/dist/types/dictionary/OptionalProps.d.ts.map +1 -1
  232. package/dist/types/dictionary/PrivateKeys.d.ts.map +1 -1
  233. package/dist/types/dictionary/ReadonlyProps.d.ts.map +1 -1
  234. package/dist/types/dictionary/RemoveIndexKeys.d.ts +2 -2
  235. package/dist/types/dictionary/RemoveIndexKeys.d.ts.map +1 -1
  236. package/dist/types/dictionary/RequireProps.d.ts.map +1 -1
  237. package/dist/types/dictionary/RequiredKeys.d.ts.map +1 -1
  238. package/dist/types/dictionary/RequiredProps.d.ts.map +1 -1
  239. package/dist/types/dictionary/SharedKeys.d.ts.map +1 -1
  240. package/dist/types/dictionary/SimplifyObject.d.ts.map +1 -1
  241. package/dist/types/dictionary/UpsertKeyValue.d.ts.map +1 -1
  242. package/dist/types/dictionary/ValidKey.d.ts.map +1 -1
  243. package/dist/types/dictionary/WithKeys.d.ts.map +1 -1
  244. package/dist/types/dictionary/WithNumericKeys.d.ts.map +1 -1
  245. package/dist/types/dictionary/WithStringKeys.d.ts.map +1 -1
  246. package/dist/types/dictionary/WithValue.d.ts +4 -2
  247. package/dist/types/dictionary/WithValue.d.ts.map +1 -1
  248. package/dist/types/dictionary/WithoutKeys.d.ts.map +1 -1
  249. package/dist/types/dictionary/WithoutValue.d.ts.map +1 -1
  250. package/dist/types/dictionary/index.d.ts +1 -0
  251. package/dist/types/dictionary/index.d.ts.map +1 -1
  252. package/dist/types/dictionary/index.js +1 -0
  253. package/dist/types/errors/ErrorConditionHandler.d.ts.map +1 -1
  254. package/dist/types/errors/ReportError.d.ts.map +1 -1
  255. package/dist/types/functional/Left.d.ts.map +1 -1
  256. package/dist/types/functional/Right.d.ts.map +1 -1
  257. package/dist/types/functions/AsFnMeta.d.ts.map +1 -1
  258. package/dist/types/functions/FnMeta.d.ts.map +1 -1
  259. package/dist/types/functions/FnProps.d.ts.map +1 -1
  260. package/dist/types/functions/PromiseAll.d.ts.map +1 -1
  261. package/dist/types/functions/RemoveFnProps.d.ts.map +1 -1
  262. package/dist/types/functions/ToFn.d.ts.map +1 -1
  263. package/dist/types/functions/TypeGuard.d.ts.map +1 -1
  264. package/dist/types/functions/index.js +1 -1
  265. package/dist/types/kv/KeyValue.d.ts.map +1 -1
  266. package/dist/types/lists/AfterFirst.d.ts.map +1 -1
  267. package/dist/types/lists/ArrayElementType.d.ts +1 -2
  268. package/dist/types/lists/ArrayElementType.d.ts.map +1 -1
  269. package/dist/types/lists/AsArray.d.ts +0 -2
  270. package/dist/types/lists/AsArray.d.ts.map +1 -1
  271. package/dist/types/lists/AsTuple.d.ts +12 -0
  272. package/dist/types/lists/AsTuple.d.ts.map +1 -0
  273. package/dist/types/lists/AsTuple.js +1 -0
  274. package/dist/types/lists/BeforeLast.d.ts.map +1 -1
  275. package/dist/types/lists/ConvertAndMap.d.ts.map +1 -1
  276. package/dist/types/lists/ConvertSet.d.ts.map +1 -1
  277. package/dist/types/lists/Filter.d.ts.map +1 -1
  278. package/dist/types/lists/Find.d.ts.map +1 -1
  279. package/dist/types/lists/First.d.ts +1 -2
  280. package/dist/types/lists/First.d.ts.map +1 -1
  281. package/dist/types/lists/FirstOrElse.d.ts.map +1 -1
  282. package/dist/types/lists/Flatten.d.ts +1 -2
  283. package/dist/types/lists/Flatten.d.ts.map +1 -1
  284. package/dist/types/lists/GetEach.d.ts.map +1 -1
  285. package/dist/types/lists/IndexOf.d.ts.map +1 -1
  286. package/dist/types/lists/IntersectAll.d.ts.map +1 -1
  287. package/dist/types/lists/Last.d.ts.map +1 -1
  288. package/dist/types/lists/Length.d.ts +2 -2
  289. package/dist/types/lists/Length.d.ts.map +1 -1
  290. package/dist/types/lists/NumericKeys.d.ts.map +1 -1
  291. package/dist/types/lists/Pop.d.ts.map +1 -1
  292. package/dist/types/lists/ReplaceLast.d.ts.map +1 -1
  293. package/dist/types/lists/Retain.d.ts.map +1 -1
  294. package/dist/types/lists/ReturnTypes.d.ts.map +1 -1
  295. package/dist/types/lists/Reverse.d.ts.map +1 -1
  296. package/dist/types/lists/Shift.d.ts.map +1 -1
  297. package/dist/types/lists/TruthyReturns.d.ts.map +1 -1
  298. package/dist/types/lists/UnionFromProp.d.ts.map +1 -1
  299. package/dist/types/lists/extractors/2nd-order/RemoveEquals.d.ts.map +1 -1
  300. package/dist/types/lists/extractors/2nd-order/RemoveErrors.d.ts.map +1 -1
  301. package/dist/types/lists/extractors/2nd-order/RemoveExtends.d.ts.map +1 -1
  302. package/dist/types/lists/extractors/2nd-order/RemoveNever.d.ts.map +1 -1
  303. package/dist/types/lists/extractors/2nd-order/RemoveNotExtends.d.ts.map +1 -1
  304. package/dist/types/lists/extractors/2nd-order/RemoveStrings.d.ts.map +1 -1
  305. package/dist/types/lists/extractors/2nd-order/RetainEquals.d.ts.map +1 -1
  306. package/dist/types/lists/extractors/2nd-order/RetainExtends.d.ts.map +1 -1
  307. package/dist/types/lists/extractors/2nd-order/RetainNotExtends.d.ts.map +1 -1
  308. package/dist/types/lists/extractors/2nd-order/RetainStrings.d.ts.map +1 -1
  309. package/dist/types/lists/extractors/RemoveFromList.d.ts.map +1 -1
  310. package/dist/types/lists/extractors/RetainFromList.d.ts.map +1 -1
  311. package/dist/types/lists/index.d.ts +1 -0
  312. package/dist/types/lists/index.d.ts.map +1 -1
  313. package/dist/types/lists/index.js +1 -0
  314. package/dist/types/literals/Box.d.ts.map +1 -1
  315. package/dist/types/literals/Color.d.ts.map +1 -1
  316. package/dist/types/literals/ContainerBlockKey.d.ts.map +1 -1
  317. package/dist/types/literals/ContainerKeyGuarantee.d.ts.map +1 -1
  318. package/dist/types/literals/ExpandRecursively.d.ts.map +1 -1
  319. package/dist/types/numeric-literals/Abs.d.ts +2 -2
  320. package/dist/types/numeric-literals/Abs.d.ts.map +1 -1
  321. package/dist/types/numeric-literals/AbsMaybe.d.ts.map +1 -1
  322. package/dist/types/numeric-literals/Add.d.ts +77 -0
  323. package/dist/types/numeric-literals/Add.d.ts.map +1 -0
  324. package/dist/types/numeric-literals/Add.js +1 -0
  325. package/dist/types/numeric-literals/AsNumberWhenPossible.d.ts.map +1 -1
  326. package/dist/types/numeric-literals/Decrement.d.ts.map +1 -1
  327. package/dist/types/numeric-literals/Digit.d.ts.map +1 -1
  328. package/dist/types/numeric-literals/DigitNonZero.d.ts.map +1 -1
  329. package/dist/types/numeric-literals/Digitize.d.ts.map +1 -1
  330. package/dist/types/numeric-literals/Float.d.ts.map +1 -1
  331. package/dist/types/numeric-literals/Increment.d.ts.map +1 -1
  332. package/dist/types/numeric-literals/Negative.d.ts.map +1 -1
  333. package/dist/types/numeric-literals/NextDigit.d.ts.map +1 -1
  334. package/dist/types/numeric-literals/NumberLike.d.ts +8 -0
  335. package/dist/types/numeric-literals/NumberLike.d.ts.map +1 -0
  336. package/dist/types/numeric-literals/NumberLike.js +1 -0
  337. package/dist/types/numeric-literals/NumericRange.d.ts +1 -1
  338. package/dist/types/numeric-literals/NumericRange.d.ts.map +1 -1
  339. package/dist/types/numeric-literals/PriorDigit.d.ts.map +1 -1
  340. package/dist/types/numeric-literals/Subtract.d.ts +3 -1
  341. package/dist/types/numeric-literals/Subtract.d.ts.map +1 -1
  342. package/dist/types/numeric-literals/ToInteger.d.ts.map +1 -1
  343. package/dist/types/numeric-literals/index.d.ts +14 -11
  344. package/dist/types/numeric-literals/index.d.ts.map +1 -1
  345. package/dist/types/numeric-literals/index.js +15 -11
  346. package/dist/types/runtime-types/DescribeType.d.ts.map +1 -1
  347. package/dist/types/runtime-types/FromLiteralTokens.d.ts.map +1 -1
  348. package/dist/types/runtime-types/LiteralType.d.ts.map +1 -1
  349. package/dist/types/runtime-types/StringLiteralToken.d.ts.map +1 -1
  350. package/dist/types/runtime-types/TokenizeStringLiteral.d.ts.map +1 -1
  351. package/dist/types/runtime-types/Type.d.ts.map +1 -1
  352. package/dist/types/runtime-types/TypeOf.d.ts.map +1 -1
  353. package/dist/types/runtime-types/TypeToken.d.ts.map +1 -1
  354. package/dist/types/runtime-types/TypeTuple.d.ts.map +1 -1
  355. package/dist/types/runtime-types/api/boolean.d.ts.map +1 -1
  356. package/dist/types/runtime-types/api/number.d.ts.map +1 -1
  357. package/dist/types/runtime-types/api/string.d.ts.map +1 -1
  358. package/dist/types/runtime-types/api/stringLiteral.d.ts.map +1 -1
  359. package/dist/types/sets/AllKeys.d.ts.map +1 -1
  360. package/dist/types/sets/Dedupe.d.ts.map +1 -1
  361. package/dist/types/sets/IntersectingKeys.d.ts.map +1 -1
  362. package/dist/types/sets/Intersection.d.ts.map +1 -1
  363. package/dist/types/sets/Relate.d.ts.map +1 -1
  364. package/dist/types/sets/SetCandidate.d.ts.map +1 -1
  365. package/dist/types/sets/SetRemoval.d.ts.map +1 -1
  366. package/dist/types/sets/Unique.d.ts +12 -1
  367. package/dist/types/sets/Unique.d.ts.map +1 -1
  368. package/dist/types/sets/UniqueKeys.d.ts.map +1 -1
  369. package/dist/types/sets/UniqueKeysUnion.d.ts.map +1 -1
  370. package/dist/types/sets/UniqueKv.d.ts.map +1 -1
  371. package/dist/types/string-literals/Cardinality.d.ts +2 -2
  372. package/dist/types/string-literals/Cardinality.d.ts.map +1 -1
  373. package/dist/types/string-literals/Chars.d.ts +2 -2
  374. package/dist/types/string-literals/Chars.d.ts.map +1 -1
  375. package/dist/types/string-literals/Concat.d.ts.map +1 -1
  376. package/dist/types/string-literals/Date.d.ts.map +1 -1
  377. package/dist/types/string-literals/DateTime.d.ts.map +1 -1
  378. package/dist/types/string-literals/DropChars.d.ts.map +1 -1
  379. package/dist/types/string-literals/EmptyStringOr.d.ts.map +1 -1
  380. package/dist/types/string-literals/EnsureLeading.d.ts.map +1 -1
  381. package/dist/types/string-literals/EnsureLeadingEvery.d.ts.map +1 -1
  382. package/dist/types/string-literals/EnsureTrailing.d.ts.map +1 -1
  383. package/dist/types/string-literals/FirstChar.d.ts.map +1 -1
  384. package/dist/types/string-literals/HasUppercase.d.ts.map +1 -1
  385. package/dist/types/string-literals/Join.d.ts.map +1 -1
  386. package/dist/types/string-literals/LastChar.d.ts.map +1 -1
  387. package/dist/types/string-literals/PathJoin.d.ts.map +1 -1
  388. package/dist/types/string-literals/Pluralize.d.ts.map +1 -1
  389. package/dist/types/string-literals/Prepend.d.ts.map +1 -1
  390. package/dist/types/string-literals/PrependAll.d.ts.map +1 -1
  391. package/dist/types/string-literals/RemainingChars.d.ts.map +1 -1
  392. package/dist/types/string-literals/Repeat.d.ts.map +1 -1
  393. package/dist/types/string-literals/RetainAfter.d.ts +7 -4
  394. package/dist/types/string-literals/RetainAfter.d.ts.map +1 -1
  395. package/dist/types/string-literals/Split.d.ts +10 -7
  396. package/dist/types/string-literals/Split.d.ts.map +1 -1
  397. package/dist/types/string-literals/StrLen.d.ts.map +1 -1
  398. package/dist/types/string-literals/StripAfter.d.ts +2 -2
  399. package/dist/types/string-literals/StripAfter.d.ts.map +1 -1
  400. package/dist/types/string-literals/StripBefore.d.ts +18 -0
  401. package/dist/types/string-literals/StripBefore.d.ts.map +1 -0
  402. package/dist/types/string-literals/StripBefore.js +1 -0
  403. package/dist/types/string-literals/StripLeading.d.ts.map +1 -1
  404. package/dist/types/string-literals/StripTrailing.d.ts.map +1 -1
  405. package/dist/types/string-literals/Suggest.d.ts.map +1 -1
  406. package/dist/types/string-literals/Time.d.ts.map +1 -1
  407. package/dist/types/string-literals/Truncate.d.ts.map +1 -1
  408. package/dist/types/string-literals/casing/AllCaps.d.ts +3 -3
  409. package/dist/types/string-literals/casing/AllCaps.d.ts.map +1 -1
  410. package/dist/types/string-literals/casing/CamelCase.d.ts.map +1 -1
  411. package/dist/types/string-literals/casing/CapFirstAlpha.d.ts.map +1 -1
  412. package/dist/types/string-literals/casing/DashUppercase.d.ts.map +1 -1
  413. package/dist/types/string-literals/casing/KebabCase.d.ts.map +1 -1
  414. package/dist/types/string-literals/casing/LowerAllCaps.d.ts.map +1 -1
  415. package/dist/types/string-literals/casing/PascalCase.d.ts.map +1 -1
  416. package/dist/types/string-literals/casing/RaiseAllLowercase.d.ts.map +1 -1
  417. package/dist/types/string-literals/casing/SnakeCase.d.ts.map +1 -1
  418. package/dist/types/string-literals/character-sets/Alpha.d.ts.map +1 -1
  419. package/dist/types/string-literals/character-sets/AlphaChar.d.ts.map +1 -1
  420. package/dist/types/string-literals/character-sets/AlphaNumeric.d.ts.map +1 -1
  421. package/dist/types/string-literals/character-sets/CSV.d.ts.map +1 -1
  422. package/dist/types/string-literals/character-sets/Consonants.d.ts.map +1 -1
  423. package/dist/types/string-literals/character-sets/DomainName.d.ts.map +1 -1
  424. package/dist/types/string-literals/character-sets/DotPath.d.ts +1 -1
  425. package/dist/types/string-literals/character-sets/DotPath.d.ts.map +1 -1
  426. package/dist/types/string-literals/character-sets/DotPathFor.d.ts.map +1 -1
  427. package/dist/types/string-literals/character-sets/Hexadecimal.d.ts.map +1 -1
  428. package/dist/types/string-literals/character-sets/IpAddress.d.ts.map +1 -1
  429. package/dist/types/string-literals/character-sets/LowerAlpha.d.ts.map +1 -1
  430. package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts.map +1 -1
  431. package/dist/types/string-literals/character-sets/NonAlpha.d.ts.map +1 -1
  432. package/dist/types/string-literals/character-sets/NumericChar.d.ts.map +1 -1
  433. package/dist/types/string-literals/character-sets/SingularNoun.d.ts.map +1 -1
  434. package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts.map +1 -1
  435. package/dist/types/string-literals/character-sets/ValueAtDotPath.d.ts +1 -1
  436. package/dist/types/string-literals/character-sets/ValueAtDotPath.d.ts.map +1 -1
  437. package/dist/types/string-literals/index.d.ts +1 -2
  438. package/dist/types/string-literals/index.d.ts.map +1 -1
  439. package/dist/types/string-literals/index.js +1 -2
  440. package/dist/types/tsconfig.tsbuildinfo +1 -1
  441. package/dist/types/tuples/FirstKey.d.ts.map +1 -1
  442. package/dist/types/tuples/FirstKeyValue.d.ts +1 -1
  443. package/dist/types/tuples/FirstKeyValue.d.ts.map +1 -1
  444. package/dist/types/tuples/FromDictArray.d.ts.map +1 -1
  445. package/dist/types/tuples/LastOfEach.d.ts +14 -0
  446. package/dist/types/tuples/LastOfEach.d.ts.map +1 -0
  447. package/dist/types/tuples/LastOfEach.js +1 -0
  448. package/dist/types/type-conversion/ArrConcat.d.ts.map +1 -1
  449. package/dist/types/type-conversion/AsBoolean.d.ts +7 -0
  450. package/dist/types/type-conversion/AsBoolean.d.ts.map +1 -0
  451. package/dist/types/type-conversion/AsBoolean.js +1 -0
  452. package/dist/types/type-conversion/AsFunction.d.ts.map +1 -1
  453. package/dist/types/type-conversion/AsNumber.d.ts +10 -3
  454. package/dist/types/type-conversion/AsNumber.d.ts.map +1 -1
  455. package/dist/types/type-conversion/AsPropertyKey.d.ts +13 -0
  456. package/dist/types/type-conversion/AsPropertyKey.d.ts.map +1 -0
  457. package/dist/types/type-conversion/AsPropertyKey.js +1 -0
  458. package/dist/types/type-conversion/AsString.d.ts +5 -1
  459. package/dist/types/type-conversion/AsString.d.ts.map +1 -1
  460. package/dist/types/type-conversion/IntersectWithAll.d.ts.map +1 -1
  461. package/dist/types/type-conversion/MergeObjects.d.ts +3 -6
  462. package/dist/types/type-conversion/MergeObjects.d.ts.map +1 -1
  463. package/dist/types/type-conversion/ObjValues.d.ts +10 -9
  464. package/dist/types/type-conversion/ObjValues.d.ts.map +1 -1
  465. package/dist/types/type-conversion/ObjectToKvDict.d.ts +7 -10
  466. package/dist/types/type-conversion/ObjectToKvDict.d.ts.map +1 -1
  467. package/dist/types/type-conversion/ReplaceAll.d.ts +1 -1
  468. package/dist/types/type-conversion/ReplaceAll.d.ts.map +1 -1
  469. package/dist/types/type-conversion/ReturnValues.d.ts.map +1 -1
  470. package/dist/types/type-conversion/ToBoolean.d.ts.map +1 -1
  471. package/dist/types/type-conversion/ToContainer.d.ts.map +1 -1
  472. package/dist/types/type-conversion/ToNumber.d.ts.map +1 -1
  473. package/dist/types/type-conversion/ToString.d.ts.map +1 -1
  474. package/dist/types/type-conversion/Trim.d.ts.map +1 -1
  475. package/dist/types/type-conversion/TrimLeft.d.ts.map +1 -1
  476. package/dist/types/type-conversion/TrimRight.d.ts.map +1 -1
  477. package/dist/types/type-conversion/TupleToUnion.d.ts.map +1 -1
  478. package/dist/types/type-conversion/UnionToTuple.d.ts +10 -6
  479. package/dist/types/type-conversion/UnionToTuple.d.ts.map +1 -1
  480. package/dist/types/type-conversion/UnionToTuple.js +0 -1
  481. package/dist/types/type-conversion/ValueOrReturnValue.d.ts.map +1 -1
  482. package/dist/types/type-conversion/Widen.d.ts.map +1 -1
  483. package/dist/types/type-conversion/WidenProps.d.ts.map +1 -1
  484. package/dist/types/type-conversion/WithDefault.d.ts.map +1 -1
  485. package/dist/types/type-conversion/form-fields.d.ts.map +1 -1
  486. package/dist/types/type-conversion/index.d.ts +2 -0
  487. package/dist/types/type-conversion/index.d.ts.map +1 -1
  488. package/dist/types/type-conversion/index.js +2 -0
  489. package/package.json +5 -5
  490. package/dist/runtime/dictionary/strArrayToDict.d.ts +0 -7
  491. package/dist/runtime/dictionary/strArrayToDict.d.ts.map +0 -1
  492. package/dist/runtime/dictionary/strArrayToDict.js +0 -10
  493. package/dist/runtime/dictionary/withValue.d.ts +0 -26
  494. package/dist/runtime/dictionary/withValue.d.ts.map +0 -1
  495. package/dist/runtime/dictionary/withValue.js +0 -21
  496. package/dist/runtime/runtime-types/extractTypeToken.d.ts +0 -2
  497. package/dist/runtime/runtime-types/extractTypeToken.d.ts.map +0 -1
  498. package/dist/runtime/runtime-types/extractTypeToken.js +0 -11
  499. package/dist/runtime/type-guards/isSameType.d.ts +0 -10
  500. package/dist/runtime/type-guards/isSameType.d.ts.map +0 -1
  501. package/dist/runtime/type-guards/isSameType.js +0 -64
  502. package/dist/types/boolean-logic/combinators/FirstIdx.d.ts +0 -11
  503. package/dist/types/boolean-logic/combinators/FirstIdx.d.ts.map +0 -1
  504. package/dist/types/boolean-logic/narrowing/AsPropertyKey.d.ts +0 -21
  505. package/dist/types/boolean-logic/narrowing/AsPropertyKey.d.ts.map +0 -1
  506. package/dist/types/string-literals/CaseInsensitive.d.ts +0 -30
  507. package/dist/types/string-literals/CaseInsensitive.d.ts.map +0 -1
  508. package/dist/types/string-literals/Interpolate.d.ts +0 -15
  509. package/dist/types/string-literals/Interpolate.d.ts.map +0 -1
  510. /package/dist/types/boolean-logic/{combinators/FirstIdx.js → branching/IfLessThan.js} +0 -0
  511. /package/dist/types/boolean-logic/{narrowing/AsPropertyKey.js → branching/IfNegativeNumber.js} +0 -0
  512. /package/dist/types/{string-literals/CaseInsensitive.js → boolean-logic/branching/IfNotTuple.js} +0 -0
  513. /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;AAwFvB,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
+ {"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, split, isContainer, } from "..";
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(dotPath, ".") || []
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,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,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>>) 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.", {
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>>) 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.", {
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,CACtB,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
+ {"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,EAAa,IAAI,EAAG,UAAU,EAAE,KAAK,EAAE,oBAAkB;AAGhE;;;;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,wIAUhB,CAAC"}
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 { indexOf } from "..";
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
- return list.find(i => indexOf(i, deref) === value);
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,6BA6B7B"}
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 (isNull(idx)
26
+ return (index === null
30
27
  ? val
31
- : isArray(val)
32
- ? Number(idx) in val ? val[Number(idx)] : Never
33
- : isObject(val)
34
- ? String(idx) in val ? val[String(idx)] : Never
35
- : Never);
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 { Tuple, Unique } from "../../types";
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 function unique<A extends Tuple, B extends Tuple, TIndex extends string | number | null = null>(a: A, b: B, index?: TIndex): Unique<A, B, TIndex>;
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,EAAa,KAAK,EAAE,MAAM,EAAE,oBAAkB;AAGrD;;;;;GAKG;AACH,wBAAgB,MAAM,CACpB,CAAC,SAAS,KAAK,EACf,CAAC,SAAS,KAAK,EACf,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,EAC5C,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAC,CAAC,EAAC,MAAM,CAAC,CAehD"}
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 function unique(a, b, index) {
9
- const offset = index
10
- ? isString(index) ? index : String(index)
11
- : null;
12
- const bValues = offset === null
13
- ? b
14
- : b.map(i => indexOf(i, offset));
15
- const aValues = offset === null
16
- ? a
17
- : a.map(i => indexOf(i, offset));
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
+ };
@@ -24,6 +24,7 @@ export * from "./pluralize";
24
24
  export * from "./retainAfter";
25
25
  export * from "./surround";
26
26
  export * from "./stripAfter";
27
+ export * from "./stripBefore";
27
28
  export * from "./trim";
28
29
  export * from "./toPascalCase";
29
30
  export * from "./toUppercase";
@@ -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;AAuC9D;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,6CAUrB,CAAC"}
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 | number, S extends string>(str: T, sep?: S): (Split<T & string, S> & string) | Split<T & `${number}`, S>;
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,EAAkB,KAAK,EAAE,oBAAkB;AAGlD;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAE,CAAW,+DAM1F"}
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 isString(str)
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 "../type-guards/index.js";
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,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AAEnC,cAAc,cAAc,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";