inferred-types 0.46.0 → 0.47.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 (697) hide show
  1. package/dist/constants/Marked.d.ts +7 -0
  2. package/dist/constants/Marked.d.ts.map +1 -1
  3. package/dist/constants/Never.d.ts.map +1 -1
  4. package/dist/constants/TypeTokens.d.ts +15 -0
  5. package/dist/constants/TypeTokens.d.ts.map +1 -1
  6. package/dist/constants/TypeTokens.js +92 -0
  7. package/dist/constants/Wide.d.ts +2 -1
  8. package/dist/constants/Wide.d.ts.map +1 -1
  9. package/dist/constants/Wide.js +0 -1
  10. package/dist/constants/createConstant.d.ts.map +1 -1
  11. package/dist/constants/tsconfig.tsbuildinfo +1 -1
  12. package/dist/inferred-types/index.cjs +3973 -0
  13. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  14. package/dist/runtime/api/defineApi.d.ts +1 -36
  15. package/dist/runtime/api/defineApi.d.ts.map +1 -1
  16. package/dist/runtime/api/defineApi.js +90 -73
  17. package/dist/runtime/api/handleDoneFn.d.ts.map +1 -1
  18. package/dist/runtime/api/index.d.ts +1 -1
  19. package/dist/runtime/boolean-logic/ifArray.d.ts.map +1 -1
  20. package/dist/runtime/boolean-logic/ifArrayPartial.d.ts +1 -1
  21. package/dist/runtime/boolean-logic/ifArrayPartial.d.ts.map +1 -1
  22. package/dist/runtime/boolean-logic/ifBoolean.d.ts.map +1 -1
  23. package/dist/runtime/boolean-logic/ifChar.d.ts.map +1 -1
  24. package/dist/runtime/boolean-logic/ifFalse.d.ts.map +1 -1
  25. package/dist/runtime/boolean-logic/ifHasKey.d.ts.map +1 -1
  26. package/dist/runtime/boolean-logic/ifLength.d.ts.map +1 -1
  27. package/dist/runtime/boolean-logic/ifNotNull.d.ts.map +1 -1
  28. package/dist/runtime/boolean-logic/ifNull.d.ts.map +1 -1
  29. package/dist/runtime/boolean-logic/ifNumber.d.ts.map +1 -1
  30. package/dist/runtime/boolean-logic/ifScalar.d.ts.map +1 -1
  31. package/dist/runtime/boolean-logic/ifString.d.ts.map +1 -1
  32. package/dist/runtime/boolean-logic/ifTrue.d.ts.map +1 -1
  33. package/dist/runtime/boolean-logic/ifUndefined.d.ts.map +1 -1
  34. package/dist/runtime/boolean-logic/ifUndefined.js +1 -1
  35. package/dist/runtime/combinators/and.d.ts.map +1 -1
  36. package/dist/runtime/combinators/or.d.ts.map +1 -1
  37. package/dist/runtime/dictionary/entries.js +1 -1
  38. package/dist/runtime/dictionary/get.d.ts.map +1 -1
  39. package/dist/runtime/dictionary/keysOf.d.ts.map +1 -1
  40. package/dist/runtime/dictionary/omit.d.ts.map +1 -1
  41. package/dist/runtime/dictionary/retain.d.ts +4 -9
  42. package/dist/runtime/dictionary/retain.d.ts.map +1 -1
  43. package/dist/runtime/dictionary/sharedKeys.d.ts +1 -1
  44. package/dist/runtime/dictionary/sharedKeys.d.ts.map +1 -1
  45. package/dist/runtime/dictionary/takeProp.d.ts.map +1 -1
  46. package/dist/runtime/dictionary/valuesOf.d.ts.map +1 -1
  47. package/dist/runtime/dictionary/withDefaults.d.ts.map +1 -1
  48. package/dist/runtime/dictionary/withKeys.d.ts +2 -2
  49. package/dist/runtime/dictionary/withKeys.d.ts.map +1 -1
  50. package/dist/runtime/dictionary/withoutKeys.d.ts +1 -13
  51. package/dist/runtime/dictionary/withoutKeys.d.ts.map +1 -1
  52. package/dist/runtime/dictionary/withoutValue.d.ts.map +1 -1
  53. package/dist/runtime/errors/KindError.d.ts.map +1 -1
  54. package/dist/runtime/errors/TypedError.d.ts.map +1 -1
  55. package/dist/runtime/errors/createErrorCondition.d.ts +5 -0
  56. package/dist/runtime/errors/createErrorCondition.d.ts.map +1 -1
  57. package/dist/runtime/errors/createErrorCondition.js +5 -0
  58. package/dist/runtime/errors/kindedError.d.ts.map +1 -1
  59. package/dist/runtime/functions/fnMeta.d.ts.map +1 -1
  60. package/dist/runtime/index.d.ts +2 -0
  61. package/dist/runtime/index.d.ts.map +1 -1
  62. package/dist/runtime/index.js +2 -0
  63. package/dist/runtime/initializers/addFnToProps.d.ts +2 -2
  64. package/dist/runtime/initializers/addFnToProps.d.ts.map +1 -1
  65. package/dist/runtime/initializers/addPropsToFn.d.ts +2 -2
  66. package/dist/runtime/initializers/addPropsToFn.d.ts.map +1 -1
  67. package/dist/runtime/initializers/createFnWithProps.d.ts.map +1 -1
  68. package/dist/runtime/initializers/defineObj.d.ts +2 -2
  69. package/dist/runtime/initializers/defineObj.d.ts.map +1 -1
  70. package/dist/runtime/initializers/defineTuple.d.ts.map +1 -1
  71. package/dist/runtime/lists/asArray.d.ts.map +1 -1
  72. package/dist/runtime/lists/createComparison.d.ts +2 -3
  73. package/dist/runtime/lists/createComparison.d.ts.map +1 -1
  74. package/dist/runtime/lists/createComparison.js +1 -1
  75. package/dist/runtime/lists/createConverter.d.ts +1 -1
  76. package/dist/runtime/lists/createConverter.d.ts.map +1 -1
  77. package/dist/runtime/lists/filter.d.ts +1 -1
  78. package/dist/runtime/lists/filter.js +4 -4
  79. package/dist/runtime/lists/find.d.ts +1 -1
  80. package/dist/runtime/lists/find.d.ts.map +1 -1
  81. package/dist/runtime/lists/index.d.ts +0 -1
  82. package/dist/runtime/lists/index.d.ts.map +1 -1
  83. package/dist/runtime/lists/index.js +0 -1
  84. package/dist/runtime/lists/indexOf.d.ts.map +1 -1
  85. package/dist/runtime/lists/indexOf.js +8 -5
  86. package/dist/runtime/lists/intersection.d.ts.map +1 -1
  87. package/dist/runtime/lists/join.d.ts +1 -1
  88. package/dist/runtime/lists/join.d.ts.map +1 -1
  89. package/dist/runtime/lists/join.js +6 -2
  90. package/dist/runtime/lists/last.d.ts +2 -2
  91. package/dist/runtime/lists/last.d.ts.map +1 -1
  92. package/dist/runtime/lists/logicalReturns.d.ts.map +1 -1
  93. package/dist/runtime/lists/reverse.d.ts.map +1 -1
  94. package/dist/runtime/lists/shift.d.ts +17 -5
  95. package/dist/runtime/lists/shift.d.ts.map +1 -1
  96. package/dist/runtime/lists/shift.js +33 -5
  97. package/dist/runtime/lists/slice.d.ts +2 -2
  98. package/dist/runtime/lists/slice.d.ts.map +1 -1
  99. package/dist/runtime/lists/unique.d.ts +2 -2
  100. package/dist/runtime/lists/unique.d.ts.map +1 -1
  101. package/dist/runtime/literals/box.d.ts.map +1 -1
  102. package/dist/runtime/literals/ensureLeading.d.ts +2 -2
  103. package/dist/runtime/literals/ensureLeading.d.ts.map +1 -1
  104. package/dist/runtime/literals/ensureLeading.js +6 -2
  105. package/dist/runtime/literals/ensureSurround.d.ts.map +1 -1
  106. package/dist/runtime/literals/ensureSurround.js +3 -1
  107. package/dist/runtime/literals/identity.d.ts.map +1 -1
  108. package/dist/runtime/literals/index.d.ts +2 -1
  109. package/dist/runtime/literals/index.d.ts.map +1 -1
  110. package/dist/runtime/literals/index.js +2 -1
  111. package/dist/runtime/literals/narrow.d.ts.map +1 -1
  112. package/dist/runtime/literals/phone/asPhoneNumber.d.ts +2 -0
  113. package/dist/runtime/literals/phone/asPhoneNumber.d.ts.map +1 -0
  114. package/dist/runtime/literals/phone/asPhoneNumber.js +62 -0
  115. package/dist/runtime/literals/phone/getPhoneCountryCode.d.ts +3 -0
  116. package/dist/runtime/literals/phone/getPhoneCountryCode.d.ts.map +1 -0
  117. package/dist/runtime/literals/phone/getPhoneCountryCode.js +7 -0
  118. package/dist/runtime/literals/phone/index.d.ts +4 -0
  119. package/dist/runtime/literals/phone/index.d.ts.map +1 -0
  120. package/dist/runtime/literals/phone/index.js +3 -0
  121. package/dist/runtime/literals/phone/removePhoneCountryCode.d.ts +3 -0
  122. package/dist/runtime/literals/phone/removePhoneCountryCode.d.ts.map +1 -0
  123. package/dist/runtime/literals/phone/removePhoneCountryCode.js +7 -0
  124. package/dist/runtime/literals/pluralize.d.ts.map +1 -1
  125. package/dist/runtime/literals/pluralize.js +4 -1
  126. package/dist/runtime/literals/retainAfter.d.ts.map +1 -1
  127. package/dist/runtime/literals/retainChars.d.ts +1 -1
  128. package/dist/runtime/literals/retainChars.d.ts.map +1 -1
  129. package/dist/runtime/literals/retainChars.js +2 -1
  130. package/dist/runtime/literals/retainWhile.d.ts.map +1 -1
  131. package/dist/runtime/literals/split.d.ts.map +1 -1
  132. package/dist/runtime/literals/stripAfter.d.ts.map +1 -1
  133. package/dist/runtime/literals/stripBefore.d.ts.map +1 -1
  134. package/dist/runtime/literals/stripChars.d.ts +1 -1
  135. package/dist/runtime/literals/stripChars.d.ts.map +1 -1
  136. package/dist/runtime/literals/stripChars.js +2 -1
  137. package/dist/runtime/literals/stripLeading.d.ts +1 -1
  138. package/dist/runtime/literals/stripLeading.d.ts.map +1 -1
  139. package/dist/runtime/literals/stripLeading.js +8 -6
  140. package/dist/runtime/literals/stripSurround.d.ts +19 -0
  141. package/dist/runtime/literals/stripSurround.d.ts.map +1 -0
  142. package/dist/runtime/literals/stripSurround.js +30 -0
  143. package/dist/runtime/literals/stripTrailing.d.ts +2 -2
  144. package/dist/runtime/literals/stripTrailing.d.ts.map +1 -1
  145. package/dist/runtime/literals/stripTrailing.js +9 -10
  146. package/dist/runtime/literals/stripUntil.d.ts.map +1 -1
  147. package/dist/runtime/literals/takeNumericCharacters.d.ts +2 -2
  148. package/dist/runtime/literals/takeNumericCharacters.d.ts.map +1 -1
  149. package/dist/runtime/literals/toKebabCase.d.ts.map +1 -1
  150. package/dist/runtime/literals/toNumericArray.d.ts +2 -2
  151. package/dist/runtime/literals/toNumericArray.d.ts.map +1 -1
  152. package/dist/runtime/literals/toPascalCase.d.ts.map +1 -1
  153. package/dist/runtime/literals/truncate.d.ts +1 -1
  154. package/dist/runtime/literals/truncate.d.ts.map +1 -1
  155. package/dist/runtime/literals/tuple.d.ts +1 -1
  156. package/dist/runtime/literals/tuple.d.ts.map +1 -1
  157. package/dist/runtime/meta/urlMeta.d.ts.map +1 -1
  158. package/dist/runtime/meta/urlMeta.js +8 -5
  159. package/dist/runtime/meta/youtube-meta.d.ts.map +1 -1
  160. package/dist/runtime/queues/fifo.d.ts +3 -0
  161. package/dist/runtime/queues/fifo.d.ts.map +1 -0
  162. package/dist/runtime/queues/fifo.js +40 -0
  163. package/dist/runtime/queues/index.d.ts +3 -0
  164. package/dist/runtime/queues/index.d.ts.map +1 -0
  165. package/dist/runtime/queues/index.js +2 -0
  166. package/dist/runtime/queues/lifo.d.ts +3 -0
  167. package/dist/runtime/queues/lifo.d.ts.map +1 -0
  168. package/dist/runtime/queues/lifo.js +34 -0
  169. package/dist/runtime/runtime-types/asToken.d.ts +35 -0
  170. package/dist/runtime/runtime-types/asToken.d.ts.map +1 -0
  171. package/dist/runtime/runtime-types/asToken.js +115 -0
  172. package/dist/runtime/runtime-types/asType.d.ts +4 -0
  173. package/dist/runtime/runtime-types/asType.d.ts.map +1 -0
  174. package/dist/runtime/runtime-types/asType.js +6 -0
  175. package/dist/runtime/runtime-types/choices.js +8 -8
  176. package/dist/runtime/runtime-types/index.d.ts +3 -2
  177. package/dist/runtime/runtime-types/index.d.ts.map +1 -1
  178. package/dist/runtime/runtime-types/index.js +3 -2
  179. package/dist/runtime/runtime-types/ip6Prefix.d.ts +2 -2
  180. package/dist/runtime/runtime-types/ip6Prefix.d.ts.map +1 -1
  181. package/dist/runtime/runtime-types/list.d.ts.map +1 -1
  182. package/dist/runtime/runtime-types/rec.d.ts.map +1 -1
  183. package/dist/runtime/runtime-types/shape-helpers/addToken.d.ts.map +1 -1
  184. package/dist/runtime/runtime-types/shape-helpers/atomics.d.ts.map +1 -1
  185. package/dist/runtime/runtime-types/shape-helpers/functions.d.ts +7 -2
  186. package/dist/runtime/runtime-types/shape-helpers/functions.d.ts.map +1 -1
  187. package/dist/runtime/runtime-types/shape-helpers/functions.js +5 -0
  188. package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts +2 -1
  189. package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts.map +1 -1
  190. package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts +2 -1
  191. package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts.map +1 -1
  192. package/dist/runtime/runtime-types/shape-helpers/literal-containers.d.ts.map +1 -1
  193. package/dist/runtime/runtime-types/shape-helpers/regexToken.d.ts +12 -0
  194. package/dist/runtime/runtime-types/shape-helpers/regexToken.d.ts.map +1 -0
  195. package/dist/runtime/runtime-types/shape-helpers/regexToken.js +39 -0
  196. package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts +10 -0
  197. package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts.map +1 -1
  198. package/dist/runtime/runtime-types/shape-helpers/singletons.js +15 -0
  199. package/dist/runtime/runtime-types/shape-helpers/union.d.ts +5 -0
  200. package/dist/runtime/runtime-types/shape-helpers/union.d.ts.map +1 -1
  201. package/dist/runtime/runtime-types/shape-helpers/union.js +5 -0
  202. package/dist/runtime/runtime-types/shape-helpers/wide-containers.d.ts +1 -1
  203. package/dist/runtime/runtime-types/shape-helpers/wide-containers.d.ts.map +1 -1
  204. package/dist/runtime/runtime-types/shape.d.ts +2 -2
  205. package/dist/runtime/runtime-types/shape.d.ts.map +1 -1
  206. package/dist/runtime/runtime-types/shape.js +1 -1
  207. package/dist/runtime/runtime-types/tokens/createTypeToken.d.ts +30 -0
  208. package/dist/runtime/runtime-types/tokens/createTypeToken.d.ts.map +1 -0
  209. package/dist/runtime/runtime-types/tokens/createTypeToken.js +29 -0
  210. package/dist/runtime/runtime-types/tokens/index.d.ts +3 -0
  211. package/dist/runtime/runtime-types/tokens/index.d.ts.map +1 -0
  212. package/dist/runtime/runtime-types/tokens/index.js +2 -0
  213. package/dist/runtime/runtime-types/tokens/simpleToken.d.ts +51 -0
  214. package/dist/runtime/runtime-types/tokens/simpleToken.d.ts.map +1 -0
  215. package/dist/runtime/runtime-types/tokens/simpleToken.js +64 -0
  216. package/dist/runtime/sets/uniqueKeys.d.ts.map +1 -1
  217. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  218. package/dist/runtime/type-conversion/asChars.d.ts.map +1 -1
  219. package/dist/runtime/type-conversion/asRecord.d.ts +1 -1
  220. package/dist/runtime/type-conversion/asRecord.d.ts.map +1 -1
  221. package/dist/runtime/type-conversion/asString.d.ts +7 -1
  222. package/dist/runtime/type-conversion/asString.d.ts.map +1 -1
  223. package/dist/runtime/type-conversion/asString.js +11 -3
  224. package/dist/runtime/type-conversion/csv.d.ts +17 -0
  225. package/dist/runtime/type-conversion/csv.d.ts.map +1 -0
  226. package/dist/runtime/type-conversion/csv.js +31 -0
  227. package/dist/runtime/type-conversion/index.d.ts +2 -0
  228. package/dist/runtime/type-conversion/index.d.ts.map +1 -1
  229. package/dist/runtime/type-conversion/index.js +2 -0
  230. package/dist/runtime/type-conversion/ip6GroupExpansion.d.ts.map +1 -1
  231. package/dist/runtime/type-conversion/json.d.ts +18 -0
  232. package/dist/runtime/type-conversion/json.d.ts.map +1 -0
  233. package/dist/runtime/type-conversion/json.js +27 -0
  234. package/dist/runtime/type-conversion/mergeObjects.d.ts.map +1 -1
  235. package/dist/runtime/type-conversion/mergeScalars.d.ts.map +1 -1
  236. package/dist/runtime/type-conversion/optional.d.ts +20 -4
  237. package/dist/runtime/type-conversion/optional.d.ts.map +1 -1
  238. package/dist/runtime/type-conversion/optional.js +24 -6
  239. package/dist/runtime/type-conversion/union.d.ts.map +1 -1
  240. package/dist/runtime/type-guards/api-tg.d.ts.map +1 -1
  241. package/dist/runtime/type-guards/hasErrorConditions.d.ts +2 -4
  242. package/dist/runtime/type-guards/hasErrorConditions.d.ts.map +1 -1
  243. package/dist/runtime/type-guards/hasIndexOf.d.ts +2 -2
  244. package/dist/runtime/type-guards/hasIndexOf.d.ts.map +1 -1
  245. package/dist/runtime/type-guards/hasKeys.d.ts.map +1 -1
  246. package/dist/runtime/type-guards/hasWhitespace.d.ts.map +1 -1
  247. package/dist/runtime/type-guards/hasWhitespace.js +1 -1
  248. package/dist/runtime/type-guards/higher-order/endsWith.d.ts.map +1 -1
  249. package/dist/runtime/type-guards/higher-order/isEqual.d.ts.map +1 -1
  250. package/dist/runtime/type-guards/higher-order/isEqual.js +1 -1
  251. package/dist/runtime/type-guards/higher-order/isLength.d.ts.map +1 -1
  252. package/dist/runtime/type-guards/higher-order/isLength.js +1 -5
  253. package/dist/runtime/type-guards/higher-order/isSameTypeOf.d.ts.map +1 -1
  254. package/dist/runtime/type-guards/higher-order/isTuple.d.ts +1 -2
  255. package/dist/runtime/type-guards/higher-order/isTuple.d.ts.map +1 -1
  256. package/dist/runtime/type-guards/higher-order/isTuple.js +1 -2
  257. package/dist/runtime/type-guards/higher-order/isTypeOf.d.ts +1 -1
  258. package/dist/runtime/type-guards/higher-order/isTypeOf.d.ts.map +1 -1
  259. package/dist/runtime/type-guards/higher-order/startsWith.d.ts.map +1 -1
  260. package/dist/runtime/type-guards/higher-order/startsWith.js +1 -2
  261. package/dist/runtime/type-guards/index.d.ts +5 -0
  262. package/dist/runtime/type-guards/index.d.ts.map +1 -1
  263. package/dist/runtime/type-guards/index.js +5 -0
  264. package/dist/runtime/type-guards/isAlpha.d.ts.map +1 -1
  265. package/dist/runtime/type-guards/isBooleanLike.d.ts +9 -0
  266. package/dist/runtime/type-guards/isBooleanLike.d.ts.map +1 -0
  267. package/dist/runtime/type-guards/isBooleanLike.js +11 -0
  268. package/dist/runtime/type-guards/isCssAspectRatio.d.ts +1 -1
  269. package/dist/runtime/type-guards/isCssAspectRatio.d.ts.map +1 -1
  270. package/dist/runtime/type-guards/isDoneFn.d.ts.map +1 -1
  271. package/dist/runtime/type-guards/isEmail.d.ts +2 -1
  272. package/dist/runtime/type-guards/isEmail.d.ts.map +1 -1
  273. package/dist/runtime/type-guards/isEmail.js +10 -4
  274. package/dist/runtime/type-guards/isFalsy.d.ts.map +1 -1
  275. package/dist/runtime/type-guards/isHexadecimal.d.ts.map +1 -1
  276. package/dist/runtime/type-guards/isInlineSvg.d.ts +2 -1
  277. package/dist/runtime/type-guards/isInlineSvg.d.ts.map +1 -1
  278. package/dist/runtime/type-guards/isLeftRight.d.ts +2 -2
  279. package/dist/runtime/type-guards/isLeftRight.d.ts.map +1 -1
  280. package/dist/runtime/type-guards/isNever.d.ts.map +1 -1
  281. package/dist/runtime/type-guards/isNumericString.d.ts +8 -0
  282. package/dist/runtime/type-guards/isNumericString.d.ts.map +1 -1
  283. package/dist/runtime/type-guards/isNumericString.js +11 -0
  284. package/dist/runtime/type-guards/isPhoneNumber.d.ts +1 -1
  285. package/dist/runtime/type-guards/isPhoneNumber.d.ts.map +1 -1
  286. package/dist/runtime/type-guards/isPhoneNumber.js +16 -10
  287. package/dist/runtime/type-guards/isRegExp.d.ts +17 -0
  288. package/dist/runtime/type-guards/isRegExp.d.ts.map +1 -0
  289. package/dist/runtime/type-guards/isRegExp.js +32 -0
  290. package/dist/runtime/type-guards/isRuntimeUnion.d.ts.map +1 -1
  291. package/dist/runtime/type-guards/isSpecificConstant.d.ts.map +1 -1
  292. package/dist/runtime/type-guards/isTrimmable.d.ts.map +1 -1
  293. package/dist/runtime/type-guards/isTruthy.d.ts.map +1 -1
  294. package/dist/runtime/type-guards/isUnset.d.ts.map +1 -1
  295. package/dist/runtime/type-guards/isUrl.d.ts +3 -3
  296. package/dist/runtime/type-guards/isUrl.d.ts.map +1 -1
  297. package/dist/runtime/type-guards/network-tg.d.ts +6 -7
  298. package/dist/runtime/type-guards/network-tg.d.ts.map +1 -1
  299. package/dist/runtime/type-guards/network-tg.js +4 -9
  300. package/dist/runtime/type-guards/repos.d.ts +9 -7
  301. package/dist/runtime/type-guards/repos.d.ts.map +1 -1
  302. package/dist/runtime/type-guards/repos.js +1 -3
  303. package/dist/runtime/type-guards/tokens/index.d.ts +6 -0
  304. package/dist/runtime/type-guards/tokens/index.d.ts.map +1 -0
  305. package/dist/runtime/type-guards/tokens/index.js +5 -0
  306. package/dist/runtime/type-guards/tokens/isAtomicToken.d.ts +9 -0
  307. package/dist/runtime/type-guards/tokens/isAtomicToken.d.ts.map +1 -0
  308. package/dist/runtime/type-guards/tokens/isAtomicToken.js +12 -0
  309. package/dist/runtime/type-guards/tokens/isContainerToken.d.ts +21 -0
  310. package/dist/runtime/type-guards/tokens/isContainerToken.d.ts.map +1 -0
  311. package/dist/runtime/type-guards/tokens/isContainerToken.js +48 -0
  312. package/dist/runtime/type-guards/tokens/isFunctionToken.d.ts +4 -0
  313. package/dist/runtime/type-guards/tokens/isFunctionToken.d.ts.map +1 -0
  314. package/dist/runtime/type-guards/tokens/isFunctionToken.js +7 -0
  315. package/dist/runtime/type-guards/tokens/isShapeToken.d.ts +9 -0
  316. package/dist/runtime/type-guards/tokens/isShapeToken.d.ts.map +1 -0
  317. package/dist/runtime/type-guards/tokens/isShapeToken.js +21 -0
  318. package/dist/runtime/type-guards/tokens/isSimpleToken.d.ts +53 -0
  319. package/dist/runtime/type-guards/tokens/isSimpleToken.d.ts.map +1 -0
  320. package/dist/runtime/type-guards/tokens/isSimpleToken.js +74 -0
  321. package/dist/runtime/type-guards/tokens/isSingletonToken.d.ts +9 -0
  322. package/dist/runtime/type-guards/tokens/isSingletonToken.d.ts.map +1 -0
  323. package/dist/runtime/type-guards/tokens/isSingletonToken.js +12 -0
  324. package/dist/runtime/type-guards/tokens/isTupleToken.d.ts +1 -0
  325. package/dist/runtime/type-guards/tokens/isTupleToken.d.ts.map +1 -0
  326. package/dist/runtime/type-guards/tokens/isTupleToken.js +1 -0
  327. package/dist/runtime/type-guards/tokens/isUnionSetToken.d.ts +1 -0
  328. package/dist/runtime/type-guards/tokens/isUnionSetToken.d.ts.map +1 -0
  329. package/dist/runtime/type-guards/tokens/isUnionSetToken.js +1 -0
  330. package/dist/runtime/type-guards/tokens/isUnionToken.d.ts +9 -0
  331. package/dist/runtime/type-guards/tokens/isUnionToken.d.ts.map +1 -0
  332. package/dist/runtime/type-guards/tokens/isUnionToken.js +12 -0
  333. package/dist/runtime/type-guards/youtube.d.ts +5 -5
  334. package/dist/runtime/type-guards/youtube.d.ts.map +1 -1
  335. package/dist/runtime/type-guards/youtube.js +1 -3
  336. package/dist/runtime/vuejs/asVueRef.d.ts +1 -1
  337. package/dist/runtime/vuejs/asVueRef.d.ts.map +1 -1
  338. package/dist/types/base-types/LikeRegExp.d.ts +9 -0
  339. package/dist/types/base-types/LikeRegExp.d.ts.map +1 -0
  340. package/dist/types/base-types/Something.d.ts.map +1 -1
  341. package/dist/types/base-types/Something.js +1 -0
  342. package/dist/types/base-types/fns/AnyFunction.d.ts.map +1 -1
  343. package/dist/types/base-types/fns/AnyFunction.js +1 -1
  344. package/dist/types/base-types/fns/FnAllowingProps.d.ts +11 -0
  345. package/dist/types/base-types/fns/FnAllowingProps.d.ts.map +1 -0
  346. package/dist/types/base-types/fns/index.d.ts +1 -2
  347. package/dist/types/base-types/fns/index.d.ts.map +1 -1
  348. package/dist/types/base-types/fns/index.js +1 -2
  349. package/dist/types/base-types/index.d.ts +1 -0
  350. package/dist/types/base-types/index.d.ts.map +1 -1
  351. package/dist/types/base-types/index.js +1 -0
  352. package/dist/types/boolean-logic/branching/OnPass.d.ts.map +1 -1
  353. package/dist/types/boolean-logic/combinators/Compare.d.ts.map +1 -1
  354. package/dist/types/boolean-logic/operators/AreSameLength.d.ts +2 -2
  355. package/dist/types/boolean-logic/operators/AreSameLength.d.ts.map +1 -1
  356. package/dist/types/boolean-logic/operators/Contains.d.ts +4 -3
  357. package/dist/types/boolean-logic/operators/Contains.d.ts.map +1 -1
  358. package/dist/types/boolean-logic/operators/HasArray.d.ts +10 -0
  359. package/dist/types/boolean-logic/operators/HasArray.d.ts.map +1 -0
  360. package/dist/types/boolean-logic/operators/HasArray.js +1 -0
  361. package/dist/types/boolean-logic/operators/HasRequiredProps.d.ts +1 -2
  362. package/dist/types/boolean-logic/operators/HasRequiredProps.d.ts.map +1 -1
  363. package/dist/types/boolean-logic/operators/HaveSameNumericSign.d.ts +9 -0
  364. package/dist/types/boolean-logic/operators/HaveSameNumericSign.d.ts.map +1 -0
  365. package/dist/types/boolean-logic/operators/HaveSameNumericSign.js +1 -0
  366. package/dist/types/boolean-logic/operators/IsEmptyString.d.ts +12 -0
  367. package/dist/types/boolean-logic/operators/IsEmptyString.d.ts.map +1 -0
  368. package/dist/types/boolean-logic/operators/IsEmptyString.js +1 -0
  369. package/dist/types/boolean-logic/operators/IsFloat.d.ts +2 -2
  370. package/dist/types/boolean-logic/operators/IsFloat.d.ts.map +1 -1
  371. package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts +8 -2
  372. package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts.map +1 -1
  373. package/dist/types/boolean-logic/operators/IsInteger.d.ts +2 -2
  374. package/dist/types/boolean-logic/operators/IsInteger.d.ts.map +1 -1
  375. package/dist/types/boolean-logic/operators/IsLessThan.d.ts +8 -2
  376. package/dist/types/boolean-logic/operators/IsLessThan.d.ts.map +1 -1
  377. package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts +2 -4
  378. package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts.map +1 -1
  379. package/dist/types/boolean-logic/operators/IsNonLiteralUnion.d.ts +1 -1
  380. package/dist/types/boolean-logic/operators/IsNonLiteralUnion.d.ts.map +1 -1
  381. package/dist/types/boolean-logic/operators/IsPositiveNumber.d.ts +11 -0
  382. package/dist/types/boolean-logic/operators/IsPositiveNumber.d.ts.map +1 -0
  383. package/dist/types/boolean-logic/operators/IsPositiveNumber.js +1 -0
  384. package/dist/types/boolean-logic/operators/IsTuple.d.ts +1 -1
  385. package/dist/types/boolean-logic/operators/IsUrl.d.ts +7 -8
  386. package/dist/types/boolean-logic/operators/IsUrl.d.ts.map +1 -1
  387. package/dist/types/boolean-logic/operators/MaybeError.d.ts +20 -0
  388. package/dist/types/boolean-logic/operators/MaybeError.d.ts.map +1 -0
  389. package/dist/types/boolean-logic/operators/MaybeError.js +2 -0
  390. package/dist/types/boolean-logic/operators/PhoneOperators.d.ts +2 -3
  391. package/dist/types/boolean-logic/operators/PhoneOperators.d.ts.map +1 -1
  392. package/dist/types/boolean-logic/operators/StartsWith.d.ts +8 -9
  393. package/dist/types/boolean-logic/operators/StartsWith.d.ts.map +1 -1
  394. package/dist/types/boolean-logic/operators/UnionHasArray.d.ts +14 -0
  395. package/dist/types/boolean-logic/operators/UnionHasArray.d.ts.map +1 -0
  396. package/dist/types/boolean-logic/operators/UnionHasArray.js +1 -0
  397. package/dist/types/boolean-logic/operators/index.d.ts +6 -0
  398. package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
  399. package/dist/types/boolean-logic/operators/index.js +6 -0
  400. package/dist/types/containers/RemoveEmpty.d.ts +30 -0
  401. package/dist/types/containers/RemoveEmpty.d.ts.map +1 -0
  402. package/dist/types/containers/RemoveEmpty.js +1 -0
  403. package/dist/types/containers/RemoveMarked.d.ts +1 -1
  404. package/dist/types/containers/RemoveMarked.d.ts.map +1 -1
  405. package/dist/types/containers/RemoveUndefined.d.ts +1 -7
  406. package/dist/types/containers/RemoveUndefined.d.ts.map +1 -1
  407. package/dist/types/containers/index.d.ts +1 -0
  408. package/dist/types/containers/index.d.ts.map +1 -1
  409. package/dist/types/containers/index.js +1 -0
  410. package/dist/types/dictionary/EnsureKeys.d.ts +1 -3
  411. package/dist/types/dictionary/EnsureKeys.d.ts.map +1 -1
  412. package/dist/types/dictionary/Keys.d.ts +2 -2
  413. package/dist/types/dictionary/Keys.d.ts.map +1 -1
  414. package/dist/types/dictionary/OptionalKeys.d.ts +2 -2
  415. package/dist/types/dictionary/OptionalKeys.d.ts.map +1 -1
  416. package/dist/types/dictionary/OptionalKeys.js +0 -1
  417. package/dist/types/dictionary/RequireProps.d.ts +2 -2
  418. package/dist/types/dictionary/RequireProps.d.ts.map +1 -1
  419. package/dist/types/dictionary/RequiredKeys.d.ts +2 -2
  420. package/dist/types/dictionary/RequiredKeys.d.ts.map +1 -1
  421. package/dist/types/dictionary/WithValue.d.ts +2 -3
  422. package/dist/types/dictionary/WithValue.d.ts.map +1 -1
  423. package/dist/types/dictionary/WithoutKeys.d.ts +3 -3
  424. package/dist/types/dictionary/WithoutKeys.d.ts.map +1 -1
  425. package/dist/types/functional/Result.d.ts +1 -1
  426. package/dist/types/functional/Result.d.ts.map +1 -1
  427. package/dist/types/functions/FnFrom.d.ts +1 -1
  428. package/dist/types/functions/FnFrom.d.ts.map +1 -1
  429. package/dist/types/functions/FnWithProps.d.ts +10 -0
  430. package/dist/types/functions/FnWithProps.d.ts.map +1 -0
  431. package/dist/types/functions/FnWithProps.js +1 -0
  432. package/dist/types/functions/IdentityFn.d.ts +1 -2
  433. package/dist/types/functions/IdentityFn.d.ts.map +1 -1
  434. package/dist/types/functions/index.d.ts +1 -0
  435. package/dist/types/functions/index.d.ts.map +1 -1
  436. package/dist/types/functions/index.js +1 -0
  437. package/dist/types/index.d.ts +1 -0
  438. package/dist/types/index.d.ts.map +1 -1
  439. package/dist/types/index.js +1 -0
  440. package/dist/types/lists/AsArray.d.ts +7 -2
  441. package/dist/types/lists/AsArray.d.ts.map +1 -1
  442. package/dist/types/lists/BeforeLast.d.ts +3 -3
  443. package/dist/types/lists/Filter.d.ts +2 -9
  444. package/dist/types/lists/Filter.d.ts.map +1 -1
  445. package/dist/types/lists/FilterByProp.d.ts +37 -0
  446. package/dist/types/lists/FilterByProp.d.ts.map +1 -0
  447. package/dist/types/lists/FilterByProp.js +1 -0
  448. package/dist/types/lists/Flatten.d.ts +31 -14
  449. package/dist/types/lists/Flatten.d.ts.map +1 -1
  450. package/dist/types/lists/Last.d.ts +2 -2
  451. package/dist/types/lists/Last.d.ts.map +1 -1
  452. package/dist/types/lists/Length.d.ts +3 -4
  453. package/dist/types/lists/Length.d.ts.map +1 -1
  454. package/dist/types/lists/RetainByProp.d.ts +38 -0
  455. package/dist/types/lists/RetainByProp.d.ts.map +1 -0
  456. package/dist/types/lists/RetainByProp.js +1 -0
  457. package/dist/types/lists/Shift.d.ts +5 -3
  458. package/dist/types/lists/Shift.d.ts.map +1 -1
  459. package/dist/types/lists/Slice.d.ts +17 -9
  460. package/dist/types/lists/Slice.d.ts.map +1 -1
  461. package/dist/types/lists/TakeFirst.d.ts +21 -0
  462. package/dist/types/lists/TakeFirst.d.ts.map +1 -0
  463. package/dist/types/lists/TakeFirst.js +1 -0
  464. package/dist/types/lists/TakeLast.d.ts +16 -0
  465. package/dist/types/lists/TakeLast.d.ts.map +1 -0
  466. package/dist/types/lists/TakeLast.js +1 -0
  467. package/dist/types/lists/index.d.ts +4 -0
  468. package/dist/types/lists/index.d.ts.map +1 -1
  469. package/dist/types/lists/index.js +4 -0
  470. package/dist/types/literals/BooleanLike.d.ts +8 -0
  471. package/dist/types/literals/BooleanLike.d.ts.map +1 -0
  472. package/dist/types/literals/BooleanLike.js +1 -0
  473. package/dist/types/literals/NarrowableDefined.d.ts +2 -1
  474. package/dist/types/literals/NarrowableDefined.d.ts.map +1 -1
  475. package/dist/types/literals/NarrowableDefined.js +0 -1
  476. package/dist/types/literals/Shape.d.ts +10 -1
  477. package/dist/types/literals/Shape.d.ts.map +1 -1
  478. package/dist/types/literals/index.d.ts +1 -0
  479. package/dist/types/literals/index.d.ts.map +1 -1
  480. package/dist/types/literals/index.js +1 -0
  481. package/dist/types/numeric-literals/Abs.d.ts +2 -2
  482. package/dist/types/numeric-literals/Abs.d.ts.map +1 -1
  483. package/dist/types/numeric-literals/Add.d.ts +5 -3
  484. package/dist/types/numeric-literals/Add.d.ts.map +1 -1
  485. package/dist/types/numeric-literals/AsNegativeNumber.d.ts +12 -0
  486. package/dist/types/numeric-literals/AsNegativeNumber.d.ts.map +1 -0
  487. package/dist/types/numeric-literals/AsNegativeNumber.js +1 -0
  488. package/dist/types/numeric-literals/CSV.d.ts +73 -0
  489. package/dist/types/numeric-literals/CSV.d.ts.map +1 -0
  490. package/dist/types/numeric-literals/CSV.js +1 -0
  491. package/dist/types/numeric-literals/Delta.d.ts +14 -0
  492. package/dist/types/numeric-literals/Delta.d.ts.map +1 -0
  493. package/dist/types/numeric-literals/Delta.js +1 -0
  494. package/dist/types/numeric-literals/Digit.d.ts +2 -3
  495. package/dist/types/numeric-literals/Digit.d.ts.map +1 -1
  496. package/dist/types/numeric-literals/Digitize.d.ts +10 -20
  497. package/dist/types/numeric-literals/Digitize.d.ts.map +1 -1
  498. package/dist/types/numeric-literals/Increment.d.ts +2 -5
  499. package/dist/types/numeric-literals/Increment.d.ts.map +1 -1
  500. package/dist/types/numeric-literals/InvertNumericSign.d.ts +9 -0
  501. package/dist/types/numeric-literals/InvertNumericSign.d.ts.map +1 -0
  502. package/dist/types/numeric-literals/InvertNumericSign.js +1 -0
  503. package/dist/types/numeric-literals/NumberLike.d.ts.map +1 -1
  504. package/dist/types/numeric-literals/Subtract.d.ts +11 -8
  505. package/dist/types/numeric-literals/Subtract.d.ts.map +1 -1
  506. package/dist/types/numeric-literals/Zero.d.ts +8 -0
  507. package/dist/types/numeric-literals/Zero.d.ts.map +1 -0
  508. package/dist/types/numeric-literals/Zero.js +1 -0
  509. package/dist/types/numeric-literals/index.d.ts +5 -0
  510. package/dist/types/numeric-literals/index.d.ts.map +1 -1
  511. package/dist/types/numeric-literals/index.js +5 -0
  512. package/dist/types/queues/FifoQueue.d.ts +31 -0
  513. package/dist/types/queues/FifoQueue.d.ts.map +1 -0
  514. package/dist/types/queues/FifoQueue.js +1 -0
  515. package/dist/types/queues/LifoQueue.d.ts +31 -0
  516. package/dist/types/queues/LifoQueue.d.ts.map +1 -0
  517. package/dist/types/queues/LifoQueue.js +1 -0
  518. package/dist/types/queues/index.d.ts +3 -0
  519. package/dist/types/queues/index.d.ts.map +1 -0
  520. package/dist/types/queues/index.js +2 -0
  521. package/dist/types/runtime-types/AsType.d.ts +16 -0
  522. package/dist/types/runtime-types/AsType.d.ts.map +1 -0
  523. package/dist/types/runtime-types/AsType.js +1 -0
  524. package/dist/types/runtime-types/SimpleType.d.ts +47 -0
  525. package/dist/types/runtime-types/SimpleType.d.ts.map +1 -0
  526. package/dist/types/runtime-types/SimpleType.js +1 -0
  527. package/dist/types/runtime-types/Type.d.ts +1 -1
  528. package/dist/types/runtime-types/Type.d.ts.map +1 -1
  529. package/dist/types/runtime-types/TypeOf.d.ts +1 -1
  530. package/dist/types/runtime-types/TypeOf.d.ts.map +1 -1
  531. package/dist/types/runtime-types/TypeToken.d.ts +119 -9
  532. package/dist/types/runtime-types/TypeToken.d.ts.map +1 -1
  533. package/dist/types/runtime-types/index.d.ts +2 -1
  534. package/dist/types/runtime-types/index.d.ts.map +1 -1
  535. package/dist/types/runtime-types/index.js +2 -1
  536. package/dist/types/sets/Intersection.d.ts +1 -1
  537. package/dist/types/sets/Intersection.d.ts.map +1 -1
  538. package/dist/types/string-literals/Date.d.ts +4 -4
  539. package/dist/types/string-literals/Date.d.ts.map +1 -1
  540. package/dist/types/string-literals/EnsureLeading.d.ts +10 -6
  541. package/dist/types/string-literals/EnsureLeading.d.ts.map +1 -1
  542. package/dist/types/string-literals/EnsureTrailing.d.ts +5 -6
  543. package/dist/types/string-literals/EnsureTrailing.d.ts.map +1 -1
  544. package/dist/types/string-literals/Join.d.ts +3 -2
  545. package/dist/types/string-literals/Join.d.ts.map +1 -1
  546. package/dist/types/string-literals/Proxmox.d.ts +2 -3
  547. package/dist/types/string-literals/Proxmox.d.ts.map +1 -1
  548. package/dist/types/string-literals/Split.d.ts +1 -1
  549. package/dist/types/string-literals/Split.d.ts.map +1 -1
  550. package/dist/types/string-literals/StripLeading.d.ts +2 -2
  551. package/dist/types/string-literals/StripLeading.d.ts.map +1 -1
  552. package/dist/types/string-literals/StripSurround.d.ts +16 -0
  553. package/dist/types/string-literals/StripSurround.d.ts.map +1 -0
  554. package/dist/types/string-literals/StripSurround.js +1 -0
  555. package/dist/types/string-literals/StripTrailing.d.ts +2 -2
  556. package/dist/types/string-literals/StripTrailing.d.ts.map +1 -1
  557. package/dist/types/string-literals/StripUntil.d.ts +1 -1
  558. package/dist/types/string-literals/StripUntil.d.ts.map +1 -1
  559. package/dist/types/string-literals/Suggest.d.ts.map +1 -1
  560. package/dist/types/string-literals/Surround.d.ts +2 -2
  561. package/dist/types/string-literals/Surround.d.ts.map +1 -1
  562. package/dist/types/string-literals/Truncate.d.ts +4 -4
  563. package/dist/types/string-literals/Truncate.d.ts.map +1 -1
  564. package/dist/types/string-literals/UnderlyingType.d.ts +18 -0
  565. package/dist/types/string-literals/UnderlyingType.d.ts.map +1 -0
  566. package/dist/types/string-literals/UnderlyingType.js +1 -0
  567. package/dist/types/string-literals/character-sets/CSS.d.ts +13 -0
  568. package/dist/types/string-literals/character-sets/CSS.d.ts.map +1 -1
  569. package/dist/types/string-literals/character-sets/Consonants.d.ts +3 -4
  570. package/dist/types/string-literals/character-sets/Consonants.d.ts.map +1 -1
  571. package/dist/types/string-literals/character-sets/DomainName.d.ts +1 -1
  572. package/dist/types/string-literals/character-sets/DomainName.d.ts.map +1 -1
  573. package/dist/types/string-literals/character-sets/IpAddress.d.ts +1 -1
  574. package/dist/types/string-literals/character-sets/IpAddress.d.ts.map +1 -1
  575. package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts +2 -3
  576. package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts.map +1 -1
  577. package/dist/types/string-literals/character-sets/NumericChar.d.ts +3 -4
  578. package/dist/types/string-literals/character-sets/NumericChar.d.ts.map +1 -1
  579. package/dist/types/string-literals/character-sets/Repos.d.ts +2 -1
  580. package/dist/types/string-literals/character-sets/Repos.d.ts.map +1 -1
  581. package/dist/types/string-literals/character-sets/SingularNoun.d.ts +1 -1
  582. package/dist/types/string-literals/character-sets/SingularNoun.d.ts.map +1 -1
  583. package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts +2 -3
  584. package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts.map +1 -1
  585. package/dist/types/string-literals/character-sets/Url.d.ts +4 -3
  586. package/dist/types/string-literals/character-sets/Url.d.ts.map +1 -1
  587. package/dist/types/string-literals/character-sets/Url.js +0 -1
  588. package/dist/types/string-literals/character-sets/Whitespace.d.ts +1 -1
  589. package/dist/types/string-literals/character-sets/Whitespace.d.ts.map +1 -1
  590. package/dist/types/string-literals/character-sets/index.d.ts +1 -1
  591. package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
  592. package/dist/types/string-literals/character-sets/index.js +1 -1
  593. package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.d.ts +12 -0
  594. package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.d.ts.map +1 -0
  595. package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.js +1 -0
  596. package/dist/types/string-literals/character-sets/phone/DialCountryCode.d.ts +9 -0
  597. package/dist/types/string-literals/character-sets/phone/DialCountryCode.d.ts.map +1 -0
  598. package/dist/types/string-literals/character-sets/phone/DialCountryCode.js +1 -0
  599. package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.d.ts +14 -0
  600. package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.d.ts.map +1 -0
  601. package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.js +1 -0
  602. package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.d.ts +10 -0
  603. package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.d.ts.map +1 -0
  604. package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.js +1 -0
  605. package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.d.ts +12 -0
  606. package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.d.ts.map +1 -0
  607. package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.js +1 -0
  608. package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.d.ts +12 -0
  609. package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.d.ts.map +1 -0
  610. package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.js +1 -0
  611. package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.d.ts +6 -0
  612. package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.d.ts.map +1 -0
  613. package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.js +1 -0
  614. package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.d.ts +13 -0
  615. package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.d.ts.map +1 -0
  616. package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.js +1 -0
  617. package/dist/types/string-literals/character-sets/phone/PhoneNumber.d.ts +23 -0
  618. package/dist/types/string-literals/character-sets/phone/PhoneNumber.d.ts.map +1 -0
  619. package/dist/types/string-literals/character-sets/phone/PhoneNumber.js +1 -0
  620. package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.d.ts +5 -0
  621. package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.d.ts.map +1 -0
  622. package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.js +1 -0
  623. package/dist/types/string-literals/character-sets/phone/PhoneShortCode.d.ts +19 -0
  624. package/dist/types/string-literals/character-sets/phone/PhoneShortCode.d.ts.map +1 -0
  625. package/dist/types/string-literals/character-sets/phone/PhoneShortCode.js +1 -0
  626. package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.d.ts +30 -0
  627. package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.d.ts.map +1 -0
  628. package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.js +1 -0
  629. package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.d.ts +27 -0
  630. package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.d.ts.map +1 -0
  631. package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.js +1 -0
  632. package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.d.ts +17 -0
  633. package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.d.ts.map +1 -0
  634. package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.js +1 -0
  635. package/dist/types/string-literals/character-sets/phone/index.d.ts +15 -0
  636. package/dist/types/string-literals/character-sets/phone/index.d.ts.map +1 -0
  637. package/dist/types/string-literals/character-sets/phone/index.js +14 -0
  638. package/dist/types/string-literals/character-sets/phone.d.ts +0 -187
  639. package/dist/types/string-literals/character-sets/phone.d.ts.map +1 -1
  640. package/dist/types/string-literals/geo/state.d.ts +1 -1
  641. package/dist/types/string-literals/geo/state.d.ts.map +1 -1
  642. package/dist/types/string-literals/geo/zip.d.ts +1 -1
  643. package/dist/types/string-literals/geo/zip.d.ts.map +1 -1
  644. package/dist/types/string-literals/index.d.ts +2 -0
  645. package/dist/types/string-literals/index.d.ts.map +1 -1
  646. package/dist/types/string-literals/index.js +2 -0
  647. package/dist/types/tsconfig.tsbuildinfo +1 -1
  648. package/dist/types/type-conversion/AsBoolean.d.ts +7 -4
  649. package/dist/types/type-conversion/AsBoolean.d.ts.map +1 -1
  650. package/dist/types/type-conversion/AsNumber.d.ts +8 -3
  651. package/dist/types/type-conversion/AsNumber.d.ts.map +1 -1
  652. package/dist/types/type-conversion/AsString.d.ts +3 -1
  653. package/dist/types/type-conversion/AsString.d.ts.map +1 -1
  654. package/dist/types/type-conversion/AsStringUnion.d.ts +25 -0
  655. package/dist/types/type-conversion/AsStringUnion.d.ts.map +1 -0
  656. package/dist/types/type-conversion/AsStringUnion.js +1 -0
  657. package/dist/types/type-conversion/JSON.d.ts +25 -0
  658. package/dist/types/type-conversion/JSON.d.ts.map +1 -0
  659. package/dist/types/type-conversion/JSON.js +1 -0
  660. package/dist/types/type-conversion/StringLiteralFromTuple.d.ts +18 -0
  661. package/dist/types/type-conversion/StringLiteralFromTuple.d.ts.map +1 -0
  662. package/dist/types/type-conversion/StringLiteralFromTuple.js +1 -0
  663. package/dist/types/type-conversion/StripChars.d.ts +7 -6
  664. package/dist/types/type-conversion/StripChars.d.ts.map +1 -1
  665. package/dist/types/type-conversion/ToJsonValue.d.ts +11 -0
  666. package/dist/types/type-conversion/ToJsonValue.d.ts.map +1 -0
  667. package/dist/types/type-conversion/ToJsonValue.js +1 -0
  668. package/dist/types/type-conversion/ToStringArray.d.ts +4 -3
  669. package/dist/types/type-conversion/ToStringArray.d.ts.map +1 -1
  670. package/dist/types/type-conversion/TupleToUnion.d.ts +2 -2
  671. package/dist/types/type-conversion/TupleToUnion.d.ts.map +1 -1
  672. package/dist/types/type-conversion/Widen.js +1 -0
  673. package/dist/types/type-conversion/index.d.ts +4 -0
  674. package/dist/types/type-conversion/index.d.ts.map +1 -1
  675. package/dist/types/type-conversion/index.js +4 -0
  676. package/package.json +38 -36
  677. package/dist/runtime/lists/pop.d.ts +0 -17
  678. package/dist/runtime/lists/pop.d.ts.map +0 -1
  679. package/dist/runtime/lists/pop.js +0 -16
  680. package/dist/runtime/literals/asPhoneNumber.d.ts +0 -10
  681. package/dist/runtime/literals/asPhoneNumber.d.ts.map +0 -1
  682. package/dist/runtime/literals/asPhoneNumber.js +0 -62
  683. package/dist/runtime/runtime-types/dict.d.ts +0 -10
  684. package/dist/runtime/runtime-types/dict.d.ts.map +0 -1
  685. package/dist/runtime/runtime-types/dict.js +0 -11
  686. package/dist/runtime/runtime-types/parse.d.ts +0 -16
  687. package/dist/runtime/runtime-types/parse.d.ts.map +0 -1
  688. package/dist/runtime/runtime-types/parse.js +0 -29
  689. package/dist/types/base-types/fns/AnyFnWithDict.d.ts +0 -9
  690. package/dist/types/base-types/fns/AnyFnWithDict.d.ts.map +0 -1
  691. package/dist/types/base-types/fns/FnWithDict.d.ts +0 -10
  692. package/dist/types/base-types/fns/FnWithDict.d.ts.map +0 -1
  693. package/dist/types/runtime-types/DescribeType.d.ts +0 -40
  694. package/dist/types/runtime-types/DescribeType.d.ts.map +0 -1
  695. package/dist/types/runtime-types/DescribeType.js +0 -2
  696. /package/dist/types/base-types/{fns/AnyFnWithDict.js → LikeRegExp.js} +0 -0
  697. /package/dist/types/base-types/fns/{FnWithDict.js → FnAllowingProps.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"withKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,0BAAwB;AAIzE;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,+HAKb,IAAI,WACD,KAAK;;;;;;;8sBACU,CAAC"}
