inferred-types 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (697) hide show
  1. package/dist/constants/Marked.d.ts +7 -0
  2. package/dist/constants/Marked.d.ts.map +1 -1
  3. package/dist/constants/Never.d.ts.map +1 -1
  4. package/dist/constants/TypeTokens.d.ts +15 -0
  5. package/dist/constants/TypeTokens.d.ts.map +1 -1
  6. package/dist/constants/TypeTokens.js +92 -0
  7. package/dist/constants/Wide.d.ts +2 -1
  8. package/dist/constants/Wide.d.ts.map +1 -1
  9. package/dist/constants/Wide.js +0 -1
  10. package/dist/constants/createConstant.d.ts.map +1 -1
  11. package/dist/constants/tsconfig.tsbuildinfo +1 -1
  12. package/dist/inferred-types/index.cjs +3973 -0
  13. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  14. package/dist/runtime/api/defineApi.d.ts +1 -36
  15. package/dist/runtime/api/defineApi.d.ts.map +1 -1
  16. package/dist/runtime/api/defineApi.js +90 -73
  17. package/dist/runtime/api/handleDoneFn.d.ts.map +1 -1
  18. package/dist/runtime/api/index.d.ts +1 -1
  19. package/dist/runtime/boolean-logic/ifArray.d.ts.map +1 -1
  20. package/dist/runtime/boolean-logic/ifArrayPartial.d.ts +1 -1
  21. package/dist/runtime/boolean-logic/ifArrayPartial.d.ts.map +1 -1
  22. package/dist/runtime/boolean-logic/ifBoolean.d.ts.map +1 -1
  23. package/dist/runtime/boolean-logic/ifChar.d.ts.map +1 -1
  24. package/dist/runtime/boolean-logic/ifFalse.d.ts.map +1 -1
  25. package/dist/runtime/boolean-logic/ifHasKey.d.ts.map +1 -1
  26. package/dist/runtime/boolean-logic/ifLength.d.ts.map +1 -1
  27. package/dist/runtime/boolean-logic/ifNotNull.d.ts.map +1 -1
  28. package/dist/runtime/boolean-logic/ifNull.d.ts.map +1 -1
  29. package/dist/runtime/boolean-logic/ifNumber.d.ts.map +1 -1
  30. package/dist/runtime/boolean-logic/ifScalar.d.ts.map +1 -1
  31. package/dist/runtime/boolean-logic/ifString.d.ts.map +1 -1
  32. package/dist/runtime/boolean-logic/ifTrue.d.ts.map +1 -1
  33. package/dist/runtime/boolean-logic/ifUndefined.d.ts.map +1 -1
  34. package/dist/runtime/boolean-logic/ifUndefined.js +1 -1
  35. package/dist/runtime/combinators/and.d.ts.map +1 -1
  36. package/dist/runtime/combinators/or.d.ts.map +1 -1
  37. package/dist/runtime/dictionary/entries.js +1 -1
  38. package/dist/runtime/dictionary/get.d.ts.map +1 -1
  39. package/dist/runtime/dictionary/keysOf.d.ts.map +1 -1
  40. package/dist/runtime/dictionary/omit.d.ts.map +1 -1
  41. package/dist/runtime/dictionary/retain.d.ts +4 -9
  42. package/dist/runtime/dictionary/retain.d.ts.map +1 -1
  43. package/dist/runtime/dictionary/sharedKeys.d.ts +1 -1
  44. package/dist/runtime/dictionary/sharedKeys.d.ts.map +1 -1
  45. package/dist/runtime/dictionary/takeProp.d.ts.map +1 -1
  46. package/dist/runtime/dictionary/valuesOf.d.ts.map +1 -1
  47. package/dist/runtime/dictionary/withDefaults.d.ts.map +1 -1
  48. package/dist/runtime/dictionary/withKeys.d.ts +2 -2
  49. package/dist/runtime/dictionary/withKeys.d.ts.map +1 -1
  50. package/dist/runtime/dictionary/withoutKeys.d.ts +1 -13
  51. package/dist/runtime/dictionary/withoutKeys.d.ts.map +1 -1
  52. package/dist/runtime/dictionary/withoutValue.d.ts.map +1 -1
  53. package/dist/runtime/errors/KindError.d.ts.map +1 -1
  54. package/dist/runtime/errors/TypedError.d.ts.map +1 -1
  55. package/dist/runtime/errors/createErrorCondition.d.ts +5 -0
  56. package/dist/runtime/errors/createErrorCondition.d.ts.map +1 -1
  57. package/dist/runtime/errors/createErrorCondition.js +5 -0
  58. package/dist/runtime/errors/kindedError.d.ts.map +1 -1
  59. package/dist/runtime/functions/fnMeta.d.ts.map +1 -1
  60. package/dist/runtime/index.d.ts +2 -0
  61. package/dist/runtime/index.d.ts.map +1 -1
  62. package/dist/runtime/index.js +2 -0
  63. package/dist/runtime/initializers/addFnToProps.d.ts +2 -2
  64. package/dist/runtime/initializers/addFnToProps.d.ts.map +1 -1
  65. package/dist/runtime/initializers/addPropsToFn.d.ts +2 -2
  66. package/dist/runtime/initializers/addPropsToFn.d.ts.map +1 -1
  67. package/dist/runtime/initializers/createFnWithProps.d.ts.map +1 -1
  68. package/dist/runtime/initializers/defineObj.d.ts +2 -2
  69. package/dist/runtime/initializers/defineObj.d.ts.map +1 -1
  70. package/dist/runtime/initializers/defineTuple.d.ts.map +1 -1
  71. package/dist/runtime/lists/asArray.d.ts.map +1 -1
  72. package/dist/runtime/lists/createComparison.d.ts +2 -3
  73. package/dist/runtime/lists/createComparison.d.ts.map +1 -1
  74. package/dist/runtime/lists/createComparison.js +1 -1
  75. package/dist/runtime/lists/createConverter.d.ts +1 -1
  76. package/dist/runtime/lists/createConverter.d.ts.map +1 -1
  77. package/dist/runtime/lists/filter.d.ts +1 -1
  78. package/dist/runtime/lists/filter.js +4 -4
  79. package/dist/runtime/lists/find.d.ts +1 -1
  80. package/dist/runtime/lists/find.d.ts.map +1 -1
  81. package/dist/runtime/lists/index.d.ts +0 -1
  82. package/dist/runtime/lists/index.d.ts.map +1 -1
  83. package/dist/runtime/lists/index.js +0 -1
  84. package/dist/runtime/lists/indexOf.d.ts.map +1 -1
  85. package/dist/runtime/lists/indexOf.js +8 -5
  86. package/dist/runtime/lists/intersection.d.ts.map +1 -1
  87. package/dist/runtime/lists/join.d.ts +1 -1
  88. package/dist/runtime/lists/join.d.ts.map +1 -1
  89. package/dist/runtime/lists/join.js +6 -2
  90. package/dist/runtime/lists/last.d.ts +2 -2
  91. package/dist/runtime/lists/last.d.ts.map +1 -1
  92. package/dist/runtime/lists/logicalReturns.d.ts.map +1 -1
  93. package/dist/runtime/lists/reverse.d.ts.map +1 -1
  94. package/dist/runtime/lists/shift.d.ts +17 -5
  95. package/dist/runtime/lists/shift.d.ts.map +1 -1
  96. package/dist/runtime/lists/shift.js +33 -5
  97. package/dist/runtime/lists/slice.d.ts +2 -2
  98. package/dist/runtime/lists/slice.d.ts.map +1 -1
  99. package/dist/runtime/lists/unique.d.ts +2 -2
  100. package/dist/runtime/lists/unique.d.ts.map +1 -1
  101. package/dist/runtime/literals/box.d.ts.map +1 -1
  102. package/dist/runtime/literals/ensureLeading.d.ts +2 -2
  103. package/dist/runtime/literals/ensureLeading.d.ts.map +1 -1
  104. package/dist/runtime/literals/ensureLeading.js +6 -2
  105. package/dist/runtime/literals/ensureSurround.d.ts.map +1 -1
  106. package/dist/runtime/literals/ensureSurround.js +3 -1
  107. package/dist/runtime/literals/identity.d.ts.map +1 -1
  108. package/dist/runtime/literals/index.d.ts +2 -1
  109. package/dist/runtime/literals/index.d.ts.map +1 -1
  110. package/dist/runtime/literals/index.js +2 -1
  111. package/dist/runtime/literals/narrow.d.ts.map +1 -1
  112. package/dist/runtime/literals/phone/asPhoneNumber.d.ts +2 -0
  113. package/dist/runtime/literals/phone/asPhoneNumber.d.ts.map +1 -0
  114. package/dist/runtime/literals/phone/asPhoneNumber.js +62 -0
  115. package/dist/runtime/literals/phone/getPhoneCountryCode.d.ts +3 -0
  116. package/dist/runtime/literals/phone/getPhoneCountryCode.d.ts.map +1 -0
  117. package/dist/runtime/literals/phone/getPhoneCountryCode.js +7 -0
  118. package/dist/runtime/literals/phone/index.d.ts +4 -0
  119. package/dist/runtime/literals/phone/index.d.ts.map +1 -0
  120. package/dist/runtime/literals/phone/index.js +3 -0
  121. package/dist/runtime/literals/phone/removePhoneCountryCode.d.ts +3 -0
  122. package/dist/runtime/literals/phone/removePhoneCountryCode.d.ts.map +1 -0
  123. package/dist/runtime/literals/phone/removePhoneCountryCode.js +7 -0
  124. package/dist/runtime/literals/pluralize.d.ts.map +1 -1
  125. package/dist/runtime/literals/pluralize.js +4 -1
  126. package/dist/runtime/literals/retainAfter.d.ts.map +1 -1
  127. package/dist/runtime/literals/retainChars.d.ts +1 -1
  128. package/dist/runtime/literals/retainChars.d.ts.map +1 -1
  129. package/dist/runtime/literals/retainChars.js +2 -1
  130. package/dist/runtime/literals/retainWhile.d.ts.map +1 -1
  131. package/dist/runtime/literals/split.d.ts.map +1 -1
  132. package/dist/runtime/literals/stripAfter.d.ts.map +1 -1
  133. package/dist/runtime/literals/stripBefore.d.ts.map +1 -1
  134. package/dist/runtime/literals/stripChars.d.ts +1 -1
  135. package/dist/runtime/literals/stripChars.d.ts.map +1 -1
  136. package/dist/runtime/literals/stripChars.js +2 -1
  137. package/dist/runtime/literals/stripLeading.d.ts +1 -1
  138. package/dist/runtime/literals/stripLeading.d.ts.map +1 -1
  139. package/dist/runtime/literals/stripLeading.js +8 -6
  140. package/dist/runtime/literals/stripSurround.d.ts +19 -0
  141. package/dist/runtime/literals/stripSurround.d.ts.map +1 -0
  142. package/dist/runtime/literals/stripSurround.js +30 -0
  143. package/dist/runtime/literals/stripTrailing.d.ts +2 -2
  144. package/dist/runtime/literals/stripTrailing.d.ts.map +1 -1
  145. package/dist/runtime/literals/stripTrailing.js +9 -10
  146. package/dist/runtime/literals/stripUntil.d.ts.map +1 -1
  147. package/dist/runtime/literals/takeNumericCharacters.d.ts +2 -2
  148. package/dist/runtime/literals/takeNumericCharacters.d.ts.map +1 -1
  149. package/dist/runtime/literals/toKebabCase.d.ts.map +1 -1
  150. package/dist/runtime/literals/toNumericArray.d.ts +2 -2
  151. package/dist/runtime/literals/toNumericArray.d.ts.map +1 -1
  152. package/dist/runtime/literals/toPascalCase.d.ts.map +1 -1
  153. package/dist/runtime/literals/truncate.d.ts +1 -1
  154. package/dist/runtime/literals/truncate.d.ts.map +1 -1
  155. package/dist/runtime/literals/tuple.d.ts +1 -1
  156. package/dist/runtime/literals/tuple.d.ts.map +1 -1
  157. package/dist/runtime/meta/urlMeta.d.ts.map +1 -1
  158. package/dist/runtime/meta/urlMeta.js +8 -5
  159. package/dist/runtime/meta/youtube-meta.d.ts.map +1 -1
  160. package/dist/runtime/queues/fifo.d.ts +3 -0
  161. package/dist/runtime/queues/fifo.d.ts.map +1 -0
  162. package/dist/runtime/queues/fifo.js +40 -0
  163. package/dist/runtime/queues/index.d.ts +3 -0
  164. package/dist/runtime/queues/index.d.ts.map +1 -0
  165. package/dist/runtime/queues/index.js +2 -0
  166. package/dist/runtime/queues/lifo.d.ts +3 -0
  167. package/dist/runtime/queues/lifo.d.ts.map +1 -0
  168. package/dist/runtime/queues/lifo.js +34 -0
  169. package/dist/runtime/runtime-types/asToken.d.ts +35 -0
  170. package/dist/runtime/runtime-types/asToken.d.ts.map +1 -0
  171. package/dist/runtime/runtime-types/asToken.js +115 -0
  172. package/dist/runtime/runtime-types/asType.d.ts +4 -0
  173. package/dist/runtime/runtime-types/asType.d.ts.map +1 -0
  174. package/dist/runtime/runtime-types/asType.js +6 -0
  175. package/dist/runtime/runtime-types/choices.js +8 -8
  176. package/dist/runtime/runtime-types/index.d.ts +3 -2
  177. package/dist/runtime/runtime-types/index.d.ts.map +1 -1
  178. package/dist/runtime/runtime-types/index.js +3 -2
  179. package/dist/runtime/runtime-types/ip6Prefix.d.ts +2 -2
  180. package/dist/runtime/runtime-types/ip6Prefix.d.ts.map +1 -1
  181. package/dist/runtime/runtime-types/list.d.ts.map +1 -1
  182. package/dist/runtime/runtime-types/rec.d.ts.map +1 -1
  183. package/dist/runtime/runtime-types/shape-helpers/addToken.d.ts.map +1 -1
  184. package/dist/runtime/runtime-types/shape-helpers/atomics.d.ts.map +1 -1
  185. package/dist/runtime/runtime-types/shape-helpers/functions.d.ts +7 -2
  186. package/dist/runtime/runtime-types/shape-helpers/functions.d.ts.map +1 -1
  187. package/dist/runtime/runtime-types/shape-helpers/functions.js +5 -0
  188. package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts +2 -1
  189. package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts.map +1 -1
  190. package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts +2 -1
  191. package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts.map +1 -1
  192. package/dist/runtime/runtime-types/shape-helpers/literal-containers.d.ts.map +1 -1
  193. package/dist/runtime/runtime-types/shape-helpers/regexToken.d.ts +12 -0
  194. package/dist/runtime/runtime-types/shape-helpers/regexToken.d.ts.map +1 -0
  195. package/dist/runtime/runtime-types/shape-helpers/regexToken.js +39 -0
  196. package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts +10 -0
  197. package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts.map +1 -1
  198. package/dist/runtime/runtime-types/shape-helpers/singletons.js +15 -0
  199. package/dist/runtime/runtime-types/shape-helpers/union.d.ts +5 -0
  200. package/dist/runtime/runtime-types/shape-helpers/union.d.ts.map +1 -1
  201. package/dist/runtime/runtime-types/shape-helpers/union.js +5 -0
  202. package/dist/runtime/runtime-types/shape-helpers/wide-containers.d.ts +1 -1
  203. package/dist/runtime/runtime-types/shape-helpers/wide-containers.d.ts.map +1 -1
  204. package/dist/runtime/runtime-types/shape.d.ts +2 -2
  205. package/dist/runtime/runtime-types/shape.d.ts.map +1 -1
  206. package/dist/runtime/runtime-types/shape.js +1 -1
  207. package/dist/runtime/runtime-types/tokens/createTypeToken.d.ts +30 -0
  208. package/dist/runtime/runtime-types/tokens/createTypeToken.d.ts.map +1 -0
  209. package/dist/runtime/runtime-types/tokens/createTypeToken.js +29 -0
  210. package/dist/runtime/runtime-types/tokens/index.d.ts +3 -0
  211. package/dist/runtime/runtime-types/tokens/index.d.ts.map +1 -0
  212. package/dist/runtime/runtime-types/tokens/index.js +2 -0
  213. package/dist/runtime/runtime-types/tokens/simpleToken.d.ts +51 -0
  214. package/dist/runtime/runtime-types/tokens/simpleToken.d.ts.map +1 -0
  215. package/dist/runtime/runtime-types/tokens/simpleToken.js +64 -0
  216. package/dist/runtime/sets/uniqueKeys.d.ts.map +1 -1
  217. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  218. package/dist/runtime/type-conversion/asChars.d.ts.map +1 -1
  219. package/dist/runtime/type-conversion/asRecord.d.ts +1 -1
  220. package/dist/runtime/type-conversion/asRecord.d.ts.map +1 -1
  221. package/dist/runtime/type-conversion/asString.d.ts +7 -1
  222. package/dist/runtime/type-conversion/asString.d.ts.map +1 -1
  223. package/dist/runtime/type-conversion/asString.js +11 -3
  224. package/dist/runtime/type-conversion/csv.d.ts +17 -0
  225. package/dist/runtime/type-conversion/csv.d.ts.map +1 -0
  226. package/dist/runtime/type-conversion/csv.js +31 -0
  227. package/dist/runtime/type-conversion/index.d.ts +2 -0
  228. package/dist/runtime/type-conversion/index.d.ts.map +1 -1
  229. package/dist/runtime/type-conversion/index.js +2 -0
  230. package/dist/runtime/type-conversion/ip6GroupExpansion.d.ts.map +1 -1
  231. package/dist/runtime/type-conversion/json.d.ts +18 -0
  232. package/dist/runtime/type-conversion/json.d.ts.map +1 -0
  233. package/dist/runtime/type-conversion/json.js +27 -0
  234. package/dist/runtime/type-conversion/mergeObjects.d.ts.map +1 -1
  235. package/dist/runtime/type-conversion/mergeScalars.d.ts.map +1 -1
  236. package/dist/runtime/type-conversion/optional.d.ts +20 -4
  237. package/dist/runtime/type-conversion/optional.d.ts.map +1 -1
  238. package/dist/runtime/type-conversion/optional.js +24 -6
  239. package/dist/runtime/type-conversion/union.d.ts.map +1 -1
  240. package/dist/runtime/type-guards/api-tg.d.ts.map +1 -1
  241. package/dist/runtime/type-guards/hasErrorConditions.d.ts +2 -4
  242. package/dist/runtime/type-guards/hasErrorConditions.d.ts.map +1 -1
  243. package/dist/runtime/type-guards/hasIndexOf.d.ts +2 -2
  244. package/dist/runtime/type-guards/hasIndexOf.d.ts.map +1 -1
  245. package/dist/runtime/type-guards/hasKeys.d.ts.map +1 -1
  246. package/dist/runtime/type-guards/hasWhitespace.d.ts.map +1 -1
  247. package/dist/runtime/type-guards/hasWhitespace.js +1 -1
  248. package/dist/runtime/type-guards/higher-order/endsWith.d.ts.map +1 -1
  249. package/dist/runtime/type-guards/higher-order/isEqual.d.ts.map +1 -1
  250. package/dist/runtime/type-guards/higher-order/isEqual.js +1 -1
  251. package/dist/runtime/type-guards/higher-order/isLength.d.ts.map +1 -1
  252. package/dist/runtime/type-guards/higher-order/isLength.js +1 -5
  253. package/dist/runtime/type-guards/higher-order/isSameTypeOf.d.ts.map +1 -1
  254. package/dist/runtime/type-guards/higher-order/isTuple.d.ts +1 -2
  255. package/dist/runtime/type-guards/higher-order/isTuple.d.ts.map +1 -1
  256. package/dist/runtime/type-guards/higher-order/isTuple.js +1 -2
  257. package/dist/runtime/type-guards/higher-order/isTypeOf.d.ts +1 -1
  258. package/dist/runtime/type-guards/higher-order/isTypeOf.d.ts.map +1 -1
  259. package/dist/runtime/type-guards/higher-order/startsWith.d.ts.map +1 -1
  260. package/dist/runtime/type-guards/higher-order/startsWith.js +1 -2
  261. package/dist/runtime/type-guards/index.d.ts +5 -0
  262. package/dist/runtime/type-guards/index.d.ts.map +1 -1
  263. package/dist/runtime/type-guards/index.js +5 -0
  264. package/dist/runtime/type-guards/isAlpha.d.ts.map +1 -1
  265. package/dist/runtime/type-guards/isBooleanLike.d.ts +9 -0
  266. package/dist/runtime/type-guards/isBooleanLike.d.ts.map +1 -0
  267. package/dist/runtime/type-guards/isBooleanLike.js +11 -0
  268. package/dist/runtime/type-guards/isCssAspectRatio.d.ts +1 -1
  269. package/dist/runtime/type-guards/isCssAspectRatio.d.ts.map +1 -1
  270. package/dist/runtime/type-guards/isDoneFn.d.ts.map +1 -1
  271. package/dist/runtime/type-guards/isEmail.d.ts +2 -1
  272. package/dist/runtime/type-guards/isEmail.d.ts.map +1 -1
  273. package/dist/runtime/type-guards/isEmail.js +10 -4
  274. package/dist/runtime/type-guards/isFalsy.d.ts.map +1 -1
  275. package/dist/runtime/type-guards/isHexadecimal.d.ts.map +1 -1
  276. package/dist/runtime/type-guards/isInlineSvg.d.ts +2 -1
  277. package/dist/runtime/type-guards/isInlineSvg.d.ts.map +1 -1
  278. package/dist/runtime/type-guards/isLeftRight.d.ts +2 -2
  279. package/dist/runtime/type-guards/isLeftRight.d.ts.map +1 -1
  280. package/dist/runtime/type-guards/isNever.d.ts.map +1 -1
  281. package/dist/runtime/type-guards/isNumericString.d.ts +8 -0
  282. package/dist/runtime/type-guards/isNumericString.d.ts.map +1 -1
  283. package/dist/runtime/type-guards/isNumericString.js +11 -0
  284. package/dist/runtime/type-guards/isPhoneNumber.d.ts +1 -1
  285. package/dist/runtime/type-guards/isPhoneNumber.d.ts.map +1 -1
  286. package/dist/runtime/type-guards/isPhoneNumber.js +16 -10
  287. package/dist/runtime/type-guards/isRegExp.d.ts +17 -0
  288. package/dist/runtime/type-guards/isRegExp.d.ts.map +1 -0
  289. package/dist/runtime/type-guards/isRegExp.js +32 -0
  290. package/dist/runtime/type-guards/isRuntimeUnion.d.ts.map +1 -1
  291. package/dist/runtime/type-guards/isSpecificConstant.d.ts.map +1 -1
  292. package/dist/runtime/type-guards/isTrimmable.d.ts.map +1 -1
  293. package/dist/runtime/type-guards/isTruthy.d.ts.map +1 -1
  294. package/dist/runtime/type-guards/isUnset.d.ts.map +1 -1
  295. package/dist/runtime/type-guards/isUrl.d.ts +3 -3
  296. package/dist/runtime/type-guards/isUrl.d.ts.map +1 -1
  297. package/dist/runtime/type-guards/network-tg.d.ts +6 -7
  298. package/dist/runtime/type-guards/network-tg.d.ts.map +1 -1
  299. package/dist/runtime/type-guards/network-tg.js +4 -9
  300. package/dist/runtime/type-guards/repos.d.ts +9 -7
  301. package/dist/runtime/type-guards/repos.d.ts.map +1 -1
  302. package/dist/runtime/type-guards/repos.js +1 -3
  303. package/dist/runtime/type-guards/tokens/index.d.ts +6 -0
  304. package/dist/runtime/type-guards/tokens/index.d.ts.map +1 -0
  305. package/dist/runtime/type-guards/tokens/index.js +5 -0
  306. package/dist/runtime/type-guards/tokens/isAtomicToken.d.ts +9 -0
  307. package/dist/runtime/type-guards/tokens/isAtomicToken.d.ts.map +1 -0
  308. package/dist/runtime/type-guards/tokens/isAtomicToken.js +12 -0
  309. package/dist/runtime/type-guards/tokens/isContainerToken.d.ts +21 -0
  310. package/dist/runtime/type-guards/tokens/isContainerToken.d.ts.map +1 -0
  311. package/dist/runtime/type-guards/tokens/isContainerToken.js +48 -0
  312. package/dist/runtime/type-guards/tokens/isFunctionToken.d.ts +4 -0
  313. package/dist/runtime/type-guards/tokens/isFunctionToken.d.ts.map +1 -0
  314. package/dist/runtime/type-guards/tokens/isFunctionToken.js +7 -0
  315. package/dist/runtime/type-guards/tokens/isShapeToken.d.ts +9 -0
  316. package/dist/runtime/type-guards/tokens/isShapeToken.d.ts.map +1 -0
  317. package/dist/runtime/type-guards/tokens/isShapeToken.js +21 -0
  318. package/dist/runtime/type-guards/tokens/isSimpleToken.d.ts +53 -0
  319. package/dist/runtime/type-guards/tokens/isSimpleToken.d.ts.map +1 -0
  320. package/dist/runtime/type-guards/tokens/isSimpleToken.js +74 -0
  321. package/dist/runtime/type-guards/tokens/isSingletonToken.d.ts +9 -0
  322. package/dist/runtime/type-guards/tokens/isSingletonToken.d.ts.map +1 -0
  323. package/dist/runtime/type-guards/tokens/isSingletonToken.js +12 -0
  324. package/dist/runtime/type-guards/tokens/isTupleToken.d.ts +1 -0
  325. package/dist/runtime/type-guards/tokens/isTupleToken.d.ts.map +1 -0
  326. package/dist/runtime/type-guards/tokens/isTupleToken.js +1 -0
  327. package/dist/runtime/type-guards/tokens/isUnionSetToken.d.ts +1 -0
  328. package/dist/runtime/type-guards/tokens/isUnionSetToken.d.ts.map +1 -0
  329. package/dist/runtime/type-guards/tokens/isUnionSetToken.js +1 -0
  330. package/dist/runtime/type-guards/tokens/isUnionToken.d.ts +9 -0
  331. package/dist/runtime/type-guards/tokens/isUnionToken.d.ts.map +1 -0
  332. package/dist/runtime/type-guards/tokens/isUnionToken.js +12 -0
  333. package/dist/runtime/type-guards/youtube.d.ts +5 -5
  334. package/dist/runtime/type-guards/youtube.d.ts.map +1 -1
  335. package/dist/runtime/type-guards/youtube.js +1 -3
  336. package/dist/runtime/vuejs/asVueRef.d.ts +1 -1
  337. package/dist/runtime/vuejs/asVueRef.d.ts.map +1 -1
  338. package/dist/types/base-types/LikeRegExp.d.ts +9 -0
  339. package/dist/types/base-types/LikeRegExp.d.ts.map +1 -0
  340. package/dist/types/base-types/Something.d.ts.map +1 -1
  341. package/dist/types/base-types/Something.js +1 -0
  342. package/dist/types/base-types/fns/AnyFunction.d.ts.map +1 -1
  343. package/dist/types/base-types/fns/AnyFunction.js +1 -1
  344. package/dist/types/base-types/fns/FnAllowingProps.d.ts +11 -0
  345. package/dist/types/base-types/fns/FnAllowingProps.d.ts.map +1 -0
  346. package/dist/types/base-types/fns/index.d.ts +1 -2
  347. package/dist/types/base-types/fns/index.d.ts.map +1 -1
  348. package/dist/types/base-types/fns/index.js +1 -2
  349. package/dist/types/base-types/index.d.ts +1 -0
  350. package/dist/types/base-types/index.d.ts.map +1 -1
  351. package/dist/types/base-types/index.js +1 -0
  352. package/dist/types/boolean-logic/branching/OnPass.d.ts.map +1 -1
  353. package/dist/types/boolean-logic/combinators/Compare.d.ts.map +1 -1
  354. package/dist/types/boolean-logic/operators/AreSameLength.d.ts +2 -2
  355. package/dist/types/boolean-logic/operators/AreSameLength.d.ts.map +1 -1
  356. package/dist/types/boolean-logic/operators/Contains.d.ts +4 -3
  357. package/dist/types/boolean-logic/operators/Contains.d.ts.map +1 -1
  358. package/dist/types/boolean-logic/operators/HasArray.d.ts +10 -0
  359. package/dist/types/boolean-logic/operators/HasArray.d.ts.map +1 -0
  360. package/dist/types/boolean-logic/operators/HasArray.js +1 -0
  361. package/dist/types/boolean-logic/operators/HasRequiredProps.d.ts +1 -2
  362. package/dist/types/boolean-logic/operators/HasRequiredProps.d.ts.map +1 -1
  363. package/dist/types/boolean-logic/operators/HaveSameNumericSign.d.ts +9 -0
  364. package/dist/types/boolean-logic/operators/HaveSameNumericSign.d.ts.map +1 -0
  365. package/dist/types/boolean-logic/operators/HaveSameNumericSign.js +1 -0
  366. package/dist/types/boolean-logic/operators/IsEmptyString.d.ts +12 -0
  367. package/dist/types/boolean-logic/operators/IsEmptyString.d.ts.map +1 -0
  368. package/dist/types/boolean-logic/operators/IsEmptyString.js +1 -0
  369. package/dist/types/boolean-logic/operators/IsFloat.d.ts +2 -2
  370. package/dist/types/boolean-logic/operators/IsFloat.d.ts.map +1 -1
  371. package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts +8 -2
  372. package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts.map +1 -1
  373. package/dist/types/boolean-logic/operators/IsInteger.d.ts +2 -2
  374. package/dist/types/boolean-logic/operators/IsInteger.d.ts.map +1 -1
  375. package/dist/types/boolean-logic/operators/IsLessThan.d.ts +8 -2
  376. package/dist/types/boolean-logic/operators/IsLessThan.d.ts.map +1 -1
  377. package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts +2 -4
  378. package/dist/types/boolean-logic/operators/IsNegativeNumber.d.ts.map +1 -1
  379. package/dist/types/boolean-logic/operators/IsNonLiteralUnion.d.ts +1 -1
  380. package/dist/types/boolean-logic/operators/IsNonLiteralUnion.d.ts.map +1 -1
  381. package/dist/types/boolean-logic/operators/IsPositiveNumber.d.ts +11 -0
  382. package/dist/types/boolean-logic/operators/IsPositiveNumber.d.ts.map +1 -0
  383. package/dist/types/boolean-logic/operators/IsPositiveNumber.js +1 -0
  384. package/dist/types/boolean-logic/operators/IsTuple.d.ts +1 -1
  385. package/dist/types/boolean-logic/operators/IsUrl.d.ts +7 -8
  386. package/dist/types/boolean-logic/operators/IsUrl.d.ts.map +1 -1
  387. package/dist/types/boolean-logic/operators/MaybeError.d.ts +20 -0
  388. package/dist/types/boolean-logic/operators/MaybeError.d.ts.map +1 -0
  389. package/dist/types/boolean-logic/operators/MaybeError.js +2 -0
  390. package/dist/types/boolean-logic/operators/PhoneOperators.d.ts +2 -3
  391. package/dist/types/boolean-logic/operators/PhoneOperators.d.ts.map +1 -1
  392. package/dist/types/boolean-logic/operators/StartsWith.d.ts +8 -9
  393. package/dist/types/boolean-logic/operators/StartsWith.d.ts.map +1 -1
  394. package/dist/types/boolean-logic/operators/UnionHasArray.d.ts +14 -0
  395. package/dist/types/boolean-logic/operators/UnionHasArray.d.ts.map +1 -0
  396. package/dist/types/boolean-logic/operators/UnionHasArray.js +1 -0
  397. package/dist/types/boolean-logic/operators/index.d.ts +6 -0
  398. package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
  399. package/dist/types/boolean-logic/operators/index.js +6 -0
  400. package/dist/types/containers/RemoveEmpty.d.ts +30 -0
  401. package/dist/types/containers/RemoveEmpty.d.ts.map +1 -0
  402. package/dist/types/containers/RemoveEmpty.js +1 -0
  403. package/dist/types/containers/RemoveMarked.d.ts +1 -1
  404. package/dist/types/containers/RemoveMarked.d.ts.map +1 -1
  405. package/dist/types/containers/RemoveUndefined.d.ts +1 -7
  406. package/dist/types/containers/RemoveUndefined.d.ts.map +1 -1
  407. package/dist/types/containers/index.d.ts +1 -0
  408. package/dist/types/containers/index.d.ts.map +1 -1
  409. package/dist/types/containers/index.js +1 -0
  410. package/dist/types/dictionary/EnsureKeys.d.ts +1 -3
  411. package/dist/types/dictionary/EnsureKeys.d.ts.map +1 -1
  412. package/dist/types/dictionary/Keys.d.ts +2 -2
  413. package/dist/types/dictionary/Keys.d.ts.map +1 -1
  414. package/dist/types/dictionary/OptionalKeys.d.ts +2 -2
  415. package/dist/types/dictionary/OptionalKeys.d.ts.map +1 -1
  416. package/dist/types/dictionary/OptionalKeys.js +0 -1
  417. package/dist/types/dictionary/RequireProps.d.ts +2 -2
  418. package/dist/types/dictionary/RequireProps.d.ts.map +1 -1
  419. package/dist/types/dictionary/RequiredKeys.d.ts +2 -2
  420. package/dist/types/dictionary/RequiredKeys.d.ts.map +1 -1
  421. package/dist/types/dictionary/WithValue.d.ts +2 -3
  422. package/dist/types/dictionary/WithValue.d.ts.map +1 -1
  423. package/dist/types/dictionary/WithoutKeys.d.ts +3 -3
  424. package/dist/types/dictionary/WithoutKeys.d.ts.map +1 -1
  425. package/dist/types/functional/Result.d.ts +1 -1
  426. package/dist/types/functional/Result.d.ts.map +1 -1
  427. package/dist/types/functions/FnFrom.d.ts +1 -1
  428. package/dist/types/functions/FnFrom.d.ts.map +1 -1
  429. package/dist/types/functions/FnWithProps.d.ts +10 -0
  430. package/dist/types/functions/FnWithProps.d.ts.map +1 -0
  431. package/dist/types/functions/FnWithProps.js +1 -0
  432. package/dist/types/functions/IdentityFn.d.ts +1 -2
  433. package/dist/types/functions/IdentityFn.d.ts.map +1 -1
  434. package/dist/types/functions/index.d.ts +1 -0
  435. package/dist/types/functions/index.d.ts.map +1 -1
  436. package/dist/types/functions/index.js +1 -0
  437. package/dist/types/index.d.ts +1 -0
  438. package/dist/types/index.d.ts.map +1 -1
  439. package/dist/types/index.js +1 -0
  440. package/dist/types/lists/AsArray.d.ts +7 -2
  441. package/dist/types/lists/AsArray.d.ts.map +1 -1
  442. package/dist/types/lists/BeforeLast.d.ts +3 -3
  443. package/dist/types/lists/Filter.d.ts +2 -9
  444. package/dist/types/lists/Filter.d.ts.map +1 -1
  445. package/dist/types/lists/FilterByProp.d.ts +37 -0
  446. package/dist/types/lists/FilterByProp.d.ts.map +1 -0
  447. package/dist/types/lists/FilterByProp.js +1 -0
  448. package/dist/types/lists/Flatten.d.ts +31 -14
  449. package/dist/types/lists/Flatten.d.ts.map +1 -1
  450. package/dist/types/lists/Last.d.ts +2 -2
  451. package/dist/types/lists/Last.d.ts.map +1 -1
  452. package/dist/types/lists/Length.d.ts +3 -4
  453. package/dist/types/lists/Length.d.ts.map +1 -1
  454. package/dist/types/lists/RetainByProp.d.ts +38 -0
  455. package/dist/types/lists/RetainByProp.d.ts.map +1 -0
  456. package/dist/types/lists/RetainByProp.js +1 -0
  457. package/dist/types/lists/Shift.d.ts +5 -3
  458. package/dist/types/lists/Shift.d.ts.map +1 -1
  459. package/dist/types/lists/Slice.d.ts +17 -9
  460. package/dist/types/lists/Slice.d.ts.map +1 -1
  461. package/dist/types/lists/TakeFirst.d.ts +21 -0
  462. package/dist/types/lists/TakeFirst.d.ts.map +1 -0
  463. package/dist/types/lists/TakeFirst.js +1 -0
  464. package/dist/types/lists/TakeLast.d.ts +16 -0
  465. package/dist/types/lists/TakeLast.d.ts.map +1 -0
  466. package/dist/types/lists/TakeLast.js +1 -0
  467. package/dist/types/lists/index.d.ts +4 -0
  468. package/dist/types/lists/index.d.ts.map +1 -1
  469. package/dist/types/lists/index.js +4 -0
  470. package/dist/types/literals/BooleanLike.d.ts +8 -0
  471. package/dist/types/literals/BooleanLike.d.ts.map +1 -0
  472. package/dist/types/literals/BooleanLike.js +1 -0
  473. package/dist/types/literals/NarrowableDefined.d.ts +2 -1
  474. package/dist/types/literals/NarrowableDefined.d.ts.map +1 -1
  475. package/dist/types/literals/NarrowableDefined.js +0 -1
  476. package/dist/types/literals/Shape.d.ts +10 -1
  477. package/dist/types/literals/Shape.d.ts.map +1 -1
  478. package/dist/types/literals/index.d.ts +1 -0
  479. package/dist/types/literals/index.d.ts.map +1 -1
  480. package/dist/types/literals/index.js +1 -0
  481. package/dist/types/numeric-literals/Abs.d.ts +2 -2
  482. package/dist/types/numeric-literals/Abs.d.ts.map +1 -1
  483. package/dist/types/numeric-literals/Add.d.ts +5 -3
  484. package/dist/types/numeric-literals/Add.d.ts.map +1 -1
  485. package/dist/types/numeric-literals/AsNegativeNumber.d.ts +12 -0
  486. package/dist/types/numeric-literals/AsNegativeNumber.d.ts.map +1 -0
  487. package/dist/types/numeric-literals/AsNegativeNumber.js +1 -0
  488. package/dist/types/numeric-literals/CSV.d.ts +73 -0
  489. package/dist/types/numeric-literals/CSV.d.ts.map +1 -0
  490. package/dist/types/numeric-literals/CSV.js +1 -0
  491. package/dist/types/numeric-literals/Delta.d.ts +14 -0
  492. package/dist/types/numeric-literals/Delta.d.ts.map +1 -0
  493. package/dist/types/numeric-literals/Delta.js +1 -0
  494. package/dist/types/numeric-literals/Digit.d.ts +2 -3
  495. package/dist/types/numeric-literals/Digit.d.ts.map +1 -1
  496. package/dist/types/numeric-literals/Digitize.d.ts +10 -20
  497. package/dist/types/numeric-literals/Digitize.d.ts.map +1 -1
  498. package/dist/types/numeric-literals/Increment.d.ts +2 -5
  499. package/dist/types/numeric-literals/Increment.d.ts.map +1 -1
  500. package/dist/types/numeric-literals/InvertNumericSign.d.ts +9 -0
  501. package/dist/types/numeric-literals/InvertNumericSign.d.ts.map +1 -0
  502. package/dist/types/numeric-literals/InvertNumericSign.js +1 -0
  503. package/dist/types/numeric-literals/NumberLike.d.ts.map +1 -1
  504. package/dist/types/numeric-literals/Subtract.d.ts +11 -8
  505. package/dist/types/numeric-literals/Subtract.d.ts.map +1 -1
  506. package/dist/types/numeric-literals/Zero.d.ts +8 -0
  507. package/dist/types/numeric-literals/Zero.d.ts.map +1 -0
  508. package/dist/types/numeric-literals/Zero.js +1 -0
  509. package/dist/types/numeric-literals/index.d.ts +5 -0
  510. package/dist/types/numeric-literals/index.d.ts.map +1 -1
  511. package/dist/types/numeric-literals/index.js +5 -0
  512. package/dist/types/queues/FifoQueue.d.ts +31 -0
  513. package/dist/types/queues/FifoQueue.d.ts.map +1 -0
  514. package/dist/types/queues/FifoQueue.js +1 -0
  515. package/dist/types/queues/LifoQueue.d.ts +31 -0
  516. package/dist/types/queues/LifoQueue.d.ts.map +1 -0
  517. package/dist/types/queues/LifoQueue.js +1 -0
  518. package/dist/types/queues/index.d.ts +3 -0
  519. package/dist/types/queues/index.d.ts.map +1 -0
  520. package/dist/types/queues/index.js +2 -0
  521. package/dist/types/runtime-types/AsType.d.ts +16 -0
  522. package/dist/types/runtime-types/AsType.d.ts.map +1 -0
  523. package/dist/types/runtime-types/AsType.js +1 -0
  524. package/dist/types/runtime-types/SimpleType.d.ts +47 -0
  525. package/dist/types/runtime-types/SimpleType.d.ts.map +1 -0
  526. package/dist/types/runtime-types/SimpleType.js +1 -0
  527. package/dist/types/runtime-types/Type.d.ts +1 -1
  528. package/dist/types/runtime-types/Type.d.ts.map +1 -1
  529. package/dist/types/runtime-types/TypeOf.d.ts +1 -1
  530. package/dist/types/runtime-types/TypeOf.d.ts.map +1 -1
  531. package/dist/types/runtime-types/TypeToken.d.ts +119 -9
  532. package/dist/types/runtime-types/TypeToken.d.ts.map +1 -1
  533. package/dist/types/runtime-types/index.d.ts +2 -1
  534. package/dist/types/runtime-types/index.d.ts.map +1 -1
  535. package/dist/types/runtime-types/index.js +2 -1
  536. package/dist/types/sets/Intersection.d.ts +1 -1
  537. package/dist/types/sets/Intersection.d.ts.map +1 -1
  538. package/dist/types/string-literals/Date.d.ts +4 -4
  539. package/dist/types/string-literals/Date.d.ts.map +1 -1
  540. package/dist/types/string-literals/EnsureLeading.d.ts +10 -6
  541. package/dist/types/string-literals/EnsureLeading.d.ts.map +1 -1
  542. package/dist/types/string-literals/EnsureTrailing.d.ts +5 -6
  543. package/dist/types/string-literals/EnsureTrailing.d.ts.map +1 -1
  544. package/dist/types/string-literals/Join.d.ts +3 -2
  545. package/dist/types/string-literals/Join.d.ts.map +1 -1
  546. package/dist/types/string-literals/Proxmox.d.ts +2 -3
  547. package/dist/types/string-literals/Proxmox.d.ts.map +1 -1
  548. package/dist/types/string-literals/Split.d.ts +1 -1
  549. package/dist/types/string-literals/Split.d.ts.map +1 -1
  550. package/dist/types/string-literals/StripLeading.d.ts +2 -2
  551. package/dist/types/string-literals/StripLeading.d.ts.map +1 -1
  552. package/dist/types/string-literals/StripSurround.d.ts +16 -0
  553. package/dist/types/string-literals/StripSurround.d.ts.map +1 -0
  554. package/dist/types/string-literals/StripSurround.js +1 -0
  555. package/dist/types/string-literals/StripTrailing.d.ts +2 -2
  556. package/dist/types/string-literals/StripTrailing.d.ts.map +1 -1
  557. package/dist/types/string-literals/StripUntil.d.ts +1 -1
  558. package/dist/types/string-literals/StripUntil.d.ts.map +1 -1
  559. package/dist/types/string-literals/Suggest.d.ts.map +1 -1
  560. package/dist/types/string-literals/Surround.d.ts +2 -2
  561. package/dist/types/string-literals/Surround.d.ts.map +1 -1
  562. package/dist/types/string-literals/Truncate.d.ts +4 -4
  563. package/dist/types/string-literals/Truncate.d.ts.map +1 -1
  564. package/dist/types/string-literals/UnderlyingType.d.ts +18 -0
  565. package/dist/types/string-literals/UnderlyingType.d.ts.map +1 -0
  566. package/dist/types/string-literals/UnderlyingType.js +1 -0
  567. package/dist/types/string-literals/character-sets/CSS.d.ts +13 -0
  568. package/dist/types/string-literals/character-sets/CSS.d.ts.map +1 -1
  569. package/dist/types/string-literals/character-sets/Consonants.d.ts +3 -4
  570. package/dist/types/string-literals/character-sets/Consonants.d.ts.map +1 -1
  571. package/dist/types/string-literals/character-sets/DomainName.d.ts +1 -1
  572. package/dist/types/string-literals/character-sets/DomainName.d.ts.map +1 -1
  573. package/dist/types/string-literals/character-sets/IpAddress.d.ts +1 -1
  574. package/dist/types/string-literals/character-sets/IpAddress.d.ts.map +1 -1
  575. package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts +2 -3
  576. package/dist/types/string-literals/character-sets/LowerAlphaChar.d.ts.map +1 -1
  577. package/dist/types/string-literals/character-sets/NumericChar.d.ts +3 -4
  578. package/dist/types/string-literals/character-sets/NumericChar.d.ts.map +1 -1
  579. package/dist/types/string-literals/character-sets/Repos.d.ts +2 -1
  580. package/dist/types/string-literals/character-sets/Repos.d.ts.map +1 -1
  581. package/dist/types/string-literals/character-sets/SingularNoun.d.ts +1 -1
  582. package/dist/types/string-literals/character-sets/SingularNoun.d.ts.map +1 -1
  583. package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts +2 -3
  584. package/dist/types/string-literals/character-sets/UpperAlphaChar.d.ts.map +1 -1
  585. package/dist/types/string-literals/character-sets/Url.d.ts +4 -3
  586. package/dist/types/string-literals/character-sets/Url.d.ts.map +1 -1
  587. package/dist/types/string-literals/character-sets/Url.js +0 -1
  588. package/dist/types/string-literals/character-sets/Whitespace.d.ts +1 -1
  589. package/dist/types/string-literals/character-sets/Whitespace.d.ts.map +1 -1
  590. package/dist/types/string-literals/character-sets/index.d.ts +1 -1
  591. package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
  592. package/dist/types/string-literals/character-sets/index.js +1 -1
  593. package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.d.ts +12 -0
  594. package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.d.ts.map +1 -0
  595. package/dist/types/string-literals/character-sets/phone/CountryPhoneNumber.js +1 -0
  596. package/dist/types/string-literals/character-sets/phone/DialCountryCode.d.ts +9 -0
  597. package/dist/types/string-literals/character-sets/phone/DialCountryCode.d.ts.map +1 -0
  598. package/dist/types/string-literals/character-sets/phone/DialCountryCode.js +1 -0
  599. package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.d.ts +14 -0
  600. package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.d.ts.map +1 -0
  601. package/dist/types/string-literals/character-sets/phone/GetPhoneCountryCode.js +1 -0
  602. package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.d.ts +10 -0
  603. package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.d.ts.map +1 -0
  604. package/dist/types/string-literals/character-sets/phone/GetPhoneNumberType.js +1 -0
  605. package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.d.ts +12 -0
  606. package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.d.ts.map +1 -0
  607. package/dist/types/string-literals/character-sets/phone/InternationalPhoneNumber.js +1 -0
  608. package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.d.ts +12 -0
  609. package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.d.ts.map +1 -0
  610. package/dist/types/string-literals/character-sets/phone/LocalPhoneNumber.js +1 -0
  611. package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.d.ts +6 -0
  612. package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.d.ts.map +1 -0
  613. package/dist/types/string-literals/character-sets/phone/PhoneAreaCode.js +1 -0
  614. package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.d.ts +13 -0
  615. package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.d.ts.map +1 -0
  616. package/dist/types/string-literals/character-sets/phone/PhoneCountryCode.js +1 -0
  617. package/dist/types/string-literals/character-sets/phone/PhoneNumber.d.ts +23 -0
  618. package/dist/types/string-literals/character-sets/phone/PhoneNumber.d.ts.map +1 -0
  619. package/dist/types/string-literals/character-sets/phone/PhoneNumber.js +1 -0
  620. package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.d.ts +5 -0
  621. package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.d.ts.map +1 -0
  622. package/dist/types/string-literals/character-sets/phone/PhoneNumberDelimiter.js +1 -0
  623. package/dist/types/string-literals/character-sets/phone/PhoneShortCode.d.ts +19 -0
  624. package/dist/types/string-literals/character-sets/phone/PhoneShortCode.d.ts.map +1 -0
  625. package/dist/types/string-literals/character-sets/phone/PhoneShortCode.js +1 -0
  626. package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.d.ts +30 -0
  627. package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.d.ts.map +1 -0
  628. package/dist/types/string-literals/character-sets/phone/RawPhoneNumber.js +1 -0
  629. package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.d.ts +27 -0
  630. package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.d.ts.map +1 -0
  631. package/dist/types/string-literals/character-sets/phone/RemovePhoneCountryCode.js +1 -0
  632. package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.d.ts +17 -0
  633. package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.d.ts.map +1 -0
  634. package/dist/types/string-literals/character-sets/phone/ToPhoneFormat.js +1 -0
  635. package/dist/types/string-literals/character-sets/phone/index.d.ts +15 -0
  636. package/dist/types/string-literals/character-sets/phone/index.d.ts.map +1 -0
  637. package/dist/types/string-literals/character-sets/phone/index.js +14 -0
  638. package/dist/types/string-literals/character-sets/phone.d.ts +0 -187
  639. package/dist/types/string-literals/character-sets/phone.d.ts.map +1 -1
  640. package/dist/types/string-literals/geo/state.d.ts +1 -1
  641. package/dist/types/string-literals/geo/state.d.ts.map +1 -1
  642. package/dist/types/string-literals/geo/zip.d.ts +1 -1
  643. package/dist/types/string-literals/geo/zip.d.ts.map +1 -1
  644. package/dist/types/string-literals/index.d.ts +2 -0
  645. package/dist/types/string-literals/index.d.ts.map +1 -1
  646. package/dist/types/string-literals/index.js +2 -0
  647. package/dist/types/tsconfig.tsbuildinfo +1 -1
  648. package/dist/types/type-conversion/AsBoolean.d.ts +7 -4
  649. package/dist/types/type-conversion/AsBoolean.d.ts.map +1 -1
  650. package/dist/types/type-conversion/AsNumber.d.ts +8 -3
  651. package/dist/types/type-conversion/AsNumber.d.ts.map +1 -1
  652. package/dist/types/type-conversion/AsString.d.ts +3 -1
  653. package/dist/types/type-conversion/AsString.d.ts.map +1 -1
  654. package/dist/types/type-conversion/AsStringUnion.d.ts +25 -0
  655. package/dist/types/type-conversion/AsStringUnion.d.ts.map +1 -0
  656. package/dist/types/type-conversion/AsStringUnion.js +1 -0
  657. package/dist/types/type-conversion/JSON.d.ts +25 -0
  658. package/dist/types/type-conversion/JSON.d.ts.map +1 -0
  659. package/dist/types/type-conversion/JSON.js +1 -0
  660. package/dist/types/type-conversion/StringLiteralFromTuple.d.ts +18 -0
  661. package/dist/types/type-conversion/StringLiteralFromTuple.d.ts.map +1 -0
  662. package/dist/types/type-conversion/StringLiteralFromTuple.js +1 -0
  663. package/dist/types/type-conversion/StripChars.d.ts +7 -6
  664. package/dist/types/type-conversion/StripChars.d.ts.map +1 -1
  665. package/dist/types/type-conversion/ToJsonValue.d.ts +11 -0
  666. package/dist/types/type-conversion/ToJsonValue.d.ts.map +1 -0
  667. package/dist/types/type-conversion/ToJsonValue.js +1 -0
  668. package/dist/types/type-conversion/ToStringArray.d.ts +4 -3
  669. package/dist/types/type-conversion/ToStringArray.d.ts.map +1 -1
  670. package/dist/types/type-conversion/TupleToUnion.d.ts +2 -2
  671. package/dist/types/type-conversion/TupleToUnion.d.ts.map +1 -1
  672. package/dist/types/type-conversion/Widen.js +1 -0
  673. package/dist/types/type-conversion/index.d.ts +4 -0
  674. package/dist/types/type-conversion/index.d.ts.map +1 -1
  675. package/dist/types/type-conversion/index.js +4 -0
  676. package/package.json +38 -36
  677. package/dist/runtime/lists/pop.d.ts +0 -17
  678. package/dist/runtime/lists/pop.d.ts.map +0 -1
  679. package/dist/runtime/lists/pop.js +0 -16
  680. package/dist/runtime/literals/asPhoneNumber.d.ts +0 -10
  681. package/dist/runtime/literals/asPhoneNumber.d.ts.map +0 -1
  682. package/dist/runtime/literals/asPhoneNumber.js +0 -62
  683. package/dist/runtime/runtime-types/dict.d.ts +0 -10
  684. package/dist/runtime/runtime-types/dict.d.ts.map +0 -1
  685. package/dist/runtime/runtime-types/dict.js +0 -11
  686. package/dist/runtime/runtime-types/parse.d.ts +0 -16
  687. package/dist/runtime/runtime-types/parse.d.ts.map +0 -1
  688. package/dist/runtime/runtime-types/parse.js +0 -29
  689. package/dist/types/base-types/fns/AnyFnWithDict.d.ts +0 -9
  690. package/dist/types/base-types/fns/AnyFnWithDict.d.ts.map +0 -1
  691. package/dist/types/base-types/fns/FnWithDict.d.ts +0 -10
  692. package/dist/types/base-types/fns/FnWithDict.d.ts.map +0 -1
  693. package/dist/types/runtime-types/DescribeType.d.ts +0 -40
  694. package/dist/types/runtime-types/DescribeType.d.ts.map +0 -1
  695. package/dist/types/runtime-types/DescribeType.js +0 -2
  696. /package/dist/types/base-types/{fns/AnyFnWithDict.js → LikeRegExp.js} +0 -0
  697. /package/dist/types/base-types/fns/{FnWithDict.js → FnAllowingProps.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"asChars.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/asChars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAExC;;;;GAIG;AACH,eAAO,MAAM,OAAO,0BAA2B,CAAC,KAAG,MAAM,CAAC,CAEzD,CAAA"}
