inferred-types 0.40.6 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (571) hide show
  1. package/dist/constants/Comma.js +1 -1
  2. package/dist/constants/Never.js +1 -1
  3. package/dist/constants/NoDefaultValue.js +1 -1
  4. package/dist/constants/NotDefined.js +1 -1
  5. package/dist/constants/TypeComparisons.js +1 -1
  6. package/dist/constants/index.js +22 -22
  7. package/dist/constants/tsconfig.tsbuildinfo +1 -1
  8. package/dist/inferred-types/index.js +3 -3
  9. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  10. package/dist/runtime/boolean-logic/ifChar.js +1 -1
  11. package/dist/runtime/boolean-logic/index.js +19 -19
  12. package/dist/runtime/combinators/index.js +3 -3
  13. package/dist/runtime/dictionary/get.d.ts.map +1 -1
  14. package/dist/runtime/dictionary/get.js +3 -3
  15. package/dist/runtime/dictionary/index.d.ts +0 -2
  16. package/dist/runtime/dictionary/index.d.ts.map +1 -1
  17. package/dist/runtime/dictionary/index.js +11 -13
  18. package/dist/runtime/dictionary/withKeys.d.ts +1 -1
  19. package/dist/runtime/dictionary/withoutKeys.d.ts +1 -1
  20. package/dist/runtime/errors/index.js +1 -1
  21. package/dist/runtime/functional/index.js +2 -2
  22. package/dist/runtime/functions/index.js +1 -1
  23. package/dist/runtime/index.js +14 -14
  24. package/dist/runtime/initializers/index.js +8 -8
  25. package/dist/runtime/lists/createConverter.d.ts.map +1 -1
  26. package/dist/runtime/lists/createConverter.js +1 -1
  27. package/dist/runtime/lists/find.d.ts.map +1 -1
  28. package/dist/runtime/lists/find.js +10 -2
  29. package/dist/runtime/lists/getEach.js +1 -1
  30. package/dist/runtime/lists/index.js +15 -15
  31. package/dist/runtime/lists/indexOf.d.ts.map +1 -1
  32. package/dist/runtime/lists/indexOf.js +9 -10
  33. package/dist/runtime/lists/unique.d.ts +2 -2
  34. package/dist/runtime/lists/unique.d.ts.map +1 -1
  35. package/dist/runtime/lists/unique.js +10 -15
  36. package/dist/runtime/literals/ifLowercase.js +1 -1
  37. package/dist/runtime/literals/ifUppercase.js +1 -1
  38. package/dist/runtime/literals/index.d.ts +1 -0
  39. package/dist/runtime/literals/index.d.ts.map +1 -1
  40. package/dist/runtime/literals/index.js +31 -30
  41. package/dist/runtime/literals/pluralize.d.ts.map +1 -1
  42. package/dist/runtime/literals/pluralize.js +2 -2
  43. package/dist/runtime/literals/split.d.ts +1 -1
  44. package/dist/runtime/literals/split.d.ts.map +1 -1
  45. package/dist/runtime/literals/split.js +1 -7
  46. package/dist/runtime/literals/stripBefore.d.ts +15 -0
  47. package/dist/runtime/literals/stripBefore.d.ts.map +1 -0
  48. package/dist/runtime/literals/stripBefore.js +18 -0
  49. package/dist/runtime/runtime-types/createType.js +1 -1
  50. package/dist/runtime/runtime-types/describeType.js +1 -1
  51. package/dist/runtime/runtime-types/index.d.ts +0 -2
  52. package/dist/runtime/runtime-types/index.d.ts.map +1 -1
  53. package/dist/runtime/runtime-types/index.js +6 -8
  54. package/dist/runtime/runtime-types/kind.d.ts +1 -1
  55. package/dist/runtime/runtime-types/typeTuples.d.ts +1 -1
  56. package/dist/runtime/runtime-types/typeTuples.js +1 -1
  57. package/dist/runtime/sets/index.js +1 -1
  58. package/dist/runtime/state/index.js +2 -2
  59. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  60. package/dist/runtime/type-conversion/index.js +9 -9
  61. package/dist/runtime/type-guards/higher-order/endsWith.js +1 -1
  62. package/dist/runtime/type-guards/higher-order/index.js +6 -6
  63. package/dist/runtime/type-guards/higher-order/isEqual.js +1 -1
  64. package/dist/runtime/type-guards/higher-order/isLength.js +1 -1
  65. package/dist/runtime/type-guards/higher-order/startsWith.js +1 -1
  66. package/dist/runtime/type-guards/index.d.ts +0 -1
  67. package/dist/runtime/type-guards/index.d.ts.map +1 -1
  68. package/dist/runtime/type-guards/index.js +32 -33
  69. package/dist/runtime/type-guards/isAlpha.js +1 -1
  70. package/dist/runtime/type-guards/isArray.d.ts +1 -1
  71. package/dist/runtime/type-guards/isArray.d.ts.map +1 -1
  72. package/dist/runtime/type-guards/isFalsy.js +1 -1
  73. package/dist/runtime/type-guards/isNumericString.d.ts.map +1 -1
  74. package/dist/runtime/type-guards/isNumericString.js +2 -1
  75. package/dist/runtime/type-guards/isRef.d.ts +1 -1
  76. package/dist/runtime/type-guards/isRef.d.ts.map +1 -1
  77. package/dist/runtime/type-guards/isTruthy.js +1 -1
  78. package/dist/runtime/type-guards/isTypeToken.js +1 -1
  79. package/dist/runtime/type-guards/runtime-type-guards.js +1 -1
  80. package/dist/types/base-types/AnyFunction.d.ts.map +1 -1
  81. package/dist/types/base-types/Container.d.ts.map +1 -1
  82. package/dist/types/base-types/CouldHaveValue.d.ts.map +1 -1
  83. package/dist/types/base-types/Digital.d.ts.map +1 -1
  84. package/dist/types/base-types/Indexable.d.ts.map +1 -1
  85. package/dist/types/base-types/IndexableObject.d.ts.map +1 -1
  86. package/dist/types/base-types/IndexedObject.d.ts.map +1 -1
  87. package/dist/types/base-types/NarrowObject.d.ts.map +1 -1
  88. package/dist/types/base-types/Tuple.d.ts.map +1 -1
  89. package/dist/types/base-types/fns/NarrowingFn.d.ts +1 -1
  90. package/dist/types/base-types/fns/NarrowingFn.d.ts.map +1 -1
  91. package/dist/types/base-types/fns/index.js +3 -3
  92. package/dist/types/base-types/functional/index.js +1 -1
  93. package/dist/types/base-types/index.js +24 -24
  94. package/dist/types/boolean-logic/branching/IfAllExtend.d.ts.map +1 -1
  95. package/dist/types/boolean-logic/branching/IfAllLiteral.d.ts +1 -2
  96. package/dist/types/boolean-logic/branching/IfAllLiteral.d.ts.map +1 -1
  97. package/dist/types/boolean-logic/branching/IfAnd.d.ts +5 -2
  98. package/dist/types/boolean-logic/branching/IfAnd.d.ts.map +1 -1
  99. package/dist/types/boolean-logic/branching/IfArray.d.ts.map +1 -1
  100. package/dist/types/boolean-logic/branching/IfBoolean.d.ts.map +1 -1
  101. package/dist/types/boolean-logic/branching/IfBooleanLiteral.d.ts.map +1 -1
  102. package/dist/types/boolean-logic/branching/IfChar.d.ts.map +1 -1
  103. package/dist/types/boolean-logic/branching/IfContainer.d.ts.map +1 -1
  104. package/dist/types/boolean-logic/branching/IfContains.d.ts.map +1 -1
  105. package/dist/types/boolean-logic/branching/IfDotPath.d.ts.map +1 -1
  106. package/dist/types/boolean-logic/branching/IfEmptyObject.d.ts.map +1 -1
  107. package/dist/types/boolean-logic/branching/IfEqual.d.ts.map +1 -1
  108. package/dist/types/boolean-logic/branching/IfErrorCondition.d.ts.map +1 -1
  109. package/dist/types/boolean-logic/branching/IfExtends.d.ts.map +1 -1
  110. package/dist/types/boolean-logic/branching/IfExtendsAll.d.ts.map +1 -1
  111. package/dist/types/boolean-logic/branching/IfExtendsSome.d.ts.map +1 -1
  112. package/dist/types/boolean-logic/branching/IfFalse.d.ts.map +1 -1
  113. package/dist/types/boolean-logic/branching/IfFalsy.d.ts.map +1 -1
  114. package/dist/types/boolean-logic/branching/IfFnWithParams.d.ts.map +1 -1
  115. package/dist/types/boolean-logic/branching/IfFnWithoutParams.d.ts.map +1 -1
  116. package/dist/types/boolean-logic/branching/IfFunction.d.ts.map +1 -1
  117. package/dist/types/boolean-logic/branching/IfGreaterThan.d.ts.map +1 -1
  118. package/dist/types/boolean-logic/branching/IfHasCharacters.d.ts.map +1 -1
  119. package/dist/types/boolean-logic/branching/IfLength.d.ts.map +1 -1
  120. package/dist/types/boolean-logic/branching/IfLessThan.d.ts +10 -0
  121. package/dist/types/boolean-logic/branching/IfLessThan.d.ts.map +1 -0
  122. package/dist/types/boolean-logic/branching/IfLiteral.d.ts.map +1 -1
  123. package/dist/types/boolean-logic/branching/IfMaybeFalse.d.ts.map +1 -1
  124. package/dist/types/boolean-logic/branching/IfMaybeTrue.d.ts.map +1 -1
  125. package/dist/types/boolean-logic/branching/IfNarrowlyContains.d.ts.map +1 -1
  126. package/dist/types/boolean-logic/branching/IfNegativeNumber.d.ts +10 -0
  127. package/dist/types/boolean-logic/branching/IfNegativeNumber.d.ts.map +1 -0
  128. package/dist/types/boolean-logic/branching/IfNever.d.ts +1 -1
  129. package/dist/types/boolean-logic/branching/IfNever.d.ts.map +1 -1
  130. package/dist/types/boolean-logic/branching/IfNotEqual.d.ts.map +1 -1
  131. package/dist/types/boolean-logic/branching/IfNotLiteral.d.ts.map +1 -1
  132. package/dist/types/boolean-logic/branching/IfNotNever.d.ts.map +1 -1
  133. package/dist/types/boolean-logic/branching/IfNotTuple.d.ts +8 -0
  134. package/dist/types/boolean-logic/branching/IfNotTuple.d.ts.map +1 -0
  135. package/dist/types/boolean-logic/branching/IfNull.d.ts.map +1 -1
  136. package/dist/types/boolean-logic/branching/IfNumber.d.ts.map +1 -1
  137. package/dist/types/boolean-logic/branching/IfNumericLiteral.d.ts.map +1 -1
  138. package/dist/types/boolean-logic/branching/IfObject.d.ts.map +1 -1
  139. package/dist/types/boolean-logic/branching/IfObjectLiteral.d.ts.map +1 -1
  140. package/dist/types/boolean-logic/branching/IfOptionalScalar.d.ts.map +1 -1
  141. package/dist/types/boolean-logic/branching/IfOr.d.ts.map +1 -1
  142. package/dist/types/boolean-logic/branching/IfPositive.d.ts +10 -0
  143. package/dist/types/boolean-logic/branching/IfPositive.d.ts.map +1 -0
  144. package/dist/types/boolean-logic/branching/IfReadonlyArray.d.ts.map +1 -1
  145. package/dist/types/boolean-logic/branching/IfReadonlyObject.d.ts.map +1 -1
  146. package/dist/types/boolean-logic/branching/IfRef.d.ts.map +1 -1
  147. package/dist/types/boolean-logic/branching/IfReturns.d.ts.map +1 -1
  148. package/dist/types/boolean-logic/branching/IfScalar.d.ts.map +1 -1
  149. package/dist/types/boolean-logic/branching/IfSingularNoun.d.ts.map +1 -1
  150. package/dist/types/boolean-logic/branching/IfSomeEqual.d.ts.map +1 -1
  151. package/dist/types/boolean-logic/branching/IfSomeExtend.d.ts.map +1 -1
  152. package/dist/types/boolean-logic/branching/IfSomeTruthy.d.ts +1 -2
  153. package/dist/types/boolean-logic/branching/IfSomeTruthy.d.ts.map +1 -1
  154. package/dist/types/boolean-logic/branching/IfStartsWith.d.ts.map +1 -1
  155. package/dist/types/boolean-logic/branching/IfString.d.ts.map +1 -1
  156. package/dist/types/boolean-logic/branching/IfStringLiteral.d.ts +13 -2
  157. package/dist/types/boolean-logic/branching/IfStringLiteral.d.ts.map +1 -1
  158. package/dist/types/boolean-logic/branching/IfSymbol.d.ts.map +1 -1
  159. package/dist/types/boolean-logic/branching/IfTrue.d.ts.map +1 -1
  160. package/dist/types/boolean-logic/branching/IfTruthy.d.ts.map +1 -1
  161. package/dist/types/boolean-logic/branching/IfTuple.d.ts.map +1 -1
  162. package/dist/types/boolean-logic/branching/IfUndefined.d.ts.map +1 -1
  163. package/dist/types/boolean-logic/branching/IfUnion.d.ts.map +1 -1
  164. package/dist/types/boolean-logic/branching/IfValidDotPath.d.ts.map +1 -1
  165. package/dist/types/boolean-logic/branching/IfWide.d.ts.map +1 -1
  166. package/dist/types/boolean-logic/branching/index.d.ts +3 -0
  167. package/dist/types/boolean-logic/branching/index.d.ts.map +1 -1
  168. package/dist/types/boolean-logic/branching/index.js +69 -66
  169. package/dist/types/boolean-logic/combinators/And.d.ts.map +1 -1
  170. package/dist/types/boolean-logic/combinators/Not.d.ts +7 -6
  171. package/dist/types/boolean-logic/combinators/Not.d.ts.map +1 -1
  172. package/dist/types/boolean-logic/combinators/Or.d.ts.map +1 -1
  173. package/dist/types/boolean-logic/combinators/index.js +3 -3
  174. package/dist/types/boolean-logic/index.js +5 -5
  175. package/dist/types/boolean-logic/narrowing/index.d.ts +0 -1
  176. package/dist/types/boolean-logic/narrowing/index.d.ts.map +1 -1
  177. package/dist/types/boolean-logic/narrowing/index.js +1 -2
  178. package/dist/types/boolean-logic/operators/AllExtend.d.ts +1 -2
  179. package/dist/types/boolean-logic/operators/AllExtend.d.ts.map +1 -1
  180. package/dist/types/boolean-logic/operators/Contains.d.ts.map +1 -1
  181. package/dist/types/boolean-logic/operators/ContainsAll.d.ts.map +1 -1
  182. package/dist/types/boolean-logic/operators/EndsWith.d.ts.map +1 -1
  183. package/dist/types/boolean-logic/operators/ExtendsAll.d.ts.map +1 -1
  184. package/dist/types/boolean-logic/operators/ExtendsNone.d.ts.map +1 -1
  185. package/dist/types/boolean-logic/operators/ExtendsSome.d.ts.map +1 -1
  186. package/dist/types/boolean-logic/operators/HasCharacters.d.ts.map +1 -1
  187. package/dist/types/boolean-logic/operators/HasParameters.d.ts.map +1 -1
  188. package/dist/types/boolean-logic/operators/HasSameValues.d.ts.map +1 -1
  189. package/dist/types/boolean-logic/operators/HasUnionType.d.ts.map +1 -1
  190. package/dist/types/boolean-logic/operators/Includes.d.ts.map +1 -1
  191. package/dist/types/boolean-logic/operators/IsAllLowercase.d.ts.map +1 -1
  192. package/dist/types/boolean-logic/operators/IsAny.d.ts.map +1 -1
  193. package/dist/types/boolean-logic/operators/IsAnyEqual.d.ts.map +1 -1
  194. package/dist/types/boolean-logic/operators/IsBooleanLiteral.d.ts.map +1 -1
  195. package/dist/types/boolean-logic/operators/IsChar.d.ts.map +1 -1
  196. package/dist/types/boolean-logic/operators/IsContainer.d.ts.map +1 -1
  197. package/dist/types/boolean-logic/operators/IsDefined.d.ts +7 -0
  198. package/dist/types/boolean-logic/operators/IsDefined.d.ts.map +1 -0
  199. package/dist/types/boolean-logic/operators/IsDefined.js +1 -0
  200. package/dist/types/boolean-logic/operators/IsDotPath.d.ts.map +1 -1
  201. package/dist/types/boolean-logic/operators/IsEmptyObject.d.ts.map +1 -1
  202. package/dist/types/boolean-logic/operators/IsErrorCondition.d.ts.map +1 -1
  203. package/dist/types/boolean-logic/operators/IsFalse.d.ts.map +1 -1
  204. package/dist/types/boolean-logic/operators/IsFalsy.d.ts.map +1 -1
  205. package/dist/types/boolean-logic/operators/IsFnWithParams.d.ts.map +1 -1
  206. package/dist/types/boolean-logic/operators/IsFunction.d.ts.map +1 -1
  207. package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts.map +1 -1
  208. package/dist/types/boolean-logic/operators/IsLength.d.ts +1 -2
  209. package/dist/types/boolean-logic/operators/IsLength.d.ts.map +1 -1
  210. package/dist/types/boolean-logic/operators/IsLiteral.d.ts.map +1 -1
  211. package/dist/types/boolean-logic/operators/IsMaybeTrue.d.ts.map +1 -1
  212. package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts +5 -4
  213. package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts.map +1 -1
  214. package/dist/types/boolean-logic/operators/IsNotEqual.d.ts.map +1 -1
  215. package/dist/types/boolean-logic/operators/IsNumericLiteral.d.ts.map +1 -1
  216. package/dist/types/boolean-logic/operators/IsObject.d.ts.map +1 -1
  217. package/dist/types/boolean-logic/operators/IsObjectLiteral.d.ts.map +1 -1
  218. package/dist/types/boolean-logic/operators/IsOptionalScalar.d.ts +2 -2
  219. package/dist/types/boolean-logic/operators/IsOptionalScalar.d.ts.map +1 -1
  220. package/dist/types/boolean-logic/operators/IsRef.d.ts.map +1 -1
  221. package/dist/types/boolean-logic/operators/IsScalar.d.ts +7 -3
  222. package/dist/types/boolean-logic/operators/IsScalar.d.ts.map +1 -1
  223. package/dist/types/boolean-logic/operators/IsSingularNoun.d.ts.map +1 -1
  224. package/dist/types/boolean-logic/operators/IsStringLiteral.d.ts.map +1 -1
  225. package/dist/types/boolean-logic/operators/IsTrue.d.ts.map +1 -1
  226. package/dist/types/boolean-logic/operators/IsTruthy.d.ts.map +1 -1
  227. package/dist/types/boolean-logic/operators/IsTuple.d.ts +2 -2
  228. package/dist/types/boolean-logic/operators/IsTuple.d.ts.map +1 -1
  229. package/dist/types/boolean-logic/operators/IsUnion.d.ts +1 -1
  230. package/dist/types/boolean-logic/operators/IsUnion.d.ts.map +1 -1
  231. package/dist/types/boolean-logic/operators/IsValidDotPath.d.ts.map +1 -1
  232. package/dist/types/boolean-logic/operators/IsValidKey.d.ts.map +1 -1
  233. package/dist/types/boolean-logic/operators/IsWideType.d.ts.map +1 -1
  234. package/dist/types/boolean-logic/operators/NarrowlyContains.d.ts +1 -2
  235. package/dist/types/boolean-logic/operators/NarrowlyContains.d.ts.map +1 -1
  236. package/dist/types/boolean-logic/operators/NotCharacters.d.ts.map +1 -1
  237. package/dist/types/boolean-logic/operators/NotEqual.d.ts.map +1 -1
  238. package/dist/types/boolean-logic/operators/NotLength.d.ts.map +1 -1
  239. package/dist/types/boolean-logic/operators/Returns.d.ts.map +1 -1
  240. package/dist/types/boolean-logic/operators/ReturnsBoolean.d.ts.map +1 -1
  241. package/dist/types/boolean-logic/operators/ReturnsFalse.d.ts.map +1 -1
  242. package/dist/types/boolean-logic/operators/ReturnsTrue.d.ts.map +1 -1
  243. package/dist/types/boolean-logic/operators/SomeEqual.d.ts +1 -2
  244. package/dist/types/boolean-logic/operators/SomeEqual.d.ts.map +1 -1
  245. package/dist/types/boolean-logic/operators/SomeExtend.d.ts +2 -3
  246. package/dist/types/boolean-logic/operators/SomeExtend.d.ts.map +1 -1
  247. package/dist/types/boolean-logic/operators/StartsWith.d.ts.map +1 -1
  248. package/dist/types/boolean-logic/operators/index.d.ts +1 -0
  249. package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
  250. package/dist/types/boolean-logic/operators/index.js +75 -74
  251. package/dist/types/classes/index.js +1 -1
  252. package/dist/types/containers/WithKey.d.ts +16 -6
  253. package/dist/types/containers/WithKey.d.ts.map +1 -1
  254. package/dist/types/containers/index.js +3 -3
  255. package/dist/types/dictionary/AddKeyValue.d.ts.map +1 -1
  256. package/dist/types/dictionary/CombinedKeys.d.ts +19 -0
  257. package/dist/types/dictionary/CombinedKeys.d.ts.map +1 -0
  258. package/dist/types/dictionary/CombinedKeys.js +1 -0
  259. package/dist/types/dictionary/DictChangeValue.d.ts.map +1 -1
  260. package/dist/types/dictionary/ExplicitKeys.d.ts.map +1 -1
  261. package/dist/types/dictionary/FromMaybeRef.d.ts.map +1 -1
  262. package/dist/types/dictionary/Keys.d.ts +1 -1
  263. package/dist/types/dictionary/Keys.d.ts.map +1 -1
  264. package/dist/types/dictionary/KeysEqualValue.d.ts.map +1 -1
  265. package/dist/types/dictionary/KeysNotEqualValue.d.ts.map +1 -1
  266. package/dist/types/dictionary/KeysWithValue.d.ts +2 -2
  267. package/dist/types/dictionary/KeysWithValue.d.ts.map +1 -1
  268. package/dist/types/dictionary/KeysWithoutValue.d.ts.map +1 -1
  269. package/dist/types/dictionary/MapTo.d.ts.map +1 -1
  270. package/dist/types/dictionary/MaybeRef.d.ts.map +1 -1
  271. package/dist/types/dictionary/MutableProps.d.ts.map +1 -1
  272. package/dist/types/dictionary/NonStringKeys.d.ts +1 -1
  273. package/dist/types/dictionary/NonStringKeys.d.ts.map +1 -1
  274. package/dist/types/dictionary/OptionalProps.d.ts.map +1 -1
  275. package/dist/types/dictionary/PrivateKeys.d.ts.map +1 -1
  276. package/dist/types/dictionary/ReadonlyProps.d.ts.map +1 -1
  277. package/dist/types/dictionary/RemoveIndexKeys.d.ts +2 -2
  278. package/dist/types/dictionary/RemoveIndexKeys.d.ts.map +1 -1
  279. package/dist/types/dictionary/RequireProps.d.ts.map +1 -1
  280. package/dist/types/dictionary/RequiredKeys.d.ts.map +1 -1
  281. package/dist/types/dictionary/RequiredProps.d.ts.map +1 -1
  282. package/dist/types/dictionary/SharedKeys.d.ts.map +1 -1
  283. package/dist/types/dictionary/SimplifyObject.d.ts.map +1 -1
  284. package/dist/types/dictionary/UpsertKeyValue.d.ts.map +1 -1
  285. package/dist/types/dictionary/ValidKey.d.ts.map +1 -1
  286. package/dist/types/dictionary/WithKeys.d.ts.map +1 -1
  287. package/dist/types/dictionary/WithNumericKeys.d.ts.map +1 -1
  288. package/dist/types/dictionary/WithStringKeys.d.ts.map +1 -1
  289. package/dist/types/dictionary/WithValue.d.ts +4 -2
  290. package/dist/types/dictionary/WithValue.d.ts.map +1 -1
  291. package/dist/types/dictionary/WithoutKeys.d.ts.map +1 -1
  292. package/dist/types/dictionary/WithoutValue.d.ts.map +1 -1
  293. package/dist/types/dictionary/index.d.ts +1 -0
  294. package/dist/types/dictionary/index.d.ts.map +1 -1
  295. package/dist/types/dictionary/index.js +41 -40
  296. package/dist/types/errors/ErrorConditionHandler.d.ts.map +1 -1
  297. package/dist/types/errors/ReportError.d.ts.map +1 -1
  298. package/dist/types/errors/index.js +4 -4
  299. package/dist/types/functional/Left.d.ts.map +1 -1
  300. package/dist/types/functional/Right.d.ts.map +1 -1
  301. package/dist/types/functional/index.js +2 -2
  302. package/dist/types/functions/AsFnMeta.d.ts.map +1 -1
  303. package/dist/types/functions/FnMeta.d.ts.map +1 -1
  304. package/dist/types/functions/FnProps.d.ts.map +1 -1
  305. package/dist/types/functions/PromiseAll.d.ts.map +1 -1
  306. package/dist/types/functions/RemoveFnProps.d.ts.map +1 -1
  307. package/dist/types/functions/ToFn.d.ts.map +1 -1
  308. package/dist/types/functions/TypeGuard.d.ts.map +1 -1
  309. package/dist/types/functions/index.js +9 -9
  310. package/dist/types/index.js +17 -17
  311. package/dist/types/kv/KeyValue.d.ts.map +1 -1
  312. package/dist/types/kv/index.js +4 -4
  313. package/dist/types/lists/AfterFirst.d.ts.map +1 -1
  314. package/dist/types/lists/ArrayElementType.d.ts +1 -2
  315. package/dist/types/lists/ArrayElementType.d.ts.map +1 -1
  316. package/dist/types/lists/AsArray.d.ts +0 -2
  317. package/dist/types/lists/AsArray.d.ts.map +1 -1
  318. package/dist/types/lists/AsTuple.d.ts +12 -0
  319. package/dist/types/lists/AsTuple.d.ts.map +1 -0
  320. package/dist/types/lists/AsTuple.js +1 -0
  321. package/dist/types/lists/BeforeLast.d.ts.map +1 -1
  322. package/dist/types/lists/ConvertAndMap.d.ts.map +1 -1
  323. package/dist/types/lists/ConvertSet.d.ts.map +1 -1
  324. package/dist/types/lists/Filter.d.ts.map +1 -1
  325. package/dist/types/lists/Find.d.ts.map +1 -1
  326. package/dist/types/lists/First.d.ts +1 -2
  327. package/dist/types/lists/First.d.ts.map +1 -1
  328. package/dist/types/lists/FirstOrElse.d.ts.map +1 -1
  329. package/dist/types/lists/Flatten.d.ts +1 -2
  330. package/dist/types/lists/Flatten.d.ts.map +1 -1
  331. package/dist/types/lists/GetEach.d.ts.map +1 -1
  332. package/dist/types/lists/IndexOf.d.ts.map +1 -1
  333. package/dist/types/lists/IntersectAll.d.ts.map +1 -1
  334. package/dist/types/lists/Last.d.ts.map +1 -1
  335. package/dist/types/lists/Length.d.ts +2 -2
  336. package/dist/types/lists/Length.d.ts.map +1 -1
  337. package/dist/types/lists/NumericKeys.d.ts.map +1 -1
  338. package/dist/types/lists/Pop.d.ts.map +1 -1
  339. package/dist/types/lists/ReplaceLast.d.ts.map +1 -1
  340. package/dist/types/lists/Retain.d.ts.map +1 -1
  341. package/dist/types/lists/ReturnTypes.d.ts.map +1 -1
  342. package/dist/types/lists/Reverse.d.ts.map +1 -1
  343. package/dist/types/lists/Shift.d.ts.map +1 -1
  344. package/dist/types/lists/TruthyReturns.d.ts.map +1 -1
  345. package/dist/types/lists/UnionFromProp.d.ts.map +1 -1
  346. package/dist/types/lists/extractors/2nd-order/RemoveEquals.d.ts.map +1 -1
  347. package/dist/types/lists/extractors/2nd-order/RemoveErrors.d.ts.map +1 -1
  348. package/dist/types/lists/extractors/2nd-order/RemoveExtends.d.ts.map +1 -1
  349. package/dist/types/lists/extractors/2nd-order/RemoveNever.d.ts.map +1 -1
  350. package/dist/types/lists/extractors/2nd-order/RemoveNotExtends.d.ts.map +1 -1
  351. package/dist/types/lists/extractors/2nd-order/RemoveStrings.d.ts.map +1 -1
  352. package/dist/types/lists/extractors/2nd-order/RetainEquals.d.ts.map +1 -1
  353. package/dist/types/lists/extractors/2nd-order/RetainExtends.d.ts.map +1 -1
  354. package/dist/types/lists/extractors/2nd-order/RetainNotExtends.d.ts.map +1 -1
  355. package/dist/types/lists/extractors/2nd-order/RetainStrings.d.ts.map +1 -1
  356. package/dist/types/lists/extractors/2nd-order/index.js +10 -10
  357. package/dist/types/lists/extractors/RemoveFromList.d.ts.map +1 -1
  358. package/dist/types/lists/extractors/RetainFromList.d.ts.map +1 -1
  359. package/dist/types/lists/extractors/index.js +4 -4
  360. package/dist/types/lists/index.d.ts +1 -0
  361. package/dist/types/lists/index.d.ts.map +1 -1
  362. package/dist/types/lists/index.js +33 -32
  363. package/dist/types/literals/Box.d.ts.map +1 -1
  364. package/dist/types/literals/Color.d.ts.map +1 -1
  365. package/dist/types/literals/ContainerBlockKey.d.ts.map +1 -1
  366. package/dist/types/literals/ContainerKeyGuarantee.d.ts.map +1 -1
  367. package/dist/types/literals/ExpandRecursively.d.ts.map +1 -1
  368. package/dist/types/literals/index.js +10 -10
  369. package/dist/types/numeric-literals/Abs.d.ts +2 -2
  370. package/dist/types/numeric-literals/Abs.d.ts.map +1 -1
  371. package/dist/types/numeric-literals/AbsMaybe.d.ts.map +1 -1
  372. package/dist/types/numeric-literals/Add.d.ts +77 -0
  373. package/dist/types/numeric-literals/Add.d.ts.map +1 -0
  374. package/dist/types/numeric-literals/Add.js +1 -0
  375. package/dist/types/numeric-literals/AsNumberWhenPossible.d.ts.map +1 -1
  376. package/dist/types/numeric-literals/Decrement.d.ts.map +1 -1
  377. package/dist/types/numeric-literals/Digit.d.ts.map +1 -1
  378. package/dist/types/numeric-literals/DigitNonZero.d.ts.map +1 -1
  379. package/dist/types/numeric-literals/Digitize.d.ts.map +1 -1
  380. package/dist/types/numeric-literals/Float.d.ts.map +1 -1
  381. package/dist/types/numeric-literals/Increment.d.ts.map +1 -1
  382. package/dist/types/numeric-literals/Negative.d.ts.map +1 -1
  383. package/dist/types/numeric-literals/NextDigit.d.ts.map +1 -1
  384. package/dist/types/numeric-literals/NumberLike.d.ts +8 -0
  385. package/dist/types/numeric-literals/NumberLike.d.ts.map +1 -0
  386. package/dist/types/numeric-literals/NumberLike.js +1 -0
  387. package/dist/types/numeric-literals/NumericRange.d.ts +1 -1
  388. package/dist/types/numeric-literals/NumericRange.d.ts.map +1 -1
  389. package/dist/types/numeric-literals/PriorDigit.d.ts.map +1 -1
  390. package/dist/types/numeric-literals/Subtract.d.ts +3 -1
  391. package/dist/types/numeric-literals/Subtract.d.ts.map +1 -1
  392. package/dist/types/numeric-literals/ToInteger.d.ts.map +1 -1
  393. package/dist/types/numeric-literals/index.d.ts +14 -11
  394. package/dist/types/numeric-literals/index.d.ts.map +1 -1
  395. package/dist/types/numeric-literals/index.js +23 -19
  396. package/dist/types/runtime-types/DescribeType.d.ts.map +1 -1
  397. package/dist/types/runtime-types/FromLiteralTokens.d.ts.map +1 -1
  398. package/dist/types/runtime-types/LiteralType.d.ts.map +1 -1
  399. package/dist/types/runtime-types/StringLiteralToken.d.ts.map +1 -1
  400. package/dist/types/runtime-types/TokenizeStringLiteral.d.ts.map +1 -1
  401. package/dist/types/runtime-types/Type.d.ts.map +1 -1
  402. package/dist/types/runtime-types/TypeOf.d.ts.map +1 -1
  403. package/dist/types/runtime-types/TypeToken.d.ts.map +1 -1
  404. package/dist/types/runtime-types/TypeTuple.d.ts.map +1 -1
  405. package/dist/types/runtime-types/api/boolean.d.ts.map +1 -1
  406. package/dist/types/runtime-types/api/number.d.ts.map +1 -1
  407. package/dist/types/runtime-types/api/string.d.ts.map +1 -1
  408. package/dist/types/runtime-types/api/stringLiteral.d.ts.map +1 -1
  409. package/dist/types/runtime-types/index.js +10 -10
  410. package/dist/types/sets/AllKeys.d.ts.map +1 -1
  411. package/dist/types/sets/Dedupe.d.ts.map +1 -1
  412. package/dist/types/sets/IntersectingKeys.d.ts.map +1 -1
  413. package/dist/types/sets/Intersection.d.ts.map +1 -1
  414. package/dist/types/sets/Relate.d.ts.map +1 -1
  415. package/dist/types/sets/SetCandidate.d.ts.map +1 -1
  416. package/dist/types/sets/SetRemoval.d.ts.map +1 -1
  417. package/dist/types/sets/Unique.d.ts +12 -1
  418. package/dist/types/sets/Unique.d.ts.map +1 -1
  419. package/dist/types/sets/UniqueKeys.d.ts.map +1 -1
  420. package/dist/types/sets/UniqueKeysUnion.d.ts.map +1 -1
  421. package/dist/types/sets/UniqueKv.d.ts.map +1 -1
  422. package/dist/types/sets/index.js +11 -11
  423. package/dist/types/string-literals/Cardinality.d.ts +2 -2
  424. package/dist/types/string-literals/Cardinality.d.ts.map +1 -1
  425. package/dist/types/string-literals/Chars.d.ts +2 -2
  426. package/dist/types/string-literals/Chars.d.ts.map +1 -1
  427. package/dist/types/string-literals/Concat.d.ts.map +1 -1
  428. package/dist/types/string-literals/Date.d.ts.map +1 -1
  429. package/dist/types/string-literals/DateTime.d.ts.map +1 -1
  430. package/dist/types/string-literals/DropChars.d.ts.map +1 -1
  431. package/dist/types/string-literals/EmptyStringOr.d.ts.map +1 -1
  432. package/dist/types/string-literals/EnsureLeading.d.ts.map +1 -1
  433. package/dist/types/string-literals/EnsureLeadingEvery.d.ts.map +1 -1
  434. package/dist/types/string-literals/EnsureTrailing.d.ts.map +1 -1
  435. package/dist/types/string-literals/FirstChar.d.ts.map +1 -1
  436. package/dist/types/string-literals/HasUppercase.d.ts.map +1 -1
  437. package/dist/types/string-literals/Join.d.ts.map +1 -1
  438. package/dist/types/string-literals/LastChar.d.ts.map +1 -1
  439. package/dist/types/string-literals/PathJoin.d.ts.map +1 -1
  440. package/dist/types/string-literals/Pluralize.d.ts.map +1 -1
  441. package/dist/types/string-literals/Prepend.d.ts.map +1 -1
  442. package/dist/types/string-literals/PrependAll.d.ts.map +1 -1
  443. package/dist/types/string-literals/RemainingChars.d.ts.map +1 -1
  444. package/dist/types/string-literals/Repeat.d.ts.map +1 -1
  445. package/dist/types/string-literals/RetainAfter.d.ts +7 -4
  446. package/dist/types/string-literals/RetainAfter.d.ts.map +1 -1
  447. package/dist/types/string-literals/Split.d.ts +10 -7
  448. package/dist/types/string-literals/Split.d.ts.map +1 -1
  449. package/dist/types/string-literals/StrLen.d.ts.map +1 -1
  450. package/dist/types/string-literals/StripAfter.d.ts +2 -2
  451. package/dist/types/string-literals/StripAfter.d.ts.map +1 -1
  452. package/dist/types/string-literals/StripBefore.d.ts +18 -0
  453. package/dist/types/string-literals/StripBefore.d.ts.map +1 -0
  454. package/dist/types/string-literals/StripBefore.js +1 -0
  455. package/dist/types/string-literals/StripLeading.d.ts.map +1 -1
  456. package/dist/types/string-literals/StripTrailing.d.ts.map +1 -1
  457. package/dist/types/string-literals/Suggest.d.ts.map +1 -1
  458. package/dist/types/string-literals/Time.d.ts.map +1 -1
  459. package/dist/types/string-literals/Truncate.d.ts.map +1 -1
  460. package/dist/types/string-literals/casing/AllCaps.d.ts +3 -3
  461. package/dist/types/string-literals/casing/AllCaps.d.ts.map +1 -1
  462. package/dist/types/string-literals/casing/CamelCase.d.ts.map +1 -1
  463. package/dist/types/string-literals/casing/CapFirstAlpha.d.ts.map +1 -1
  464. package/dist/types/string-literals/casing/DashUppercase.d.ts.map +1 -1
  465. package/dist/types/string-literals/casing/KebabCase.d.ts.map +1 -1
  466. package/dist/types/string-literals/casing/LowerAllCaps.d.ts.map +1 -1
  467. package/dist/types/string-literals/casing/PascalCase.d.ts.map +1 -1
  468. package/dist/types/string-literals/casing/RaiseAllLowercase.d.ts.map +1 -1
  469. package/dist/types/string-literals/casing/SnakeCase.d.ts.map +1 -1
  470. package/dist/types/string-literals/casing/index.js +12 -12
  471. package/dist/types/string-literals/character-sets/Alpha.d.ts.map +1 -1
  472. package/dist/types/string-literals/character-sets/AlphaChar.d.ts.map +1 -1
  473. package/dist/types/string-literals/character-sets/AlphaNumeric.d.ts.map +1 -1
  474. package/dist/types/string-literals/character-sets/CSV.d.ts.map +1 -1
  475. package/dist/types/string-literals/character-sets/Consonants.d.ts.map +1 -1
  476. package/dist/types/string-literals/character-sets/DomainName.d.ts.map +1 -1
  477. package/dist/types/string-literals/character-sets/DotPath.d.ts +1 -1
  478. package/dist/types/string-literals/character-sets/DotPath.d.ts.map +1 -1
  479. package/dist/types/string-literals/character-sets/DotPathFor.d.ts.map +1 -1
  480. package/dist/types/string-literals/character-sets/Hexadecimal.d.ts.map +1 -1
  481. package/dist/types/string-literals/character-sets/IpAddress.d.ts.map +1 -1
  482. package/dist/types/string-literals/character-sets/LowerAlpha.d.ts.map +1 -1
  483. package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts.map +1 -1
  484. package/dist/types/string-literals/character-sets/NonAlpha.d.ts.map +1 -1
  485. package/dist/types/string-literals/character-sets/NumericChar.d.ts.map +1 -1
  486. package/dist/types/string-literals/character-sets/SingularNoun.d.ts.map +1 -1
  487. package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts.map +1 -1
  488. package/dist/types/string-literals/character-sets/ValueAtDotPath.d.ts +1 -1
  489. package/dist/types/string-literals/character-sets/ValueAtDotPath.d.ts.map +1 -1
  490. package/dist/types/string-literals/character-sets/brackets/index.js +3 -3
  491. package/dist/types/string-literals/character-sets/index.js +26 -26
  492. package/dist/types/string-literals/character-sets/quotation-marks/index.js +6 -6
  493. package/dist/types/string-literals/index.d.ts +1 -2
  494. package/dist/types/string-literals/index.d.ts.map +1 -1
  495. package/dist/types/string-literals/index.js +36 -37
  496. package/dist/types/string-literals/options/index.js +2 -2
  497. package/dist/types/tsconfig.tsbuildinfo +1 -1
  498. package/dist/types/tuples/FirstKey.d.ts.map +1 -1
  499. package/dist/types/tuples/FirstKeyValue.d.ts +1 -1
  500. package/dist/types/tuples/FirstKeyValue.d.ts.map +1 -1
  501. package/dist/types/tuples/FromDictArray.d.ts.map +1 -1
  502. package/dist/types/tuples/LastOfEach.d.ts +14 -0
  503. package/dist/types/tuples/LastOfEach.d.ts.map +1 -0
  504. package/dist/types/tuples/LastOfEach.js +1 -0
  505. package/dist/types/tuples/index.js +7 -7
  506. package/dist/types/type-conversion/ArrConcat.d.ts.map +1 -1
  507. package/dist/types/type-conversion/AsBoolean.d.ts +7 -0
  508. package/dist/types/type-conversion/AsBoolean.d.ts.map +1 -0
  509. package/dist/types/type-conversion/AsBoolean.js +1 -0
  510. package/dist/types/type-conversion/AsFunction.d.ts.map +1 -1
  511. package/dist/types/type-conversion/AsNumber.d.ts +10 -3
  512. package/dist/types/type-conversion/AsNumber.d.ts.map +1 -1
  513. package/dist/types/type-conversion/AsPropertyKey.d.ts +13 -0
  514. package/dist/types/type-conversion/AsPropertyKey.d.ts.map +1 -0
  515. package/dist/types/type-conversion/AsPropertyKey.js +1 -0
  516. package/dist/types/type-conversion/AsString.d.ts +5 -1
  517. package/dist/types/type-conversion/AsString.d.ts.map +1 -1
  518. package/dist/types/type-conversion/IntersectWithAll.d.ts.map +1 -1
  519. package/dist/types/type-conversion/MergeObjects.d.ts +3 -6
  520. package/dist/types/type-conversion/MergeObjects.d.ts.map +1 -1
  521. package/dist/types/type-conversion/ObjValues.d.ts +10 -9
  522. package/dist/types/type-conversion/ObjValues.d.ts.map +1 -1
  523. package/dist/types/type-conversion/ObjectToKvDict.d.ts +7 -10
  524. package/dist/types/type-conversion/ObjectToKvDict.d.ts.map +1 -1
  525. package/dist/types/type-conversion/ReplaceAll.d.ts +1 -1
  526. package/dist/types/type-conversion/ReplaceAll.d.ts.map +1 -1
  527. package/dist/types/type-conversion/ReturnValues.d.ts.map +1 -1
  528. package/dist/types/type-conversion/ToBoolean.d.ts.map +1 -1
  529. package/dist/types/type-conversion/ToContainer.d.ts.map +1 -1
  530. package/dist/types/type-conversion/ToNumber.d.ts.map +1 -1
  531. package/dist/types/type-conversion/ToString.d.ts.map +1 -1
  532. package/dist/types/type-conversion/Trim.d.ts.map +1 -1
  533. package/dist/types/type-conversion/TrimLeft.d.ts.map +1 -1
  534. package/dist/types/type-conversion/TrimRight.d.ts.map +1 -1
  535. package/dist/types/type-conversion/TupleToUnion.d.ts.map +1 -1
  536. package/dist/types/type-conversion/UnionToTuple.d.ts +10 -6
  537. package/dist/types/type-conversion/UnionToTuple.d.ts.map +1 -1
  538. package/dist/types/type-conversion/UnionToTuple.js +0 -1
  539. package/dist/types/type-conversion/ValueOrReturnValue.d.ts.map +1 -1
  540. package/dist/types/type-conversion/Widen.d.ts.map +1 -1
  541. package/dist/types/type-conversion/WidenProps.d.ts.map +1 -1
  542. package/dist/types/type-conversion/WithDefault.d.ts.map +1 -1
  543. package/dist/types/type-conversion/form-fields.d.ts.map +1 -1
  544. package/dist/types/type-conversion/index.d.ts +2 -0
  545. package/dist/types/type-conversion/index.d.ts.map +1 -1
  546. package/dist/types/type-conversion/index.js +40 -38
  547. package/package.json +6 -5
  548. package/dist/runtime/dictionary/strArrayToDict.d.ts +0 -7
  549. package/dist/runtime/dictionary/strArrayToDict.d.ts.map +0 -1
  550. package/dist/runtime/dictionary/strArrayToDict.js +0 -10
  551. package/dist/runtime/dictionary/withValue.d.ts +0 -26
  552. package/dist/runtime/dictionary/withValue.d.ts.map +0 -1
  553. package/dist/runtime/dictionary/withValue.js +0 -21
  554. package/dist/runtime/runtime-types/extractTypeToken.d.ts +0 -2
  555. package/dist/runtime/runtime-types/extractTypeToken.d.ts.map +0 -1
  556. package/dist/runtime/runtime-types/extractTypeToken.js +0 -11
  557. package/dist/runtime/type-guards/isSameType.d.ts +0 -10
  558. package/dist/runtime/type-guards/isSameType.d.ts.map +0 -1
  559. package/dist/runtime/type-guards/isSameType.js +0 -64
  560. package/dist/types/boolean-logic/combinators/FirstIdx.d.ts +0 -11
  561. package/dist/types/boolean-logic/combinators/FirstIdx.d.ts.map +0 -1
  562. package/dist/types/boolean-logic/narrowing/AsPropertyKey.d.ts +0 -21
  563. package/dist/types/boolean-logic/narrowing/AsPropertyKey.d.ts.map +0 -1
  564. package/dist/types/string-literals/CaseInsensitive.d.ts +0 -30
  565. package/dist/types/string-literals/CaseInsensitive.d.ts.map +0 -1
  566. package/dist/types/string-literals/Interpolate.d.ts +0 -15
  567. package/dist/types/string-literals/Interpolate.d.ts.map +0 -1
  568. /package/dist/types/boolean-logic/{combinators/FirstIdx.js → branching/IfLessThan.js} +0 -0
  569. /package/dist/types/boolean-logic/{narrowing/AsPropertyKey.js → branching/IfNegativeNumber.js} +0 -0
  570. /package/dist/types/{string-literals/CaseInsensitive.js → boolean-logic/branching/IfNotTuple.js} +0 -0
  571. /package/dist/types/{string-literals/Interpolate.js → boolean-logic/branching/IfPositive.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { Never } from "../../constants";
1
+ import { Never } from "../../constants/index.js";
2
2
  const def_if = (v) => v;
3
3
  const def_else = () => Never;
4
4
  export function ifChar(ch, callback_if_match = def_if, callback_not_match = def_else) {
@@ -1,21 +1,21 @@
1
- export * from "./ifArray";
2
- export * from "./ifBoolean";
3
- export * from "./ifNumber";
4
- export * from "./ifString";
5
- export * from "./ifNotNull";
6
- export * from "./ifSameType";
7
- export * from "./ifFunction";
8
- export * from "./ifContainer";
9
- export * from "./ifHasKey";
10
- export * from "./ifLength";
11
- export * from "./ifScalar";
12
- export * from "./ifNull";
13
- export * from "./ifObject";
14
- export * from "./ifTrue";
15
- export * from "./ifFalse";
16
- export * from "./ifChar";
17
- export * from "./ifRef";
1
+ export * from "./ifArray.js";
2
+ export * from "./ifBoolean.js";
3
+ export * from "./ifNumber.js";
4
+ export * from "./ifString.js";
5
+ export * from "./ifNotNull.js";
6
+ export * from "./ifSameType.js";
7
+ export * from "./ifFunction.js";
8
+ export * from "./ifContainer.js";
9
+ export * from "./ifHasKey.js";
10
+ export * from "./ifLength.js";
11
+ export * from "./ifScalar.js";
12
+ export * from "./ifNull.js";
13
+ export * from "./ifObject.js";
14
+ export * from "./ifTrue.js";
15
+ export * from "./ifFalse.js";
16
+ export * from "./ifChar.js";
17
+ export * from "./ifRef.js";
18
18
  // export * from "./ifStartsWith";
19
- export * from "./ifUndefined";
20
- export * from "./ifArrayPartial";
19
+ export * from "./ifUndefined.js";
20
+ export * from "./ifArrayPartial.js";
21
21
  // export * from "./ifTypeOf";
@@ -1,3 +1,3 @@
1
- export * from "./and";
2
- export * from "./or";
3
- export * from "./filter";
1
+ export * from "./and.js";
2
+ export * from "./or.js";
3
+ export * from "./filter.js";
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,GAAG,EACH,OAAO,EAIR,oBAAkB;AACnB,OAAO,EAEL,cAAc,EACd,UAAU,EAEX,wBAAsB;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
- import { NO_DEFAULT_VALUE, NOT_DEFINED } from "../../constants";
2
- import { hasDefaultValue, isTruthy, isRef, hasIndexOf, isSpecificConstant, createErrorCondition, split, isContainer, } from "..";
1
+ import { NO_DEFAULT_VALUE, NOT_DEFINED } from "../../constants/index.js";
2
+ import { hasDefaultValue, isTruthy, isRef, hasIndexOf, isSpecificConstant, createErrorCondition, isContainer, } from "..";
3
3
  /** updates based on whether segment is a Ref or not */
4
4
  function updatedDotPath(value, dotpath, segment) {
5
5
  return isRef(value)
@@ -12,7 +12,7 @@ function updatedDotPath(value, dotpath, segment) {
12
12
  function getValue(value, dotPath, defaultValue, handleInvalid, fullDotPath) {
13
13
  /** the remaining segments that need processing */
14
14
  const pathSegments = isTruthy(dotPath)
15
- ? split(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"}
@@ -3,20 +3,18 @@
3
3
  // index last changed at: 8th Aug, 2022, 09:51 AM ( GMT-7 )
4
4
  // hash-code: b0051c37
5
5
  // file exports
6
- export * from "./arrayToKeyLookup";
7
- export * from "./entries";
8
- export * from "./get";
9
- export * from "./keysOf";
6
+ export * from "./arrayToKeyLookup.js";
7
+ export * from "./entries.js";
8
+ export * from "./get.js";
9
+ export * from "./keysOf.js";
10
10
  // export * from "./mapTo";
11
- export * from "./mapValues";
12
- export * from "./omit";
13
- export * from "./retain";
14
- export * from "./sharedKeys";
15
- export * from "./strArrayToDict";
16
- export * from "./withKeys";
17
- export * from "./withoutKeys";
18
- export * from "./withValue";
19
- export * from "./withoutValue";
11
+ export * from "./mapValues.js";
12
+ export * from "./omit.js";
13
+ export * from "./retain.js";
14
+ export * from "./sharedKeys.js";
15
+ export * from "./withKeys.js";
16
+ export * from "./withoutKeys.js";
17
+ export * from "./withoutValue.js";
20
18
  // #endregion auto-indexed files
21
19
  // see https://github.com/inocan-group/do-devops/docs/autoindex.md
22
20
  // for more info
@@ -7,7 +7,7 @@ import type { Narrowable, ObjectKey } from "../../types";
7
7
  *
8
8
  * - note: this function is an alias for `retain()`
9
9
  */
10
- export declare const withKeys: <TObj extends Record<string | symbol, N>, N extends Narrowable, TKeys extends readonly (ObjectKey & keyof TObj)[]>(dict: TObj, ...keys: TKeys) => ([] extends [...TKeys] ? false : import("../../types").IfUnion<import("../../types").First<[...TKeys]>, true, [] extends import("../../types").AfterFirst<[...TKeys]> ? false : import("../../types").IfUnion<import("../../types").First<import("../../types").AfterFirst<[...TKeys]>>, true, [] extends import("../../types").AfterFirst<import("../../types").AfterFirst<[...TKeys]>> ? false : true>>) 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
- export * from "./createErrorCondition";
1
+ export * from "./createErrorCondition.js";
@@ -1,2 +1,2 @@
1
- export * from "./left";
2
- export * from "./right";
1
+ export * from "./left.js";
2
+ export * from "./right.js";
@@ -1 +1 @@
1
- export * from "./fnMeta";
1
+ export * from "./fnMeta.js";
@@ -4,20 +4,20 @@
4
4
  // hash-code: 9dd9ac96
5
5
  // file exports
6
6
  // directory exports
7
- export * from "./boolean-logic/index";
8
- export * from "./combinators/index";
9
- export * from "./dictionary/index";
10
- export * from "./errors/index";
11
- export * from "./functional/index";
12
- export * from "./functions/index";
13
- export * from "./initializers/index";
14
- export * from "./lists/index";
15
- export * from "./literals/index";
16
- export * from "./runtime-types/index";
17
- export * from "./sets/index";
18
- export * from "./state/index";
19
- export * from "./type-conversion/index";
20
- export * from "./type-guards/index";
7
+ export * from "./boolean-logic/index.js";
8
+ export * from "./combinators/index.js";
9
+ export * from "./dictionary/index.js";
10
+ export * from "./errors/index.js";
11
+ export * from "./functional/index.js";
12
+ export * from "./functions/index.js";
13
+ export * from "./initializers/index.js";
14
+ export * from "./lists/index.js";
15
+ export * from "./literals/index.js";
16
+ export * from "./runtime-types/index.js";
17
+ export * from "./sets/index.js";
18
+ export * from "./state/index.js";
19
+ export * from "./type-conversion/index.js";
20
+ export * from "./type-guards/index.js";
21
21
  // #endregion auto-indexed files
22
22
  // see https://github.com/inocan-group/do-devops/docs/autoindex.md
23
23
  // for more info
@@ -1,8 +1,8 @@
1
- export * from "./addFnToProps";
2
- export * from "./addPropsToFn";
3
- export * from "./createTypeGuard";
4
- export * from "./createTypeTuple";
5
- export * from "./createValidator";
6
- export * from "./createFnWithProps";
7
- export * from "./defineObj";
8
- export * from "./defineTuple";
1
+ export * from "./addFnToProps.js";
2
+ export * from "./addPropsToFn.js";
3
+ export * from "./createTypeGuard.js";
4
+ export * from "./createTypeTuple.js";
5
+ export * from "./createValidator.js";
6
+ export * from "./createFnWithProps.js";
7
+ export * from "./defineObj.js";
8
+ export * from "./defineTuple.js";
@@ -1 +1 @@
1
- {"version":3,"file":"createConverter.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createConverter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,WAAW,EACZ,oBAAkB;AAQnB,KAAK,aAAa,CAChB,OAAO,IACL,OAAO,SAAS,WAAW,GAC3B,UAAU,CAAC,OAAO,CAAC,GACnB,KAAK,CAAC;AAEV,KAAK,gBAAgB,CACnB,QAAQ,SAAS,OAAO,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,5 +1,5 @@
1
1
  import { isTupleType, isObject, isNothing } from "..";
2
- import { Never } from "../../constants";
2
+ import { Never } from "../../constants/index.js";
3
3
  /**
4
4
  * **createConverter**(mapper)
5
5
  *
@@ -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,5 +1,5 @@
1
1
  import { get, isErrorCondition, isNull, isContainer } from "..";
2
- import { Never } from "../../constants";
2
+ import { Never } from "../../constants/index.js";
3
3
  /**
4
4
  * **getEach**(list, dotPath, [options])
5
5
  *
@@ -3,21 +3,21 @@
3
3
  // index last changed at: 8th Aug, 2022, 09:51 AM ( GMT-7 )
4
4
  // hash-code: bf4a6791
5
5
  // file exports
6
- export * from "./asArray";
7
- export * from "./getEach";
8
- export * from "./indexOf";
9
- export * from "./intersection";
10
- export * from "./unique";
11
- export * from "./logicalReturns";
12
- export * from "./find";
13
- export * from "./filter";
14
- export * from "./createConverter";
15
- export * from "./slice";
16
- export * from "./last";
17
- export * from "./reverse";
18
- export * from "./pop";
19
- export * from "./join";
20
- export * from "./shift";
6
+ export * from "./asArray.js";
7
+ export * from "./getEach.js";
8
+ export * from "./indexOf.js";
9
+ export * from "./intersection.js";
10
+ export * from "./unique.js";
11
+ export * from "./logicalReturns.js";
12
+ export * from "./find.js";
13
+ export * from "./filter.js";
14
+ export * from "./createConverter.js";
15
+ export * from "./slice.js";
16
+ export * from "./last.js";
17
+ export * from "./reverse.js";
18
+ export * from "./pop.js";
19
+ export * from "./join.js";
20
+ export * from "./shift.js";
21
21
  // #endregion auto-indexed files
22
22
  // see https://github.com/inocan-group/do-devops/docs/autoindex.md
23
23
  // for more info
@@ -1 +1 @@
1
- {"version":3,"file":"indexOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/indexOf.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,UAAU,EACV,KAAK,EACN,oBAAkB;AAInB;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CACvB,UAAU,SAAS,UAAU,GAAG,KAAK,EACrC,IAAI,SAAS,WAAW,GAAG,IAAI,EAC7B,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,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"}
@@ -1,5 +1,5 @@
1
1
  import { isArray, isNull, isNumber, isObject } from "..";
2
- import { Never } from "../../constants";
2
+ import { Never } from "../../constants/index.js";
3
3
  /**
4
4
  * **indexOf**(val, index)
5
5
  *
@@ -12,9 +12,6 @@ import { Never } from "../../constants";
12
12
  * off the back of the array.
13
13
  */
14
14
  export function indexOf(val, index) {
15
- if (index === null) {
16
- return val;
17
- }
18
15
  const isNegative = isNumber(index) && index < 0;
19
16
  if (isNegative && !Array.isArray(val)) {
20
17
  throw new Error(`The indexOf(val,idx) utility received a negative index value [${index}] but the value being de-references is not an array [${typeof val}]!`);
@@ -26,11 +23,13 @@ export function indexOf(val, index) {
26
23
  const idx = isNegative && Array.isArray(val)
27
24
  ? val.length + 1 - Math.abs(index)
28
25
  : index;
29
- return (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
+ };
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { LOWER_ALPHA_CHARS } from "../../constants";
2
+ import { LOWER_ALPHA_CHARS } from "../../constants/index.js";
3
3
  /**
4
4
  * **ifLowercaseChar**(ch)
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { LOWER_ALPHA_CHARS } from "../../constants";
2
+ import { LOWER_ALPHA_CHARS } from "../../constants/index.js";
3
3
  /**
4
4
  * **ifUppercaseChar**(ch, callbackForMatch, callbackForNoMatch)
5
5
  *
@@ -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"}
@@ -3,36 +3,37 @@
3
3
  // index last changed at: 8th Aug, 2022, 09:51 AM ( GMT-7 )
4
4
  // hash-code: 7a22bbbc
5
5
  // file exports
6
- export * from "./box";
7
- export * from "./identity";
8
- export * from "./literal";
9
- export * from "./stripTrailing";
10
- export * from "./stripLeading";
11
- export * from "./ensureTrailing";
12
- export * from "./ensureLeading";
13
- export * from "./ifUppercase";
14
- export * from "./pathJoin";
15
- export * from "./narrow";
16
- export * from "./split";
17
- export * from "./tuple";
18
- export * from "./capitalize";
19
- export * from "./uncapitalize";
20
- export * from "./uppercase";
21
- export * from "./lowercase";
22
- export * from "./widen";
23
- export * from "./toCamelCase";
24
- export * from "./toKebabCase";
25
- export * from "./ifLowercase";
26
- export * from "./toSnakeCase";
27
- export * from "./toString";
28
- export * from "./pluralize";
29
- export * from "./retainAfter";
30
- export * from "./surround";
31
- export * from "./stripAfter";
32
- export * from "./trim";
33
- export * from "./toPascalCase";
34
- export * from "./toUppercase";
35
- export * from "./toNumericArray";
6
+ export * from "./box.js";
7
+ export * from "./identity.js";
8
+ export * from "./literal.js";
9
+ export * from "./stripTrailing.js";
10
+ export * from "./stripLeading.js";
11
+ export * from "./ensureTrailing.js";
12
+ export * from "./ensureLeading.js";
13
+ export * from "./ifUppercase.js";
14
+ export * from "./pathJoin.js";
15
+ export * from "./narrow.js";
16
+ export * from "./split.js";
17
+ export * from "./tuple.js";
18
+ export * from "./capitalize.js";
19
+ export * from "./uncapitalize.js";
20
+ export * from "./uppercase.js";
21
+ export * from "./lowercase.js";
22
+ export * from "./widen.js";
23
+ export * from "./toCamelCase.js";
24
+ export * from "./toKebabCase.js";
25
+ export * from "./ifLowercase.js";
26
+ export * from "./toSnakeCase.js";
27
+ export * from "./toString.js";
28
+ export * from "./pluralize.js";
29
+ export * from "./retainAfter.js";
30
+ export * from "./surround.js";
31
+ export * from "./stripAfter.js";
32
+ export * from "./stripBefore.js";
33
+ export * from "./trim.js";
34
+ export * from "./toPascalCase.js";
35
+ export * from "./toUppercase.js";
36
+ export * from "./toNumericArray.js";
36
37
  // #endregion auto-indexed files
37
38
  // see https://github.com/inocan-group/do-devops/docs/autoindex.md
38
39
  // for more info
@@ -1 +1 @@
1
- {"version":3,"file":"pluralize.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/pluralize.ts"],"names":[],"mappings":"AAQA,OAAO,EAAY,SAAS,EAAgB,oBAAkB;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"}
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { ALPHA_CHARS, CONSONANTS, PLURAL_EXCEPTIONS, SINGULAR_NOUN_ENDINGS } from "../../constants";
2
+ import { ALPHA_CHARS, CONSONANTS, PLURAL_EXCEPTIONS, SINGULAR_NOUN_ENDINGS } from "../../constants/index.js";
3
3
  import { split, stripTrailing } from "..";
4
4
  const isException = (word) => Object.keys(PLURAL_EXCEPTIONS).includes(word);
5
5
  const END_IN = [
@@ -14,7 +14,7 @@ const endingIn = (word, postfix) => {
14
14
  return word.endsWith(postfix) ? `${word}es` : undefined;
15
15
  case "singular-noun":
16
16
  return SINGULAR_NOUN_ENDINGS.some(i => word.endsWith(i))
17
- ? split(word).every((i) => ALPHA_CHARS.includes(i))
17
+ ? split(word).every((i) => [...ALPHA_CHARS].includes(i))
18
18
  ? `${word}es`
19
19
  : undefined
20
20
  : undefined;
@@ -9,5 +9,5 @@ import { Split } from "../../types";
9
9
  *
10
10
  * All are other types are disallowed.
11
11
  */
12
- export declare function split<T extends string | 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";
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
  }