@sinclair/typebox 0.32.0-dev-4 → 0.32.0-dev-5

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 (615) hide show
  1. package/build/import/compiler/compiler.mjs +571 -0
  2. package/build/import/compiler/index.mjs +2 -0
  3. package/build/import/errors/errors.mjs +531 -0
  4. package/build/import/errors/index.mjs +1 -0
  5. package/build/import/index.mjs +69 -0
  6. package/build/import/system/errors.mjs +150 -0
  7. package/build/import/system/index.mjs +4 -0
  8. package/build/import/system/policy.mjs +31 -0
  9. package/build/import/system/system.mjs +30 -0
  10. package/build/import/type/any/any.mjs +4 -0
  11. package/build/import/type/any/index.mjs +1 -0
  12. package/build/import/type/array/array.mjs +10 -0
  13. package/build/import/type/array/index.mjs +1 -0
  14. package/build/import/type/async-iterator/async-iterator.mjs +10 -0
  15. package/build/import/type/async-iterator/index.mjs +1 -0
  16. package/build/import/type/awaited/awaited.mjs +28 -0
  17. package/build/import/type/awaited/index.mjs +1 -0
  18. package/build/import/type/bigint/bigint.mjs +8 -0
  19. package/build/import/type/bigint/index.mjs +1 -0
  20. package/build/import/type/boolean/boolean.mjs +8 -0
  21. package/build/import/type/boolean/index.mjs +1 -0
  22. package/build/import/type/clone/index.mjs +2 -0
  23. package/build/import/type/clone/type.mjs +7 -0
  24. package/build/import/type/clone/value.mjs +25 -0
  25. package/build/import/type/composite/composite.mjs +14 -0
  26. package/build/import/type/composite/index.mjs +1 -0
  27. package/build/import/type/const/const.mjs +49 -0
  28. package/build/import/type/const/index.mjs +1 -0
  29. package/build/import/type/constructor/constructor.mjs +11 -0
  30. package/build/import/type/constructor/index.mjs +1 -0
  31. package/build/import/type/constructor-parameters/constructor-parameters.mjs +5 -0
  32. package/build/import/type/constructor-parameters/index.mjs +1 -0
  33. package/build/import/type/date/date.mjs +8 -0
  34. package/build/import/type/date/index.mjs +1 -0
  35. package/build/import/type/deref/deref.mjs +90 -0
  36. package/build/import/type/deref/index.mjs +1 -0
  37. package/build/import/type/discard/discard.mjs +7 -0
  38. package/build/import/type/discard/index.mjs +1 -0
  39. package/build/import/type/enum/enum.mjs +14 -0
  40. package/build/import/type/enum/index.mjs +1 -0
  41. package/build/import/type/exclude/exclude.mjs +20 -0
  42. package/build/import/type/exclude/index.mjs +1 -0
  43. package/build/import/type/extends/extends-check.mjs +450 -0
  44. package/build/import/type/extends/extends-undefined.mjs +17 -0
  45. package/build/import/type/extends/extends.mjs +13 -0
  46. package/build/import/type/extends/index.mjs +3 -0
  47. package/build/import/type/extract/extract.mjs +20 -0
  48. package/build/import/type/extract/index.mjs +1 -0
  49. package/build/import/type/function/function.mjs +11 -0
  50. package/build/import/type/function/index.mjs +1 -0
  51. package/build/import/type/guard/index.mjs +2 -0
  52. package/build/import/type/guard/type.mjs +366 -0
  53. package/build/import/type/guard/value.mjs +42 -0
  54. package/build/import/type/helpers/helpers.mjs +3 -0
  55. package/build/import/type/helpers/index.mjs +1 -0
  56. package/build/import/type/index.mjs +70 -0
  57. package/build/import/type/indexed/index.mjs +3 -0
  58. package/build/import/type/indexed/indexed-key.mjs +29 -0
  59. package/build/import/type/indexed/indexed-type.mjs +64 -0
  60. package/build/import/type/indexed/indexed.mjs +9 -0
  61. package/build/import/type/instance-type/index.mjs +1 -0
  62. package/build/import/type/instance-type/instance-type.mjs +4 -0
  63. package/build/import/type/integer/index.mjs +1 -0
  64. package/build/import/type/integer/integer.mjs +8 -0
  65. package/build/import/type/intersect/index.mjs +1 -0
  66. package/build/import/type/intersect/intersect.mjs +25 -0
  67. package/build/import/type/intrinsic/index.mjs +1 -0
  68. package/build/import/type/intrinsic/intrinsic.mjs +59 -0
  69. package/build/import/type/iterator/index.mjs +1 -0
  70. package/build/import/type/iterator/iterator.mjs +10 -0
  71. package/build/import/type/keyof/index.mjs +3 -0
  72. package/build/import/type/keyof/keyof-string.mjs +55 -0
  73. package/build/import/type/keyof/keyof-type.mjs +15 -0
  74. package/build/import/type/keyof/keyof.mjs +6 -0
  75. package/build/import/type/literal/index.mjs +1 -0
  76. package/build/import/type/literal/literal.mjs +9 -0
  77. package/build/import/type/mapped/index.mjs +1 -0
  78. package/build/import/type/mapped/mapped.mjs +14 -0
  79. package/build/import/type/modifiers/index.mjs +1 -0
  80. package/build/import/type/modifiers/modifiers.mjs +40 -0
  81. package/build/import/type/never/index.mjs +1 -0
  82. package/build/import/type/never/never.mjs +8 -0
  83. package/build/import/type/not/index.mjs +1 -0
  84. package/build/import/type/not/not.mjs +9 -0
  85. package/build/import/type/null/index.mjs +1 -0
  86. package/build/import/type/null/null.mjs +8 -0
  87. package/build/import/type/number/index.mjs +1 -0
  88. package/build/import/type/number/number.mjs +8 -0
  89. package/build/import/type/object/index.mjs +1 -0
  90. package/build/import/type/object/object.mjs +14 -0
  91. package/build/import/type/omit/index.mjs +1 -0
  92. package/build/import/type/omit/omit.mjs +35 -0
  93. package/build/import/type/operators/index.mjs +1 -0
  94. package/build/import/type/operators/operators.mjs +66 -0
  95. package/build/import/type/optional/index.mjs +1 -0
  96. package/build/import/type/optional/optional.mjs +5 -0
  97. package/build/import/type/parameters/index.mjs +1 -0
  98. package/build/import/type/parameters/parameters.mjs +5 -0
  99. package/build/import/type/partial/index.mjs +1 -0
  100. package/build/import/type/partial/partial.mjs +36 -0
  101. package/build/import/type/patterns/index.mjs +1 -0
  102. package/build/import/type/patterns/patterns.mjs +6 -0
  103. package/build/import/type/pick/index.mjs +1 -0
  104. package/build/import/type/pick/pick.mjs +31 -0
  105. package/build/import/type/promise/index.mjs +1 -0
  106. package/build/import/type/promise/promise.mjs +10 -0
  107. package/build/import/type/readonly/index.mjs +1 -0
  108. package/build/import/type/readonly/readonly.mjs +5 -0
  109. package/build/import/type/readonly-optional/index.mjs +1 -0
  110. package/build/import/type/readonly-optional/readonly-optional.mjs +5 -0
  111. package/build/import/type/record/index.mjs +1 -0
  112. package/build/import/type/record/record.mjs +51 -0
  113. package/build/import/type/recursive/index.mjs +1 -0
  114. package/build/import/type/recursive/recursive.mjs +15 -0
  115. package/build/import/type/ref/index.mjs +1 -0
  116. package/build/import/type/ref/ref.mjs +13 -0
  117. package/build/import/type/regexp/index.mjs +1 -0
  118. package/build/import/type/regexp/regexp.mjs +6 -0
  119. package/build/import/type/registry/format.mjs +19 -0
  120. package/build/import/type/registry/index.mjs +2 -0
  121. package/build/import/type/registry/type.mjs +19 -0
  122. package/build/import/type/required/index.mjs +1 -0
  123. package/build/import/type/required/required.mjs +35 -0
  124. package/build/import/type/rest/index.mjs +1 -0
  125. package/build/import/type/rest/rest.mjs +8 -0
  126. package/build/import/type/return-type/index.mjs +1 -0
  127. package/build/import/type/return-type/return-type.mjs +4 -0
  128. package/build/import/type/schema/anyschema.mjs +1 -0
  129. package/build/import/type/schema/index.mjs +2 -0
  130. package/build/import/type/schema/schema.mjs +1 -0
  131. package/build/import/type/static/index.mjs +1 -0
  132. package/build/import/type/static/static.mjs +1 -0
  133. package/build/import/type/strict/index.mjs +1 -0
  134. package/build/import/type/strict/strict.mjs +3 -0
  135. package/build/import/type/string/index.mjs +1 -0
  136. package/build/import/type/string/string.mjs +4 -0
  137. package/build/import/type/symbol/index.mjs +1 -0
  138. package/build/import/type/symbol/symbol.mjs +4 -0
  139. package/build/import/type/symbols/index.mjs +1 -0
  140. package/build/import/type/symbols/symbols.mjs +5 -0
  141. package/build/import/type/template-literal/finite.mjs +29 -0
  142. package/build/import/type/template-literal/generate.mjs +32 -0
  143. package/build/import/type/template-literal/index.mjs +7 -0
  144. package/build/import/type/template-literal/parser.mjs +125 -0
  145. package/build/import/type/template-literal/pattern.mjs +22 -0
  146. package/build/import/type/template-literal/syntax.mjs +48 -0
  147. package/build/import/type/template-literal/template-literal.mjs +10 -0
  148. package/build/import/type/template-literal/union.mjs +13 -0
  149. package/build/import/type/transform/index.mjs +1 -0
  150. package/build/import/type/transform/transform.mjs +37 -0
  151. package/build/import/type/tuple/index.mjs +1 -0
  152. package/build/import/type/tuple/tuple.mjs +8 -0
  153. package/build/import/type/type/index.mjs +6 -0
  154. package/build/import/type/type/javascript.mjs +71 -0
  155. package/build/import/type/type/json.mjs +171 -0
  156. package/build/import/type/type/type.mjs +58 -0
  157. package/build/import/type/uint8array/index.mjs +1 -0
  158. package/build/import/type/uint8array/uint8array.mjs +4 -0
  159. package/build/import/type/undefined/index.mjs +1 -0
  160. package/build/import/type/undefined/undefined.mjs +4 -0
  161. package/build/import/type/union/index.mjs +1 -0
  162. package/build/import/type/union/union.mjs +15 -0
  163. package/build/import/type/unknown/index.mjs +1 -0
  164. package/build/import/type/unknown/unknown.mjs +7 -0
  165. package/build/import/type/unsafe/index.mjs +1 -0
  166. package/build/import/type/unsafe/unsafe.mjs +7 -0
  167. package/build/import/type/void/index.mjs +1 -0
  168. package/build/import/type/void/void.mjs +8 -0
  169. package/build/import/value/cast/cast.mjs +205 -0
  170. package/build/import/value/cast/index.mjs +1 -0
  171. package/build/import/value/check/check.mjs +419 -0
  172. package/build/import/value/check/index.mjs +1 -0
  173. package/build/import/value/clean/clean.mjs +125 -0
  174. package/build/import/value/clean/index.mjs +1 -0
  175. package/build/import/value/clone/clone.mjs +30 -0
  176. package/build/import/value/clone/index.mjs +1 -0
  177. package/build/import/value/convert/convert.mjs +231 -0
  178. package/build/import/value/convert/index.mjs +1 -0
  179. package/build/import/value/create/create.mjs +460 -0
  180. package/build/import/value/create/index.mjs +1 -0
  181. package/build/import/value/default/default.mjs +125 -0
  182. package/build/import/value/default/index.mjs +1 -0
  183. package/build/import/value/delta/delta.mjs +152 -0
  184. package/build/import/value/delta/index.mjs +1 -0
  185. package/build/import/value/deref/deref.mjs +13 -0
  186. package/build/import/value/deref/index.mjs +1 -0
  187. package/build/import/value/equal/equal.mjs +39 -0
  188. package/build/import/value/equal/index.mjs +1 -0
  189. package/build/import/value/guard/guard.mjs +66 -0
  190. package/build/import/value/guard/index.mjs +1 -0
  191. package/build/import/value/hash/hash.mjs +127 -0
  192. package/build/import/value/hash/index.mjs +1 -0
  193. package/build/import/value/index.mjs +18 -0
  194. package/build/import/value/mutate/index.mjs +1 -0
  195. package/build/import/value/mutate/mutate.mjs +85 -0
  196. package/build/import/value/pointer/index.mjs +1 -0
  197. package/build/import/value/pointer/pointer.mjs +101 -0
  198. package/build/import/value/transform/decode.mjs +160 -0
  199. package/build/import/value/transform/encode.mjs +166 -0
  200. package/build/import/value/transform/has.mjs +99 -0
  201. package/build/import/value/transform/index.mjs +3 -0
  202. package/build/import/value/value/index.mjs +1 -0
  203. package/build/import/value/value/value.mjs +65 -0
  204. package/compiler/package.json +4 -0
  205. package/errors/package.json +4 -0
  206. package/package.json +52 -53
  207. package/system/package.json +4 -0
  208. package/type/package.json +4 -0
  209. package/value/package.json +4 -0
  210. /package/{compiler → build/default/compiler}/compiler.js +0 -0
  211. /package/{compiler → build/default/compiler}/index.js +0 -0
  212. /package/{errors → build/default/errors}/errors.js +0 -0
  213. /package/{errors → build/default/errors}/index.js +0 -0
  214. /package/{index.js → build/default/index.js} +0 -0
  215. /package/{system → build/default/system}/errors.js +0 -0
  216. /package/{system → build/default/system}/index.js +0 -0
  217. /package/{system → build/default/system}/policy.js +0 -0
  218. /package/{system → build/default/system}/system.js +0 -0
  219. /package/{type → build/default/type}/any/any.js +0 -0
  220. /package/{type → build/default/type}/any/index.js +0 -0
  221. /package/{type → build/default/type}/array/array.js +0 -0
  222. /package/{type → build/default/type}/array/index.js +0 -0
  223. /package/{type → build/default/type}/async-iterator/async-iterator.js +0 -0
  224. /package/{type → build/default/type}/async-iterator/index.js +0 -0
  225. /package/{type → build/default/type}/awaited/awaited.js +0 -0
  226. /package/{type → build/default/type}/awaited/index.js +0 -0
  227. /package/{type → build/default/type}/bigint/bigint.js +0 -0
  228. /package/{type → build/default/type}/bigint/index.js +0 -0
  229. /package/{type → build/default/type}/boolean/boolean.js +0 -0
  230. /package/{type → build/default/type}/boolean/index.js +0 -0
  231. /package/{type → build/default/type}/clone/index.js +0 -0
  232. /package/{type → build/default/type}/clone/type.js +0 -0
  233. /package/{type → build/default/type}/clone/value.js +0 -0
  234. /package/{type → build/default/type}/composite/composite.js +0 -0
  235. /package/{type → build/default/type}/composite/index.js +0 -0
  236. /package/{type → build/default/type}/const/const.js +0 -0
  237. /package/{type → build/default/type}/const/index.js +0 -0
  238. /package/{type → build/default/type}/constructor/constructor.js +0 -0
  239. /package/{type → build/default/type}/constructor/index.js +0 -0
  240. /package/{type → build/default/type}/constructor-parameters/constructor-parameters.js +0 -0
  241. /package/{type → build/default/type}/constructor-parameters/index.js +0 -0
  242. /package/{type → build/default/type}/date/date.js +0 -0
  243. /package/{type → build/default/type}/date/index.js +0 -0
  244. /package/{type → build/default/type}/deref/deref.js +0 -0
  245. /package/{type → build/default/type}/deref/index.js +0 -0
  246. /package/{type → build/default/type}/discard/discard.js +0 -0
  247. /package/{type → build/default/type}/discard/index.js +0 -0
  248. /package/{type → build/default/type}/enum/enum.js +0 -0
  249. /package/{type → build/default/type}/enum/index.js +0 -0
  250. /package/{type → build/default/type}/exclude/exclude.js +0 -0
  251. /package/{type → build/default/type}/exclude/index.js +0 -0
  252. /package/{type → build/default/type}/extends/extends-check.js +0 -0
  253. /package/{type → build/default/type}/extends/extends-undefined.js +0 -0
  254. /package/{type → build/default/type}/extends/extends.js +0 -0
  255. /package/{type → build/default/type}/extends/index.js +0 -0
  256. /package/{type → build/default/type}/extract/extract.js +0 -0
  257. /package/{type → build/default/type}/extract/index.js +0 -0
  258. /package/{type → build/default/type}/function/function.js +0 -0
  259. /package/{type → build/default/type}/function/index.js +0 -0
  260. /package/{type → build/default/type}/guard/index.js +0 -0
  261. /package/{type → build/default/type}/guard/type.js +0 -0
  262. /package/{type → build/default/type}/guard/value.js +0 -0
  263. /package/{type → build/default/type}/helpers/helpers.js +0 -0
  264. /package/{type → build/default/type}/helpers/index.js +0 -0
  265. /package/{type → build/default/type}/index.js +0 -0
  266. /package/{type → build/default/type}/indexed/index.js +0 -0
  267. /package/{type → build/default/type}/indexed/indexed-key.js +0 -0
  268. /package/{type → build/default/type}/indexed/indexed-type.js +0 -0
  269. /package/{type → build/default/type}/indexed/indexed.js +0 -0
  270. /package/{type → build/default/type}/instance-type/index.js +0 -0
  271. /package/{type → build/default/type}/instance-type/instance-type.js +0 -0
  272. /package/{type → build/default/type}/integer/index.js +0 -0
  273. /package/{type → build/default/type}/integer/integer.js +0 -0
  274. /package/{type → build/default/type}/intersect/index.js +0 -0
  275. /package/{type → build/default/type}/intersect/intersect.js +0 -0
  276. /package/{type → build/default/type}/intrinsic/index.js +0 -0
  277. /package/{type → build/default/type}/intrinsic/intrinsic.js +0 -0
  278. /package/{type → build/default/type}/iterator/index.js +0 -0
  279. /package/{type → build/default/type}/iterator/iterator.js +0 -0
  280. /package/{type → build/default/type}/keyof/index.js +0 -0
  281. /package/{type → build/default/type}/keyof/keyof-string.js +0 -0
  282. /package/{type → build/default/type}/keyof/keyof-type.js +0 -0
  283. /package/{type → build/default/type}/keyof/keyof.js +0 -0
  284. /package/{type → build/default/type}/literal/index.js +0 -0
  285. /package/{type → build/default/type}/literal/literal.js +0 -0
  286. /package/{type → build/default/type}/mapped/index.js +0 -0
  287. /package/{type → build/default/type}/mapped/mapped.js +0 -0
  288. /package/{type → build/default/type}/modifiers/index.js +0 -0
  289. /package/{type → build/default/type}/modifiers/modifiers.js +0 -0
  290. /package/{type → build/default/type}/never/index.js +0 -0
  291. /package/{type → build/default/type}/never/never.js +0 -0
  292. /package/{type → build/default/type}/not/index.js +0 -0
  293. /package/{type → build/default/type}/not/not.js +0 -0
  294. /package/{type → build/default/type}/null/index.js +0 -0
  295. /package/{type → build/default/type}/null/null.js +0 -0
  296. /package/{type → build/default/type}/number/index.js +0 -0
  297. /package/{type → build/default/type}/number/number.js +0 -0
  298. /package/{type → build/default/type}/object/index.js +0 -0
  299. /package/{type → build/default/type}/object/object.js +0 -0
  300. /package/{type → build/default/type}/omit/index.js +0 -0
  301. /package/{type → build/default/type}/omit/omit.js +0 -0
  302. /package/{type → build/default/type}/operators/index.js +0 -0
  303. /package/{type → build/default/type}/operators/operators.js +0 -0
  304. /package/{type → build/default/type}/optional/index.js +0 -0
  305. /package/{type → build/default/type}/optional/optional.js +0 -0
  306. /package/{type → build/default/type}/parameters/index.js +0 -0
  307. /package/{type → build/default/type}/parameters/parameters.js +0 -0
  308. /package/{type → build/default/type}/partial/index.js +0 -0
  309. /package/{type → build/default/type}/partial/partial.js +0 -0
  310. /package/{type → build/default/type}/patterns/index.js +0 -0
  311. /package/{type → build/default/type}/patterns/patterns.js +0 -0
  312. /package/{type → build/default/type}/pick/index.js +0 -0
  313. /package/{type → build/default/type}/pick/pick.js +0 -0
  314. /package/{type → build/default/type}/promise/index.js +0 -0
  315. /package/{type → build/default/type}/promise/promise.js +0 -0
  316. /package/{type → build/default/type}/readonly/index.js +0 -0
  317. /package/{type → build/default/type}/readonly/readonly.js +0 -0
  318. /package/{type → build/default/type}/readonly-optional/index.js +0 -0
  319. /package/{type → build/default/type}/readonly-optional/readonly-optional.js +0 -0
  320. /package/{type → build/default/type}/record/index.js +0 -0
  321. /package/{type → build/default/type}/record/record.js +0 -0
  322. /package/{type → build/default/type}/recursive/index.js +0 -0
  323. /package/{type → build/default/type}/recursive/recursive.js +0 -0
  324. /package/{type → build/default/type}/ref/index.js +0 -0
  325. /package/{type → build/default/type}/ref/ref.js +0 -0
  326. /package/{type → build/default/type}/regexp/index.js +0 -0
  327. /package/{type → build/default/type}/regexp/regexp.js +0 -0
  328. /package/{type → build/default/type}/registry/format.js +0 -0
  329. /package/{type → build/default/type}/registry/index.js +0 -0
  330. /package/{type → build/default/type}/registry/type.js +0 -0
  331. /package/{type → build/default/type}/required/index.js +0 -0
  332. /package/{type → build/default/type}/required/required.js +0 -0
  333. /package/{type → build/default/type}/rest/index.js +0 -0
  334. /package/{type → build/default/type}/rest/rest.js +0 -0
  335. /package/{type → build/default/type}/return-type/index.js +0 -0
  336. /package/{type → build/default/type}/return-type/return-type.js +0 -0
  337. /package/{type → build/default/type}/schema/anyschema.js +0 -0
  338. /package/{type → build/default/type}/schema/index.js +0 -0
  339. /package/{type → build/default/type}/schema/schema.js +0 -0
  340. /package/{type → build/default/type}/static/index.js +0 -0
  341. /package/{type → build/default/type}/static/static.js +0 -0
  342. /package/{type → build/default/type}/strict/index.js +0 -0
  343. /package/{type → build/default/type}/strict/strict.js +0 -0
  344. /package/{type → build/default/type}/string/index.js +0 -0
  345. /package/{type → build/default/type}/string/string.js +0 -0
  346. /package/{type → build/default/type}/symbol/index.js +0 -0
  347. /package/{type → build/default/type}/symbol/symbol.js +0 -0
  348. /package/{type → build/default/type}/symbols/index.js +0 -0
  349. /package/{type → build/default/type}/symbols/symbols.js +0 -0
  350. /package/{type → build/default/type}/template-literal/finite.js +0 -0
  351. /package/{type → build/default/type}/template-literal/generate.js +0 -0
  352. /package/{type → build/default/type}/template-literal/index.js +0 -0
  353. /package/{type → build/default/type}/template-literal/parser.js +0 -0
  354. /package/{type → build/default/type}/template-literal/pattern.js +0 -0
  355. /package/{type → build/default/type}/template-literal/syntax.js +0 -0
  356. /package/{type → build/default/type}/template-literal/template-literal.js +0 -0
  357. /package/{type → build/default/type}/template-literal/union.js +0 -0
  358. /package/{type → build/default/type}/transform/index.js +0 -0
  359. /package/{type → build/default/type}/transform/transform.js +0 -0
  360. /package/{type → build/default/type}/tuple/index.js +0 -0
  361. /package/{type → build/default/type}/tuple/tuple.js +0 -0
  362. /package/{type → build/default/type}/type/index.js +0 -0
  363. /package/{type → build/default/type}/type/javascript.js +0 -0
  364. /package/{type → build/default/type}/type/json.js +0 -0
  365. /package/{type → build/default/type}/type/type.js +0 -0
  366. /package/{type → build/default/type}/uint8array/index.js +0 -0
  367. /package/{type → build/default/type}/uint8array/uint8array.js +0 -0
  368. /package/{type → build/default/type}/undefined/index.js +0 -0
  369. /package/{type → build/default/type}/undefined/undefined.js +0 -0
  370. /package/{type → build/default/type}/union/index.js +0 -0
  371. /package/{type → build/default/type}/union/union.js +0 -0
  372. /package/{type → build/default/type}/unknown/index.js +0 -0
  373. /package/{type → build/default/type}/unknown/unknown.js +0 -0
  374. /package/{type → build/default/type}/unsafe/index.js +0 -0
  375. /package/{type → build/default/type}/unsafe/unsafe.js +0 -0
  376. /package/{type → build/default/type}/void/index.js +0 -0
  377. /package/{type → build/default/type}/void/void.js +0 -0
  378. /package/{value → build/default/value}/cast/cast.js +0 -0
  379. /package/{value → build/default/value}/cast/index.js +0 -0
  380. /package/{value → build/default/value}/check/check.js +0 -0
  381. /package/{value → build/default/value}/check/index.js +0 -0
  382. /package/{value → build/default/value}/clean/clean.js +0 -0
  383. /package/{value → build/default/value}/clean/index.js +0 -0
  384. /package/{value → build/default/value}/clone/clone.js +0 -0
  385. /package/{value → build/default/value}/clone/index.js +0 -0
  386. /package/{value → build/default/value}/convert/convert.js +0 -0
  387. /package/{value → build/default/value}/convert/index.js +0 -0
  388. /package/{value → build/default/value}/create/create.js +0 -0
  389. /package/{value → build/default/value}/create/index.js +0 -0
  390. /package/{value → build/default/value}/default/default.js +0 -0
  391. /package/{value → build/default/value}/default/index.js +0 -0
  392. /package/{value → build/default/value}/delta/delta.js +0 -0
  393. /package/{value → build/default/value}/delta/index.js +0 -0
  394. /package/{value → build/default/value}/deref/deref.js +0 -0
  395. /package/{value → build/default/value}/deref/index.js +0 -0
  396. /package/{value → build/default/value}/equal/equal.js +0 -0
  397. /package/{value → build/default/value}/equal/index.js +0 -0
  398. /package/{value → build/default/value}/guard/guard.js +0 -0
  399. /package/{value → build/default/value}/guard/index.js +0 -0
  400. /package/{value → build/default/value}/hash/hash.js +0 -0
  401. /package/{value → build/default/value}/hash/index.js +0 -0
  402. /package/{value → build/default/value}/index.js +0 -0
  403. /package/{value → build/default/value}/mutate/index.js +0 -0
  404. /package/{value → build/default/value}/mutate/mutate.js +0 -0
  405. /package/{value → build/default/value}/pointer/index.js +0 -0
  406. /package/{value → build/default/value}/pointer/pointer.js +0 -0
  407. /package/{value → build/default/value}/transform/decode.js +0 -0
  408. /package/{value → build/default/value}/transform/encode.js +0 -0
  409. /package/{value → build/default/value}/transform/has.js +0 -0
  410. /package/{value → build/default/value}/transform/index.js +0 -0
  411. /package/{value → build/default/value}/value/index.js +0 -0
  412. /package/{value → build/default/value}/value/value.js +0 -0
  413. /package/{compiler → build/types/compiler}/compiler.d.ts +0 -0
  414. /package/{compiler → build/types/compiler}/index.d.ts +0 -0
  415. /package/{errors → build/types/errors}/errors.d.ts +0 -0
  416. /package/{errors → build/types/errors}/index.d.ts +0 -0
  417. /package/{index.d.ts → build/types/index.d.ts} +0 -0
  418. /package/{system → build/types/system}/errors.d.ts +0 -0
  419. /package/{system → build/types/system}/index.d.ts +0 -0
  420. /package/{system → build/types/system}/policy.d.ts +0 -0
  421. /package/{system → build/types/system}/system.d.ts +0 -0
  422. /package/{type → build/types/type}/any/any.d.ts +0 -0
  423. /package/{type → build/types/type}/any/index.d.ts +0 -0
  424. /package/{type → build/types/type}/array/array.d.ts +0 -0
  425. /package/{type → build/types/type}/array/index.d.ts +0 -0
  426. /package/{type → build/types/type}/async-iterator/async-iterator.d.ts +0 -0
  427. /package/{type → build/types/type}/async-iterator/index.d.ts +0 -0
  428. /package/{type → build/types/type}/awaited/awaited.d.ts +0 -0
  429. /package/{type → build/types/type}/awaited/index.d.ts +0 -0
  430. /package/{type → build/types/type}/bigint/bigint.d.ts +0 -0
  431. /package/{type → build/types/type}/bigint/index.d.ts +0 -0
  432. /package/{type → build/types/type}/boolean/boolean.d.ts +0 -0
  433. /package/{type → build/types/type}/boolean/index.d.ts +0 -0
  434. /package/{type → build/types/type}/clone/index.d.ts +0 -0
  435. /package/{type → build/types/type}/clone/type.d.ts +0 -0
  436. /package/{type → build/types/type}/clone/value.d.ts +0 -0
  437. /package/{type → build/types/type}/composite/composite.d.ts +0 -0
  438. /package/{type → build/types/type}/composite/index.d.ts +0 -0
  439. /package/{type → build/types/type}/const/const.d.ts +0 -0
  440. /package/{type → build/types/type}/const/index.d.ts +0 -0
  441. /package/{type → build/types/type}/constructor/constructor.d.ts +0 -0
  442. /package/{type → build/types/type}/constructor/index.d.ts +0 -0
  443. /package/{type → build/types/type}/constructor-parameters/constructor-parameters.d.ts +0 -0
  444. /package/{type → build/types/type}/constructor-parameters/index.d.ts +0 -0
  445. /package/{type → build/types/type}/date/date.d.ts +0 -0
  446. /package/{type → build/types/type}/date/index.d.ts +0 -0
  447. /package/{type → build/types/type}/deref/deref.d.ts +0 -0
  448. /package/{type → build/types/type}/deref/index.d.ts +0 -0
  449. /package/{type → build/types/type}/discard/discard.d.ts +0 -0
  450. /package/{type → build/types/type}/discard/index.d.ts +0 -0
  451. /package/{type → build/types/type}/enum/enum.d.ts +0 -0
  452. /package/{type → build/types/type}/enum/index.d.ts +0 -0
  453. /package/{type → build/types/type}/exclude/exclude.d.ts +0 -0
  454. /package/{type → build/types/type}/exclude/index.d.ts +0 -0
  455. /package/{type → build/types/type}/extends/extends-check.d.ts +0 -0
  456. /package/{type → build/types/type}/extends/extends-undefined.d.ts +0 -0
  457. /package/{type → build/types/type}/extends/extends.d.ts +0 -0
  458. /package/{type → build/types/type}/extends/index.d.ts +0 -0
  459. /package/{type → build/types/type}/extract/extract.d.ts +0 -0
  460. /package/{type → build/types/type}/extract/index.d.ts +0 -0
  461. /package/{type → build/types/type}/function/function.d.ts +0 -0
  462. /package/{type → build/types/type}/function/index.d.ts +0 -0
  463. /package/{type → build/types/type}/guard/index.d.ts +0 -0
  464. /package/{type → build/types/type}/guard/type.d.ts +0 -0
  465. /package/{type → build/types/type}/guard/value.d.ts +0 -0
  466. /package/{type → build/types/type}/helpers/helpers.d.ts +0 -0
  467. /package/{type → build/types/type}/helpers/index.d.ts +0 -0
  468. /package/{type → build/types/type}/index.d.ts +0 -0
  469. /package/{type → build/types/type}/indexed/index.d.ts +0 -0
  470. /package/{type → build/types/type}/indexed/indexed-key.d.ts +0 -0
  471. /package/{type → build/types/type}/indexed/indexed-type.d.ts +0 -0
  472. /package/{type → build/types/type}/indexed/indexed.d.ts +0 -0
  473. /package/{type → build/types/type}/instance-type/index.d.ts +0 -0
  474. /package/{type → build/types/type}/instance-type/instance-type.d.ts +0 -0
  475. /package/{type → build/types/type}/integer/index.d.ts +0 -0
  476. /package/{type → build/types/type}/integer/integer.d.ts +0 -0
  477. /package/{type → build/types/type}/intersect/index.d.ts +0 -0
  478. /package/{type → build/types/type}/intersect/intersect.d.ts +0 -0
  479. /package/{type → build/types/type}/intrinsic/index.d.ts +0 -0
  480. /package/{type → build/types/type}/intrinsic/intrinsic.d.ts +0 -0
  481. /package/{type → build/types/type}/iterator/index.d.ts +0 -0
  482. /package/{type → build/types/type}/iterator/iterator.d.ts +0 -0
  483. /package/{type → build/types/type}/keyof/index.d.ts +0 -0
  484. /package/{type → build/types/type}/keyof/keyof-string.d.ts +0 -0
  485. /package/{type → build/types/type}/keyof/keyof-type.d.ts +0 -0
  486. /package/{type → build/types/type}/keyof/keyof.d.ts +0 -0
  487. /package/{type → build/types/type}/literal/index.d.ts +0 -0
  488. /package/{type → build/types/type}/literal/literal.d.ts +0 -0
  489. /package/{type → build/types/type}/mapped/index.d.ts +0 -0
  490. /package/{type → build/types/type}/mapped/mapped.d.ts +0 -0
  491. /package/{type → build/types/type}/modifiers/index.d.ts +0 -0
  492. /package/{type → build/types/type}/modifiers/modifiers.d.ts +0 -0
  493. /package/{type → build/types/type}/never/index.d.ts +0 -0
  494. /package/{type → build/types/type}/never/never.d.ts +0 -0
  495. /package/{type → build/types/type}/not/index.d.ts +0 -0
  496. /package/{type → build/types/type}/not/not.d.ts +0 -0
  497. /package/{type → build/types/type}/null/index.d.ts +0 -0
  498. /package/{type → build/types/type}/null/null.d.ts +0 -0
  499. /package/{type → build/types/type}/number/index.d.ts +0 -0
  500. /package/{type → build/types/type}/number/number.d.ts +0 -0
  501. /package/{type → build/types/type}/object/index.d.ts +0 -0
  502. /package/{type → build/types/type}/object/object.d.ts +0 -0
  503. /package/{type → build/types/type}/omit/index.d.ts +0 -0
  504. /package/{type → build/types/type}/omit/omit.d.ts +0 -0
  505. /package/{type → build/types/type}/operators/index.d.ts +0 -0
  506. /package/{type → build/types/type}/operators/operators.d.ts +0 -0
  507. /package/{type → build/types/type}/optional/index.d.ts +0 -0
  508. /package/{type → build/types/type}/optional/optional.d.ts +0 -0
  509. /package/{type → build/types/type}/parameters/index.d.ts +0 -0
  510. /package/{type → build/types/type}/parameters/parameters.d.ts +0 -0
  511. /package/{type → build/types/type}/partial/index.d.ts +0 -0
  512. /package/{type → build/types/type}/partial/partial.d.ts +0 -0
  513. /package/{type → build/types/type}/patterns/index.d.ts +0 -0
  514. /package/{type → build/types/type}/patterns/patterns.d.ts +0 -0
  515. /package/{type → build/types/type}/pick/index.d.ts +0 -0
  516. /package/{type → build/types/type}/pick/pick.d.ts +0 -0
  517. /package/{type → build/types/type}/promise/index.d.ts +0 -0
  518. /package/{type → build/types/type}/promise/promise.d.ts +0 -0
  519. /package/{type → build/types/type}/readonly/index.d.ts +0 -0
  520. /package/{type → build/types/type}/readonly/readonly.d.ts +0 -0
  521. /package/{type → build/types/type}/readonly-optional/index.d.ts +0 -0
  522. /package/{type → build/types/type}/readonly-optional/readonly-optional.d.ts +0 -0
  523. /package/{type → build/types/type}/record/index.d.ts +0 -0
  524. /package/{type → build/types/type}/record/record.d.ts +0 -0
  525. /package/{type → build/types/type}/recursive/index.d.ts +0 -0
  526. /package/{type → build/types/type}/recursive/recursive.d.ts +0 -0
  527. /package/{type → build/types/type}/ref/index.d.ts +0 -0
  528. /package/{type → build/types/type}/ref/ref.d.ts +0 -0
  529. /package/{type → build/types/type}/regexp/index.d.ts +0 -0
  530. /package/{type → build/types/type}/regexp/regexp.d.ts +0 -0
  531. /package/{type → build/types/type}/registry/format.d.ts +0 -0
  532. /package/{type → build/types/type}/registry/index.d.ts +0 -0
  533. /package/{type → build/types/type}/registry/type.d.ts +0 -0
  534. /package/{type → build/types/type}/required/index.d.ts +0 -0
  535. /package/{type → build/types/type}/required/required.d.ts +0 -0
  536. /package/{type → build/types/type}/rest/index.d.ts +0 -0
  537. /package/{type → build/types/type}/rest/rest.d.ts +0 -0
  538. /package/{type → build/types/type}/return-type/index.d.ts +0 -0
  539. /package/{type → build/types/type}/return-type/return-type.d.ts +0 -0
  540. /package/{type → build/types/type}/schema/anyschema.d.ts +0 -0
  541. /package/{type → build/types/type}/schema/index.d.ts +0 -0
  542. /package/{type → build/types/type}/schema/schema.d.ts +0 -0
  543. /package/{type → build/types/type}/static/index.d.ts +0 -0
  544. /package/{type → build/types/type}/static/static.d.ts +0 -0
  545. /package/{type → build/types/type}/strict/index.d.ts +0 -0
  546. /package/{type → build/types/type}/strict/strict.d.ts +0 -0
  547. /package/{type → build/types/type}/string/index.d.ts +0 -0
  548. /package/{type → build/types/type}/string/string.d.ts +0 -0
  549. /package/{type → build/types/type}/symbol/index.d.ts +0 -0
  550. /package/{type → build/types/type}/symbol/symbol.d.ts +0 -0
  551. /package/{type → build/types/type}/symbols/index.d.ts +0 -0
  552. /package/{type → build/types/type}/symbols/symbols.d.ts +0 -0
  553. /package/{type → build/types/type}/template-literal/finite.d.ts +0 -0
  554. /package/{type → build/types/type}/template-literal/generate.d.ts +0 -0
  555. /package/{type → build/types/type}/template-literal/index.d.ts +0 -0
  556. /package/{type → build/types/type}/template-literal/parser.d.ts +0 -0
  557. /package/{type → build/types/type}/template-literal/pattern.d.ts +0 -0
  558. /package/{type → build/types/type}/template-literal/syntax.d.ts +0 -0
  559. /package/{type → build/types/type}/template-literal/template-literal.d.ts +0 -0
  560. /package/{type → build/types/type}/template-literal/union.d.ts +0 -0
  561. /package/{type → build/types/type}/transform/index.d.ts +0 -0
  562. /package/{type → build/types/type}/transform/transform.d.ts +0 -0
  563. /package/{type → build/types/type}/tuple/index.d.ts +0 -0
  564. /package/{type → build/types/type}/tuple/tuple.d.ts +0 -0
  565. /package/{type → build/types/type}/type/index.d.ts +0 -0
  566. /package/{type → build/types/type}/type/javascript.d.ts +0 -0
  567. /package/{type → build/types/type}/type/json.d.ts +0 -0
  568. /package/{type → build/types/type}/type/type.d.ts +0 -0
  569. /package/{type → build/types/type}/uint8array/index.d.ts +0 -0
  570. /package/{type → build/types/type}/uint8array/uint8array.d.ts +0 -0
  571. /package/{type → build/types/type}/undefined/index.d.ts +0 -0
  572. /package/{type → build/types/type}/undefined/undefined.d.ts +0 -0
  573. /package/{type → build/types/type}/union/index.d.ts +0 -0
  574. /package/{type → build/types/type}/union/union.d.ts +0 -0
  575. /package/{type → build/types/type}/unknown/index.d.ts +0 -0
  576. /package/{type → build/types/type}/unknown/unknown.d.ts +0 -0
  577. /package/{type → build/types/type}/unsafe/index.d.ts +0 -0
  578. /package/{type → build/types/type}/unsafe/unsafe.d.ts +0 -0
  579. /package/{type → build/types/type}/void/index.d.ts +0 -0
  580. /package/{type → build/types/type}/void/void.d.ts +0 -0
  581. /package/{value → build/types/value}/cast/cast.d.ts +0 -0
  582. /package/{value → build/types/value}/cast/index.d.ts +0 -0
  583. /package/{value → build/types/value}/check/check.d.ts +0 -0
  584. /package/{value → build/types/value}/check/index.d.ts +0 -0
  585. /package/{value → build/types/value}/clean/clean.d.ts +0 -0
  586. /package/{value → build/types/value}/clean/index.d.ts +0 -0
  587. /package/{value → build/types/value}/clone/clone.d.ts +0 -0
  588. /package/{value → build/types/value}/clone/index.d.ts +0 -0
  589. /package/{value → build/types/value}/convert/convert.d.ts +0 -0
  590. /package/{value → build/types/value}/convert/index.d.ts +0 -0
  591. /package/{value → build/types/value}/create/create.d.ts +0 -0
  592. /package/{value → build/types/value}/create/index.d.ts +0 -0
  593. /package/{value → build/types/value}/default/default.d.ts +0 -0
  594. /package/{value → build/types/value}/default/index.d.ts +0 -0
  595. /package/{value → build/types/value}/delta/delta.d.ts +0 -0
  596. /package/{value → build/types/value}/delta/index.d.ts +0 -0
  597. /package/{value → build/types/value}/deref/deref.d.ts +0 -0
  598. /package/{value → build/types/value}/deref/index.d.ts +0 -0
  599. /package/{value → build/types/value}/equal/equal.d.ts +0 -0
  600. /package/{value → build/types/value}/equal/index.d.ts +0 -0
  601. /package/{value → build/types/value}/guard/guard.d.ts +0 -0
  602. /package/{value → build/types/value}/guard/index.d.ts +0 -0
  603. /package/{value → build/types/value}/hash/hash.d.ts +0 -0
  604. /package/{value → build/types/value}/hash/index.d.ts +0 -0
  605. /package/{value → build/types/value}/index.d.ts +0 -0
  606. /package/{value → build/types/value}/mutate/index.d.ts +0 -0
  607. /package/{value → build/types/value}/mutate/mutate.d.ts +0 -0
  608. /package/{value → build/types/value}/pointer/index.d.ts +0 -0
  609. /package/{value → build/types/value}/pointer/pointer.d.ts +0 -0
  610. /package/{value → build/types/value}/transform/decode.d.ts +0 -0
  611. /package/{value → build/types/value}/transform/encode.d.ts +0 -0
  612. /package/{value → build/types/value}/transform/has.d.ts +0 -0
  613. /package/{value → build/types/value}/transform/index.d.ts +0 -0
  614. /package/{value → build/types/value}/value/index.d.ts +0 -0
  615. /package/{value → build/types/value}/value/value.d.ts +0 -0
