inferred-types 0.46.1 → 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 +1799 -1076
  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 +36 -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
@@ -0,0 +1,3 @@
1
+ export * from "./fifo";
2
+ export * from "./lifo";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/queues/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./fifo.js";
2
+ export * from "./lifo.js";
@@ -0,0 +1,3 @@
1
+ import { LifoQueue, Narrowable } from "../../types/index";
2
+ export declare const createLifoQueue: <T extends readonly K[], K extends Narrowable>(...list: T) => LifoQueue<T[number]>;
3
+ //# sourceMappingURL=lifo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifo.d.ts","sourceRoot":"","sources":["../../../src/runtime/queues/lifo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,UAAU,EAAE,0BAAwB;AAsC1E,eAAO,MAAM,eAAe,GAC1B,CAAC,SAAS,SAAS,CAAC,EAAE,EACtB,CAAC,SAAS,UAAU,WACX,CAAC,yBAGX,CAAA"}
@@ -0,0 +1,34 @@
1
+ const queue = (state) => ({
2
+ queue: state,
3
+ size: state.length,
4
+ isEmpty() {
5
+ return state.length === 0;
6
+ },
7
+ push(...add) {
8
+ state.push(...add);
9
+ },
10
+ drop(quantity) {
11
+ state.splice(-quantity);
12
+ },
13
+ clear() {
14
+ state.slice(0, 0);
15
+ },
16
+ drain() {
17
+ const old_state = [...state];
18
+ state.slice(0, 0);
19
+ return old_state;
20
+ },
21
+ take(quantity) {
22
+ const result = state.slice(-quantity);
23
+ state.splice(-quantity);
24
+ return result;
25
+ },
26
+ [Symbol.iterator]: function* () {
27
+ for (let i = state.length - 1; i >= 0; i--) {
28
+ yield state[i];
29
+ }
30
+ }
31
+ });
32
+ export const createLifoQueue = (...list) => {
33
+ return queue([...list]);
34
+ };
@@ -0,0 +1,35 @@
1
+ import { Narrowable, SimpleContainerToken, SimpleScalarToken, SimpleType, SimpleUnionToken } from "../../types/index";
2
+ export declare const asSimpleToken: <T extends Narrowable>(_val: T) => string;
3
+ /**
4
+ * **simpleScalarTokenToTypeToken**`(val)`
5
+ *
6
+ * Receives a `SimpleScalarToken` and converts it's runtime value to a
7
+ * more full fledged `TypeToken` while converting the _type_ to be the
8
+ * type that the token represents.
9
+ *
10
+ * **Related:** `simplContainerTokenToTypeToken`, `asTypeToken`
11
+ */
12
+ export declare const simpleScalarTokenToTypeToken: <T extends SimpleScalarToken>(val: T) => SimpleType<T>;
13
+ /**
14
+ * **simpleUnionTokenToTypeToken**`(val)`
15
+ *
16
+ * Converts a `SimpleUnionToken` to a `TypeToken` and converts the type to
17
+ * the type _represented_ by the token.
18
+ *
19
+ * Note:
20
+ * - when passing in _literals_ such as `opt(42)` it will evaluate the value
21
+ * as being a numeric or a boolean literal and use that type if it is
22
+ */
23
+ export declare const simpleUnionTokenToTypeToken: <T extends SimpleUnionToken>(val: T) => SimpleType<T>;
24
+ /**
25
+ * **simpleContainerTokenToTypeToken**`(val)`
26
+ *
27
+ * Receives a `SimpleContainerToken` and converts it's runtime value to a
28
+ * more full fledged `TypeToken` while converting the _type_ to be the
29
+ * type that the token represents.
30
+ *
31
+ * **Related:** `simpleScalarTokenToTypeToken`, `asTypeToken`
32
+ */
33
+ export declare const simpleContainerTokenToTypeToken: <T extends SimpleContainerToken>(_val: T) => void;
34
+ export declare const asTypeToken: <T extends Narrowable>(_val: T) => string;
35
+ //# sourceMappingURL=asToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asToken.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/asToken.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EACjB,0BAAwB;AAazB,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,UAAU,QAAQ,CAAC,WAE1D,CAAA;AAoCD;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,iBAAiB,OAAO,CAAC,KAazE,UAAU,CAAC,CAAC,CAClB,CAAA;AA8BD;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,gBAAgB,OAAO,CAAC,KASvE,UAAU,CAAC,CAAC,CAClB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,oBAAoB,QAAQ,CAAC,SAEtF,CAAA;AAID,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,UAAU,QAAQ,CAAC,WAExD,CAAA"}
@@ -0,0 +1,115 @@
1
+ import { isBooleanLike, isNumberLike, isSimpleContainerToken, isSimpleScalarToken, simpleScalarToken, stripAfter, stripBefore, stripSurround } from "../index.js";
2
+ // TODO
3
+ export const asSimpleToken = (_val) => {
4
+ return "not ready";
5
+ };
6
+ const scalarToToken = {
7
+ string: "<<string>>",
8
+ number: "<<number>>",
9
+ boolean: "<<boolean>>",
10
+ true: "<<true>>",
11
+ false: "<<false>>",
12
+ null: "<<null>>",
13
+ undefined: "<<undefined>>",
14
+ unknown: "<<unknown>>",
15
+ any: "<<any>>",
16
+ never: "<<never>>",
17
+ };
18
+ const _containerToToken = {
19
+ "array(string)": "",
20
+ "array(boolean)": "",
21
+ "array(number)": "",
22
+ "array(unknown)": "",
23
+ };
24
+ const unionToToken = {
25
+ "opt(string)": "<<union::[ <<string>>, <<undefined>> ]>>",
26
+ "opt(number)": "<<union::[ <<number>>, <<undefined>> ]>>",
27
+ "opt(unknown)": "<<union::[ <<unknown>>, <<undefined>> ]>>",
28
+ "opt(boolean)": "<<union::[ <<boolean>>, <<undefined>> ]>>",
29
+ };
30
+ const stringLiteral = (str) => {
31
+ return stripAfter(stripBefore(str, "string("), ")");
32
+ };
33
+ const numericLiteral = (str) => {
34
+ return stripAfter(stripBefore(str, "number("), ")");
35
+ };
36
+ /**
37
+ * **simpleScalarTokenToTypeToken**`(val)`
38
+ *
39
+ * Receives a `SimpleScalarToken` and converts it's runtime value to a
40
+ * more full fledged `TypeToken` while converting the _type_ to be the
41
+ * type that the token represents.
42
+ *
43
+ * **Related:** `simplContainerTokenToTypeToken`, `asTypeToken`
44
+ */
45
+ export const simpleScalarTokenToTypeToken = (val) => {
46
+ return (val in scalarToToken
47
+ ? scalarToToken[val]
48
+ : val.startsWith("string(")
49
+ ? stringLiteral(val).includes(",")
50
+ ? `<<union::[ ${stringLiteral(val).split(/,\s{0,1}/).map(i => `"${i}"`).join(", ")} ]>>`
51
+ : `<<string::${stringLiteral(val)}>>`
52
+ : val.startsWith("number(")
53
+ ? numericLiteral(val).includes(",")
54
+ ? `<<union::[ ${numericLiteral(val).split(/,\s{0,1}/).join(", ")} ]>>`
55
+ : `<<number::${numericLiteral(val)}>>`
56
+ : `<<never>>`);
57
+ };
58
+ /**
59
+ * converts a node in the union to a proper token or tokens
60
+ */
61
+ const unionNode = (node) => {
62
+ return isNumberLike(node)
63
+ ? `<<number::${node}>>`
64
+ : isBooleanLike(node)
65
+ ? `<<${node}>>`
66
+ : isSimpleContainerToken(node)
67
+ ? simpleContainerTokenToTypeToken(node)
68
+ : isSimpleScalarToken(node)
69
+ ? simpleScalarToken(node)
70
+ : `<<string::${node}>>`;
71
+ };
72
+ const union = (nodes) => {
73
+ return Array.isArray(nodes)
74
+ ? nodes.map(n => unionNode(n))
75
+ : nodes.includes(",")
76
+ ? nodes.split(/,\s{0,1}/).map(n => unionNode(n)).join(", ")
77
+ : unionNode(nodes);
78
+ };
79
+ const stripOpt = stripSurround("opt(", ")");
80
+ const stripUnion = stripSurround("Union(", ")");
81
+ /**
82
+ * **simpleUnionTokenToTypeToken**`(val)`
83
+ *
84
+ * Converts a `SimpleUnionToken` to a `TypeToken` and converts the type to
85
+ * the type _represented_ by the token.
86
+ *
87
+ * Note:
88
+ * - when passing in _literals_ such as `opt(42)` it will evaluate the value
89
+ * as being a numeric or a boolean literal and use that type if it is
90
+ */
91
+ export const simpleUnionTokenToTypeToken = (val) => {
92
+ return (val in unionToToken
93
+ ? unionToToken[val]
94
+ : val.startsWith(`Union(`) && val.endsWith(`)`)
95
+ ? `<<union::[ ${union(stripUnion(val))} ]>>`
96
+ : val.startsWith(`opt(`) && val.endsWith(`)`)
97
+ ? `<<union::[ ${union(stripOpt(val))}, <<undefined>> ]>>`
98
+ : `<<never>>`);
99
+ };
100
+ /**
101
+ * **simpleContainerTokenToTypeToken**`(val)`
102
+ *
103
+ * Receives a `SimpleContainerToken` and converts it's runtime value to a
104
+ * more full fledged `TypeToken` while converting the _type_ to be the
105
+ * type that the token represents.
106
+ *
107
+ * **Related:** `simpleScalarTokenToTypeToken`, `asTypeToken`
108
+ */
109
+ export const simpleContainerTokenToTypeToken = (_val) => {
110
+ // TODO
111
+ };
112
+ // TODO
113
+ export const asTypeToken = (_val) => {
114
+ return "not ready";
115
+ };
@@ -0,0 +1,4 @@
1
+ import { SimpleScalarToken, SimpleToken, SimpleType } from "../../types/runtime-types";
2
+ export declare const asType: <T extends SimpleToken>(val: T) => SimpleType<T>;
3
+ export declare const asStringLiteral: <T extends readonly SimpleScalarToken[]>(...values: T) => any[];
4
+ //# sourceMappingURL=asType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asType.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/asType.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EACjB,WAAW,EACX,UAAU,EACX,kCAAgC;AAGjC,eAAO,MAAM,MAAM,GACjB,CAAC,SAAS,WAAW,OAChB,CAAC,KAID,UAAU,CAAC,CAAC,CAClB,CAAA;AAED,eAAO,MAAM,eAAe,GAC1B,CAAC,SAAS,SAAS,iBAAiB,EAAE,aAC3B,CAAC,UAGb,CAAA"}
@@ -0,0 +1,6 @@
1
+ export const asType = (val) => {
2
+ return (val);
3
+ };
4
+ export const asStringLiteral = (...values) => {
5
+ return values.map(i => i);
6
+ };
@@ -1,7 +1,7 @@
1
1
  // /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  // /* eslint-disable no-use-before-define */
