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
@@ -1,8 +1,8 @@
1
- import { LeftRight, Narrowable } from "../../types/index";
1
+ import { LeftRight, Narrowable, Tuple } from "../../types/index";
2
2
  /**
3
3
  * **isLeftRight**(value)
4
4
  *
5
5
  * Type guard for detecting a `LeftRight` result.
6
6
  */
7
- export declare const isLeftRight: <T extends Narrowable | readonly unknown[]>(value: T) => value is T & LeftRight<unknown, unknown>;
7
+ export declare const isLeftRight: <T extends Narrowable | Tuple>(value: T) => value is T & LeftRight<unknown, unknown>;
8
8
  //# sourceMappingURL=isLeftRight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isLeftRight.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isLeftRight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAS,0BAAwB;AAI/D;;;;GAIG;AACH,eAAO,MAAM,WAAW,qDACf,CAAC,6CAIT,CAAC"}
1
+ {"version":3,"file":"isLeftRight.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isLeftRight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,0BAAwB;AAI/D;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,UAAU,GAAG,KAAK,SAC/C,CAAC,KACP,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,OAAO,CAGzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isNever.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isNever.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,OAAO,QAAS,OAAO,iBAEnC,CAAA"}
1
+ {"version":3,"file":"isNever.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isNever.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,OAAO,QAAS,OAAO,KAAG,GAAG,IAAI,KAE7C,CAAA"}
@@ -2,6 +2,14 @@
2
2
  * **isNumericString**(value)
3
3
  *
4
4
  * Type guard to validate that a value is string which can be converted to a number.
5
+ *
6
+ * @deprecated use `isNumberLike<T>` instead
5
7
  */
6
8
  export declare function isNumericString<T>(value: T): value is T & `${number}`;
9
+ /**
10
+ * **isNumberLike**(value)
11
+ *
12
+ * Type guard to validate that a value is string which can be converted to a number.
13
+ */
14
+ export declare function isNumberLike<T>(value: T): value is T & `${number}`;
7
15
  //# sourceMappingURL=isNumericString.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isNumericString.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isNumericString.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,GAAG,MAAM,EAAE,CAKrE"}
1
+ {"version":3,"file":"isNumericString.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isNumericString.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,GAAG,MAAM,EAAE,CAKrE;AAGD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,GAAG,MAAM,EAAE,CAOlE"}
@@ -4,8 +4,19 @@ import { split } from "../literals/split.js";
4
4
  * **isNumericString**(value)
5
5
  *
6
6
  * Type guard to validate that a value is string which can be converted to a number.
7
+ *
8
+ * @deprecated use `isNumberLike<T>` instead
7
9
  */
8
10
  export function isNumericString(value) {
9
11
  const validChars = [...NUMERIC_CHAR, "x", "E"];
10
12
  return typeof value === "string" && split(value).every(i => validChars.includes(i));
11
13
  }
14
+ /**
15
+ * **isNumberLike**(value)
16
+ *
17
+ * Type guard to validate that a value is string which can be converted to a number.
18
+ */
19
+ export function isNumberLike(value) {
20
+ const numericChars = [...NUMERIC_CHAR];
21
+ return typeof value === "string" && (split(value).every(i => numericChars.includes(i)));
22
+ }
@@ -10,5 +10,5 @@
10
10
  *
11
11
  * **Related:** `asPhoneNumber()`, `PhoneNumber`
12
12
  */
13
- export declare const isPhoneNumber: <T>(val: T) => val is T;
13
+ export declare const isPhoneNumber: (val: unknown) => boolean;
14
14
  //# sourceMappingURL=isPhoneNumber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isPhoneNumber.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isPhoneNumber.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,WAAY,CAAC,aAoBtC,CAAA"}