1
+ {"version":3,"file":"asChars.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/asChars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAExC;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,OAAO,CAAC,KAAG,KAAK,CAAC,CAAC,CAEzD,CAAA"}
@@ -6,5 +6,5 @@ import { AsRecord, ObjectKey } from "../../types/index";
6
6
  * helps convert a `object` to a `Record<ObjectKey,unknown>` which
7
7
  * is indexable.
8
8
  */
9
- export declare const asRecord: <T extends object | Record<ObjectKey, unknown>>(obj: T) => AsRecord<T>;
9
+ export declare const asRecord: <T extends Record<ObjectKey, unknown> | object>(obj: T) => AsRecord<T>;
10
10
  //# sourceMappingURL=asRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asRecord.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/asRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAwB;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,uDAEd,CAAC,KAAG,SAAS,CAAC,CAEpB,CAAA"}
1
+ {"version":3,"file":"asRecord.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/asRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAwB;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GACnB,CAAC,SAAS,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,MAAM,OACxC,CAAC,KAAG,QAAQ,CAAC,CAAC,CAEpB,CAAA"}
@@ -8,7 +8,13 @@ import { AsString } from "../../types/index";
8
8
  *
9
9
  * If unable to convert to a string then it will provide
10
10
  * the runtime value of `String(value)` but the type system