3
- // import {
4
- // Choice,
3
+ // import {
4
+ // Choice,
5
5
  // ChoiceValue,
6
6
  // AsChoice,
7
7
  // Scalar,
@@ -13,7 +13,7 @@
13
13
  // } from "src/types/index";
14
14
  // import { isDoneFn, isFunction, isString, isTuple, isUndefined } from "../type-guards/index";
15
15
  // import { shape } from "./shape";
16
- // import { Never } from "src/constants/Never";
16
+ // import { Never } from "src/constants/index";
17
17
  // export const createChoice: CreateChoice = <
18
18
  // TName extends string,
19
19
  // TValue extends ChoiceValue
@@ -24,8 +24,8 @@
24
24
  // ? { name, value: value(shape) }
25
25
  // : { name, value }
26
26
  // return (
27
- // isDoneFn(result)
28
- // ? result.done()
27
+ // isDoneFn(result)
28
+ // ? result.done()
29
29
  // : result
30
30
  // ) as AsChoice<TName,TValue>;
31
31
  // }
@@ -33,16 +33,16 @@
33
33
  // TChoices extends readonly Choice[],
34
34
  // TOptions extends ChoiceApiOptions
35
35
  // >(
36
- // choices: TChoices,
36
+ // choices: TChoices,
37
37
  // options: TOptions