@@ -0,0 +1,531 @@
1
+ import { IsArray, IsUint8Array, IsDate, IsPromise, IsFunction, IsAsyncIterator, IsIterator, IsBoolean, IsNumber, IsBigInt, IsString, IsSymbol, IsInteger, IsNull, IsUndefined } from '../value/guard/index.mjs';
2
+ import { TypeSystemPolicy, TypeSystemErrorFunction } from '../system/index.mjs';
3
+ import { KeyOfStringResolvePattern } from '../type/keyof/index.mjs';
4
+ import { TypeRegistry, FormatRegistry } from '../type/registry/index.mjs';
5
+ import { ExtendsUndefinedCheck } from '../type/extends/extends-undefined.mjs';
6
+ import { Deref } from '../value/deref/index.mjs';
7
+ import { Hash } from '../value/hash/index.mjs';
8
+ import { Kind } from '../type/symbols/index.mjs';
9
+ import { Never } from '../type/never/index.mjs';
10
+ export var ValueErrorType;
11
+ (function (ValueErrorType) {
12
+ ValueErrorType[ValueErrorType["ArrayContains"] = 0] = "ArrayContains";
13
+ ValueErrorType[ValueErrorType["ArrayMaxContains"] = 1] = "ArrayMaxContains";
14
+ ValueErrorType[ValueErrorType["ArrayMaxItems"] = 2] = "ArrayMaxItems";
15
+ ValueErrorType[ValueErrorType["ArrayMinContains"] = 3] = "ArrayMinContains";
16
+ ValueErrorType[ValueErrorType["ArrayMinItems"] = 4] = "ArrayMinItems";
17
+ ValueErrorType[ValueErrorType["ArrayUniqueItems"] = 5] = "ArrayUniqueItems";
18
+ ValueErrorType[ValueErrorType["Array"] = 6] = "Array";
19
+ ValueErrorType[ValueErrorType["AsyncIterator"] = 7] = "AsyncIterator";
20
+ ValueErrorType[ValueErrorType["BigIntExclusiveMaximum"] = 8] = "BigIntExclusiveMaximum";
21
+ ValueErrorType[ValueErrorType["BigIntExclusiveMinimum"] = 9] = "BigIntExclusiveMinimum";
22
+ ValueErrorType[ValueErrorType["BigIntMaximum"] = 10] = "BigIntMaximum";
23
+ ValueErrorType[ValueErrorType["BigIntMinimum"] = 11] = "BigIntMinimum";
24
+ ValueErrorType[ValueErrorType["BigIntMultipleOf"] = 12] = "BigIntMultipleOf";
25
+ ValueErrorType[ValueErrorType["BigInt"] = 13] = "BigInt";
26
+ ValueErrorType[ValueErrorType["Boolean"] = 14] = "Boolean";
27
+ ValueErrorType[ValueErrorType["DateExclusiveMaximumTimestamp"] = 15] = "DateExclusiveMaximumTimestamp";
28
+ ValueErrorType[ValueErrorType["DateExclusiveMinimumTimestamp"] = 16] = "DateExclusiveMinimumTimestamp";
29
+ ValueErrorType[ValueErrorType["DateMaximumTimestamp"] = 17] = "DateMaximumTimestamp";
30
+ ValueErrorType[ValueErrorType["DateMinimumTimestamp"] = 18] = "DateMinimumTimestamp";
31
+ ValueErrorType[ValueErrorType["DateMultipleOfTimestamp"] = 19] = "DateMultipleOfTimestamp";
32
+ ValueErrorType[ValueErrorType["Date"] = 20] = "Date";
33
+ ValueErrorType[ValueErrorType["Function"] = 21] = "Function";
34
+ ValueErrorType[ValueErrorType["IntegerExclusiveMaximum"] = 22] = "IntegerExclusiveMaximum";
35
+ ValueErrorType[ValueErrorType["IntegerExclusiveMinimum"] = 23] = "IntegerExclusiveMinimum";
36
+ ValueErrorType[ValueErrorType["IntegerMaximum"] = 24] = "IntegerMaximum";
37
+ ValueErrorType[ValueErrorType["IntegerMinimum"] = 25] = "IntegerMinimum";
38
+ ValueErrorType[ValueErrorType["IntegerMultipleOf"] = 26] = "IntegerMultipleOf";
39
+ ValueErrorType[ValueErrorType["Integer"] = 27] = "Integer";
40
+ ValueErrorType[ValueErrorType["IntersectUnevaluatedProperties"] = 28] = "IntersectUnevaluatedProperties";
41
+ ValueErrorType[ValueErrorType["Intersect"] = 29] = "Intersect";
42
+ ValueErrorType[ValueErrorType["Iterator"] = 30] = "Iterator";
43
+ ValueErrorType[ValueErrorType["Kind"] = 31] = "Kind";
44
+ ValueErrorType[ValueErrorType["Literal"] = 32] = "Literal";
45
+ ValueErrorType[ValueErrorType["Never"] = 33] = "Never";
46
+ ValueErrorType[ValueErrorType["Not"] = 34] = "Not";
47
+ ValueErrorType[ValueErrorType["Null"] = 35] = "Null";
48
+ ValueErrorType[ValueErrorType["NumberExclusiveMaximum"] = 36] = "NumberExclusiveMaximum";
49
+ ValueErrorType[ValueErrorType["NumberExclusiveMinimum"] = 37] = "NumberExclusiveMinimum";
50
+ ValueErrorType[ValueErrorType["NumberMaximum"] = 38] = "NumberMaximum";
51
+ ValueErrorType[ValueErrorType["NumberMinimum"] = 39] = "NumberMinimum";
52
+ ValueErrorType[ValueErrorType["NumberMultipleOf"] = 40] = "NumberMultipleOf";
53
+ ValueErrorType[ValueErrorType["Number"] = 41] = "Number";
54
+ ValueErrorType[ValueErrorType["ObjectAdditionalProperties"] = 42] = "ObjectAdditionalProperties";
55
+ ValueErrorType[ValueErrorType["ObjectMaxProperties"] = 43] = "ObjectMaxProperties";
56
+ ValueErrorType[ValueErrorType["ObjectMinProperties"] = 44] = "ObjectMinProperties";
57
+ ValueErrorType[ValueErrorType["ObjectRequiredProperty"] = 45] = "ObjectRequiredProperty";
58
+ ValueErrorType[ValueErrorType["Object"] = 46] = "Object";
59
+ ValueErrorType[ValueErrorType["Promise"] = 47] = "Promise";
60
+ ValueErrorType[ValueErrorType["StringFormatUnknown"] = 48] = "StringFormatUnknown";
61
+ ValueErrorType[ValueErrorType["StringFormat"] = 49] = "StringFormat";
62
+ ValueErrorType[ValueErrorType["StringMaxLength"] = 50] = "StringMaxLength";
63
+ ValueErrorType[ValueErrorType["StringMinLength"] = 51] = "StringMinLength";
64
+ ValueErrorType[ValueErrorType["StringPattern"] = 52] = "StringPattern";
65
+ ValueErrorType[ValueErrorType["String"] = 53] = "String";
66
+ ValueErrorType[ValueErrorType["Symbol"] = 54] = "Symbol";
67
+ ValueErrorType[ValueErrorType["TupleLength"] = 55] = "TupleLength";
68
+ ValueErrorType[ValueErrorType["Tuple"] = 56] = "Tuple";
69
+ ValueErrorType[ValueErrorType["Uint8ArrayMaxByteLength"] = 57] = "Uint8ArrayMaxByteLength";
70
+ ValueErrorType[ValueErrorType["Uint8ArrayMinByteLength"] = 58] = "Uint8ArrayMinByteLength";
71
+ ValueErrorType[ValueErrorType["Uint8Array"] = 59] = "Uint8Array";
72
+ ValueErrorType[ValueErrorType["Undefined"] = 60] = "Undefined";
73
+ ValueErrorType[ValueErrorType["Union"] = 61] = "Union";
74
+ ValueErrorType[ValueErrorType["Void"] = 62] = "Void";
75
+ })(ValueErrorType || (ValueErrorType = {}));
76
+ export class ValueErrorsUnknownTypeError extends Error {
77
+ schema;
78
+ constructor(schema) {
79
+ super('Unknown type');
80
+ this.schema = schema;
81
+ }
82
+ }
83
+ export function EscapeKey(key) {
84
+ return key.replace(/~/g, '~0').replace(/\//g, '~1');
85
+ }
86
+ function IsDefined(value) {
87
+ return value !== undefined;
88
+ }
89
+ export class ValueErrorIterator {
90
+ iterator;
91
+ constructor(iterator) {
92
+ this.iterator = iterator;
93
+ }
94
+ [Symbol.iterator]() {
95
+ return this.iterator;
96
+ }
97
+ First() {
98
+ const next = this.iterator.next();
99
+ return next.done ? undefined : next.value;
100
+ }
101
+ }
102
+ function Create(type, schema, path, value) {
103
+ return { type, schema, path, value, message: TypeSystemErrorFunction.Get()(schema, type) };
104
+ }
105
+ function* TAny(schema, references, path, value) { }
106
+ function* TArray(schema, references, path, value) {
107
+ if (!IsArray(value)) {
108
+ return yield Create(ValueErrorType.Array, schema, path, value);
109
+ }
110
+ if (IsDefined(schema.minItems) && !(value.length >= schema.minItems)) {
111
+ yield Create(ValueErrorType.ArrayMinItems, schema, path, value);
112
+ }
113
+ if (IsDefined(schema.maxItems) && !(value.length <= schema.maxItems)) {
114
+ yield Create(ValueErrorType.ArrayMaxItems, schema, path, value);
115
+ }
116
+ for (let i = 0; i < value.length; i++) {
117
+ yield* Visit(schema.items, references, `${path}/${i}`, value[i]);
118
+ }
119
+ if (schema.uniqueItems === true && !((function () { const set = new Set(); for (const element of value) {
120
+ const hashed = Hash(element);
121
+ if (set.has(hashed)) {
122
+ return false;
123
+ }
124
+ else {
125
+ set.add(hashed);
126
+ }
127
+ } return true; })())) {
128
+ yield Create(ValueErrorType.ArrayUniqueItems, schema, path, value);
129
+ }
130
+ if (!(IsDefined(schema.contains) || IsDefined(schema.minContains) || IsDefined(schema.maxContains))) {
131
+ return;
132
+ }
133
+ const containsSchema = IsDefined(schema.contains) ? schema.contains : Never();
134
+ const containsCount = value.reduce((acc, value, index) => (Visit(containsSchema, references, `${path}${index}`, value).next().done === true ? acc + 1 : acc), 0);
135
+ if (containsCount === 0) {
136
+ yield Create(ValueErrorType.ArrayContains, schema, path, value);
137
+ }
138
+ if (IsNumber(schema.minContains) && containsCount < schema.minContains) {
139
+ yield Create(ValueErrorType.ArrayMinContains, schema, path, value);
140
+ }
141
+ if (IsNumber(schema.maxContains) && containsCount > schema.maxContains) {
142
+ yield Create(ValueErrorType.ArrayMaxContains, schema, path, value);
143
+ }
144
+ }
145
+ function* TAsyncIterator(schema, references, path, value) {
146
+ if (!IsAsyncIterator(value))
147
+ yield Create(ValueErrorType.AsyncIterator, schema, path, value);
148
+ }
149
+ function* TBigInt(schema, references, path, value) {
150
+ if (!IsBigInt(value))
151
+ return yield Create(ValueErrorType.BigInt, schema, path, value);
152
+ if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
153
+ yield Create(ValueErrorType.BigIntExclusiveMaximum, schema, path, value);
154
+ }
155
+ if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
156
+ yield Create(ValueErrorType.BigIntExclusiveMinimum, schema, path, value);
157
+ }
158
+ if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
159
+ yield Create(ValueErrorType.BigIntMaximum, schema, path, value);
160
+ }
161
+ if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
162
+ yield Create(ValueErrorType.BigIntMinimum, schema, path, value);
163
+ }
164
+ if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === BigInt(0))) {
165
+ yield Create(ValueErrorType.BigIntMultipleOf, schema, path, value);
166
+ }
167
+ }
168
+ function* TBoolean(schema, references, path, value) {
169
+ if (!IsBoolean(value))
170
+ yield Create(ValueErrorType.Boolean, schema, path, value);
171
+ }
172
+ function* TConstructor(schema, references, path, value) {
173
+ yield* Visit(schema.returns, references, path, value.prototype);
174
+ }
175
+ function* TDate(schema, references, path, value) {
176
+ if (!IsDate(value))
177
+ return yield Create(ValueErrorType.Date, schema, path, value);
178
+ if (IsDefined(schema.exclusiveMaximumTimestamp) && !(value.getTime() < schema.exclusiveMaximumTimestamp)) {
179
+ yield Create(ValueErrorType.DateExclusiveMaximumTimestamp, schema, path, value);
180
+ }
181
+ if (IsDefined(schema.exclusiveMinimumTimestamp) && !(value.getTime() > schema.exclusiveMinimumTimestamp)) {
182
+ yield Create(ValueErrorType.DateExclusiveMinimumTimestamp, schema, path, value);
183
+ }
184
+ if (IsDefined(schema.maximumTimestamp) && !(value.getTime() <= schema.maximumTimestamp)) {
185
+ yield Create(ValueErrorType.DateMaximumTimestamp, schema, path, value);
186
+ }
187
+ if (IsDefined(schema.minimumTimestamp) && !(value.getTime() >= schema.minimumTimestamp)) {
188
+ yield Create(ValueErrorType.DateMinimumTimestamp, schema, path, value);
189
+ }
190
+ if (IsDefined(schema.multipleOfTimestamp) && !(value.getTime() % schema.multipleOfTimestamp === 0)) {
191
+ yield Create(ValueErrorType.DateMultipleOfTimestamp, schema, path, value);
192
+ }
193
+ }
194
+ function* TFunction(schema, references, path, value) {
195
+ if (!IsFunction(value))
196
+ yield Create(ValueErrorType.Function, schema, path, value);
197
+ }
198
+ function* TInteger(schema, references, path, value) {
199
+ if (!IsInteger(value))
200
+ return yield Create(ValueErrorType.Integer, schema, path, value);
201
+ if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
202
+ yield Create(ValueErrorType.IntegerExclusiveMaximum, schema, path, value);
203
+ }
204
+ if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
205
+ yield Create(ValueErrorType.IntegerExclusiveMinimum, schema, path, value);
206
+ }
207
+ if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
208
+ yield Create(ValueErrorType.IntegerMaximum, schema, path, value);
209
+ }
210
+ if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
211
+ yield Create(ValueErrorType.IntegerMinimum, schema, path, value);
212
+ }
213
+ if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === 0)) {
214
+ yield Create(ValueErrorType.IntegerMultipleOf, schema, path, value);
215
+ }
216
+ }
217
+ function* TIntersect(schema, references, path, value) {
218
+ for (const inner of schema.allOf) {
219
+ const next = Visit(inner, references, path, value).next();
220
+ if (!next.done) {
221
+ yield Create(ValueErrorType.Intersect, schema, path, value);
222
+ yield next.value;
223
+ }
224
+ }
225
+ if (schema.unevaluatedProperties === false) {
226
+ const keyCheck = new RegExp(KeyOfStringResolvePattern(schema));
227
+ for (const valueKey of Object.getOwnPropertyNames(value)) {
228
+ if (!keyCheck.test(valueKey)) {
229
+ yield Create(ValueErrorType.IntersectUnevaluatedProperties, schema, `${path}/${valueKey}`, value);
230
+ }
231
+ }
232
+ }
233
+ if (typeof schema.unevaluatedProperties === 'object') {
234
+ const keyCheck = new RegExp(KeyOfStringResolvePattern(schema));
235
+ for (const valueKey of Object.getOwnPropertyNames(value)) {
236
+ if (!keyCheck.test(valueKey)) {
237
+ const next = Visit(schema.unevaluatedProperties, references, `${path}/${valueKey}`, value[valueKey]).next();
238
+ if (!next.done)
239
+ yield next.value;
240
+ }
241
+ }
242
+ }
243
+ }
244
+ function* TIterator(schema, references, path, value) {
245
+ if (!IsIterator(value))
246
+ yield Create(ValueErrorType.Iterator, schema, path, value);
247
+ }
248
+ function* TLiteral(schema, references, path, value) {
249
+ if (!(value === schema.const))
250
+ yield Create(ValueErrorType.Literal, schema, path, value);
251
+ }
252
+ function* TNever(schema, references, path, value) {
253
+ yield Create(ValueErrorType.Never, schema, path, value);
254
+ }
255
+ function* TNot(schema, references, path, value) {
256
+ if (Visit(schema.not, references, path, value).next().done === true)
257
+ yield Create(ValueErrorType.Not, schema, path, value);
258
+ }
259
+ function* TNull(schema, references, path, value) {
260
+ if (!IsNull(value))
261
+ yield Create(ValueErrorType.Null, schema, path, value);
262
+ }
263
+ function* TNumber(schema, references, path, value) {
264
+ if (!TypeSystemPolicy.IsNumberLike(value))
265
+ return yield Create(ValueErrorType.Number, schema, path, value);
266
+ if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
267
+ yield Create(ValueErrorType.NumberExclusiveMaximum, schema, path, value);
268
+ }
269
+ if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
270
+ yield Create(ValueErrorType.NumberExclusiveMinimum, schema, path, value);
271
+ }
272
+ if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
273
+ yield Create(ValueErrorType.NumberMaximum, schema, path, value);
274
+ }
275
+ if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
276
+ yield Create(ValueErrorType.NumberMinimum, schema, path, value);
277
+ }
278
+ if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === 0)) {
279
+ yield Create(ValueErrorType.NumberMultipleOf, schema, path, value);
280
+ }
281
+ }
282
+ function* TObject(schema, references, path, value) {
283
+ if (!TypeSystemPolicy.IsObjectLike(value))
284
+ return yield Create(ValueErrorType.Object, schema, path, value);
285
+ if (IsDefined(schema.minProperties) && !(Object.getOwnPropertyNames(value).length >= schema.minProperties)) {
286
+ yield Create(ValueErrorType.ObjectMinProperties, schema, path, value);
287
+ }
288
+ if (IsDefined(schema.maxProperties) && !(Object.getOwnPropertyNames(value).length <= schema.maxProperties)) {
289
+ yield Create(ValueErrorType.ObjectMaxProperties, schema, path, value);
290
+ }
291
+ const requiredKeys = Array.isArray(schema.required) ? schema.required : [];
292
+ const knownKeys = Object.getOwnPropertyNames(schema.properties);
293
+ const unknownKeys = Object.getOwnPropertyNames(value);
294
+ for (const requiredKey of requiredKeys) {
295
+ if (unknownKeys.includes(requiredKey))
296
+ continue;
297
+ yield Create(ValueErrorType.ObjectRequiredProperty, schema.properties[requiredKey], `${path}/${EscapeKey(requiredKey)}`, undefined);
298
+ }
299
+ if (schema.additionalProperties === false) {
300
+ for (const valueKey of unknownKeys) {
301
+ if (!knownKeys.includes(valueKey)) {
302
+ yield Create(ValueErrorType.ObjectAdditionalProperties, schema, `${path}/${EscapeKey(valueKey)}`, value[valueKey]);
303
+ }
304
+ }
305
+ }
306
+ if (typeof schema.additionalProperties === 'object') {
307
+ for (const valueKey of unknownKeys) {
308
+ if (knownKeys.includes(valueKey))
309
+ continue;
310
+ yield* Visit(schema.additionalProperties, references, `${path}/${EscapeKey(valueKey)}`, value[valueKey]);
311
+ }
312
+ }
313
+ for (const knownKey of knownKeys) {
314
+ const property = schema.properties[knownKey];
315
+ if (schema.required && schema.required.includes(knownKey)) {
316
+ yield* Visit(property, references, `${path}/${EscapeKey(knownKey)}`, value[knownKey]);
317
+ if (ExtendsUndefinedCheck(schema) && !(knownKey in value)) {
318
+ yield Create(ValueErrorType.ObjectRequiredProperty, property, `${path}/${EscapeKey(knownKey)}`, undefined);
319
+ }
320
+ }
321
+ else {
322
+ if (TypeSystemPolicy.IsExactOptionalProperty(value, knownKey)) {
323
+ yield* Visit(property, references, `${path}/${EscapeKey(knownKey)}`, value[knownKey]);
324
+ }
325
+ }
326
+ }
327
+ }
328
+ function* TPromise(schema, references, path, value) {
329
+ if (!IsPromise(value))
330
+ yield Create(ValueErrorType.Promise, schema, path, value);
331
+ }
332
+ function* TRecord(schema, references, path, value) {
333
+ if (!TypeSystemPolicy.IsRecordLike(value))
334
+ return yield Create(ValueErrorType.Object, schema, path, value);
335
+ if (IsDefined(schema.minProperties) && !(Object.getOwnPropertyNames(value).length >= schema.minProperties)) {
336
+ yield Create(ValueErrorType.ObjectMinProperties, schema, path, value);
337
+ }
338
+ if (IsDefined(schema.maxProperties) && !(Object.getOwnPropertyNames(value).length <= schema.maxProperties)) {
339
+ yield Create(ValueErrorType.ObjectMaxProperties, schema, path, value);
340
+ }
341
+ const [patternKey, patternSchema] = Object.entries(schema.patternProperties)[0];
342
+ const regex = new RegExp(patternKey);
343
+ for (const [propertyKey, propertyValue] of Object.entries(value)) {
344
+ if (regex.test(propertyKey))
345
+ yield* Visit(patternSchema, references, `${path}/${EscapeKey(propertyKey)}`, propertyValue);
346
+ }
347
+ if (typeof schema.additionalProperties === 'object') {
348
+ for (const [propertyKey, propertyValue] of Object.entries(value)) {
349
+ if (!regex.test(propertyKey))
350
+ yield* Visit(schema.additionalProperties, references, `${path}/${EscapeKey(propertyKey)}`, propertyValue);
351
+ }
352
+ }
353
+ if (schema.additionalProperties === false) {
354
+ for (const [propertyKey, propertyValue] of Object.entries(value)) {
355
+ if (regex.test(propertyKey))
356
+ continue;
357
+ return yield Create(ValueErrorType.ObjectAdditionalProperties, schema, `${path}/${EscapeKey(propertyKey)}`, propertyValue);
358
+ }
359
+ }
360
+ }
361
+ function* TRef(schema, references, path, value) {
362
+ yield* Visit(Deref(schema, references), references, path, value);
363
+ }
364
+ function* TString(schema, references, path, value) {
365
+ if (!IsString(value))
366
+ return yield Create(ValueErrorType.String, schema, path, value);
367
+ if (IsDefined(schema.minLength) && !(value.length >= schema.minLength)) {
368
+ yield Create(ValueErrorType.StringMinLength, schema, path, value);
369
+ }
370
+ if (IsDefined(schema.maxLength) && !(value.length <= schema.maxLength)) {
371
+ yield Create(ValueErrorType.StringMaxLength, schema, path, value);
372
+ }
373
+ if (IsString(schema.pattern)) {
374
+ const regex = new RegExp(schema.pattern);
375
+ if (!regex.test(value)) {
376
+ yield Create(ValueErrorType.StringPattern, schema, path, value);
377
+ }
378
+ }
379
+ if (IsString(schema.format)) {
380
+ if (!FormatRegistry.Has(schema.format)) {
381
+ yield Create(ValueErrorType.StringFormatUnknown, schema, path, value);
382
+ }
383
+ else {
384
+ const format = FormatRegistry.Get(schema.format);
385
+ if (!format(value)) {
386
+ yield Create(ValueErrorType.StringFormat, schema, path, value);
387
+ }
388
+ }
389
+ }
390
+ }
391
+ function* TSymbol(schema, references, path, value) {
392
+ if (!IsSymbol(value))
393
+ yield Create(ValueErrorType.Symbol, schema, path, value);
394
+ }
395
+ function* TTemplateLiteral(schema, references, path, value) {
396
+ if (!IsString(value))
397
+ return yield Create(ValueErrorType.String, schema, path, value);
398
+ const regex = new RegExp(schema.pattern);
399
+ if (!regex.test(value)) {
400
+ yield Create(ValueErrorType.StringPattern, schema, path, value);
401
+ }
402
+ }
403
+ function* TThis(schema, references, path, value) {
404
+ yield* Visit(Deref(schema, references), references, path, value);
405
+ }
406
+ function* TTuple(schema, references, path, value) {
407
+ if (!IsArray(value))
408
+ return yield Create(ValueErrorType.Tuple, schema, path, value);
409
+ if (schema.items === undefined && !(value.length === 0)) {
410
+ return yield Create(ValueErrorType.TupleLength, schema, path, value);
411
+ }
412
+ if (!(value.length === schema.maxItems)) {
413
+ return yield Create(ValueErrorType.TupleLength, schema, path, value);
414
+ }
415
+ if (!schema.items) {
416
+ return;
417
+ }
418
+ for (let i = 0; i < schema.items.length; i++) {
419
+ yield* Visit(schema.items[i], references, `${path}/${i}`, value[i]);
420
+ }
421
+ }
422
+ function* TUndefined(schema, references, path, value) {
423
+ if (!IsUndefined(value))
424
+ yield Create(ValueErrorType.Undefined, schema, path, value);
425
+ }
426
+ function* TUnion(schema, references, path, value) {
427
+ let count = 0;
428
+ for (const subschema of schema.anyOf) {
429
+ const errors = [...Visit(subschema, references, path, value)];
430
+ if (errors.length === 0)
431
+ return;
432
+ count += errors.length;
433
+ }
434
+ if (count > 0) {
435
+ yield Create(ValueErrorType.Union, schema, path, value);
436
+ }
437
+ }
438
+ function* TUint8Array(schema, references, path, value) {
439
+ if (!IsUint8Array(value))
440
+ return yield Create(ValueErrorType.Uint8Array, schema, path, value);
441
+ if (IsDefined(schema.maxByteLength) && !(value.length <= schema.maxByteLength)) {
442
+ yield Create(ValueErrorType.Uint8ArrayMaxByteLength, schema, path, value);
443
+ }
444
+ if (IsDefined(schema.minByteLength) && !(value.length >= schema.minByteLength)) {
445
+ yield Create(ValueErrorType.Uint8ArrayMinByteLength, schema, path, value);
446
+ }
447
+ }
448
+ function* TUnknown(schema, references, path, value) { }
449
+ function* TVoid(schema, references, path, value) {
450
+ if (!TypeSystemPolicy.IsVoidLike(value))
451
+ yield Create(ValueErrorType.Void, schema, path, value);
452
+ }
453
+ function* TKind(schema, references, path, value) {
454
+ const check = TypeRegistry.Get(schema[Kind]);
455
+ if (!check(schema, value))
456
+ yield Create(ValueErrorType.Kind, schema, path, value);
457
+ }
458
+ function* Visit(schema, references, path, value) {
459
+ const references_ = IsDefined(schema.$id) ? [...references, schema] : references;
460
+ const schema_ = schema;
461
+ switch (schema_[Kind]) {
462
+ case 'Any':
463
+ return yield* TAny(schema_, references_, path, value);
464
+ case 'Array':
465
+ return yield* TArray(schema_, references_, path, value);
466
+ case 'AsyncIterator':
467
+ return yield* TAsyncIterator(schema_, references_, path, value);
468
+ case 'BigInt':
469
+ return yield* TBigInt(schema_, references_, path, value);
470
+ case 'Boolean':
471
+ return yield* TBoolean(schema_, references_, path, value);
472
+ case 'Constructor':
473
+ return yield* TConstructor(schema_, references_, path, value);
474
+ case 'Date':
475
+ return yield* TDate(schema_, references_, path, value);
476
+ case 'Function':
477
+ return yield* TFunction(schema_, references_, path, value);
478
+ case 'Integer':
479
+ return yield* TInteger(schema_, references_, path, value);
480
+ case 'Intersect':
481
+ return yield* TIntersect(schema_, references_, path, value);
482
+ case 'Iterator':
483
+ return yield* TIterator(schema_, references_, path, value);
484
+ case 'Literal':
485
+ return yield* TLiteral(schema_, references_, path, value);
486
+ case 'Never':
487
+ return yield* TNever(schema_, references_, path, value);
488
+ case 'Not':
489
+ return yield* TNot(schema_, references_, path, value);
490
+ case 'Null':
491
+ return yield* TNull(schema_, references_, path, value);
492
+ case 'Number':
493
+ return yield* TNumber(schema_, references_, path, value);
494
+ case 'Object':
495
+ return yield* TObject(schema_, references_, path, value);
496
+ case 'Promise':
497
+ return yield* TPromise(schema_, references_, path, value);
498
+ case 'Record':
499
+ return yield* TRecord(schema_, references_, path, value);
500
+ case 'Ref':
501
+ return yield* TRef(schema_, references_, path, value);
502
+ case 'String':
503
+ return yield* TString(schema_, references_, path, value);
504
+ case 'Symbol':
505
+ return yield* TSymbol(schema_, references_, path, value);
506
+ case 'TemplateLiteral':
507
+ return yield* TTemplateLiteral(schema_, references_, path, value);
508
+ case 'This':
509
+ return yield* TThis(schema_, references_, path, value);
510
+ case 'Tuple':
511
+ return yield* TTuple(schema_, references_, path, value);
512
+ case 'Undefined':
513
+ return yield* TUndefined(schema_, references_, path, value);
514
+ case 'Union':
515
+ return yield* TUnion(schema_, references_, path, value);
516
+ case 'Uint8Array':
517
+ return yield* TUint8Array(schema_, references_, path, value);
518
+ case 'Unknown':
519
+ return yield* TUnknown(schema_, references_, path, value);
520
+ case 'Void':
521
+ return yield* TVoid(schema_, references_, path, value);
522
+ default:
523
+ if (!TypeRegistry.Has(schema_[Kind]))
524
+ throw new ValueErrorsUnknownTypeError(schema);
525
+ return yield* TKind(schema_, references_, path, value);
526
+ }
527
+ }
528
+ export function Errors(...args) {
529
+ const iterator = args.length === 3 ? Visit(args[0], args[1], '', args[2]) : Visit(args[0], [], '', args[1]);
530
+ return new ValueErrorIterator(iterator);
531
+ }
@@ -0,0 +1 @@
1
+ export * from './errors.mjs';
@@ -0,0 +1,69 @@
1
+ export { Kind, Hint, ReadonlyKind, OptionalKind, TransformKind } from './type/symbols/index.mjs';
2
+ export { PatternBoolean, PatternBooleanExact, PatternNumber, PatternNumberExact, PatternString, PatternStringExact } from './type/patterns/index.mjs';
3
+ export { TypeRegistry, FormatRegistry } from './type/registry/index.mjs';
4
+ export { TypeGuard, ValueGuard } from './type/guard/index.mjs';
5
+ export { CloneType, CloneRest } from './type/clone/type.mjs';
6
+ export { Clone } from './type/clone/value.mjs';
7
+ export { Any } from './type/any/index.mjs';
8
+ export { Array } from './type/array/index.mjs';
9
+ export { AsyncIterator } from './type/async-iterator/index.mjs';
10
+ export { Awaited } from './type/awaited/index.mjs';
11
+ export { BigInt } from './type/bigint/index.mjs';
12
+ export { Boolean } from './type/boolean/index.mjs';
13
+ export { Composite } from './type/composite/index.mjs';
14
+ export { Const } from './type/const/index.mjs';
15
+ export { Constructor } from './type/constructor/index.mjs';
16
+ export { ConstructorParameters } from './type/constructor-parameters/index.mjs';
17
+ export { Date } from './type/date/index.mjs';
18
+ export { Deref } from './type/deref/index.mjs';
19
+ export { Enum } from './type/enum/index.mjs';
20
+ export { Exclude } from './type/exclude/index.mjs';
21
+ export { Extends, ExtendsCheck, ExtendsResult, ExtendsUndefinedCheck } from './type/extends/index.mjs';
22
+ export { Extract } from './type/extract/index.mjs';
23
+ export { Function } from './type/function/index.mjs';
24
+ export { Increment } from './type/helpers/index.mjs';
25
+ export { Index, IndexedKeyResolve, IndexedTypeResolve } from './type/indexed/index.mjs';
26
+ export { InstanceType } from './type/instance-type/index.mjs';
27
+ export { Integer } from './type/integer/index.mjs';
28
+ export { Intersect } from './type/intersect/index.mjs';
29
+ export { Iterator } from './type/iterator/index.mjs';
30
+ export { Capitalize, Lowercase, Uncapitalize, Uppercase, IntrinsicResolve } from './type/intrinsic/index.mjs';
31
+ export { KeyOf, KeyOfStringResolve, KeyOfStringResolvePattern, KeyOfTypeResolve } from './type/keyof/index.mjs';
32
+ export { Literal } from './type/literal/index.mjs';
33
+ export { Mapped } from './type/mapped/index.mjs';
34
+ export { Never } from './type/never/index.mjs';
35
+ export { Not } from './type/not/index.mjs';
36
+ export { Null } from './type/null/index.mjs';
37
+ export { Number } from './type/number/index.mjs';
38
+ export { Object } from './type/object/index.mjs';
39
+ export { Omit } from './type/omit/index.mjs';
40
+ export { Optional } from './type/optional/index.mjs';
41
+ export { Parameters } from './type/parameters/index.mjs';
42
+ export { Partial } from './type/partial/index.mjs';
43
+ export { Pick } from './type/pick/index.mjs';
44
+ export { Promise } from './type/promise/index.mjs';
45
+ export { Readonly } from './type/readonly/index.mjs';
46
+ export { ReadonlyOptional } from './type/readonly-optional/index.mjs';
47
+ export { Record } from './type/record/index.mjs';
48
+ export { Recursive } from './type/recursive/index.mjs';
49
+ export { Ref } from './type/ref/index.mjs';
50
+ export { RegExp } from './type/regexp/index.mjs';
51
+ export { Required } from './type/required/index.mjs';
52
+ export { Rest } from './type/rest/index.mjs';
53
+ export { ReturnType } from './type/return-type/index.mjs';
54
+ export { Strict } from './type/strict/index.mjs';
55
+ export { String } from './type/string/index.mjs';
56
+ export { Symbol } from './type/symbol/index.mjs';
57
+ export { TemplateLiteral, IsTemplateLiteralFinite, TemplateLiteralParse, TemplateLiteralParseExact, TemplateLiteralGenerate } from './type/template-literal/index.mjs';
58
+ export { Transform, TransformDecodeBuilder, TransformEncodeBuilder } from './type/transform/index.mjs';
59
+ export { Tuple } from './type/tuple/index.mjs';
60
+ export { Uint8Array } from './type/uint8array/index.mjs';
61
+ export { Undefined } from './type/undefined/index.mjs';
62
+ export { Union } from './type/union/index.mjs';
63
+ export { Unknown } from './type/unknown/index.mjs';
64
+ export { Unsafe } from './type/unsafe/index.mjs';
65
+ export { Void } from './type/void/index.mjs';
66
+ export { JsonTypeBuilder, JavaScriptTypeBuilder } from './type/type/index.mjs';
67
+ import { Type } from './type/type/index.mjs';
68
+ export { Type };
69
+ export default Type;