11
- * will be set to `never`
11
+ * will be set to `never`.
12
+ *
13
+ * - if an array is passed in then it will be joined
14
+ * together -- no delimiter characters -- into a string
15
+ * - if a tuple of `SimpleToken[]` is discovered it will
16
+ * set the runtime type to a token of `<<string::...>>` while the
17
+ * type of the string will be
12
18
  */
13
19
  export declare const asString: <T>(value: T) => AsString<T>;
14
20
  //# sourceMappingURL=asString.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asString.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/asString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,0BAAwB;AAG3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,aAAc,CAAC,KAAG,SAAS,CAAC,CAUhD,CAAA"}
1
+ {"version":3,"file":"asString.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/asString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,0BAAwB;AAG3C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,CAAC,KAAG,QAAQ,CAAC,CAAC,CAYhD,CAAA"}
@@ -1,4 +1,4 @@
1
- import { isBoolean, isNumber, isString } from "../index.js";
1
+ import { isArray, isBoolean, isNumber, isString } from "../index.js";
2
2
  /**
3
3
  * **asString**`(value)
4
4
  *
@@ -8,7 +8,13 @@ import { isBoolean, isNumber, isString } from "../index.js";
8
8
  *
9
9
  * If unable to convert to a string then it will provide
10
10
  * the runtime value of `String(value)` but the type system
11
- * will be set to `never`
11
+ * will be set to `never`.
12
+ *
13
+ * - if an array is passed in then it will be joined
14
+ * together -- no delimiter characters -- into a string
15
+ * - if a tuple of `SimpleToken[]` is discovered it will
16
+ * set the runtime type to a token of `<<string::...>>` while the
17
+ * type of the string will be
12
18
  */