1
+ {"version":3,"file":"isPhoneNumber.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isPhoneNumber.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,QAAS,OAAO,YAmBzC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { NUMERIC_CHAR, WHITESPACE_CHARS } from "../../constants/index.js";
2
- import { isString, asChars, retainChars, stripChars } from "../index.js";
2
+ import { retainChars, stripChars } from "../index.js";
3
3
  /**
4
4
  * **isPhoneNumber**`(val)`
5
5
  *
@@ -13,13 +13,19 @@ import { isString, asChars, retainChars, stripChars } from "../index.js";
13
13
  * **Related:** `asPhoneNumber()`, `PhoneNumber`
14
14
  */
15
15
  export const isPhoneNumber = (val) => {
16
- return (isString(val) &&
17
- ["+", "(", ...NUMERIC_CHAR].includes(asChars(val.trim())[0]) &&
18
- [...NUMERIC_CHAR].includes([...asChars(val.trim())].pop()) &&
19
- (val.trim().startsWith(`+`)
20
- ? asChars(retainChars(val, ...NUMERIC_CHAR)).length >= 8
21
- : val.trim().startsWith("00")
22
- ? asChars(retainChars(val, ...NUMERIC_CHAR)).length >= 10
23
- : asChars(retainChars(val, ...NUMERIC_CHAR)).length >= 7) &&
24
- stripChars(val, ...NUMERIC_CHAR, ...WHITESPACE_CHARS, "(", ")", "+", ".", "-") === "");
16
+ let svelte = String(val).trim();
17
+ let chars = svelte.split("");
18
+ let numeric = retainChars(svelte, ...NUMERIC_CHAR);
19
+ let valid = ["+", "(", ...NUMERIC_CHAR];
20
+ let nothing = stripChars(svelte, ...[
21
+ ...NUMERIC_CHAR,
22
+ ...WHITESPACE_CHARS, "(", ")", "+", ".", "-"
23
+ ]);
24
+ return (chars.every(i => valid.includes(i)) &&
25
+ svelte.startsWith(`+`)
26
+ ? numeric.length >= 8
27
+ : svelte.startsWith(`00`)
28
+ ? numeric.length >= 10
29
+ : numeric.length >= 7
30
+ && nothing === "");
25
31
  };
@@ -0,0 +1,17 @@
1
+ import { LikeRegExp } from "../../types/index";
2
+ /**
3
+ * Type guard that validates the the value passed in is
4
+ * a regular expression.
5
+ *
6
+ * **Related:** `isLikeRegExp`
7
+ */
8
+ export declare const isRegExp: (val: unknown) => val is RegExp;
9
+ /**
10
+ * Type guard that validates the the value passed in is
11
+ * a regular expression or a string that _can_ be turned
12
+ * into a regular expression.
13
+ *
14
+ * **Related:** `isRegExp`
15
+ */
16
+ export declare const isLikeRegExp: (val: unknown) => val is LikeRegExp;
17
+ //# sourceMappingURL=isRegExp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRegExp.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isRegExp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAG7C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,QAAS,OAAO,KAAG,GAAG,IAAI,MAE9C,CAAA;AAGD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,QAAS,OAAO,KAAG,GAAG,IAAI,UAelD,CAAA"}
@@ -0,0 +1,32 @@
1
+ import { isString } from "./isString.js";
2
+ /**
3
+ * Type guard that validates the the value passed in is
4
+ * a regular expression.
5
+ *
6
+ * **Related:** `isLikeRegExp`
7
+ */
8
+ export const isRegExp = (val) => {
9
+ return val instanceof RegExp;
10
+ };
11
+ /**
12
+ * Type guard that validates the the value passed in is
13
+ * a regular expression or a string that _can_ be turned
14
+ * into a regular expression.
15
+ *
16
+ * **Related:** `isRegExp`
17
+ */
18
+ export const isLikeRegExp = (val) => {
19
+ if (isRegExp(val)) {
20
+ return true;
21
+ }
22
+ if (isString(val)) {
23
+ try {
24
+ const _re = new RegExp(val);
25
+ return true;
26
+ }
27
+ catch {
28
+ return false;
29
+ }
30
+ }
31
+ return false;
32
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"isRuntimeUnion.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isRuntimeUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,0BAAwB;AAG/C;;;;GAIG;AACH,eAAO,MAAM,cAAc,6BAA8B,OAAO,2BAG/D,CAAA"}
1
+ {"version":3,"file":"isRuntimeUnion.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isRuntimeUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,0BAAwB;AAG/C;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,OAAO,EAAE,OAAO,OAAO,KAAG,GAAG,IAAI,YAAY,CAAC,CAAC,CAGvF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isSpecificConstant.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isSpecificConstant.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,8BAA4B;AAI/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,SAAS,MAAM,EACpB,IAAI,EAAE,KAAK,WACI,OAAO,8BAGvB"}
1
+ {"version":3,"file":"isSpecificConstant.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isSpecificConstant.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,8BAA4B;AAI/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,SAAS,MAAM,EACpB,IAAI,EAAE,KAAK,WACI,OAAO,KAAG,KAAK,IAAI,QAAQ,CAAC,KAAK,CAAC,CAGlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"isTrimmable.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isTrimmable.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,UAAU,WAAY,CAAC,aAEnC,CAAA"}
1
+ {"version":3,"file":"isTrimmable.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isTrimmable.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAE7C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isTruthy.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isTruthy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAI7C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,WAAY,CAAC,kCAEjC,CAAC"}
1
+ {"version":3,"file":"isTruthy.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isTruthy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAI7C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,UAAU,CAEhE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isUnset.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isUnset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAGxC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,QAAS,OAAO,iBAEnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,WAAY,CAAC,6BAI9B,CAAA"}
1
+ {"version":3,"file":"isUnset.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isUnset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAGxC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,QAAS,OAAO,KAAG,GAAG,IAAI,KAE7C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,OAAO,CAAC,CAAC,EAAC,KAAK,CAIvD,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Keys, TupleToUnion, NetworkProtocol } from "../../types/index";
1
+ import { Keys, TupleToUnion, NetworkProtocol, Uri } from "../../types/index";
2
2
  /**
3
3
  * **isUri**`(val, ...protocols)`
4
4
  *
@@ -10,7 +10,7 @@ import { Keys, TupleToUnion, NetworkProtocol } from "../../types/index";
10
10
  *
11
11
  * **Related:** `isUrl`
12
12
  */
13
- export declare const isUri: <T, P extends readonly NetworkProtocol[]>(val: T, ...protocols: P) => val is T & `${Keys<P>["length"] extends 0 ? NetworkProtocol : TupleToUnion<P>}://${string}`;
13
+ export declare const isUri: <T, P extends readonly NetworkProtocol[]>(val: T, ...protocols: P) => val is T & Uri<Keys<P>["length"] extends 0 ? NetworkProtocol : TupleToUnion<P>>;
14
14
  /**
15
15
  * **isUrl**`(val,[...protocols])`
16
16
  *
@@ -21,5 +21,5 @@ export declare const isUri: <T, P extends readonly NetworkProtocol[]>(val: T, ..
21
21
  *
22
22
  * **Related:** `isUri`
23
23
  */
24
- export declare const isUrl: <T, P extends readonly NetworkProtocol[]>(val: T, ...protocols: P) => val is T & `${Keys<P>["length"] extends 0 ? "https" | "http" : TupleToUnion<P>}://${string}`;
24
+ export declare const isUrl: <T, P extends readonly NetworkProtocol[]>(val: T, ...protocols: P) => val is T & Uri<Keys<P>["length"] extends 0 ? "http" | "https" : TupleToUnion<P>>;
25
25
  //# sourceMappingURL=isUrl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isUrl.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isUrl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAC,YAAY,EAAG,eAAe,EAAQ,0BAAwB;AAE5E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK,iDAGX,CAAC,gBAAgB,CAAC,gGAUxB,CAAA;AAGD;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK,iDAGX,CAAC,gBAAgB,CAAC,iGAUxB,CAAA"}
1
+ {"version":3,"file":"isUrl.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isUrl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAC,YAAY,EAAG,eAAe,EAAE,GAAG,EAAG,0BAAwB;AAE5E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK,GAChB,CAAC,EACD,CAAC,SAAS,SAAS,eAAe,EAAE,OAC/B,CAAC,gBAAgB,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,GAAG,CACxC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GACzB,eAAe,GACf,YAAY,CAAC,CAAC,CAAC,CAOlB,CAAA;AAGD;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK,GAClB,CAAC,EACD,CAAC,SAAS,SAAS,eAAe,EAAE,OAC7B,CAAC,gBAAgB,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,GAAG,CAC1C,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GACzB,MAAM,GAAG,OAAO,GAChB,YAAY,CAAC,CAAC,CAAC,CAOhB,CAAA"}
@@ -1,23 +1,22 @@
1
- import { DomainName, GetUrlProtocolPrefix, GetUrlSource } from "../../types/index";
2
- import { AsString } from "../../types/type-conversion/AsString";
1
+ import { DomainName, GetUrlProtocolPrefix, GetUrlSource, Ip4Address, Ip6AddressLoose, UrlPath, AsString } from "../../types/index";
3
2
  /**
4
3
  * **isIp4Address**`(val)`
5
4
  *
6
5
  * Type guard which checks whether the value is a valid IPv4 address.
7
6
  */
8
- export declare const isIp4Address: <T>(val: T) => val is T & `${number}.${number}.${number}.${number}`;
7
+ export declare const isIp4Address: <T>(val: T) => val is T & Ip4Address;
9
8
  /**
10
9
  * **isIp6Address**`(val)`
11
10
  *
12
11
  * Type guard which checks whether the value is a valid IPv6 address.
13
12
  */
14
- export declare const isIp6Address: <T>(val: T) => val is T & (`0${string}:${string}` | `1${string}:${string}` | `2${string}:${string}` | `3${string}:${string}` | `4${string}:${string}` | `5${string}:${string}` | `6${string}:${string}` | `7${string}:${string}` | `8${string}:${string}` | `9${string}:${string}` | `A${string}:${string}` | `B${string}:${string}` | `C${string}:${string}` | `D${string}:${string}` | `E${string}:${string}` | `F${string}:${string}` | `a${string}:${string}` | `b${string}:${string}` | `c${string}:${string}` | `d${string}:${string}` | `e${string}:${string}` | `f${string}:${string}`);
13
+ export declare const isIp6Address: <T>(val: T) => val is T & Ip6AddressLoose;
15
14
  /**
16
15
  * **isIpAddress**`(val)`
17
16
  *
18
17
  * Type guard which checks whether the value is a valid IP address (v4 or v6).
19
18
  */
20
- export declare const isIpAddress: <T>(val: T) => val is T & (`${number}.${number}.${number}.${number}` | `0${string}:${string}` | `1${string}:${string}` | `2${string}:${string}` | `3${string}:${string}` | `4${string}:${string}` | `5${string}:${string}` | `6${string}:${string}` | `7${string}:${string}` | `8${string}:${string}` | `9${string}:${string}` | `A${string}:${string}` | `B${string}:${string}` | `C${string}:${string}` | `D${string}:${string}` | `E${string}:${string}` | `F${string}:${string}` | `a${string}:${string}` | `b${string}:${string}` | `c${string}:${string}` | `d${string}:${string}` | `e${string}:${string}` | `f${string}:${string}`);
19
+ export declare const isIpAddress: <T>(val: T) => val is T & (Ip4Address | Ip6AddressLoose);
21
20
  /**
22
21
  * **hasUrlPort**`(val)`
23
22
  *
@@ -31,7 +30,7 @@ export declare const hasUrlPort: <T>(val: T) => val is T & `${GetUrlProtocolPref
31
30
  *
32
31
  * Type guard which checks whether the value is a valid `UrlPath`
33
32
  */
34
- export declare const isUrlPath: <T>(val: T) => val is T & ("" | `/.${string}` | `/-${string}` | `/_${string}` | `/0${string}` | `/1${string}` | `/2${string}` | `/3${string}` | `/4${string}` | `/5${string}` | `/6${string}` | `/7${string}` | `/8${string}` | `/9${string}` | `/A${string}` | `/B${string}` | `/C${string}` | `/D${string}` | `/E${string}` | `/F${string}` | `/G${string}` | `/H${string}` | `/I${string}` | `/J${string}` | `/K${string}` | `/L${string}` | `/M${string}` | `/N${string}` | `/O${string}` | `/P${string}` | `/Q${string}` | `/R${string}` | `/S${string}` | `/T${string}` | `/U${string}` | `/V${string}` | `/W${string}` | `/X${string}` | `/Y${string}` | `/Z${string}` | `/a${string}` | `/b${string}` | `/c${string}` | `/d${string}` | `/e${string}` | `/f${string}` | `/g${string}` | `/h${string}` | `/i${string}` | `/j${string}` | `/k${string}` | `/l${string}` | `/m${string}` | `/n${string}` | `/o${string}` | `/p${string}` | `/q${string}` | `/r${string}` | `/s${string}` | `/t${string}` | `/u${string}` | `/v${string}` | `/w${string}` | `/x${string}` | `/y${string}` | `/z${string}` | `/@${string}`);
33
+ export declare const isUrlPath: <T>(val: T) => val is T & UrlPath;
35
34
  /**
36
35
  * **isDomainName**`(val)`
37
36
  *
@@ -44,7 +43,7 @@ export declare const isDomainName: <T>(val: T) => val is T & DomainName<AsString
44
43
  * Type guard which checks whether the value is a valid URL source
45
44
  * (aka, an IP address or a Domain Name)
46
45
  */
47
- export declare const isUrlSource: <T>(val: T) => boolean;
46
+ export declare const isUrlSource: <T>(val: T) => val is (T & DomainName<AsString<T>>) | (T & (`${number}.${number}.${number}.${number}` | `0${string}:${string}` | `1${string}:${string}` | `2${string}:${string}` | `3${string}:${string}` | `4${string}:${string}` | `5${string}:${string}` | `6${string}:${string}` | `7${string}:${string}` | `8${string}:${string}` | `9${string}:${string}` | `E${string}:${string}` | `A${string}:${string}` | `B${string}:${string}` | `C${string}:${string}` | `D${string}:${string}` | `F${string}:${string}` | `a${string}:${string}` | `b${string}:${string}` | `c${string}:${string}` | `d${string}:${string}` | `e${string}:${string}` | `f${string}:${string}`));
48
47
  /**
49
48
  * **hasUrlQueryParameter**`(val,prop)`
50
49
  *
@@ -1 +1 @@
1
- {"version":3,"file":"network-tg.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/network-tg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAwC,0BAAuB;AAKtH,OAAO,EAAE,QAAQ,EAAE,6CAA0C;AAQ7D;;;;GAIG;AACH,eAAO,MAAM,YAAY,WAAY,CAAC,yDAKrC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,WAAY,CAAC,qjBAOrC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,WAAY,CAAC,imBAEpC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,WAAY,CAAC,2FAEnC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,WAAY,CAAC,ojCAalC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,WAAY,CAAC,uCAQrC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,WAAY,CAAC,YAEpC,CAAA;AAGD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,4CAA4C,CAAC,QAAQ,CAAC,YAEtF,CAAA"}
1
+ {"version":3,"file":"network-tg.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/network-tg.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,UAAU,EACV,eAAe,EACf,OAAO,EACP,QAAQ,EACT,0BAAuB;AAexB;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,UAKnD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,eAOnD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,eAAe,CAE/E,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,GAAG,oBAAoB,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,GAAG,MAAM,EAE1H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,OAahD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAQzE,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,OAAO,CAAC,moBAEpC,CAAA;AAGD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,MAAM,EAAC,CAAC,SAAS,MAAM,OAAO,CAAC,QAAQ,CAAC,YAEtF,CAAA"}
@@ -1,10 +1,5 @@
1
- import { asChars } from "../type-conversion/asChars.js";
2
- import { isAlpha } from "./isAlpha.js";
3
- import { isNumericString } from "./isNumericString.js";
4
1
  import { isString } from "./isString.js";
5
- import { ip6GroupExpansion } from "../type-conversion/index.js";
6
- import { isHexadecimal } from "./isHexadecimal.js";
7
- import { getUrlQueryParams, removeUrlProtocol } from "../meta/index.js";
2
+ import { getUrlQueryParams, removeUrlProtocol, isHexadecimal, ip6GroupExpansion, isNumberLike, isAlpha, asChars } from "../index.js";
8
3
  /**
9
4
  * **isIp4Address**`(val)`
10
5
  *
@@ -13,7 +8,7 @@ import { getUrlQueryParams, removeUrlProtocol } from "../meta/index.js";
13
8
  export const isIp4Address = (val) => {
14
9
  return isString(val) &&
15
10
  (val.split(".").length === 4) &&
16
- (val.split(".").every(i => isNumericString(i))) &&
11
+ (val.split(".").every(i => isNumberLike(i))) &&
17
12
  val.split(".").every(i => Number(i) >= 0 && Number(i) <= 255);
18
13
  };
19
14
  /**
@@ -56,7 +51,7 @@ export const isUrlPath = (val) => {
56
51
  return isString(val) &&
57
52
  (val === "" || val.startsWith("/")) &&
58
53
  (asChars(val).every(c => isAlpha(c) ||
59
- isNumericString(c) ||
54
+ isNumberLike(c) ||
60
55
  c === "_" ||
61
56
  c === "@" ||
62
57
  c === "." ||
@@ -72,7 +67,7 @@ export const isDomainName = (val) => {
72
67
  val.split(".").filter(i => i).length > 1 &&
73
68
  isString(val.split(".").filter(i => i).pop()) &&
74
69
  asChars(val.split(".").filter(i => i).pop()).length > 1 &&
75
- val.split(".").filter(i => i).every(i => isAlpha(i) || isNumericString(i) || i === "-" || i === "_");
70
+ val.split(".").filter(i => i).every(i => isAlpha(i) || isNumberLike(i) || i === "-" || i === "_");
76
71
  };
77
72
  /**
78
73
  * **isUrlSource**`(val)`
@@ -1,10 +1,12 @@
1
+ import { AlphaNumericChar, RepoSource, RepoUrls, SemanticVersion, UrlsFrom } from "../../types/index";
2
+ import { REPO_SOURCE_LOOKUP } from "../../constants/index";
1
3
  /**
2
4
  * **isRepoSource**`(val)`
3
5
  *
4
6
  * Type guard which validates whether the value passed in is a
5
7
  * `RepoSource`.
6
8
  */
7
- export declare const isRepoSource: <T>(v: T) => v is T & ("github" | "bitbucket" | "gitlab" | "codecommit" | "local");
9
+ export declare const isRepoSource: <T>(v: T) => v is T & RepoSource;
8
10
  /**
9
11
  * **isSemanticVersion**`(val,[allowPrefix]=false)`
10
12
  *
@@ -16,36 +18,36 @@ export declare const isRepoSource: <T>(v: T) => v is T & ("github" | "bitbucket"
16
18
  * `v 1.0.12` are allowed.
17
19
  * - by default the `allowPrefix` option is set to false
18
20
  */
19
- export declare const isSemanticVersion: <T, P extends boolean>(v: T, allowPrefix?: P) => v is T & `${[P] extends [true] ? "v" | import("../../types/index").OptionalSpace | "v " : ""}${number}.${number}.${number}`;
21
+ export declare const isSemanticVersion: <T, P extends boolean>(v: T, allowPrefix?: P) => v is T & SemanticVersion<P>;
20
22
  /**
21
23
  * **isRepoUrl**`(val)`
22
24
  *
23
25
  * Type guard which validates that the value passed in is a valid Repo URL
24
26
  */
25
- export declare const isRepoUrl: <T>(val: T) => val is T & (`https://github.com/${string}` | "https://github.com" | `https://github.com?${string}` | `https://github.io/${string}` | "https://github.io" | `https://github.io?${string}` | `https://bitbucket.com/${string}` | "https://bitbucket.com" | `https://bitbucket.com?${string}` | `https://gitlab.com/${string}` | "https://gitlab.com" | `https://gitlab.com?${string}` | `https://aws.amazon.com/codecommit/${string}` | `https://aws.amazon.com/codecommit/?${string}`);
27
+ export declare const isRepoUrl: <T>(val: T) => val is T & RepoUrls;
26
28
  /**
27
29
  * **isGithubUrl**`(val)`
28
30
  *
29
31
  * Type guard which validates that the value passed in is a valid Github URL
30
32
  */
31
- export declare const isGithubUrl: <T>(val: T) => val is T & (`https://github.com/${string}` | "https://github.com" | `https://github.com?${string}` | `https://github.io/${string}` | "https://github.io" | `https://github.io?${string}`);
33
+ export declare const isGithubUrl: <T>(val: T) => val is T & UrlsFrom<(typeof REPO_SOURCE_LOOKUP)["github"]>;
32
34
  /**
33
35
  * **isGithubRepoUrl**
34
36
  *
35
37
  * Type guard validating that passed in value is valid URL for
36
38
  * a Github repo.
37
39
  */
38
- export declare const isGithubRepoUrl: <T>(val: T) => val is T & (`https://github.com/${string}/0${string}` | `https://github.com/${string}/1${string}` | `https://github.com/${string}/2${string}` | `https://github.com/${string}/3${string}` | `https://github.com/${string}/4${string}` | `https://github.com/${string}/5${string}` | `https://github.com/${string}/6${string}` | `https://github.com/${string}/7${string}` | `https://github.com/${string}/8${string}` | `https://github.com/${string}/9${string}` | `https://github.com/${string}/A${string}` | `https://github.com/${string}/B${string}` | `https://github.com/${string}/C${string}` | `https://github.com/${string}/D${string}` | `https://github.com/${string}/E${string}` | `https://github.com/${string}/F${string}` | `https://github.com/${string}/G${string}` | `https://github.com/${string}/H${string}` | `https://github.com/${string}/I${string}` | `https://github.com/${string}/J${string}` | `https://github.com/${string}/K${string}` | `https://github.com/${string}/L${string}` | `https://github.com/${string}/M${string}` | `https://github.com/${string}/N${string}` | `https://github.com/${string}/O${string}` | `https://github.com/${string}/P${string}` | `https://github.com/${string}/Q${string}` | `https://github.com/${string}/R${string}` | `https://github.com/${string}/S${string}` | `https://github.com/${string}/T${string}` | `https://github.com/${string}/U${string}` | `https://github.com/${string}/V${string}` | `https://github.com/${string}/W${string}` | `https://github.com/${string}/X${string}` | `https://github.com/${string}/Y${string}` | `https://github.com/${string}/Z${string}` | `https://github.com/${string}/a${string}` | `https://github.com/${string}/b${string}` | `https://github.com/${string}/c${string}` | `https://github.com/${string}/d${string}` | `https://github.com/${string}/e${string}` | `https://github.com/${string}/f${string}` | `https://github.com/${string}/g${string}` | `https://github.com/${string}/h${string}` | `https://github.com/${string}/i${string}` | `https://github.com/${string}/j${string}` | `https://github.com/${string}/k${string}` | `https://github.com/${string}/l${string}` | `https://github.com/${string}/m${string}` | `https://github.com/${string}/n${string}` | `https://github.com/${string}/o${string}` | `https://github.com/${string}/p${string}` | `https://github.com/${string}/q${string}` | `https://github.com/${string}/r${string}` | `https://github.com/${string}/s${string}` | `https://github.com/${string}/t${string}` | `https://github.com/${string}/u${string}` | `https://github.com/${string}/v${string}` | `https://github.com/${string}/w${string}` | `https://github.com/${string}/x${string}` | `https://github.com/${string}/y${string}` | `https://github.com/${string}/z${string}`);
40
+ export declare const isGithubRepoUrl: <T>(val: T) => val is T & `https://github.com/${string}/${AlphaNumericChar}${string}`;
39
41
  /**
40
42
  * **isBitbucketUrl**`(val)`
41
43
  *
42
44
  * Type guard which validates that the value passed in is a valid BitBucket URL
43
45
  */
44
- export declare const isBitbucketUrl: <T>(val: T) => val is T & (`https://bitbucket.com/${string}` | "https://bitbucket.com" | `https://bitbucket.com?${string}`);
46
+ export declare const isBitbucketUrl: <T>(val: T) => val is T & UrlsFrom<(typeof REPO_SOURCE_LOOKUP)["bitbucket"]>;
45
47
  /**
46
48
  * **isCodeCommitUrl**`(val)`
47
49
  *
48
50
  * Type guard which validates that the value passed in is a valid AWS Code Commit URL
49
51
  */
50
- export declare const isCodeCommitUrl: <T>(val: T) => val is T & (`https://aws.amazon.com/codecommit/${string}` | `https://aws.amazon.com/codecommit/?${string}`);
52
+ export declare const isCodeCommitUrl: <T>(val: T) => val is T & UrlsFrom<(typeof REPO_SOURCE_LOOKUP)["codecommit"]>;
51
53
  //# sourceMappingURL=repos.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repos.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/repos.ts"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,SAAU,CAAC,0EAEnC,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,4BAC1B,CAAC,gBACU,CAAC,gIAcf,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,WAAY,CAAC,0dAMlC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,WAAY,CAAC,8LAMpC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,WAAY,CAAC,urFAMxC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,WAAY,CAAC,iHAMvC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,WAAY,CAAC,gHAMxC,CAAA"}
1
+ {"version":3,"file":"repos.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/repos.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,eAAe,EACf,QAAQ,EACT,0BAAwB;AACzB,OAAO,EAAgB,kBAAkB,EAAE,8BAA4B;AAGvE;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,KAAK,CAAC,KAAG,CAAC,IAAI,CAAC,GAAG,UAE/C,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAC,CAAC,SAAS,OAAO,KACjD,CAAC,gBACU,CAAC,KACb,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,CAAC,CAa5B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,QAMhD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAA,OAAO,kBAAkB,EAAC,QAAQ,CAAC,CAM9F,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,sBAAsB,MAAM,IAAI,gBAAgB,GAAG,MAAM,EAM/G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAA,OAAO,kBAAkB,EAAC,WAAW,CAAC,CAMpG,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAA,OAAO,kBAAkB,EAAC,YAAY,CAAC,CAMtG,CAAA"}
@@ -1,7 +1,5 @@
1
- import { isString } from "./isString.js";
2
1
  import { REPO_SOURCES, REPO_SOURCE_LOOKUP } from "../../constants/index.js";
3
- import { stripLeading } from "../literals/index.js";
4
- import { valuesOf } from "../dictionary/index.js";
2
+ import { valuesOf, stripLeading, isString } from "../index.js";
5
3
  /**
6
4
  * **isRepoSource**`(val)`
7
5
  *
@@ -0,0 +1,6 @@
1
+ export * from "./isAtomicToken";
2
+ export * from "./isContainerToken";
3
+ export * from "./isFunctionToken";
4
+ export * from "./isSingletonToken";
5
+ export * from "./isSimpleToken";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./isAtomicToken.js";
2
+ export * from "./isContainerToken.js";
3
+ export * from "./isFunctionToken.js";
4
+ export * from "./isSingletonToken.js";
5
+ export * from "./isSimpleToken.js";
@@ -0,0 +1,9 @@
1
+ import { AtomicToken } from "../../../types/index";
2
+ /**
3
+ * **isAtomicToken**`(val)`
4
+ *
5
+ * Type guard which validates whether the value passed in is a
6
+ * valid `AtomicToken`.
7
+ */
8
+ export declare const isAtomicToken: (val: unknown) => val is AtomicToken;
9
+ //# sourceMappingURL=isAtomicToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAtomicToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/tokens/isAtomicToken.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,6BAAwB;AAK9C;;;;;GAKG;AACH,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,GAAG,IAAI,WAGnD,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { TT_Atomics } from "../../../constants/index.js";
2
+ import { isString } from "../../index.js";
3
+ /**
4
+ * **isAtomicToken**`(val)`
5
+ *
6
+ * Type guard which validates whether the value passed in is a
7
+ * valid `AtomicToken`.
8
+ */
9
+ export const isAtomicToken = (val) => {
10
+ return isString(val) &&
11
+ TT_Atomics.some(v => val === `<<${v}>>`);
12
+ };
@@ -0,0 +1,21 @@
1
+ import { ArrayToken, ContainerToken, MapToken, ObjectToken, RecordToken, SetToken, TupleToken, UnionSetToken, UnionToken, WeakMapToken } from "../../../types/index";
2
+ export declare const isObjectToken: (val: unknown) => val is ObjectToken;
3
+ export declare const isRecordToken: (val: unknown) => val is RecordToken;
4
+ export declare const isTupleToken: (val: unknown) => val is TupleToken;
5
+ export declare const isArrayToken: (val: unknown) => val is ArrayToken;
6
+ export declare const isMapToken: (val: unknown) => val is MapToken;
7
+ export declare const isSetToken: (val: unknown) => val is SetToken;
8
+ export declare const isWeakMapToken: (val: unknown) => val is WeakMapToken;
9
+ /**
10
+ * **isUnionToken**`(val)`: **val** is `UnionToken`
11
+ */
12
+ export declare const isUnionToken: (val: unknown) => val is UnionToken;
13
+ /**
14
+ * **isUnionSetToken**`(val)`: **val** is `UnionSetToken`
15
+ */
16
+ export declare const isUnionSetToken: (val: unknown) => val is UnionSetToken;
17
+ /**
18
+ * **isContainerToken**`(val)`: **val** is `ContainerToken`
19
+ */
20
+ export declare const isContainerToken: (val: unknown) => val is ContainerToken;
21
+ //# sourceMappingURL=isContainerToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isContainerToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/tokens/isContainerToken.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,6BAAwB;AAG7H,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,GAAG,IAAI,WAEnD,CAAA;AAED,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,GAAG,IAAI,WAEnD,CAAA;AAED,eAAO,MAAM,YAAY,QAAS,OAAO,KAAG,GAAG,IAAI,UAElD,CAAA;AAED,eAAO,MAAM,YAAY,QAAS,OAAO,KAAG,GAAG,IAAI,UAElD,CAAA;AAED,eAAO,MAAM,UAAU,QAAS,OAAO,KAAG,GAAG,IAAI,QAEhD,CAAA;AAED,eAAO,MAAM,UAAU,QAAS,OAAO,KAAG,GAAG,IAAI,QAEhD,CAAA;AAED,eAAO,MAAM,cAAc,QAAS,OAAO,KAAG,GAAG,IAAI,YAEpD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,QAAS,OAAO,KAAG,GAAG,IAAI,UAElD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,QAAS,OAAO,KAAG,GAAG,IAAI,aAErD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAS,OAAO,KAAG,GAAG,IAAI,cAYtD,CAAA"}
@@ -0,0 +1,48 @@
1
+ import { isString } from "../../index.js";
2
+ export const isObjectToken = (val) => {
3
+ return isString(val) && val.startsWith("<<obj::");
4
+ };
5
+ export const isRecordToken = (val) => {
6
+ return isString(val) && val.startsWith("<<rec::") && val.endsWith(">>");
7
+ };
8
+ export const isTupleToken = (val) => {
9
+ return isString(val) && val.startsWith("<<tuple::");
10
+ };
11
+ export const isArrayToken = (val) => {
12
+ return isString(val) && val.startsWith("<<arr::");
13
+ };
14
+ export const isMapToken = (val) => {
15
+ return isString(val) && val.startsWith("<<map::");
16
+ };
17
+ export const isSetToken = (val) => {
18
+ return isString(val) && val.startsWith("<<set::");
19
+ };
20
+ export const isWeakMapToken = (val) => {
21
+ return isString(val) && val.startsWith("<<weak::");
22
+ };
23
+ /**
24
+ * **isUnionToken**`(val)`: **val** is `UnionToken`
25
+ */
26
+ export const isUnionToken = (val) => {
27
+ return isString(val) && val.startsWith("<<union::[ ");
28
+ };
29
+ /**
30
+ * **isUnionSetToken**`(val)`: **val** is `UnionSetToken`
31
+ */
32
+ export const isUnionSetToken = (val) => {
33
+ return isString(val) && val.startsWith("<<union-set::");
34
+ };
35
+ /**
36
+ * **isContainerToken**`(val)`: **val** is `ContainerToken`
37
+ */
38
+ export const isContainerToken = (val) => {
39
+ return isString(val) && (isObjectToken(val) ||
40
+ isRecordToken(val) ||
41
+ isTupleToken(val) ||
42
+ isArrayToken(val) ||
43
+ isMapToken(val) ||
44
+ isSetToken(val) ||
45
+ isWeakMapToken(val) ||
46
+ isUnionSetToken(val) ||
47
+ isUnionToken(val));
48
+ };
@@ -0,0 +1,4 @@
1
+ import { FnToken, GeneratorToken } from "../../../types/index";
2
+ export declare const isFnToken: (val: unknown) => val is FnToken;
3
+ export declare const isGeneratorToken: (val: unknown) => val is GeneratorToken;
4
+ //# sourceMappingURL=isFunctionToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isFunctionToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/tokens/isFunctionToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,6BAAuB;AAIzD,eAAO,MAAM,SAAS,QAAS,OAAO,KAAG,GAAG,IAAI,OAE/C,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAS,OAAO,KAAG,GAAG,IAAI,cAEtD,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { isString } from "../../index.js";
2
+ export const isFnToken = (val) => {
3
+ return isString(val) && val.startsWith("<<fn::");
4
+ };
5
+ export const isGeneratorToken = (val) => {
6
+ return isString(val) && val.startsWith("<<gen::");
7
+ };
@@ -0,0 +1,9 @@
1
+ import { TypeToken } from "../../../types/index";
2
+ /**
3
+ * **isShapeToken**`(val)`
4
+ *
5
+ * Type guard which validates whether the value passed in is a
6
+ * valid "shape token" of some sort.
7
+ */
8
+ export declare const isShapeToken: (val: unknown) => val is TypeToken;
9
+ //# sourceMappingURL=isShapeToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isShapeToken.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/tokens/isShapeToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,6BAAwB;AAoB5C;;;;;GAKG;AACH,eAAO,MAAM,YAAY,QAAS,OAAO,KAAG,GAAG,IAAI,SAMlD,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { isString } from "../../index.js";
2
+ import { TT_Atomics, TT_Containers, TT_Functions, TT_Singletons, TT_Sets } from "../../../constants/index.js";
3
+ const token_types = [
4
+ ...TT_Atomics,
5
+ ...TT_Containers,
6
+ ...TT_Functions,
7
+ ...TT_Sets,
8
+ ...TT_Singletons
9
+ ];
10
+ /**
11
+ * **isShapeToken**`(val)`
12
+ *
13
+ * Type guard which validates whether the value passed in is a
14
+ * valid "shape token" of some sort.
15
+ */
16
+ export const isShapeToken = (val) => {
17
+ return isString(val) &&
18
+ val.startsWith("<<") &&
19
+ val.endsWith(">>") &&
20
+ token_types.some(t => val.startsWith(`<<${t}`));
21
+ };