1
+ {"version":3,"file":"withKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,0BAAwB;AAIzE;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GACnB,IAAI,SAAS,UAAU,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC,EAC3C,CAAC,SAAS,UAAU,EACpB,KAAK,SAAS,SAAS,CAAC,SAAS,GAAG,MAAM,IAAI,CAAC,EAAE,QAE3C,IAAI,WACD,KAAK;;;;;;;iqBACU,CAAC"}
@@ -9,17 +9,5 @@ import type { NarrowObject, Narrowable } from "../../types/index";
9
9
  *
10
10
  * **Related**: `omit`, `createOmission`
11
11
  */
12
- export declare const withoutKeys: <TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys) => import("../../types/index").ExpandRecursively<import("../../types/index").RemoveIndexKeys<import("../../types/index").IfLength<import("../../types/index").AsArray<[...TKeys]>, 0, TObj, import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>> extends {
13
- [x: string]: never;
14
- [x: symbol]: never;
15
- } ? {
16
- [x: string]: never;
17
- [x: symbol]: never;
18
- } : import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>>, TObj | (import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>> extends {
19
- [x: string]: never;
20
- [x: symbol]: never;
21
- } ? {
22
- [x: string]: never;
23
- [x: symbol]: never;
24
- } : import("../../types/index").ExpandRecursively<Omit<TObj, import("../../types/index").TupleToUnion<import("../../types/index").AsArray<[...TKeys]>>>>)>>>;
12
+ export declare const withoutKeys: <TObj extends NarrowObject<N>, N extends Narrowable, TKeys extends readonly (string & keyof TObj)[]>(dict: TObj, ...exclude: TKeys) => import("../../types/index").WithoutKeys<TObj, [...TKeys]>;
25
13
  //# sourceMappingURL=withoutKeys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withoutKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,0BAAwB;AAIhE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,6GAKhB,IAAI,cACE,KAAK;;;;;;;;;;;;4JACQ,CAAC"}