13
19
  export const asString = (value) => {
14
20
  return (isString(value)
@@ -17,5 +23,7 @@ export const asString = (value) => {
17
23
  ? `${value}`
18
24
  : isBoolean(value)
19
25
  ? `${value}`
20
- : String(value));
26
+ : isArray(value)
27
+ ? value.join("")
28
+ : String(value));
21
29
  };
@@ -0,0 +1,17 @@
1
+ import { CsvToJsonTuple, CsvToTuple, CsvToTupleStr } from "../../types/index";
2
+ export type CsvFormat = "string-tuple" | "string-numeric-tuple" | "json-tuple";
3
+ /**
4
+ * **csv**`(csv, [format])`
5
+ *
6
+ * Converts a CSV string literal into a tuple of values
7
+ * (based on format).
8
+ *
9
+ * **Note:** either _no space_ or _a single space_ between values
10
+ * will provide a trimmed value but any additional whitespace
11
+ * after the comma will result in some leading whitespace in
12
+ * some values.
13
+ *
14
+ * @default format `string-numeric-tuple`
15
+ */
16
+ export declare const csv: <T extends string, F extends CsvFormat = "string-numeric-tuple">(csv: T, format?: F) => F extends "string-numeric-tuple" ? CsvToTuple<T> : F extends "json-tuple" ? CsvToJsonTuple<T> : F extends "string-tuple" ? CsvToTupleStr<T> : never;
17
+ //# sourceMappingURL=csv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csv.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/csv.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,0BAAwB;AAE5E,MAAM,MAAM,SAAS,GACnB,cAAc,GACd,sBAAsB,GACtB,YAAY,CAAC;AAGf;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,GAAG,GACd,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,SAAS,gCAEd,CAAC,WACE,CAAC,KAoBO,CAAC,SAAS,sBAAsB,GAC5C,UAAU,CAAC,CAAC,CAAC,GACb,CAAC,SAAS,YAAY,GACtB,cAAc,CAAC,CAAC,CAAC,GACjB,CAAC,SAAS,cAAc,GACxB,aAAa,CAAC,CAAC,CAAC,GAChB,KACL,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { Never } from "../../constants/Never.js";
2
+ import { isNumberLike } from "../type-guards/index.js";
3
+ /**
4
+ * **csv**`(csv, [format])`
5
+ *
6
+ * Converts a CSV string literal into a tuple of values
7
+ * (based on format).
8
+ *
9
+ * **Note:** either _no space_ or _a single space_ between values
10
+ * will provide a trimmed value but any additional whitespace
11
+ * after the comma will result in some leading whitespace in
12
+ * some values.
13
+ *
14
+ * @default format `string-numeric-tuple`
15
+ */
16
+ export const csv = (csv, format = `string-numeric-tuple`) => {
17
+ const tuple = [];
18
+ csv.split(/,\s{0,1}/).forEach(v => {
19
+ tuple.push(format === "string-numeric-tuple"
20
+ ? isNumberLike(v) ? Number(v) : v
21
+ : format === "json-tuple"
22
+ ? isNumberLike(v)
23
+ ? Number(v)
24
+ : v === "true" ? true : v === "false" ? false
25
+ : `"${v}"`
26
+ : format === "string-tuple"
27
+ ? `${v}`
28
+ : Never);
29
+ });
30
+ return tuple;
31
+ };
@@ -11,4 +11,6 @@ export * from "./asRecord";
11
11
  export * from "./asString";