38
38
  // ): ChoiceApiConfig<TChoices,TOptions> => ({
39
39
  // done: () => ({} as unknown as ChoiceApi<TChoices,TOptions>),
40
40
  // allowChoicesToBeUsedOnlyOnce: () => configureChoiceApi(
41
- // choices,
41
+ // choices,
42
42
  // {...options, unique: true}
43
43
  // ),
44
44
  // allowChoicesToBeUsedMultipleTimes: () => configureChoiceApi(
45
- // choices,
45
+ // choices,
46
46
  // {...options, unique: false}
47
47
  // ),
48
48
  // setStyle: (style) => configureChoiceApi(
@@ -1,7 +1,8 @@
1
1
  export * from "./shape";
2
2
  export * from "./choices";
3
3
  export * from "./list";
4
- export * from "./dict";
5
4
  export * from "./ip6Prefix";
6
- export * from "./parse";
5
+ export * from "./asType";
6
+ export * from "./asToken";
7
+ export * from "./tokens/index";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAA"}
@@ -1,6 +1,7 @@
1
1
  export * from "./shape.js";
2
2
  export * from "./choices.js";
3
3
  export * from "./list.js";
4
- export * from "./dict.js";
5
4
  export * from "./ip6Prefix.js";
6
- export * from "./parse.js";
5
+ export * from "./asType.js";
6
+ export * from "./asToken.js";
7
+ export * from "./tokens/index.js";
@@ -1,3 +1,3 @@
1
- import { AsIp6Prefix } from "../../types/index";
2
- export declare const ip6Prefix: <T extends readonly (`9${string}` | `0${string}` | `1${string}` | `2${string}` | `3${string}` | `4${string}` | `5${string}` | `6${string}` | `7${string}` | `8${string}` | `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `a${string}` | `b${string}` | `c${string}` | `d${string}` | `e${string}` | `f${string}`)[]>(...groups: T) => AsIp6Prefix<T>;
1
+ import { AsIp6Prefix, Ip6Group } from "../../types/index";
2
+ export declare const ip6Prefix: <T extends readonly Ip6Group[]>(...groups: T) => AsIp6Prefix<T>;
3
3
  //# sourceMappingURL=ip6Prefix.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ip6Prefix.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/ip6Prefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,0BAAwB;AAIxD,eAAO,MAAM,SAAS,8WAA8C,CAAC,mBAepE,CAAA"}
1
+ {"version":3,"file":"ip6Prefix.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/ip6Prefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,0BAAwB;AAIxD,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,SAAS,QAAQ,EAAE,aAAa,CAAC,KAc1C,WAAW,CAAC,CAAC,CACvC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/list.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,EACT,OAAO,EACP,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,0BAAuB;AAIxB,KAAK,YAAY,CACf,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GACnD,OAAO,GACP,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAG9B,KAAK,QAAQ,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACtC,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GACzC,CAAC,SAAS,MAAM,GAChB,GAAG,GACH,CAAC,SAAS,MAAM,GAChB,GAAG,GACH,CAAC,SAAS,OAAO,GACjB,GAAG,GACH,CAAC,SAAS,KAAK,GACb,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACrB,OAAO,GACP,OAAO,GACX,CAAC,SAAS,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,GAClC,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GACrB,CAAC,SAAS,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAC7B,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GACrB,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,IAAI,GAC9B,GAAG,GACL,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,IAAI,GAC3B,GAAG,GACL,GAAG,CAAC;AAGR,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACxB,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GAC7B,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GACf,EAAE,GACJ,CAAC,SAAS,MAAM,GACd,gBAAgB,CAAC,CAAC,CAAC,SAAS,IAAI,GAC9B,GAAG,CAAC,EAAE,GACN,EAAE,GACJ,EAAE,CAAC;AAEX,KAAK,WAAW,CACd,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,OAAO,SAAS,MAAM,GAAG,EAAE,IACzB,EAAE,SAAS,CAAC,GACd,OAAO,GACP,WAAW,CACT,UAAU,CAAC,CAAC,CAAC,EACb,GAAG,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAC7B,CAAC;AAGJ,KAAK,QAAQ,CACX,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAC/C,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,GAC/B,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,CAAA;AAE/D,MAAM,MAAM,MAAM,CAChB,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,IAAI,CACN,YAAY,CAAC,CAAC,CAAC,EACf,QAAQ,CAAC,CAAC,CAAC,CACZ,CAAC;AAoBF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,wFAGN,KAAK,+KAWf,CAAA"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/list.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,EACT,OAAO,EACP,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,OAAO,EACR,0BAAuB;AAIxB,KAAK,YAAY,CACf,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GACnD,OAAO,GACP,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAG9B,KAAK,QAAQ,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACtC,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GACzC,CAAC,SAAS,MAAM,GAChB,GAAG,GACH,CAAC,SAAS,MAAM,GAChB,GAAG,GACH,CAAC,SAAS,OAAO,GACjB,GAAG,GACH,CAAC,SAAS,KAAK,GACb,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GACrB,OAAO,GACP,OAAO,GACX,CAAC,SAAS,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,GAClC,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GACrB,CAAC,SAAS,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAC7B,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GACrB,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,IAAI,GAC9B,GAAG,GACL,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,IAAI,GAC3B,GAAG,GACL,GAAG,CAAC;AAGR,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACxB,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GAC7B,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GACf,EAAE,GACJ,CAAC,SAAS,MAAM,GACd,gBAAgB,CAAC,CAAC,CAAC,SAAS,IAAI,GAC9B,GAAG,CAAC,EAAE,GACN,EAAE,GACJ,EAAE,CAAC;AAEX,KAAK,WAAW,CACd,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,OAAO,SAAS,MAAM,GAAG,EAAE,IACzB,EAAE,SAAS,CAAC,GACd,OAAO,GACP,WAAW,CACT,UAAU,CAAC,CAAC,CAAC,EACb,GAAG,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAC7B,CAAC;AAGJ,KAAK,QAAQ,CACX,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAC/C,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,GAC/B,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,CAAA;AAE/D,MAAM,MAAM,MAAM,CAChB,CAAC,SAAS,SAAS,OAAO,EAAE,IAC1B,IAAI,CACN,YAAY,CAAC,CAAC,CAAC,EACf,QAAQ,CAAC,CAAC,CAAC,CACZ,CAAC;AAoBF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,GACf,KAAK,SAAS,SAAS,CAAC,EAAE,GAAG,SAAS,CAAE,SAAS,CAAC,EAAE,CAAE,EACtD,CAAC,SAAS,UAAU,WACX,KAAK,KAME,KAAK,SAAS,SAAS,CAAE,SAAS,CAAC,EAAE,CAAE,GACnD,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAChD,KAAK,SAAS,SAAS,CAAC,EAAE,GAC1B,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,GAC1C,KACL,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"rec.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/rec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAG7C,eAAO,MAAM,GAAG,+DAIR,IAAI,SAGX,CAAC"}
1
+ {"version":3,"file":"rec.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/rec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAG7C,eAAO,MAAM,GAAG,GACd,CAAC,SAAS,UAAU,EACpB,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,QAExB,IAAI,SAGX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"addToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/addToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,6BAAwB;AAE3D;;;GAGG;AACH,eAAO,MAAM,QAAQ,oEAGZ,CAAC,aAAa,KAAK,cACoD,CAAC"}
1
+ {"version":3,"file":"addToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/addToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,6BAAwB;AAE3D;;;GAGG;AACH,eAAO,MAAM,QAAQ,GACnB,CAAC,SAAS,aAAa,EACvB,KAAK,SAAS,SAAS,MAAM,EAAE,SACxB,CAAC,aAAa,KAAK,KAC2C,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"atomics.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/atomics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,6BAAwB;AAEtD,eAAO,MAAM,OAAO,gCAAiC,CAAC,wDAQa,CAAC;AAEpE,eAAO,MAAM,OAAO,eAAiC,CAAC;AAEtD,eAAO,MAAM,aAAa,iBAAgD,CAAC;AAE3E,eAAO,MAAM,QAAQ,YAAsC,CAAC;AAE5D,eAAO,MAAM,KAAK,aAAwC,CAAC"}
1
+ {"version":3,"file":"atomics.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/atomics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,6BAAwB;AAEtD,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,OAAO,YAAY,CAAC,KAQtC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AAEpE,eAAO,MAAM,OAAO,QAA0B,OAAO,CAAC;AAEtD,eAAO,MAAM,aAAa,QAAuC,SAAS,CAAC;AAE3E,eAAO,MAAM,QAAQ,QAAkC,IAAI,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAmC,KAAK,CAAC"}
@@ -1,7 +1,12 @@
1
- import { AsLiteralFn, FnArgsDefn, FnReturnTypeDefn, FromDefn, FromWideTokens } from "../../../types/index";
1
+ import { AsLiteralFn, FnArgsDefn, FnPropertiesDefn, FnReturnTypeDefn, FromDefn, FromWideTokens } from "../../../types/index";
2
+ /**
3
+ * **fn**
4
+ *
5
+ * provides an API surface for function definition
6
+ */
2
7
  export declare const fn: <TArgs extends readonly FnArgsDefn[]>(..._args: TArgs) => {
3
8
  returns: <TReturn extends FnReturnTypeDefn>(_rtn: TReturn) => {
4
- addProperties: <TProps extends import("../../../types/index").DictionaryTypeDefn>(_kv: TProps) => AsLiteralFn<FromWideTokens<TArgs, FromDefn<TArgs>>, FromWideTokens<TReturn, FromDefn<TReturn>>, FromDefn<TProps>>;
9
+ addProperties: <TProps extends FnPropertiesDefn>(_kv: TProps) => AsLiteralFn<FromWideTokens<TArgs, FromDefn<TArgs>>, FromWideTokens<TReturn, FromDefn<TReturn>>, FromDefn<TProps>>;
5
10
  done: () => AsLiteralFn<FromDefn<TArgs>, FromDefn<TReturn>>;
6
11
  };
7
12
  done: () => AsLiteralFn<FromDefn<TArgs>>;
@@ -1 +1 @@
1
- {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EAEV,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACf,6BAAwB;AAGzB,eAAO,MAAM,EAAE,kDAAmD,KAAK;sDACnB,OAAO;+FACD,MAAM;;;;CAmB9D,CAAC"}
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACf,6BAAwB;AAEzB;;;;GAIG;AACH,eAAO,MAAM,EAAE,GAAI,KAAK,SAAS,SAAS,UAAU,EAAE,YAAY,KAAK;cAC3D,OAAO,SAAS,gBAAgB,QAAQ,OAAO;wBACvC,MAAM,SAAS,gBAAgB,OAAO,MAAM,KAEhC,WAAW,CACnC,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,EACtC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,EAC1C,QAAQ,CAAC,MAAM,CAAC,CACjB;oBAGyB,WAAW,CACnC,QAAQ,CAAC,KAAK,CAAC,EACf,QAAQ,CAAC,OAAO,CAAC,CAClB;;gBAKyB,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;CAE1D,CAAC"}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * **fn**
3
+ *
4
+ * provides an API surface for function definition
5
+ */
1
6
  export const fn = (..._args) => ({
2
7
  returns: (_rtn) => ({
3
8
  addProperties: (_kv) => {
@@ -1,8 +1,9 @@
1
+ import { Shape } from "../../../types/index";
1
2
  /**
2
3
  * **getTokenData**`(token)`
3
4
  *
4
5
  * Given a `Shape` token, this function will extract the
5
6
  * data parameters from the token.
6
7
  */
7
- export declare const getTokenData: <T extends `<<string${string}>>` | `<<number${string}>>` | `<<boolean${string}>>` | `<<undefined${string}>>` | `<<false${string}>>` | `<<map${string}>>` | `<<set${string}>>` | `<<true${string}>>` | `<<null${string}>>` | `<<fn${string}>>` | `<<tuple${string}>>` | `<<rec${string}>>` | `<<arr${string}>>` | `<<union${string}>>` | `<<obj${string}>>` | `<<gen${string}>>` | `<<string-set${string}>>` | `<<numeric-set${string}>>` | `<<union-set${string}>>`>(token: T) => string[];
8
+ export declare const getTokenData: <T extends Shape>(token: T) => string[];
8
9
  //# sourceMappingURL=getTokenData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTokenData.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/getTokenData.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,8cAA4B,CAAC,aAIrD,CAAA"}
1
+ {"version":3,"file":"getTokenData.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/getTokenData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,6BAAwB;AAGxC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,KAAK,SAAS,CAAC,aAIrD,CAAA"}
@@ -1,7 +1,8 @@
1
+ import { Shape } from "../../../types/index";
1
2
  /**
2
3
  * **getTokenName**`(token)`
3
4
  *
4
5
  * Given a `Shape` token, this function will extract the
5
6
  */
6
- export declare const getTokenName: <T extends `<<string${string}>>` | `<<number${string}>>` | `<<boolean${string}>>` | `<<undefined${string}>>` | `<<false${string}>>` | `<<map${string}>>` | `<<set${string}>>` | `<<true${string}>>` | `<<null${string}>>` | `<<fn${string}>>` | `<<tuple${string}>>` | `<<rec${string}>>` | `<<arr${string}>>` | `<<union${string}>>` | `<<obj${string}>>` | `<<gen${string}>>` | `<<string-set${string}>>` | `<<numeric-set${string}>>` | `<<union-set${string}>>`>(token: T) => string;
7
+ export declare const getTokenName: <T extends Shape>(token: T) => string;
7
8
  //# sourceMappingURL=getTokenName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTokenName.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/getTokenName.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,YAAY,8cAA4B,CAAC,WAIrD,CAAA"}
1
+ {"version":3,"file":"getTokenName.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/getTokenName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,6BAAwB;AAGxC;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,KAAK,SAAS,CAAC,WAIrD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"literal-containers.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/literal-containers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,6BAAwB;AAI1E,eAAO,MAAM,UAAU,uCAAwC,CAAC,gBAI/D,CAAC;AAGF,eAAO,MAAM,KAAK,iDAAkD,CAAC,gBAGpE,CAAA"}
1
+ {"version":3,"file":"literal-containers.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/literal-containers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,6BAAwB;AAI1E,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,kBAAkB,QAAQ,CAAC,KAGpC,QAAQ,CAAC,CAAC,CACrC,CAAC;AAGF,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,SAAS,SAAS,EAAE,gBAAgB,CAAC,KAEzC,QAAQ,CAAC,CAAC,CACrC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { AsType, SimpleToken } from "../../../types/index";
2
+ /**
3
+ * **regexToken**`(re, ...rep)`
4
+ *
5
+ * Creates a `TypeToken` that is a form of string literal and
6
+ * represented in the type system via the use of the `SimpleToken`
7
+ * elements defined in "rep" but then with the RegExp encoded into
8
+ * the token too so that it can be used for validation during
9
+ * runtime.
10
+ */
11
+ export declare const regexToken: <TExp extends RegExp | string, TRep extends readonly SimpleToken[]>(re: TExp, ...rep: TRep) => AsType<TRep>;
12
+ //# sourceMappingURL=regexToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regexToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/regexToken.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,6BAAwB;AAEtD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GACrB,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,IAAI,SAAS,SAAS,WAAW,EAAE,MAC/B,IAAI,UAAU,IAAI,KA2BN,MAAM,CAAC,IAAI,CAC5B,CAAA"}
@@ -0,0 +1,39 @@
1
+ import { isRegExp, isString } from "../../index.js";
2
+ /**
3
+ * **regexToken**`(re, ...rep)`
4
+ *
5
+ * Creates a `TypeToken` that is a form of string literal and
6
+ * represented in the type system via the use of the `SimpleToken`
7
+ * elements defined in "rep" but then with the RegExp encoded into
8
+ * the token too so that it can be used for validation during
9
+ * runtime.
10
+ */
11
+ export const regexToken = (re, ...rep) => {
12
+ let exp = "";
13
+ if (isString(re)) {
14
+ // regex's coming in as a string must be validated
15
+ try {
16
+ const test = new RegExp(re);
17
+ if (!isRegExp(test)) {
18
+ const err = Error(`Invalid RegEx passed into regexToken(${re}, ${JSON.stringify(rep)})!`);
19
+ err.name = "InvalidRegEx";
20
+ throw err;
21
+ }
22
+ else {
23
+ exp = re;
24
+ }
25
+ }
26
+ catch (_e) {
27
+ const err = Error(`Invalid RegEx passed into regexToken(${re}, ${JSON.stringify(rep)})!`);
28
+ err.name = "InvalidRegEx";
29
+ throw err;
30
+ }
31
+ }
32
+ else if (isRegExp(re)) {
33
+ // all representations must be stored as as a string
34
+ exp = re.toString();
35
+ }
36
+ // exp has been validated as valid
37
+ const token = `<<string-set::regexp::${encodeURIComponent(exp)}>>`;
38
+ return token;
39
+ };
@@ -1,4 +1,14 @@
1
1
  import { StringTokenUtilities, TupleToUnion } from "../../../types/index";
2
+ /**
3
+ * **string**
4
+ *
5
+ * The API surface for adding string tokens
6
+ */
2
7
  export declare const string: <L extends readonly string[]>(...literals: L) => L["length"] extends 0 ? StringTokenUtilities<string> : L["length"] extends 1 ? L[0] : TupleToUnion<L>;
8
+ /**
9
+ * **number**
10
+ *
11
+ * The API surface for adding number tokens
12
+ */
3
13
  export declare const number: <L extends readonly number[]>(...literals: L) => L["length"] extends 0 ? number : L["length"] extends 1 ? L[0] : TupleToUnion<L>;
4
14
  //# sourceMappingURL=singletons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"singletons.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/singletons.ts"],"names":[],"mappings":"AAAC,OAAO,EAMN,oBAAoB,EAGpB,YAAY,EAKb,6BAAwB;AAmEzB,eAAO,MAAM,MAAM,wJAAoC,CAAC;AACxD,eAAO,MAAM,MAAM,kIAAyB,CAAC"}
1
+ {"version":3,"file":"singletons.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/singletons.ts"],"names":[],"mappings":"AAAC,OAAO,EAMN,oBAAoB,EAGpB,YAAY,EAMb,6BAAwB;AA8EzB;;;;GAIG;AACH,eAAO,MAAM,MAAM,GApEjB,CAAC,oJAoEoD,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GA3EjB,CAAC,8HA2EyC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { addToken } from "./addToken.js";
2
+ import { regexToken } from "./regexToken.js";
2
3
  /**
3
4
  * Generates a token and then types it appropriates for the given Singleton
4
5
  */
@@ -26,7 +27,21 @@ const stringApi = ({
26
27
  numericString: () => addToken("string-set", "numeric"),
27
28
  ipv4Address: () => addToken("string-set", "ipv4Address"),
28
29
  ipv6Address: () => addToken("string-set", "ipv6Address"),
30
+ regex: (exp, ...literalRepresentation) => {
31
+ const token = regexToken(exp, ...literalRepresentation);
32
+ return token;
33
+ },
29
34
  done: () => addToken("string")
30
35
  });
36
+ /**
37
+ * **string**
38
+ *
39
+ * The API surface for adding string tokens
40
+ */
31
41
  export const string = addSingleton("string", stringApi);
42
+ /**
43
+ * **number**
44
+ *
45
+ * The API surface for adding number tokens
46
+ */
32
47
  export const number = addSingleton("number");
@@ -1,3 +1,8 @@
1
1
  import { AsUnion, UnionElDefn } from "../../../types/index";
2
+ /**
3
+ * **union**
4
+ *
5
+ * provides API implementation for defining a union
6
+ */
2
7
  export declare const union: <U extends readonly [UnionElDefn, ...UnionElDefn[]]>(...elements: U) => AsUnion<U>;
3
8
  //# sourceMappingURL=union.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/union.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,6BAAwB;AAIvD,eAAO,MAAM,KAAK,oEAAoE,CAAC,eAMtF,CAAC"}
1
+ {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/union.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,6BAAwB;AAGvD;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,SAAS,CAAC,WAAW,EAAC,GAAG,WAAW,EAAE,CAAC,eAAe,CAAC,KAKpE,OAAO,CAAC,CAAC,CAC3B,CAAC"}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * **union**
3
+ *
4
+ * provides API implementation for defining a union
5
+ */
1
6
  export const union = (...elements) => {
2
7
  const result = elements.map(_el => {
3
8
  // TODO
@@ -1,7 +1,7 @@
1
1
  import { ArrayTypeDefn, AsArray, FromDefn, HandleDoneFn, MapKeyDefn, MapValueDefn, ObjKeyDefn, RecordValueTypeDefn, ShapeCallback, WeakMapKeyDefn, WeakMapValueDefn, WideTokenNames } from "../../../types/index";
2
2
  export declare const record: <TKey extends ObjKeyDefn = "string | symbol", TValue extends RecordValueTypeDefn = "unknown">(_key?: TKey, _value?: TValue) => Record<FromDefn<TKey>, FromDefn<TValue>>;
3
3
  export declare const array: <T extends ArrayTypeDefn = "unknown[]">(_type?: T) => AsArray<FromDefn<T>>;
4
- export declare const set: <T extends ShapeCallback | WideTokenNames = "unknown">(_type?: T) => T extends ShapeCallback ? Set<HandleDoneFn<ReturnType<T>>> : T extends WideTokenNames ? Set<FromDefn<T>> : Set<unknown>;
4
+ export declare const set: <T extends WideTokenNames | ShapeCallback = "unknown">(_type?: T) => T extends ShapeCallback ? Set<HandleDoneFn<ReturnType<T>>> : T extends WideTokenNames ? Set<FromDefn<T>> : Set<unknown>;
5
5
  export declare const map: <TKey extends MapKeyDefn = "unknown", TValue extends MapValueDefn = "unknown">(_key?: TKey, _value?: TValue) => Map<FromDefn<TKey>, FromDefn<TValue>>;
6
6
  export declare const weakMap: <TKey extends WeakMapKeyDefn = "object", TValue extends WeakMapValueDefn = "unknown">(_key?: TKey, _value?: TValue) => WeakMap<FromDefn<TKey> extends object ? FromDefn<TKey> : never, FromDefn<TValue>>;
7
7
  //# sourceMappingURL=wide-containers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wide-containers.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/wide-containers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACf,6BAAwB;AAGzB,eAAO,MAAM,MAAM,uGAGV,IAAI,WAAW,MAAM,6CAG7B,CAAA;AAED,eAAO,MAAM,KAAK,kDACR,CAAC,yBAIV,CAAC;AAEF,eAAO,MAAM,GAAG,iEAAkE,CAAC,4HAMlF,CAAC;AAEF,eAAO,MAAM,GAAG,wFAGP,IAAI,WAAW,MAAM,0CAG7B,CAAA;AAED,eAAO,MAAM,OAAO,+FAGX,IAAI,WAAW,MAAM,sFAQ7B,CAAA"}
1
+ {"version":3,"file":"wide-containers.d.ts","sourceRoot":"","sources":["../../../../src/runtime/runtime-types/shape-helpers/wide-containers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACf,6BAAwB;AAGzB,eAAO,MAAM,MAAM,GACjB,IAAI,SAAS,UAAU,sBACvB,MAAM,SAAS,mBAAmB,qBAC3B,IAAI,WAAW,MAAM,KAEF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAClE,CAAA;AAED,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,aAAa,wBACnC,CAAC,KAGiB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAC9C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,CAAC,SAAS,cAAc,GAAG,aAAa,sBAAsB,CAAC,KACvD,CAAC,SAAS,aAAa,GAC7C,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAChC,CAAC,SAAS,cAAc,GACtB,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAChB,GAAG,CAAC,OAAO,CAClB,CAAC;AAEF,eAAO,MAAM,GAAG,GACd,IAAI,SAAS,UAAU,cACvB,MAAM,SAAS,YAAY,qBACpB,IAAI,WAAW,MAAM,KAEF,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAC/D,CAAA;AAED,eAAO,MAAM,OAAO,GAClB,IAAI,SAAS,cAAc,aAC3B,MAAM,SAAS,gBAAgB,qBACxB,IAAI,WAAW,MAAM,KAEF,OAAO,CAC/B,QAAQ,CAAC,IAAI,CAAC,SAAS,MAAM,GAC3B,QAAQ,CAAC,IAAI,CAAC,GACd,KAAK,EACP,QAAQ,CAAC,MAAM,CAAC,CAEnB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ShapeApi as TShapeApi, ShapeCallback, HandleDoneFn } from "../../types/index";
1
+ import { Shape, ShapeApi as TShapeApi, ShapeCallback, HandleDoneFn } from "../../types/index";
2
2
  export declare const ShapeApiImplementation: TShapeApi;
3
3
  /**
4
4
  * **shape**(s => s.[API])
@@ -14,5 +14,5 @@ export declare const shape: <T extends ShapeCallback>(cb: T) => HandleDoneFn<Ret
14
14
  *
15
15
  * Type guard which tests whether a value is a _type_ defined by a `Shape`.
16
16
  */
17
- export declare const isShape: (v: unknown) => v is `<<string${string}>>` | `<<number${string}>>` | `<<boolean${string}>>` | `<<undefined${string}>>` | `<<false${string}>>` | `<<map${string}>>` | `<<set${string}>>` | `<<true${string}>>` | `<<null${string}>>` | `<<fn${string}>>` | `<<tuple${string}>>` | `<<rec${string}>>` | `<<arr${string}>>` | `<<union${string}>>` | `<<obj${string}>>` | `<<gen${string}>>` | `<<string-set${string}>>` | `<<numeric-set${string}>>` | `<<union-set${string}>>`;
17
+ export declare const isShape: (v: unknown) => v is Shape;
18
18
  //# sourceMappingURL=shape.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/shape.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,QAAQ,IAAI,SAAS,EACrB,aAAa,EACb,YAAY,EACb,0BAAwB;AA8BzB,eAAO,MAAM,sBAAsB,WAgBV,CAAA;AAEzB;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,gCAEZ,CAAC,KAAG,aAAa,WAAW,CAAC,CAAC,CAKnC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,MAAO,OAAO,kcAMjC,CAAA"}
1
+ {"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/shape.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EAEL,QAAQ,IAAI,SAAS,EACrB,aAAa,EACb,YAAY,EACb,0BAAwB;AA8BzB,eAAO,MAAM,sBAAsB,EAgBnB,SAAS,CAAA;AAEzB;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,GAChB,CAAC,SAAS,aAAa,MACnB,CAAC,KAAG,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAKnC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,MAAO,OAAO,KAAG,CAAC,IAAI,KAMzC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { SHAPE_PREFIXES } from "../../constants/Shape.js";
1
+ import { SHAPE_PREFIXES } from "../../constants/index.js";
2
2
  import { isString, hasKeys, isObject, handleDoneFn, } from "../index.js";
3
3
  import { boolean, nullType, undefinedType, unknown } from "./shape-helpers/atomics.js";
4
4
  import { number, string } from "./shape-helpers/singletons.js";