1
+ {"version":3,"file":"withoutKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,0BAAwB;AAIhE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GACtB,IAAI,SAAS,YAAY,CAAC,CAAC,CAAC,EAC5B,CAAC,SAAS,UAAU,EACpB,KAAK,SAAS,SAAS,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,QAExC,IAAI,cACE,KAAK,8DACQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"withoutValue.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,0BAAwB;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,IAAI,SAAS,UAAU,EAAE,GAAG,EAAE,IAAI,iCACxB,IAAI,KAAG,aAAa,IAAI,EAAC,IAAI,CAAC,CAQpE"}
1
+ {"version":3,"file":"withoutValue.d.ts","sourceRoot":"","sources":["../../../src/runtime/dictionary/withoutValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,0BAAwB;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,IAAI,SAAS,UAAU,EAAE,GAAG,EAAE,IAAI,IACrD,IAAI,SAAS,SAAS,OAAO,IAAI,KAAG,YAAY,CAAC,IAAI,EAAC,IAAI,CAAC,CAQpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"KindError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/KindError.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACb,KAAK,EACN,0BAAwB;AAGzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,8EAId,CAAC,mBACU,CAAC,KACjB,cAAc,CAAC,EAAC,CAAC,CAkBnB,CAAA"}
1
+ {"version":3,"file":"KindError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/KindError.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACb,KAAK,EACN,0BAAwB;AAGzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,GACpB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,gBAEnC,CAAC,mBACU,CAAC,KACjB,aAAa,CAAC,CAAC,EAAC,CAAC,CAkBnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TypedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/TypedError.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,UAAU,EAAG,0BAAwB;AAGtE,MAAM,WAAW,UAAU,CACzB,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,QAAQ,SAAS,SAAS,GAAG,SAAS,CACtC,SAAQ,KAAK;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,MAAM,IAAI,CAC5C,IAAI,SAAS,MAAM,EACnB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAC7B,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,KAAK,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAEtE,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,EAC9C,IAAI,EAAE,KAAK,EACX,GAAG,EAAE,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEtC;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;CAC7D,CAAC;AAyBF,eAAO,MAAM,UAAU,8BAPkB,IAAI;;;;aAOK,CAAC"}
1
+ {"version":3,"file":"TypedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/TypedError.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,UAAU,EAAG,0BAAwB;AAGtE,MAAM,WAAW,UAAU,CACzB,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,QAAQ,SAAS,SAAS,GAAG,SAAS,CACtC,SAAQ,KAAK;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,MAAM,IAAI,CAC5C,IAAI,SAAS,MAAM,EACnB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAC7B,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,KAAK,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAEtE,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,EAC9C,IAAI,EAAE,KAAK,EACX,GAAG,EAAE,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEtC;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAS,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;CAC7D,CAAC;AAyBF,eAAO,MAAM,UAAU,IAPR,IAAI,SAAS,MAAM,OAAO,IAAI;;;;aAOK,CAAC"}
@@ -6,4 +6,9 @@ import { Throw } from "../../types/index";
6
6
  * runtime.
7
7
  */
8
8
  export declare const createErrorCondition: <TKind extends string, TMsg extends string = never, TUtility extends string = never>(kind: TKind, msg?: TMsg, utility?: TUtility) => Throw<TKind, TMsg, TUtility>;
9
+ export declare const errCondition: (kind: string, msg?: string) => {
10
+ __kind: string;
11
+ kind: string;
12
+ msg: string | undefined;
13
+ };
9
14
  //# sourceMappingURL=createErrorCondition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createErrorCondition.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/createErrorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAGxC;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,6FAKzB,KAAK,QACN,IAAI,YACA,QAAQ,iCAQlB,CAAC"}
1
+ {"version":3,"file":"createErrorCondition.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/createErrorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAGxC;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,KAAK,SAAS,MAAM,EACpB,IAAI,SAAS,MAAM,UACnB,QAAQ,SAAS,MAAM,gBAEjB,KAAK,QACN,IAAI,YACA,QAAQ,KAOD,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAC5C,CAAC;AAGF,eAAO,MAAM,YAAY,SACjB,MAAM,QACN,MAAM;;;;CAKZ,CAAA"}
@@ -12,3 +12,8 @@ export const createErrorCondition = (kind, msg = "", utility = "") => {
12
12
  utility,
13
13
  };
14
14
  };
15
+ export const errCondition = (kind, msg) => ({
16
+ __kind: "ErrorCondition",
17
+ kind,
18
+ msg
19
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"kindedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/kindedError.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACd,0BAAwB;AAEzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,mEAId,CAAC,mBACU,CAAC,KACjB,cAAc,CAAC,EAAC,CAAC,CAkBnB,CAAA"}
1
+ {"version":3,"file":"kindedError.d.ts","sourceRoot":"","sources":["../../../src/runtime/errors/kindedError.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EACd,0BAAwB;AAEzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,GACpB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,aAE3B,CAAC,mBACU,CAAC,KACjB,aAAa,CAAC,CAAC,EAAC,CAAC,CAkBnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fnMeta.d.ts","sourceRoot":"","sources":["../../../src/runtime/functions/fnMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAG,QAAQ,EAAE,0BAAwB;AAEzD,KAAK,MAAM,CAAC,GAAG,SAAS,WAAW,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;AAE9D;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,kCAAmC,GAAG;mDAG3C,CAAC;;CAWd,CAAC"}
1
+ {"version":3,"file":"fnMeta.d.ts","sourceRoot":"","sources":["../../../src/runtime/functions/fnMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAG,QAAQ,EAAE,0BAAwB;AAEzD,KAAK,MAAM,CAAC,GAAG,SAAS,WAAW,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;AAE9D;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,SAAS,WAAW,QAAQ,GAAG;SAErD,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,WACrB,CAAC;;CAWd,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./api/index";
2
+ export * from "./boolean-logic/index";
2
3
  export * from "./combinators/index";
3
4
  export * from "./dictionary/index";
4
5
  export * from "./errors/index";
@@ -8,6 +9,7 @@ export * from "./initializers/index";
8
9
  export * from "./lists/index";
9
10
  export * from "./literals/index";
10
11
  export * from "./meta/index";
12
+ export * from "./queues/index";
11
13
  export * from "./runtime-types/index";
12
14
  export * from "./sets/index";
13
15
  export * from "./type-conversion/index";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAA"}
@@ -1,4 +1,5 @@
1
1
  export * from "./api/index.js";
2
+ export * from "./boolean-logic/index.js";
2
3
  export * from "./combinators/index.js";
3
4
  export * from "./dictionary/index.js";
4
5
  export * from "./errors/index.js";
@@ -8,6 +9,7 @@ export * from "./initializers/index.js";
8
9
  export * from "./lists/index.js";
9
10
  export * from "./literals/index.js";
10
11
  export * from "./meta/index.js";
12
+ export * from "./queues/index.js";
11
13
  export * from "./runtime-types/index.js";
12
14
  export * from "./sets/index.js";
13
15
  export * from "./type-conversion/index.js";
@@ -1,9 +1,9 @@
1
- import { FnWithDict, Narrowable, TypedFunction } from "../../types/index";
1
+ import { FnWithProps, Narrowable, TypedFunction } from "../../types/index";
2
2
  /**
3
3
  * **addPropsToFn**(fn, [clone]) => (props) => FnWithProps
4
4
  *
5
5
  * A higher order function which takes a dictionary object and
6
6
  * then a function and combines them into a single type.
7
7
  */
8
- export declare const addPropsToFn: <TFn extends TypedFunction, TClone extends boolean | undefined>(fn: TFn, clone_fn?: TClone) => <K extends PropertyKey, N extends Narrowable, TProps extends Record<K, N>>(obj: TProps) => FnWithDict<TFn, TProps, TClone>;
8
+ export declare const addPropsToFn: <TFn extends TypedFunction, TClone extends boolean | undefined>(fn: TFn, clone_fn?: TClone) => <K extends PropertyKey, N extends Narrowable, TProps extends Record<K, N>>(obj: TProps) => FnWithProps<TFn, TProps, TClone>;
9
9
  //# sourceMappingURL=addFnToProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addFnToProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/addFnToProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAG,UAAU,EAAE,UAAU,EAAE,aAAa,EAAI,0BAAwB;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,YAAY,sEAGnB,GAAG,aAAa,MAAM,qFASjB,MAAM,oCAahB,CAAC"}
1
+ {"version":3,"file":"addFnToProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/addFnToProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAG,WAAW,EAAE,UAAU,EAAE,aAAa,EAAI,0BAAwB;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,GAAG,SAAS,aAAa,EACzB,MAAM,SAAS,OAAO,GAAG,SAAS,MAC9B,GAAG,aAAa,MAAM,MAMtB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,UAAU,EACpB,MAAM,SAAS,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,OACrB,MAAM,KAMO,WAAW,CAC3B,GAAG,EACH,MAAM,EACN,MAAM,CAIb,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FnWithDict, Narrowable, TypedFunction } from "../../types/index";
1
+ import { FnWithProps, Narrowable, TypedFunction } from "../../types/index";
2
2
  /**
3
3
  * **addFnToProps**(props, [clone]) => (fn) => FnWithProps
4
4
  *
@@ -11,5 +11,5 @@ import { FnWithDict, Narrowable, TypedFunction } from "../../types/index";
11
11
  * This is partially applied to reveal a function which takes a
12
12
  * function as input.
13
13
  */
14
- export declare const addFnToProps: <K extends string, N extends Narrowable, TProps extends Record<K, N>, TClone extends boolean | undefined>(props: TProps, _clone_fn?: TClone) => <TFn extends TypedFunction>(fn: TFn) => FnWithDict<TFn, TProps, TClone>;
14
+ export declare const addFnToProps: <K extends string, N extends Narrowable, TProps extends Record<K, N>, TClone extends boolean | undefined>(props: TProps, _clone_fn?: TClone) => <TFn extends TypedFunction>(fn: TFn) => FnWithProps<TFn, TProps, TClone>;
15
15
  //# sourceMappingURL=addPropsToFn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addPropsToFn.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/addPropsToFn.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,UAAU,EACV,aAAa,EACd,0BAAwB;AAEzB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,mHAMhB,MAAM,cAAc,MAAM,qCAG7B,GAAG,oCAUN,CAAC"}
1
+ {"version":3,"file":"addPropsToFn.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/addPropsToFn.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,aAAa,EACd,0BAAwB;AAEzB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GACvB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,UAAU,EACpB,MAAM,SAAS,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,EAC1B,MAAM,SAAS,OAAO,GAAG,SAAS,SAE3B,MAAM,cAAc,MAAM,MAEjC,GAAG,SAAS,aAAa,MACrB,GAAG,KAQa,WAAW,CAAC,GAAG,EAAC,MAAM,EAAC,MAAM,CAEhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createFnWithProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/createFnWithProps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,MAAM,EACN,UAAU,EACV,SAAS,EACV,0BAAwB;AAIzB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,oKAOxB,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,SACxB,MAAM,cACF,UAAU,wDAaS,CAAC,KAAK,OAAO,uBAC9B,KAAK,KAAK,OAAO,WAE/B,CAAA"}
1
+ {"version":3,"file":"createFnWithProps.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/createFnWithProps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,MAAM,EACN,UAAU,EACV,SAAS,EACV,0BAAwB;AAIzB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,OAAO,SAAS,UAAU,EAC1B,CAAC,SAAS,UAAU,EACpB,MAAM,SAAS,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,EACnC,UAAU,SAAS,OAAO,cAEtB,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,SACxB,MAAM,cACF,UAAU,KAWhB,EAAE,CACL,MAAM,CAAC,UAAU,CAAC,EAClB,CAAC,CAAC,CAAe,SAAL,KAAK,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,GAAG,MAAM,EACnD,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,MAAM,CAEzC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ExpandDictionary, IsNonEmptyObject, Narrowable, RemoveIndex, Widen } from "../../types/index";
1
+ import { EmptyObject, ExpandDictionary, IsNonEmptyObject, Narrowable, RemoveIndex, Widen } from "../../types/index";
2
2
  /**
3
3
  * **defineObj**(literal) -> (wide) -> object
4
4
  *
@@ -13,5 +13,5 @@ import { ExpandDictionary, IsNonEmptyObject, Narrowable, RemoveIndex, Widen } fr
13
13
  * const fooBarBaz = defineObj({foo: 1})({bar: 2, baz: 3});
14
14
  * ```
15
15
  */
16
- export declare function defineObj<N extends Narrowable, TLiteral extends Record<string, N>>(literal?: TLiteral): <N2 extends Narrowable, TWide extends Record<string, N2>>(wide?: TWide) => ExpandDictionary<RemoveIndex<TLiteral> & (IsNonEmptyObject<TWide> extends true ? Widen<TWide> : {})>;
16
+ export declare function defineObj<N extends Narrowable, TLiteral extends Record<string, N>>(literal?: TLiteral): <N2 extends Narrowable, TWide extends Record<string, N2>>(wide?: TWide) => ExpandDictionary<RemoveIndex<TLiteral> & (IsNonEmptyObject<TWide> extends true ? Widen<TWide> : EmptyObject)>;
17
17
  //# sourceMappingURL=defineObj.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defineObj.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/defineObj.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,KAAK,EACN,0BAAwB;AAEzB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CACvB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EAElC,OAAO,GAAE,QAA0B,oEAS3B,KAAK,0GAgBd"}
1
+ {"version":3,"file":"defineObj.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/defineObj.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,KAAK,EACN,0BAAwB;AAEzB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CACvB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EAElC,OAAO,GAAE,QAA0B,IAOjC,EAAE,SAAS,UAAU,EACrB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAC,EAAE,CAAC,SACzB,KAAK,KAQG,gBAAgB,CAC5B,WAAW,CAAC,QAAQ,CAAC,GAAG,CACtB,gBAAgB,CAAC,KAAK,CAAC,SAAS,IAAI,GAChC,KAAK,CAAC,KAAK,CAAC,GACZ,WAAW,CACd,CACF,CAEN"}
@@ -1 +1 @@
1
- {"version":3,"file":"defineTuple.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/defineTuple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,cAAc,EAAE,0BAAwB;AAG1E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,mDAEX,CAAC,gBAMb,CAAC"}
1
+ {"version":3,"file":"defineTuple.d.ts","sourceRoot":"","sources":["../../../src/runtime/initializers/defineTuple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,cAAc,EAAE,0BAAwB;AAG1E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,GACtB,CAAC,SAAS,SAAS,cAAc,EAAE,aACxB,CAAC,KAKI,QAAQ,CAAC,CAAC,CAC3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"asArray.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/asArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAEtD;;GAEG;AACH,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,SAAS,EAAE,SAAS,CAAC,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC;AAEjG;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO,gCAAiC,CAAC,eASrD,CAAC"}
1
+ {"version":3,"file":"asArray.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/asArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAEtD;;GAEG;AACH,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,SAAS,EAAE,SAAS,CAAC,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC;AAEjG;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,UAAU,SAAS,CAAC,KAQ/C,OAAO,CAAC,CAAC,CACf,CAAC"}
@@ -1,10 +1,9 @@
1
- import { ComparatorOperation, Comparison, ParamsForComparison } from "../../types/boolean-logic";
2
- import { Narrowable } from "../../types/literals";
1
+ import { ComparatorOperation, Comparison, ParamsForComparison, Narrowable } from "../../types/index";
3
2
  /**
4
3
  * **createComparison**(op, ...args)
5
4
  *
6
5
  * Creates a _future_ comparison which can be used with the `filter`, `retain`, and
7
6
  * other runtime utilities.
8
7
  */
9
- export declare const createComparison: <TOp extends ComparatorOperation, TArgs extends readonly Narrowable[]>(op: TOp, ...args: TArgs & ParamsForComparison<TOp>) => Comparison<TOp, TArgs & ParamsForComparison<TOp>>;
8
+ export declare const createComparison: <TOp extends ComparatorOperation, TArgs extends readonly Narrowable[]>(_op: TOp, ...args: TArgs & ParamsForComparison<TOp>) => Comparison<TOp, typeof args>;
10
9
  //# sourceMappingURL=createComparison.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createComparison.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createComparison.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,mBAAmB,EAAE,kCAAgC;AAC/F,OAAO,EAAG,UAAU,EAAE,6BAA2B;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,6EAGvB,GAAG,WAAW,KAAK,GAAG,oBAAoB,GAAG,CAAC,sDAEnD,CAAA"}
1
+ {"version":3,"file":"createComparison.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createComparison.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,mBAAmB,EAAE,UAAU,EAAE,mBAAmB,EAAE,UAAU,EAAE,0BAAwB;AAEpG;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,GAAG,SAAS,mBAAmB,EAC/B,KAAK,SAAS,SAAS,UAAU,EAAE,OAC9B,GAAG,WAAW,KAAK,GAAG,mBAAmB,CAAC,GAAG,CAAC,KACH,UAAU,CAAC,GAAG,EAAE,OAAO,IAAI,CAC5E,CAAA"}
@@ -4,6 +4,6 @@
4
4
  * Creates a _future_ comparison which can be used with the `filter`, `retain`, and
5
5
  * other runtime utilities.
6
6
  */
7
- export const createComparison = (op, ...args) => {
7
+ export const createComparison = (_op, ...args) => {
8
8
  return [args[0], ...args.slice(1)];
9
9
  };
@@ -20,6 +20,6 @@ type ConversionResult<TConvert extends Partial<ConverterDefn<any, any, any, any,
20
20
  * });
21
21
  * ```
22
22
  */
23
- export declare function createConverter<TStr extends Narrowable = never, TNum extends Narrowable = never, TBool extends Narrowable = never, TObj extends Narrowable = never, TTuple extends Narrowable = never, TNothing extends Narrowable = never>(mapper: Partial<ConverterDefn<TStr, TNum, TBool, TObj, TTuple, TNothing>>): <TInput extends Narrowable | readonly unknown[]>(input: TInput) => ConversionResult<Partial<ConverterDefn<TStr, TNum, TBool, TObj, TTuple, TNothing>>, TInput>;
23
+ export declare function createConverter<TStr extends Narrowable = never, TNum extends Narrowable = never, TBool extends Narrowable = never, TObj extends Narrowable = never, TTuple extends Narrowable = never, TNothing extends Narrowable = never>(mapper: Partial<ConverterDefn<TStr, TNum, TBool, TObj, TTuple, TNothing>>): <TInput extends Narrowable | Tuple>(input: TInput) => ConversionResult<typeof mapper, TInput>;
24
24
  export {};
25
25
  //# sourceMappingURL=createConverter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createConverter.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createConverter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,aAAa,EACd,0BAAwB;AAKzB,KAAK,aAAa,CAChB,OAAO,IACL,OAAO,SAAS,aAAa,GAC7B,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,GACrB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,OAAO,GACtB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,MAAM,SAAS,SAAS,GACxB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,KAAK,GACpB,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAChC,MAAM,SAAS,OAAO,GACtB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;;;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,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,2DACvB,MAAM,iGAqCzD"}
1
+ {"version":3,"file":"createConverter.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/createConverter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,aAAa,EACd,0BAAwB;AAKzB,KAAK,aAAa,CAChB,OAAO,IACL,OAAO,SAAS,aAAa,GAC7B,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,GACrB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,OAAO,GACtB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,MAAM,SAAS,SAAS,GACxB,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GACjC,MAAM,SAAS,KAAK,GACpB,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAChC,MAAM,SAAS,OAAO,GACtB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAClC,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;;;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,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,IACjE,MAAM,SAAS,UAAU,GAAG,KAAK,SAAS,MAAM,KAkCrC,gBAAgB,CAAC,OAAO,MAAM,EAAE,MAAM,CAAC,CAG3D"}
@@ -1,2 +1,2 @@
1
- export declare const FILTER = "NOT READY";
1
+ export declare const filter = "NOT READY";
2
2
  //# sourceMappingURL=filter.d.ts.map
@@ -2,12 +2,12 @@
2
2
  // import { isSameTypeOf } from "../type-guards/higher-order/isSameTypeOf";
3
3
  // import { endsWith,startsWith } from "../type-guards";
4
4
  // import { asArray } from "./asArray";
5
- // import { Never } from "src/constants/Never";
5
+ // import { Never } from "src/constants/index";
6
6
  // /**
7
7
  // * **createFilter**(op,comparator) → (list) → _filtered results_
8
- // *
8
+ // *
9
9
  // * A higher order runtime utility.
10
- // *
10
+ // *
11
11
  // * - on it's first call it specifies the comparison that will be
12
12
  // * made in the future
13
13
  // * ```ts
@@ -52,4 +52,4 @@
52
52
  // }
53
53
  // return result as Filter<TList, TComparator, TOp>;
54
54
  // };
55
- export const FILTER = "NOT READY";
55
+ export const filter = "NOT READY";
@@ -11,5 +11,5 @@ export type Finder<TList extends Tuple, TDeref extends string | number | null> =
11
11
  * A higher order function that allows _finding_ an element in a list
12
12
  * while preserving any available type information.
13
13
  */
14
- export declare const find: <TList extends readonly unknown[], TDeref extends string | number | null = null>(list: TList, deref?: TDeref) => Finder<TList, TDeref>;
14
+ export declare const find: <TList extends Tuple, TDeref extends string | number | null = null>(list: TList, deref?: TDeref) => Finder<TList, TDeref>;
15
15
  //# sourceMappingURL=find.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/find.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,EACN,0BAAwB;AAIzB;;;;GAIG;AACH,MAAM,MAAM,MAAM,CAChB,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,IACnC,CAAC,QAAQ,SAAS,UAAU,GAAG,aAAa,EAAE,KAAK,EAAE,QAAQ,KAAK,IAAI,CACxE,KAAK,EACL,QAAQ,EACR,QAAQ,CAAC,QAAQ,CAAC,EAClB,MAAM,CACP,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,IAAI,yFAIT,KAAK,UACJ,MAAM,KACZ,OAAO,KAAK,EAAE,MAAM,CAYtB,CAAC"}
1
+ {"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/find.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,EACN,0BAAwB;AAIzB;;;;GAIG;AACH,MAAM,MAAM,MAAM,CAChB,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,IACnC,CAAC,QAAQ,SAAS,UAAU,GAAG,aAAa,EAAE,KAAK,EAAE,QAAQ,KAAK,IAAI,CACxE,KAAK,EACL,QAAQ,EACR,QAAQ,CAAC,QAAQ,CAAC,EAClB,MAAM,CACP,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,IAAI,GACf,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,eAE/B,KAAK,UACJ,MAAM,KACZ,MAAM,CAAC,KAAK,EAAE,MAAM,CAYtB,CAAC"}
@@ -10,7 +10,6 @@ export * from "./createConverter";
10
10
  export * from "./slice";
11
11
  export * from "./last";
12
12
  export * from "./reverse";
13
- export * from "./pop";
14
13
  export * from "./join";
15
14
  export * from "./shift";
16
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/index.ts"],"names":[],"mappings":"AAOA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/index.ts"],"names":[],"mappings":"AAOA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -15,7 +15,6 @@ export * from "./createConverter.js";
15
15
  export * from "./slice.js";
16
16
  export * from "./last.js";
17
17
  export * from "./reverse.js";
18
- export * from "./pop.js";
19
18
  export * from "./join.js";
20
19
  export * from "./shift.js";
21
20
  // #endregion auto-indexed files
@@ -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,0BAAwB;AAIzB;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CACrB,UAAU,SAAS,UAAU,GAAG,KAAK,EACrC,IAAI,SAAS,WAAW,GAAG,IAAI,EAC/B,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,6BA0B7B"}
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,0BAAwB;AAGzB;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CACrB,UAAU,SAAS,UAAU,GAAG,KAAK,EACrC,IAAI,SAAS,WAAW,GAAG,IAAI,EAC/B,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,GA6BvB,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAC/B"}
@@ -1,5 +1,4 @@
1
- import { Never } from "../../constants/index.js";
2
- import { isArray, isNull, isNumber, isObject } from "../index.js";
1
+ import { errCondition, isArray, isNull, isNumber, isObject } from "../index.js";
3
2
  /**
4
3
  * **indexOf**(val, index)
5
4
  *
@@ -28,8 +27,12 @@ export function indexOf(val, index) {
28
27
  : isNull(idx)
29
28
  ? val
30
29
  : isArray(val)
31
- ? Number(idx) in val ? val[Number(idx)] : Never
30
+ ? Number(idx) in val
31
+ ? val[Number(idx)]
32
+ : errCondition("invalid-index", `attempt to index a numeric array with an invalid index: ${Number(idx)}`)
32
33
  : isObject(val)
33
- ? String(idx) in val ? val[String(idx)] : Never
34
- : Never);
34
+ ? String(idx) in val
35
+ ? val[String(idx)]
36
+ : errCondition("invalid-index", `attempt to index a dictionary object with an invalid index: ${String(idx)}`)
37
+ : errCondition("invalid-container-type", `Attempt to use indexOf() on an invalid container type: ${typeof val}`));
35
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/intersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAG,0BAAwB;AA4ChE;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,uGAKpB,CAAC,KACD,CAAC,UACG,MAAM,KACZ,aAAa,CAAC,EAAE,CAAC,EAAE,MAAM,CAM3B,CAAC"}
1
+ {"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/intersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAG,0BAAwB;AA4ChE;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GACvB,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,MAAM,SAAS,MAAM,GAAG,IAAI,YAEzB,CAAC,KACD,CAAC,UACG,MAAM,KACZ,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAM3B,CAAC"}
@@ -13,5 +13,5 @@ export type Joiner<TJoin extends string> = <TContent extends Tuple<string>>(...t
13
13
  * const list = join(", ")("foo", "bar", "baz");
14
14
  * ```
15
15
  */
16
- export declare function join<TJoin extends string>(joinWith: TJoin): Joiner<TJoin>;
16
+ export declare function joinWith<TJoin extends string>(joinWith: TJoin): <TContent extends readonly string[]>(...tuple: TContent) => Join<TContent, TJoin>;
17
17
  //# sourceMappingURL=join.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/join.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,0BAAwB;AAE9C,MAAM,MAAM,MAAM,CAAC,KAAK,SAAS,MAAM,IAAI,CAAC,QAAQ,SAAS,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC,QAAQ,EAAC,KAAK,CAAC,CAAC;AAExH;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,KAAK,SAAS,MAAM,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAIzE"}
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/join.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,0BAAwB;AAE9C,MAAM,MAAM,MAAM,CAChB,KAAK,SAAS,MAAM,IAAI,CAAC,QAAQ,SAAS,KAAK,CAAC,MAAM,CAAC,EACvD,GAAG,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC,QAAQ,EAAC,KAAK,CAAC,CAAC;AAG9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,KAAK,SAAS,MAAM,EAC3C,QAAQ,EAAE,KAAK,IAMP,QAAQ,SAAS,SAAS,MAAM,EAAE,YAC9B,QAAQ,KACjB,IAAI,CAAC,QAAQ,EAAC,KAAK,CAAC,CAIxB"}
@@ -11,8 +11,12 @@
11
11
  * const list = join(", ")("foo", "bar", "baz");
12
12
  * ```
13
13
  */
14
- export function join(joinWith) {
14
+ export function joinWith(joinWith) {
15
+ /**
16
+ * add elements of the tuple you want to join
17
+ */
15
18
  return (...tuple) => {
16
- return tuple.join(joinWith);
19
+ const tup = tuple;
20
+ return tup.join(joinWith);
17
21
  };
18
22
  }
@@ -1,3 +1,3 @@
1
- import { Last } from "../../types/index";
2
- export declare const last: <T extends readonly unknown[]>(list: T) => Last<T>;
1
+ import { Last, Tuple } from "../../types/index";
2
+ export declare const last: <T extends Tuple>(list: T) => Last<T>;
3
3
  //# sourceMappingURL=last.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"last.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/last.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,0BAAwB;AAE9C,eAAO,MAAM,IAAI,uCAA2B,CAAC,KAAG,KAAK,CAAC,CAErD,CAAC"}
1
+ {"version":3,"file":"last.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/last.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,0BAAwB;AAE9C,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,KAAK,QAAQ,CAAC,KAAG,IAAI,CAAC,CAAC,CAErD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"logicalReturns.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/logicalReturns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,0BAAwB;AAKhE,wBAAgB,cAAc,CAC5B,WAAW,SAAS,SAAS,CAAC,OAAO,GAAG,aAAa,CAAC,EAAE,EACxD,UAAU,EAAE,WAAW,+BASxB"}
1
+ {"version":3,"file":"logicalReturns.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/logicalReturns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,0BAAwB;AAKhE,wBAAgB,cAAc,CAC5B,WAAW,SAAS,SAAS,CAAC,OAAO,GAAG,aAAa,CAAC,EAAE,EACxD,UAAU,EAAE,WAAW,GAOP,cAAc,CAAC,WAAW,CAAC,CAE5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/reverse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,0BAAwB;AAE1C;;;;GAIG;AACH,eAAO,MAAM,OAAO,uCAAwC,CAAC,KAAG,QAAQ,CAAC,CAExE,CAAC"}
1
+ {"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/reverse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,0BAAwB;AAE1C;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,SAAS,OAAO,EAAE,QAAQ,CAAC,KAAG,OAAO,CAAC,CAAC,CAExE,CAAC"}
@@ -1,10 +1,22 @@
1
- import { Narrowable, Slice, Tuple } from "../../types/index";
2
- export type ShiftResult<V, L extends Tuple> = [value: V, list: L];
1
+ import { First, IsEqual, IsUndefined, Narrowable } from "../../types/index";
2
+ type Rtn<T extends readonly K[] | K[] | undefined, K extends Narrowable> = IsUndefined<T> extends true ? undefined : T extends readonly K[] | K[] ? IsEqual<T["length"], number> extends true ? undefined | string : T["length"] extends 0 ? undefined : First<T> : never;
3
3
  /**
4
4
  * **shift**(list)
5
5
  *
6
- * Takes a list of elements and then returns a `ShiftResult` unless
7
- * there were no more elements in which case the value _undefined_ is returned.
6
+ * Takes a list of elements and:
7
+ *
8
+ * - if the list is empty returns _undefined_
9
+ * - otherwise returns the first element in the list
10
+ *
11
+ * **Note:** unlike using the builtin `ARR.shift()` method:
12
+ *
13
+ * - the source array is _never_ mutated
14
+ * - you can shift off the first element of the readonly array as well a mutable one
15
+ * (because the underlying array is _not_ mutated)
16
+ * - in **many** cases, you should be using a queue of some sort with utils like
17
+ * `createLifoQueue()` or `createFifoQueue()`
18
+ *
8
19
  */
9
- export declare const shift: <N extends Narrowable, K extends PropertyKey, T extends readonly (Narrowable | Record<K, N>)[]>(list: T) => ShiftResult<T[0], Slice<T, 1>>;
20
+ export declare const shift: <T extends readonly K[] | K[] | undefined, K extends Narrowable>(list: T) => Rtn<T, K>;
21
+ export {};
10
22
  //# sourceMappingURL=shift.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shift.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/shift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,0BAAwB;AAE5D,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAElE;;;;;GAKG;AACH,eAAO,MAAM,KAAK,wGAIV,CAAC,mCAMR,CAAC"}
1
+ {"version":3,"file":"shift.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/shift.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,OAAO,EACP,WAAW,EACX,UAAU,EACX,0BAAwB;AAGzB,KAAK,GAAG,CACN,CAAC,SAAS,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,SAAS,EACxC,CAAC,SAAS,UAAU,IAClB,WAAW,CAAC,CAAC,CAAC,SAAS,IAAI,GAC3B,SAAS,GACT,CAAC,SAAS,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,GAC5B,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,SAAS,IAAI,GACvC,SAAS,GAAG,MAAM,GAClB,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GACnB,SAAS,GACT,KAAK,CAAC,CAAC,CAAC,GACZ,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,KAAK,GAChB,CAAC,SAAU,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,SAAS,EACzC,CAAC,SAAS,UAAU,QACd,CAAC,KAAG,GAAG,CAAC,CAAC,EAAC,CAAC,CAuBlB,CAAC"}
@@ -1,11 +1,39 @@
1
+ import { isDefined } from "../index.js";
1
2
  /**
2
3
  * **shift**(list)
3
4
  *
4
- * Takes a list of elements and then returns a `ShiftResult` unless
5
- * there were no more elements in which case the value _undefined_ is returned.
5
+ * Takes a list of elements and:
6
+ *
7
+ * - if the list is empty returns _undefined_
8
+ * - otherwise returns the first element in the list
9
+ *
10
+ * **Note:** unlike using the builtin `ARR.shift()` method:
11
+ *
12
+ * - the source array is _never_ mutated
13
+ * - you can shift off the first element of the readonly array as well a mutable one
14
+ * (because the underlying array is _not_ mutated)
15
+ * - in **many** cases, you should be using a queue of some sort with utils like
16
+ * `createLifoQueue()` or `createFifoQueue()`
17
+ *
6
18
  */
7
19
  export const shift = (list) => {
8
- return (list.length > 0
9
- ? [list[0], list.slice(1)]
10
- : undefined);
20
+ let rtn;
21
+ if (isDefined(list)) {
22
+ rtn = (list.length === 0
23
+ ? undefined
24
+ : list[0]);
25
+ try {
26
+ // remove item from source array where possible
27
+ // note: not possible when array is frozen by being
28
+ // made readonly
29
+ list = list.slice(1);
30
+ }
31
+ catch {
32
+ // ignore
33
+ }
34
+ }
35
+ else {
36
+ rtn = undefined;
37
+ }
38
+ return rtn;
11
39
  };
@@ -1,9 +1,9 @@
1
- import { Slice } from "../../types/index";
1
+ import { Slice, Tuple } from "../../types/index";
2
2
  /**
3
3
  * **slice**(list, start, end)
4
4
  *
5
5
  * Runtime utility to slice an array while maintaining strong
6
6
  * types.
7
7
  */
8
- export declare const slice: <TList extends readonly unknown[], TStart extends number, TEnd extends number>(list: TList, start: TStart, end: TEnd) => Slice<TList, TStart, TEnd>;
8
+ export declare const slice: <TList extends Tuple, TStart extends number, TEnd extends number>(list: TList, start: TStart, end: TEnd) => Slice<TList, TStart, TEnd>;
9
9
  //# sourceMappingURL=slice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAS,0BAAwB;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,KAAK,uFAIV,KAAK,SAAS,MAAM,OAAO,IAAI,+BAEtC,CAAC"}
1
+ {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../src/runtime/lists/slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,0BAAwB;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAChB,KAAK,SAAS,KAAK,EACnB,MAAM,SAAS,MAAM,EACrB,IAAI,SAAS,MAAM,QACb,KAAK,SAAS,MAAM,OAAO,IAAI,KACL,KAAK,CAAC,KAAK,EAAC,MAAM,EAAC,IAAI,CACxD,CAAC"}
@@ -1,9 +1,9 @@
1
- import { First, Narrowable, UnionToTuple } from "../../types/index";
1
+ import { First, Narrowable, UnionToTuple, Unique } from "../../types/index";
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 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>)[] ? UnionToTuple<import("../../types/index").TupleToUnion<UnionToTuple<First<T>>>, import("../../types/index").LastInUnion<import("../../types/index").TupleToUnion<UnionToTuple<First<T>>>>> : UnionToTuple<import("../../types/index").TupleToUnion<T>, import("../../types/index").LastInUnion<import("../../types/index").TupleToUnion<T>>>;
8
+ export declare const unique: <N extends Narrowable, K extends number, T extends readonly (Record<K, N> | Narrowable)[]>(...values: T) => First<T> extends readonly (Record<K, N> | Narrowable)[] ? 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,EAAG,KAAK,EAAG,UAAU,EAAG,YAAY,EAAU,0BAAwB;AAG7E;;;;;GAKG;AACH,eAAO,MAAM,MAAM,wGAIN,CAAC,0YAYb,CAAA"}
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,0BAAwB;AAG7E;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GACnB,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,aAClC,CAAC,KASA,KAAK,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,GAC5D,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAChC,MAAM,CAAC,CAAC,CACb,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/box.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,GAAG,EACH,SAAS,EACV,0BAAwB;AAGzB,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAElF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACtE,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,OAAO,GACrC,CAAC,GACD,EAAE,GACJ,EAAE,CAAC;AAGP;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAU1D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,IAAI,GAAG,CAAC,OAAO,CAAC,CAK9D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,kCAS/D;AAED,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAMtD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAK5D"}
1
+ {"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/box.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,GAAG,EACH,SAAS,EACV,0BAAwB;AAGzB,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAElF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACtE,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,OAAO,GACrC,CAAC,GACD,EAAE,GACJ,EAAE,CAAC;AAGP;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAU1D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,IAAI,GAAG,CAAC,OAAO,CAAC,CAK9D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,MAMzD,CAAC,2BAGP;AAED,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAMtD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAK5D"}
@@ -1,9 +1,9 @@
1
- import { AsString, EnsureLeading } from "../../types/index";
1
+ import { EnsureLeading } from "../../types/index";
2
2
  /**
3
3
  * **ensureLeading**(content, strip)
4
4
  *
5
5
  * Runtime utility which ensures that last part of a string -- `content` -- has the
6
6
  * substring `ensure` at the end and adds it if not present.
7
7
  */
8
- export declare function ensureLeading<T extends string | number, U extends string>(content: T, ensure: U): EnsureLeading<AsString<T>, U>;
8
+ export declare function ensureLeading<T extends string | number, U extends string | number>(content: T, ensure: U): EnsureLeading<T, U>;
9
9
  //# sourceMappingURL=ensureLeading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ensureLeading.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/ensureLeading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,0BAAwB;AAE1D;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,CAAC,SAAS,MAAM,EAEhB,OAAO,EAAE,CAAC,EACV,MAAM,EAAE,CAAC,iCAOV"}
1
+ {"version":3,"file":"ensureLeading.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/ensureLeading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,aAAa,EAAE,0BAAwB;AAGjD;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,CAAC,SAAS,MAAM,GAAG,MAAM,EAEzB,OAAO,EAAE,CAAC,EACV,MAAM,EAAE,CAAC,GAUH,aAAa,CAAC,CAAC,EAAC,CAAC,CAAC,CAEzB"}
@@ -1,3 +1,4 @@
1
+ import { isString } from "../type-guards/isString.js";
1
2
  /**
2
3
  * **ensureLeading**(content, strip)
3
4
  *
@@ -5,7 +6,10 @@
5
6
  * substring `ensure` at the end and adds it if not present.
6
7
  */
7
8
  export function ensureLeading(content, ensure) {
8
- return (String(content).startsWith(ensure)
9
+ let output = String(content);
10
+ return (output.startsWith(String(ensure))
9
11
  ? content
10
- : `${ensure}${content}`);
12
+ : isString(content)
13
+ ? `${ensure}${content}`
14
+ : Number(`${ensure}${content}`));
11
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ensureSurround.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/ensureSurround.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,0BAAwB;AAGjD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,OAAO,SAAS,MAAM,EACtB,QAAQ,SAAS,MAAM,EACvB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,kCAGzB,MAAM,KACZ,eAAe,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAU7C"}
1
+ {"version":3,"file":"ensureSurround.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/ensureSurround.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,0BAAwB;AAGjD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,OAAO,SAAS,MAAM,EACtB,QAAQ,SAAS,MAAM,EACvB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,IAEtB,MAAM,SAAS,MAAM,SACxB,MAAM,KACZ,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAU7C"}