12
12
  export * from "./asChars";
13
13
  export * from "./ip6GroupExpansion";
14
+ export * from "./csv";
15
+ export * from "./json";
14
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC"}
@@ -11,3 +11,5 @@ export * from "./asRecord.js";
11
11
  export * from "./asString.js";
12
12
  export * from "./asChars.js";
13
13
  export * from "./ip6GroupExpansion.js";
14
+ export * from "./csv.js";
15
+ export * from "./json.js";
@@ -1 +1 @@
1
- {"version":3,"file":"ip6GroupExpansion.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/ip6GroupExpansion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0BAAuB;AAGnD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,yBAA0B,CAAC,yBAExD,CAAA"}
1
+ {"version":3,"file":"ip6GroupExpansion.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/ip6GroupExpansion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0BAAuB;AAGnD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,MAAM,CAAC,KACK,iBAAiB,CAAC,CAAC,CAChF,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { JsonValue, JsonValues } from "../../types/index";
2
+ /**
3
+ * **jsonValue**`(val)`
4
+ *
5
+ * Converts a string value to JSON value
6
+ *
7
+ * **Related:** `jsonValues()`
8
+ */
9
+ export declare const jsonValue: <T>(val: T) => JsonValue<T>;
10
+ /**
11
+ * **jsonValues**`(values)`
12
+ *
13
+ * Converts string values to JSON values
14
+ *
15
+ * **Related:** `csv`
16
+ */
17
+ export declare const jsonValues: <T extends unknown[]>(...val: T) => JsonValues<T>;
18
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,0BAAwB;AAGxD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,OAAO,CAAC,KAAG,SAAS,CAAC,CAAC,CAUhD,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,OAAO,EAAE,UAAU,CAAC,KAAG,UAAU,CAAC,CAAC,CAEvE,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { isNumberLike } from "../index.js";
2
+ /**
3
+ * **jsonValue**`(val)`
4
+ *
5
+ * Converts a string value to JSON value
6
+ *
7
+ * **Related:** `jsonValues()`
8
+ */
9
+ export const jsonValue = (val) => {
10
+ return (isNumberLike(val)
11
+ ? Number(val)
12
+ : val === "true"
13
+ ? true
14
+ : val === "false"
15
+ ? false
16
+ : `"${val}"`);
17
+ };
18
+ /**
19
+ * **jsonValues**`(values)`
20
+ *
21
+ * Converts string values to JSON values
22
+ *
23
+ * **Related:** `csv`
24
+ */
25
+ export const jsonValues = (...val) => {
26
+ return val.map(i => jsonValue(i));
27
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"mergeObjects.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/mergeObjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,0BAAwB;AAKrF,wBAAgB,YAAY,CAC1B,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,YAAY,CAAC,CAAC,CAAC,EAChC,SAAS,SAAS,YAAY,CAAC,CAAC,CAAC,EAEjC,MAAM,EAAE,QAAQ,EAChB,QAAQ,EAAE,SAAS,qCAkBpB"}
1
+ {"version":3,"file":"mergeObjects.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/mergeObjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,0BAAwB;AAKrF,wBAAgB,YAAY,CAC1B,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,UAAU,EACpB,QAAQ,SAAS,YAAY,CAAC,CAAC,CAAC,EAChC,SAAS,SAAS,YAAY,CAAC,CAAC,CAAC,EAEjC,MAAM,EAAE,QAAQ,EAChB,QAAQ,EAAE,SAAS,GAiBS,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAC9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"mergeScalars.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/mergeScalars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,0BAAwB;AAI5D;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,sBAEX"}
1
+ {"version":3,"file":"mergeScalars.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/mergeScalars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,0BAAwB;AAI5D;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GACyB,YAAY,CAAC,CAAC,EAAC,CAAC,CAAC,CACrD"}
@@ -1,9 +1,25 @@
1
- import { IfLength, Narrowable } from "../../types/index";
1
+ import { Narrowable } from "../../types/index";
2
2
  /**
3
3
  * **optional**(value)
4
4
  *
5
- * A function which takes the value `T` and makes sure it
6
- * includes a union with _undefined_.
5
+ * A function which takes the value `T` and widens it to include
6
+ * a union with _undefined_.
7
7
  */
8
- export declare function optional<N extends Narrowable, K extends PropertyKey, T extends readonly (Record<K, N> | Narrowable)[]>(...values: T): IfLength<T, 1, T[0] | undefined, T | undefined>;
8
+ export declare function optional<T extends Narrowable>(value: T): T | undefined;
9
+ /**
10
+ * **orNull**`(value)`
11
+ *
12
+ * widens the type for the value passed in to be whatever type it
13
+ * currently is _in union with_ `null`.
14
+ */
15
+ export declare function orNull<T extends Narrowable>(value: T): T | null;
16
+ /**
17
+ * **optionalOrNull**`(value)`
18
+ *
19
+ * widens the type for the value passed in to be whatever type it
20
+ * currently is _in union with_ `null and `undefined`.
21
+ *
22
+ * **Related:** `optional()`, `orNull()`
23
+ */
24
+ export declare function optionalOrNull<T extends Narrowable>(value: T): T | null | undefined;
9
25
  //# sourceMappingURL=optional.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/optional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,0BAAwB;AAEvD;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,WAAW,EACrB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAC,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,EAC/C,GAAG,MAAM,EAAE,CAAC,GAAG,QAAQ,CACvB,CAAC,EAAE,CAAC,EACJ,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,EAChB,CAAC,GAAG,SAAS,CACd,CAUA"}
1
+ {"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/optional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,0BAAwB;AAI7C;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,CAAC,SAAS,UAAU,EACpB,KAAK,EAAE,CAAC,GACQ,CAAC,GAAG,SAAS,CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,GACnC,CAAC,GAAG,IAAI,CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,GAC3C,CAAC,GAAG,IAAI,GAAG,SAAS,CACrC"}
@@ -1,11 +1,29 @@
1
1
  /**
2
2
  * **optional**(value)
3
3
  *
4
- * A function which takes the value `T` and makes sure it
5
- * includes a union with _undefined_.
4
+ * A function which takes the value `T` and widens it to include
5
+ * a union with _undefined_.
6
6
  */
7
- export function optional(...values) {
8
- return (values.length === 1
9
- ? values[0]
10
- : values);
7
+ export function optional(value) {
8
+ return value;
9
+ }
10
+ /**
11
+ * **orNull**`(value)`
12
+ *
13
+ * widens the type for the value passed in to be whatever type it
14
+ * currently is _in union with_ `null`.
15
+ */
16
+ export function orNull(value) {
17
+ return value;
18
+ }
19
+ /**
20
+ * **optionalOrNull**`(value)`
21
+ *
22
+ * widens the type for the value passed in to be whatever type it
23
+ * currently is _in union with_ `null and `undefined`.
24
+ *
25
+ * **Related:** `optional()`, `orNull()`
26
+ */
27
+ export function optionalOrNull(value) {
28
+ return value;
11
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/union.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,0BAAwB;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,uDAGJ,QAAQ,oDAEb,MAAM,2BAAoC,CAAC"}
1
+ {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-conversion/union.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,0BAAwB;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,GAChB,QAAQ,SAAS,SAAS,UAAU,EAAE,cAE1B,QAAQ,MACpB,MAAM,SAAS,YAAY,CAAC,QAAQ,CAAC,SAC9B,MAAM,KAAc,YAAY,CAAC,QAAQ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api-tg.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/api-tg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,UAAU,EAAG,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,0BAAwB;AAK3F,eAAO,MAAM,gBAAgB,WAAY,CAAC,uBAAqB,OAAO,CAErE,CAAA;AAGD;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,WAAY,CAAC,+BAEhD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,8BAA+B,CAAC;YAAwB,KAAK;aAAW,UAAU,GAAG,aAAa;CAEnH,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,WAAY,CAAC,4CAErC,CAAA"}
1
+ {"version":3,"file":"api-tg.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/api-tg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,UAAU,EAAG,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,0BAAwB;AAK3F,eAAO,MAAM,gBAAgB,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,OAAO,CAErE,CAAA;AAGD;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,eAE9D,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,UAAU,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG;IAAE,MAAM,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,UAAU,GAAG,aAAa,CAAA;CAEnH,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,aAAa,CAE9E,CAAA"}
@@ -1,5 +1,3 @@
1
- export declare const hasErrorConditions: <T extends readonly unknown[]>(list: T) => list is T & readonly [...unknown[], {
2
- kind: string;
3
- __kind: "ErrorCondition";
4
- }];
1
+ import { ErrorCondition } from "../../types/index";
2
+ export declare const hasErrorConditions: <T extends readonly unknown[]>(list: T) => list is T & readonly [...unknown[], ErrorCondition<string>];
5
3
  //# sourceMappingURL=hasErrorConditions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hasErrorConditions.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/hasErrorConditions.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,uCAEvB,CAAC;;;EAER,CAAC"}
1
+ {"version":3,"file":"hasErrorConditions.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/hasErrorConditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,0BAAwB;AAGjD,eAAO,MAAM,kBAAkB,GAC7B,CAAC,SAAS,SAAS,OAAO,EAAE,QACtB,CAAC,KAAG,IAAI,IAAI,CAAC,GAAG,SAAS,CAAC,GAAG,OAAO,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC,CAErE,CAAC"}
@@ -1,9 +1,9 @@
1
- import { Container, Dictionary } from "../../types/index";
1
+ import { Container, Dictionary, Tuple } from "../../types/index";
2
2
  /**
3
3
  * **hasIndexOf**(value, idx) => boolean
4
4
  *
5
5
  * A type guard which determines whether container passed in has
6
6
  * an explicit index.
7
7
  */
8
- export declare const hasIndexOf: <TContainer extends Container, TIndex extends PropertyKey>(value: TContainer, idx: TIndex) => value is TContainer & (TContainer extends readonly unknown[] ? TIndex extends any[] ? Readonly<TIndex> : readonly TIndex[] : TContainer extends Dictionary ? Record<TIndex, unknown> : never);
8
+ export declare const hasIndexOf: <TContainer extends Container, TIndex extends PropertyKey>(value: TContainer, idx: TIndex) => value is TContainer & (TContainer extends Tuple ? Tuple<TIndex> : TContainer extends Dictionary ? Record<TIndex, unknown> : never);
9
9
  //# sourceMappingURL=hasIndexOf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hasIndexOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/hasIndexOf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAgB,UAAU,EAAS,0BAAwB;AAI7E;;;;;GAKG;AACH,eAAO,MAAM,UAAU,oEAIZ,UAAU,OACZ,MAAM,kMAkBd,CAAC"}
1
+ {"version":3,"file":"hasIndexOf.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/hasIndexOf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAgB,UAAU,EAAE,KAAK,EAAE,0BAAwB;AAI7E;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GACrB,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,WAAW,SAEjB,UAAU,OACZ,MAAM,KACZ,KAAK,IAAI,UAAU,GACpB,CAAC,UAAU,SAAS,KAAK,GACrB,KAAK,CAAC,MAAM,CAAC,GACb,UAAU,SAAS,UAAU,GACzB,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,GACtB,KAAK,CAYd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hasKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/hasKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,0BAAuB;AAItD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,sEAER,CAAC,cAQN,CAAC,0GAWP,CAAA"}
1
+ {"version":3,"file":"hasKeys.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/hasKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,0BAAuB;AAItD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,GAClB,CAAC,SAAS,SAAS,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,YAC7C,CAAC,MAOX,CAAC,OACI,CAAC,KAAG,GAAG,IAAI,CAAC,GAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,GACrE,KAAK,GACL,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAS5B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"hasWhitespace.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/hasWhitespace.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,aAAa,WAAY,CAAC,aAEtC,CAAA"}
1
+ {"version":3,"file":"hasWhitespace.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/hasWhitespace.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAEhD,CAAA"}
@@ -1,4 +1,4 @@
1
- import { WHITESPACE_CHARS } from "../../constants/Characters.js";
1
+ import { WHITESPACE_CHARS } from "../../constants/index.js";
2
2
  import { asChars } from "../type-conversion/index.js";
3
3
  import { isString } from "./isString.js";
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"endsWith.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/endsWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,6BAAwB;AAI7C,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,CAClD,CAAC,SAAS,UAAU,EACpB,GAAG,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC;AAExC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,+BAET,CAAC,KAAG,oBAAoB,CAAC,CAMpC,CAAC"}
1
+ {"version":3,"file":"endsWith.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/endsWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,6BAAwB;AAI7C,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,CAClD,CAAC,SAAS,UAAU,EACpB,GAAG,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC;AAExC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GACnB,CAAC,SAAS,MAAM,YACN,CAAC,KAAG,mBAAmB,CAAC,CAAC,CAMpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isEqual.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAG,SAAS,EAAE,6BAAwB;AAIzD;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,UAAU,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,OAAO,mCAEZ,KAAK,KAAG,QAAQ,KAAK,CAMhB,CAAC"}
1
+ {"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isEqual.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAG,SAAS,EAAE,6BAAwB;AAIzD;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,UAAU,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAClB,KAAK,SAAS,UAAU,QAClB,KAAK,KAAG,OAAO,CAAC,KAAK,CAMhB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { isSameTypeOf } from "./isSameTypeOf.js";
1
+ import { isSameTypeOf } from "../../index.js";
2
2
  /**
3
3
  * **isEqual**(compareTo)(value)
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"isLength.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isLength.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EACN,IAAI,SAAS,MAAM,EACnB,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,WAQvB"}
1
+ {"version":3,"file":"isLength.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isLength.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EACN,IAAI,SAAS,MAAM,EACnB,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,WAQvB"}
@@ -1,8 +1,4 @@
1
- import { keysOf } from "../../index.js";
2
- import { isArray } from "../isArray.js";
3
- import { isObject } from "../isObject.js";
4
- import { isString } from "../isString.js";
5
- import { isEqual } from "./isEqual.js";
1
+ import { keysOf, isArray, isObject, isString, isEqual } from "../../index.js";
6
2
  /**
7
3
  * **ifLength**(len) => (value) => boolean
8
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"isSameTypeOf.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isSameTypeOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,6BAAwB;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,gBAAiB,KAAK,yBAAyB,QAAQ,0DAE/E,CAAC"}
1
+ {"version":3,"file":"isSameTypeOf.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isSameTypeOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,6BAAwB;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,QAAQ,KAAK,MAAM,QAAQ,WAAW,QAAQ,KAAG,OAAO,IAAI,QAAQ,GAAG,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAEtI,CAAC"}
@@ -1,5 +1,4 @@
1
- import { ShapeCallback } from "../../../types/literals";
2
- import { HandleDoneFn } from "../../../types/functions";
1
+ import { ShapeCallback, HandleDoneFn } from "../../../types/index";
3
2
  type FromDefn<T extends readonly ShapeCallback[]> = {
4
3
  [K in keyof T]: HandleDoneFn<ReturnType<T[K]>>;
5
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"isTuple.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isTuple.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,gCAA0B;AAGlD,OAAO,EAAE,YAAY,EAAE,iCAA2B;AAElD,KAAK,QAAQ,CACX,CAAC,SAAS,SAAS,aAAa,EAAE,IAChC;KACD,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,OAAO,qDAAsD,KAAK,YAK/D,CAAC,6BAMhB,CAAA"}
1
+ {"version":3,"file":"isTuple.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isTuple.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,YAAY,EACb,6BAAuB;AASxB,KAAK,QAAQ,CACX,CAAC,SAAS,SAAS,aAAa,EAAE,IAChC;KACD,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,KAAK,SAAS,SAAS,aAAa,EAAE,YAAY,KAAK,MAKrE,CAAC,KAAK,CAAC,KAAG,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAM1C,CAAA"}
@@ -1,5 +1,4 @@
1
- import { isDoneFn } from "../isDoneFn.js";
2
- import { ShapeApiImplementation, isArray, isSameTypeOf, isShape } from "../../index.js";
1
+ import { isDoneFn, ShapeApiImplementation, isArray, isSameTypeOf, isShape } from "../../index.js";
3
2
  export const isTuple = (...tuple) => {
4
3
  const results = tuple
5
4
  .map(i => i(ShapeApiImplementation))
@@ -8,5 +8,5 @@ export type TypeOfTypeGuard<TType extends TypeOf> = <TValue>(value: TValue) => v
8
8
  * - You first partially apply by specifying the `typeof`
9
9
  * - The type guard is then returned based on the type.
10
10
  */
11
- export declare const isTypeOf: <TType extends "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function">(type: TType) => TypeOfTypeGuard<TType>;
11
+ export declare const isTypeOf: <TType extends TypeOf>(type: TType) => TypeOfTypeGuard<TType>;
12
12
  //# sourceMappingURL=isTypeOf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isTypeOf.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isTypeOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,6BAAwB;AAExD,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,MAAM,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,KAAI,KAAK,IAAI,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;AAErH;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,oHAAgC,KAAK,KAAG,gBAAgB,KAAK,CAGjF,CAAC"}
1
+ {"version":3,"file":"isTypeOf.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/isTypeOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,6BAAwB;AAExD,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,MAAM,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,KAAI,KAAK,IAAI,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;AAErH;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,SAAS,MAAM,QAAQ,KAAK,KAAG,eAAe,CAAC,KAAK,CAGjF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"startsWith.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/startsWith.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,6BAAwB;AAKlD;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,CAAC,WAAW,SAAS,MAAM,IAAI,CAC9D,MAAM,SAAS,UAAU,EACzB,GAAG,EAAE,MAAM,KAAK,GAAG,IAAI,MAAM,GAAG,GAAG,WAAW,GAAG,MAAM,EAAE,CAAC;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,6CAEP,WAAW,KAAG,sBAAsB,WAAW,CAQ9D,CAAC"}
1
+ {"version":3,"file":"startsWith.d.ts","sourceRoot":"","sources":["../../../../src/runtime/type-guards/higher-order/startsWith.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,6BAAwB;AAIlD;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,CAAC,WAAW,SAAS,MAAM,IAAI,CAC9D,MAAM,SAAS,UAAU,EACzB,GAAG,EAAE,MAAM,KAAK,GAAG,IAAI,MAAM,GAAG,GAAG,WAAW,GAAG,MAAM,EAAE,CAAC;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,GACrB,WAAW,SAAS,MAAM,gBACZ,WAAW,KAAG,qBAAqB,CAAC,WAAW,CAQ9D,CAAC"}
@@ -1,5 +1,4 @@
1
- import { isString } from "../isString.js";
2
- import { isNumber } from "../isNumber.js";
1
+ import { isString, isNumber } from "../../index.js";
3
2
  /**
4
3
  * **startsWith**(startingWith) => (val)
5
4
  *
@@ -45,5 +45,10 @@ export * from "./isEmail";
45
45
  export * from "./isPhoneNumber";
46
46
  export * from "./isUnset";
47
47
  export * from "./api-tg";
48
+ export * from "./isBooleanLike";
49
+ export * from "./isRegExp";
50
+ export * from "./isAlpha";
51
+ export * from "./tokens/index";
48
52
  export * from "./higher-order/index";
53
+ export * from "./tokens/index";
49
54
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAEzB,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
@@ -45,4 +45,9 @@ export * from "./isEmail.js";
45
45
  export * from "./isPhoneNumber.js";
46
46
  export * from "./isUnset.js";
47
47
  export * from "./api-tg.js";
48
+ export * from "./isBooleanLike.js";
49
+ export * from "./isRegExp.js";
50
+ export * from "./isAlpha.js";
51
+ export * from "./tokens/index.js";
48
52
  export * from "./higher-order/index.js";
53
+ export * from "./tokens/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"isAlpha.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isAlpha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAa,UAAU,EAAE,0BAAwB;AAI/D;;;;;GAKG;AACH,eAAO,MAAM,OAAO,gCAAiC,CAAC,0BAErD,CAAC"}
1
+ {"version":3,"file":"isAlpha.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isAlpha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAa,UAAU,EAAE,0BAAwB;AAI/D;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,UAAU,SAAS,CAAC,KAAG,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAE5E,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { BooleanLike } from "../../types/literals";
2
+ /**
3
+ * **isBooleanLike**`(val)`
4
+ *
5
+ * A type guard which checks whether `val` is "boolean like; meaning either
6
+ * a boolean value or a string representation of a boolean value.
7
+ */
8
+ export declare const isBooleanLike: (val: unknown) => val is BooleanLike;
9
+ //# sourceMappingURL=isBooleanLike.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isBooleanLike.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isBooleanLike.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,6BAA2B;AAIjD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,GAAG,IAAI,WAMnD,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { isBoolean } from "./isBoolean.js";
2
+ import { isString } from "./isString.js";
3
+ /**
4
+ * **isBooleanLike**`(val)`
5
+ *
6
+ * A type guard which checks whether `val` is "boolean like; meaning either
7
+ * a boolean value or a string representation of a boolean value.
8
+ */
9
+ export const isBooleanLike = (val) => {
10
+ return (isBoolean(val) || (isString(val) && ["true", "false", "boolean"].includes(val)));
11
+ };
@@ -1,4 +1,4 @@
1
- import { CssAspectRatio } from "../../types/string-literals";
1
+ import { CssAspectRatio } from "../../types/index";
2
2
  /**
3
3
  * Type guard which tests whether the passed in value is a valid CSS Aspect
4
4
  * Ratio value.
@@ -1 +1 @@
1
- {"version":3,"file":"isCssAspectRatio.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isCssAspectRatio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oCAAkC;AAS3D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAAY,CAAC,8BAEzC,CAAA"}
1
+ {"version":3,"file":"isCssAspectRatio.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isCssAspectRatio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,0BAAwB;AASjD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,cAEvD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isDoneFn.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isDoneFn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,kCAA+B;AAGlD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,WAAY,CAAC,uBAIjC,CAAA"}
1
+ {"version":3,"file":"isDoneFn.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isDoneFn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,kCAA+B;AAGlD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAIrD,CAAA"}
@@ -1,7 +1,8 @@
1
+ import { Email } from "../../types/index";
1
2
  /**
2
3
  * **isEmail**`(val)`
3
4
  *
4
5
  * Tests to see if a string is shaped as an email address.
5
6
  */
6
- export declare const isEmail: <T>(val: T) => val is T & `${string}@${string}.${string}`;
7
+ export declare const isEmail: <T>(val: T) => val is T & Email;
7
8
  //# sourceMappingURL=isEmail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isEmail.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isEmail.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,WAAY,CAAC,+CAMhC,CAAA"}
1
+ {"version":3,"file":"isEmail.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isEmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,0BAAuB;AAGvC;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,KAa9C,CAAA"}
@@ -1,11 +1,17 @@
1
- import { asChars, isString, last } from "../index.js";
1
+ import { isString } from "../index.js";
2
2
  /**
3
3
  * **isEmail**`(val)`
4
4
  *
5
5
  * Tests to see if a string is shaped as an email address.
6
6
  */
7
7
  export const isEmail = (val) => {
8
- return isString(val) && (val.split("@").length === 2 &&
9
- val.split("@")[1].split(".").length > 1 &&
10
- asChars(last(val.split("@")[1].split("."))).length > 1);
8
+ if (!isString(val)) {
9
+ return false;
10
+ }
11
+ const parts = val.split("@");
12
+ const domain = parts[1].split(".");
13
+ const tld = domain.pop();
14
+ return isString(val) && (parts.length === 2 &&
15
+ domain.length >= 1 &&
16
+ tld.length >= 2);
11
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"isFalsy.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isFalsy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,0BAAwB;AAGzD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,8BAA+B,CAAC,0BAEnD,CAAC"}
1
+ {"version":3,"file":"isFalsy.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isFalsy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,0BAAwB;AAGzD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,UAAU,OAAO,CAAC,KAAG,GAAG,IAAI,CAAC,GAAG,UAEjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isHexadecimal.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isHexadecimal.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,WAAY,CAAC,aAGtC,CAAA"}
1
+ {"version":3,"file":"isHexadecimal.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isHexadecimal.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,OAAO,CAAC,KAAG,GAAG,IAAI,CAGhD,CAAA"}
@@ -1,8 +1,9 @@
1
+ import { InlineSvg } from "../../types/index";
1
2
  /**
2
3
  * **isInlineSvg**`(val)`
3
4
  *
4
5
  * Type guard which tests whether the passed in value is both a string
5
6
  * and also appears to be an inline SVG image.
6
7
  */
7
- export declare const isInlineSvg: <T>(v: T) => v is T & `<svg${string}</svg>`;
8
+ export declare const isInlineSvg: <T>(v: T) => v is T & InlineSvg;
8
9
  //# sourceMappingURL=isInlineSvg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isInlineSvg.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isInlineSvg.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,SAAU,CAAC,mCAElC,CAAA"}
1
+ {"version":3,"file":"isInlineSvg.d.ts","sourceRoot":"","sources":["../../../src/runtime/type-guards/isInlineSvg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,0BAAwB;AAG5C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,KAAK,CAAC,KAAG,CAAC,IAAI,CAAC,GAAG,SAE9C,CAAA"}