arktype 3.0.0-beta.1 → 3.0.0-rc.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 (312) hide show
  1. package/README.md +48 -144
  2. package/out/_internal/regex/charset.d.ts +24 -0
  3. package/out/_internal/regex/escape.d.ts +29 -0
  4. package/out/_internal/regex/execArray.d.ts +24 -0
  5. package/out/_internal/regex/group.d.ts +34 -0
  6. package/out/_internal/regex/index.d.ts +2 -0
  7. package/out/_internal/regex/internal.d.ts +9 -0
  8. package/out/_internal/regex/parse.d.ts +10 -0
  9. package/out/_internal/regex/quantify.d.ts +59 -0
  10. package/out/_internal/regex/regex.d.ts +38 -0
  11. package/out/_internal/regex/state.d.ts +383 -0
  12. package/out/_internal/schema/codecs.d.ts +2 -0
  13. package/out/_internal/schema/config.d.ts +103 -0
  14. package/out/_internal/schema/constraint.d.ts +78 -0
  15. package/out/_internal/schema/errors.d.ts +1 -0
  16. package/out/_internal/schema/generic.d.ts +85 -0
  17. package/out/_internal/schema/i18n.d.ts +3 -0
  18. package/out/_internal/schema/index.d.ts +54 -0
  19. package/out/_internal/schema/internal.d.ts +15 -0
  20. package/out/_internal/schema/intrinsic.d.ts +28 -0
  21. package/out/_internal/schema/kinds.d.ts +76 -0
  22. package/out/_internal/schema/module.d.ts +23 -0
  23. package/out/_internal/schema/mutatesInput.d.ts +2 -0
  24. package/out/_internal/schema/node.d.ts +349 -0
  25. package/out/_internal/schema/parse.d.ts +77 -0
  26. package/out/_internal/schema/parseSchema.d.ts +116 -0
  27. package/out/_internal/schema/predicate.d.ts +46 -0
  28. package/out/_internal/schema/refinements/after.d.ts +32 -0
  29. package/out/_internal/schema/refinements/before.d.ts +32 -0
  30. package/out/_internal/schema/refinements/divisor.d.ts +41 -0
  31. package/out/_internal/schema/refinements/exactLength.d.ts +43 -0
  32. package/out/_internal/schema/refinements/kinds.d.ts +40 -0
  33. package/out/_internal/schema/refinements/max.d.ts +33 -0
  34. package/out/_internal/schema/refinements/maxLength.d.ts +32 -0
  35. package/out/_internal/schema/refinements/min.d.ts +33 -0
  36. package/out/_internal/schema/refinements/minLength.d.ts +32 -0
  37. package/out/_internal/schema/refinements/notEqual.d.ts +38 -0
  38. package/out/_internal/schema/refinements/notEqualLength.d.ts +38 -0
  39. package/out/_internal/schema/refinements/pattern.d.ts +43 -0
  40. package/out/_internal/schema/refinements/range.d.ts +101 -0
  41. package/out/_internal/schema/roots/alias.d.ts +49 -0
  42. package/out/_internal/schema/roots/basis.d.ts +12 -0
  43. package/out/_internal/schema/roots/domain.d.ts +45 -0
  44. package/out/_internal/schema/roots/intersection.d.ts +72 -0
  45. package/out/_internal/schema/roots/morph.d.ts +59 -0
  46. package/out/_internal/schema/roots/proto.d.ts +42 -0
  47. package/out/_internal/schema/roots/root.d.ts +163 -0
  48. package/out/_internal/schema/roots/union.d.ts +146 -0
  49. package/out/_internal/schema/roots/unit.d.ts +36 -0
  50. package/out/_internal/schema/runtime.d.ts +29 -0
  51. package/out/_internal/schema/runtimeLean.d.ts +2 -0
  52. package/out/_internal/schema/runtimeNone.d.ts +2 -0
  53. package/out/_internal/schema/runtimeNoneLean.d.ts +2 -0
  54. package/out/_internal/schema/scope.d.ts +203 -0
  55. package/out/_internal/schema/shared/codecs.d.ts +5 -0
  56. package/out/_internal/schema/shared/compile.d.ts +144 -0
  57. package/out/_internal/schema/shared/configured.d.ts +14 -0
  58. package/out/_internal/schema/shared/declare.d.ts +100 -0
  59. package/out/_internal/schema/shared/disjoint.d.ts +45 -0
  60. package/out/_internal/schema/shared/enWriters.d.ts +30 -0
  61. package/out/_internal/schema/shared/errorModes.d.ts +25 -0
  62. package/out/_internal/schema/shared/errorWriters.d.ts +34 -0
  63. package/out/_internal/schema/shared/errors.d.ts +264 -0
  64. package/out/_internal/schema/shared/implement.d.ts +154 -0
  65. package/out/_internal/schema/shared/inPlace.d.ts +8 -0
  66. package/out/_internal/schema/shared/issueFeatures.d.ts +38 -0
  67. package/out/_internal/schema/shared/issues.d.ts +261 -0
  68. package/out/_internal/schema/shared/issuesLean.d.ts +80 -0
  69. package/out/_internal/schema/shared/issuesNone.d.ts +22 -0
  70. package/out/_internal/schema/shared/issuesNoneLean.d.ts +20 -0
  71. package/out/_internal/schema/shared/issuesUndetailed.d.ts +25 -0
  72. package/out/_internal/schema/shared/jsonSchema.d.ts +153 -0
  73. package/out/_internal/schema/shared/listed.d.ts +15 -0
  74. package/out/_internal/schema/shared/locale.d.ts +149 -0
  75. package/out/_internal/schema/shared/registry.d.ts +16 -0
  76. package/out/_internal/schema/shared/render.d.ts +3 -0
  77. package/out/_internal/schema/shared/rootApply.d.ts +19 -0
  78. package/out/_internal/schema/shared/sets.d.ts +26 -0
  79. package/out/_internal/schema/shared/standardFailure.d.ts +22 -0
  80. package/out/_internal/schema/shared/standardSchema.d.ts +124 -0
  81. package/out/_internal/schema/shared/toJsonSchema.d.ts +229 -0
  82. package/out/_internal/schema/shared/transform.d.ts +35 -0
  83. package/out/_internal/schema/shared/traversal.d.ts +288 -0
  84. package/out/_internal/schema/shared/utils.d.ts +59 -0
  85. package/out/_internal/schema/structure/index.d.ts +43 -0
  86. package/out/_internal/schema/structure/optional.d.ts +61 -0
  87. package/out/_internal/schema/structure/prop.d.ts +45 -0
  88. package/out/_internal/schema/structure/required.d.ts +49 -0
  89. package/out/_internal/schema/structure/sequence.d.ts +127 -0
  90. package/out/_internal/schema/structure/shared.d.ts +3 -0
  91. package/out/_internal/schema/structure/structure.d.ts +178 -0
  92. package/out/_internal/schema/units.d.ts +123 -0
  93. package/out/_internal/sets/algebra.d.ts +26 -0
  94. package/out/_internal/sets/constraint.d.ts +19 -0
  95. package/out/_internal/sets/engine.d.ts +2 -0
  96. package/out/_internal/sets/formats.d.ts +23 -0
  97. package/out/_internal/sets/fromJsonSchema.d.ts +15 -0
  98. package/out/_internal/sets/implement.d.ts +16 -0
  99. package/out/_internal/sets/index.d.ts +2 -0
  100. package/out/_internal/sets/internal.d.ts +20 -0
  101. package/out/_internal/sets/intersections.d.ts +5 -0
  102. package/out/_internal/sets/kinds.d.ts +3 -0
  103. package/out/_internal/sets/refinements.d.ts +14 -0
  104. package/out/_internal/sets/roots/alias.d.ts +3 -0
  105. package/out/_internal/sets/roots/domain.d.ts +3 -0
  106. package/out/_internal/sets/roots/intersection.d.ts +4 -0
  107. package/out/_internal/sets/roots/morph.d.ts +4 -0
  108. package/out/_internal/sets/roots/proto.d.ts +3 -0
  109. package/out/_internal/sets/roots/union.d.ts +16 -0
  110. package/out/_internal/sets/roots/unit.d.ts +3 -0
  111. package/out/_internal/sets/structure/index.d.ts +3 -0
  112. package/out/_internal/sets/structure/prop.d.ts +8 -0
  113. package/out/_internal/sets/structure/sequence.d.ts +3 -0
  114. package/out/_internal/sets/structure/structure.d.ts +3 -0
  115. package/out/_internal/sets/toJsonSchema.d.ts +25 -0
  116. package/out/_internal/util/arrays.d.ts +130 -0
  117. package/out/_internal/util/clone.d.ts +4 -0
  118. package/out/_internal/util/describe.d.ts +25 -0
  119. package/out/_internal/util/domain.d.ts +49 -0
  120. package/out/_internal/util/errors.d.ts +29 -0
  121. package/out/_internal/util/facts.d.ts +22 -0
  122. package/out/_internal/util/flatMorph.d.ts +41 -0
  123. package/out/_internal/util/formats.d.ts +8 -0
  124. package/out/_internal/util/functions.d.ts +33 -0
  125. package/out/_internal/util/generics.d.ts +65 -0
  126. package/out/_internal/util/get.d.ts +9 -0
  127. package/out/_internal/util/hkt.d.ts +27 -0
  128. package/out/_internal/util/i18n.d.ts +12 -0
  129. package/out/_internal/util/index.d.ts +28 -0
  130. package/out/_internal/util/internal.d.ts +2 -0
  131. package/out/_internal/util/intersections.d.ts +50 -0
  132. package/out/_internal/util/isomorphic.d.ts +8 -0
  133. package/out/_internal/util/keys.d.ts +18 -0
  134. package/out/_internal/util/lazily.d.ts +7 -0
  135. package/out/_internal/util/numbers.d.ts +82 -0
  136. package/out/_internal/util/objectKinds.d.ts +157 -0
  137. package/out/_internal/util/path.d.ts +16 -0
  138. package/out/_internal/util/primitive.d.ts +16 -0
  139. package/out/_internal/util/records.d.ts +173 -0
  140. package/out/_internal/util/registry.d.ts +13 -0
  141. package/out/_internal/util/scanner.d.ts +110 -0
  142. package/out/_internal/util/serialize.d.ts +40 -0
  143. package/out/_internal/util/strings.d.ts +35 -0
  144. package/out/_internal/util/traits.d.ts +89 -0
  145. package/out/_internal/util/unionToTuple.d.ts +14 -0
  146. package/out/_internal/util/weak.d.ts +8 -0
  147. package/out/attributes.d.ts +15 -11
  148. package/out/checkers.d.ts +1 -1
  149. package/out/chunk-22RQSVV3.js +0 -0
  150. package/out/chunk-3HZC67MT.js +965 -0
  151. package/out/chunk-3KBOPH3J.js +1564 -0
  152. package/out/chunk-3SH2BQ4T.js +15 -0
  153. package/out/chunk-46PLKNON.js +126 -0
  154. package/out/{chunk-G45P2CLE.js → chunk-4FTHWK63.js} +6 -1
  155. package/out/{chunk-UK5UGFOX.js → chunk-4HREHNIV.js} +23 -11
  156. package/out/chunk-4NZCLVBD.js +14 -0
  157. package/out/chunk-6FMBO47M.js +7 -0
  158. package/out/chunk-7TALAWYX.js +10 -0
  159. package/out/{chunk-DLWCO4RV.js → chunk-BCYKO54Z.js} +11 -2
  160. package/out/chunk-BDJVONP7.js +168 -0
  161. package/out/{chunk-E3DZXEZK.js → chunk-C2JOL5M2.js} +4 -2
  162. package/out/{chunk-2U2AWCI3.js → chunk-C2V6QPE3.js} +126 -97
  163. package/out/chunk-C3B4IFQL.js +6408 -0
  164. package/out/chunk-CWSF57VM.js +10 -0
  165. package/out/chunk-F5BACUJS.js +7 -0
  166. package/out/{chunk-EVCML554.js → chunk-FWRSDUJ2.js} +14 -5
  167. package/out/chunk-GID3FSQA.js +161 -0
  168. package/out/chunk-I2KLQ2HA.js +22 -0
  169. package/out/chunk-K7SLP5D2.js +84 -0
  170. package/out/chunk-KQPSKGUI.js +9 -0
  171. package/out/chunk-KXOC3JEX.js +8234 -0
  172. package/out/chunk-KXOSUYRA.js +405 -0
  173. package/out/chunk-LHNEY6QW.js +0 -0
  174. package/out/chunk-MTWKGAGO.js +323 -0
  175. package/out/chunk-NU73GNCX.js +170 -0
  176. package/out/{chunk-RAZ3TXOE.js → chunk-P5W67FQH.js} +34 -19
  177. package/out/chunk-PDLTEX6Z.js +1118 -0
  178. package/out/{chunk-VV6YDN2D.js → chunk-QUS4IAXJ.js} +304 -263
  179. package/out/chunk-R7WXIH5P.js +94 -0
  180. package/out/chunk-TACLEIDM.js +95 -0
  181. package/out/chunk-UJJGG4VQ.js +71 -0
  182. package/out/chunk-US6BWOGJ.js +109 -0
  183. package/out/chunk-VMMMOO4R.js +945 -0
  184. package/out/chunk-VYMXHSFR.js +439 -0
  185. package/out/chunk-W2XOI5DY.js +141 -0
  186. package/out/chunk-WC5L5YRP.js +25 -0
  187. package/out/{chunk-NRIGTMPM.js → chunk-WKOSL2G6.js} +4 -1
  188. package/out/chunk-XLG66ZDF.js +0 -0
  189. package/out/{chunk-5U2ZMDNI.js → chunk-XNUAQSJ4.js} +52 -30
  190. package/out/chunk-ZRYEHGSG.js +79 -0
  191. package/out/cli.d.ts +28 -0
  192. package/out/cli.js +636 -0
  193. package/out/codecs.d.ts +6 -5
  194. package/out/codecs.js +23 -7
  195. package/out/config.d.ts +5 -17
  196. package/out/config.js +11 -2
  197. package/out/declare.d.ts +40 -12
  198. package/out/deferred.d.ts +2 -2
  199. package/out/errors.d.ts +1 -1
  200. package/out/errors.js +10 -2
  201. package/out/fn.d.ts +20 -13
  202. package/out/fromJsonSchema.d.ts +18 -0
  203. package/out/generic.d.ts +9 -6
  204. package/out/i18n.d.ts +2 -2
  205. package/out/i18n.js +9 -2
  206. package/out/index.d.ts +16 -7
  207. package/out/index.js +25 -8
  208. package/out/internal.d.ts +4 -0
  209. package/out/internal.js +41 -17
  210. package/out/island.js +22 -6
  211. package/out/islandDependency.js +42 -18
  212. package/out/jsonSchema/infer.d.ts +805 -0
  213. package/out/jsonSchema/validate.d.ts +416 -0
  214. package/out/keywords/Array.d.ts +2 -2
  215. package/out/keywords/builtins.d.ts +3 -3
  216. package/out/keywords/constructors.d.ts +1 -1
  217. package/out/keywords/functions.d.ts +5 -192
  218. package/out/keywords/keywords.d.ts +3 -3
  219. package/out/keywords/number.d.ts +2 -2
  220. package/out/keywords/phrases.d.ts +4 -191
  221. package/out/keywords/string.d.ts +3 -3
  222. package/out/keywords/ts.d.ts +18 -18
  223. package/out/keywords/ts.js +19 -4
  224. package/out/locale.d.ts +6 -2
  225. package/out/locales/de.js +9 -2
  226. package/out/locales/en.js +21 -5
  227. package/out/match.d.ts +13 -10
  228. package/out/module.d.ts +2 -2
  229. package/out/mutatesInput.js +18 -3
  230. package/out/nary.d.ts +220 -194
  231. package/out/parser/ast/bounds.d.ts +2 -2
  232. package/out/parser/ast/default.d.ts +2 -2
  233. package/out/parser/ast/divisor.d.ts +2 -2
  234. package/out/parser/ast/generic.d.ts +2 -2
  235. package/out/parser/ast/infer.d.ts +1 -1
  236. package/out/parser/ast/keyof.d.ts +2 -2
  237. package/out/parser/ast/utils.d.ts +1 -1
  238. package/out/parser/ast/validate.d.ts +2 -2
  239. package/out/parser/definition.d.ts +4 -4
  240. package/out/parser/objectLiteral.d.ts +2 -2
  241. package/out/parser/property.d.ts +2 -2
  242. package/out/parser/reduce/dynamic.d.ts +2 -2
  243. package/out/parser/reduce/shared.d.ts +1 -1
  244. package/out/parser/reduce/static.d.ts +1 -1
  245. package/out/parser/shift/operand/enclosed.d.ts +2 -2
  246. package/out/parser/shift/operand/genericArgs.d.ts +2 -2
  247. package/out/parser/shift/operand/operand.d.ts +1 -1
  248. package/out/parser/shift/operand/unenclosed.d.ts +2 -2
  249. package/out/parser/shift/operand/unresolvable.d.ts +2 -2
  250. package/out/parser/shift/operator/bounds.d.ts +2 -2
  251. package/out/parser/shift/operator/brand.d.ts +2 -2
  252. package/out/parser/shift/operator/default.d.ts +4 -4
  253. package/out/parser/shift/operator/divisor.d.ts +1 -1
  254. package/out/parser/shift/operator/operator.d.ts +1 -1
  255. package/out/parser/shift/tokens.d.ts +1 -1
  256. package/out/parser/string.d.ts +2 -2
  257. package/out/parser/tupleExpressions.d.ts +6 -8
  258. package/out/parser/tupleLiteral.d.ts +2 -2
  259. package/out/precompiled.d.ts +1 -1
  260. package/out/precompiled.js +16 -2
  261. package/out/regex.d.ts +1 -0
  262. package/out/regex.js +2 -0
  263. package/out/runtime.d.ts +10 -8
  264. package/out/runtime.js +6 -4
  265. package/out/runtimeDevelopment.js +70 -52
  266. package/out/schema.d.ts +1 -0
  267. package/out/schema.js +15 -0
  268. package/out/schemaInternal.d.ts +1 -0
  269. package/out/schemaInternal.js +1401 -0
  270. package/out/schemaIssueFeatures.d.ts +1 -0
  271. package/out/schemaRuntime.d.ts +1 -0
  272. package/out/schemaRuntime.js +7 -0
  273. package/out/schemaRuntimeLean.d.ts +1 -0
  274. package/out/schemaRuntimeLean.js +1870 -0
  275. package/out/schemaRuntimeNone.d.ts +1 -0
  276. package/out/schemaRuntimeNone.js +1774 -0
  277. package/out/schemaRuntimeNoneLean.d.ts +1 -0
  278. package/out/schemaRuntimeNoneLean.js +1767 -0
  279. package/out/scope.d.ts +3 -4
  280. package/out/shared/issueFeatures.d.ts +38 -0
  281. package/out/shared/issueFeatures.js +40 -0
  282. package/out/standalone/artifact.d.ts +6 -6
  283. package/out/standalone/baking.d.ts +2 -2
  284. package/out/standalone/combinators.d.ts +1 -1
  285. package/out/standalone/compilers.d.ts +1 -1
  286. package/out/standalone/fallbacks.d.ts +1 -1
  287. package/out/standalone/keys.d.ts +1 -1
  288. package/out/standalone/sites.d.ts +3 -3
  289. package/out/standalone/units.d.ts +1 -1
  290. package/out/standalone/values.d.ts +1 -1
  291. package/out/type.d.ts +6 -6
  292. package/out/util.d.ts +1 -0
  293. package/out/util.js +137 -0
  294. package/out/variants/array.d.ts +6 -6
  295. package/out/variants/base.d.ts +61 -10
  296. package/out/variants/date.d.ts +5 -5
  297. package/out/variants/instantiate.d.ts +1 -1
  298. package/out/variants/number.d.ts +6 -6
  299. package/out/variants/object.d.ts +25 -12
  300. package/out/variants/string.d.ts +8 -8
  301. package/package.json +183 -8
  302. package/skills/arktype/SKILL.md +93 -93
  303. package/skills/arktype/references/migrating.md +144 -158
  304. package/skills/arktype/references/precompile.md +7 -7
  305. package/out/chunk-4CUA5XIP.js +0 -7
  306. package/out/chunk-GPNK5353.js +0 -2529
  307. package/out/chunk-MLKGABMK.js +0 -9
  308. package/out/chunk-PRTMQCHS.js +0 -3
  309. package/out/chunk-R5G57XC7.js +0 -7
  310. package/out/chunk-SWOOCAHN.js +0 -4
  311. package/out/chunk-TAHPKDNM.js +0 -3
  312. package/out/chunk-UETB6YE2.js +0 -14
package/out/config.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import type { arkKind, TypeMeta } from "@ark/schema";
1
+ import type { ArkEnv, arkKind, TypeMeta } from "./_internal/schema/index.js";
2
2
  import type { Ark } from "./keywords/keywords.ts";
3
3
  import type { Locale } from "./locale.ts";
4
- import { type ArkSchemaConfig, type writeUnknownConfigOptionMessage } from "@ark/schema/config";
5
- import type { anyOrNever, ErrorMessage } from "@ark/util";
4
+ import { type ArkSchemaConfig, type writeUnknownConfigOptionMessage } from "./_internal/schema/config.js";
5
+ import type { anyOrNever, ErrorMessage } from "./_internal/util/index.js";
6
6
  export type KeywordConfig = {
7
7
  [k in keyof Ark.flat as parseConfigurableFlatAlias<k, Ark.flat[k]>]?: TypeMeta.Collapsible;
8
8
  };
@@ -19,21 +19,9 @@ export declare const configure: <config extends ArkConfig>(config: validateConfi
19
19
  type validateConfig<config> = {
20
20
  [k in keyof config]: k extends keyof ArkConfig ? config[k] : ErrorMessage<writeUnknownConfigOptionMessage<k & string>>;
21
21
  };
22
- declare global {
23
- export interface ArkEnv {
24
- $(): Ark;
25
- }
26
- }
27
- /**
28
- * This mirrors the global ArkEnv namespace as a local export. We use it instead
29
- * of the global internally due to a bug in twoslash that prevents `ark/docs`
30
- * from building if we refer to the global directly.
31
- *
32
- * If, in the future, docs can build while arktype refers to `ArkEnv.$` directly,
33
- * this can be removed.
34
- */
22
+ /** what strings resolve against: ArkEnv's $ if a program declares one, else Ark */
35
23
  export declare namespace ArkAmbient {
36
- type $ = ReturnType<ArkEnv["$"]>;
24
+ type $ = unknown extends ReturnType<ArkEnv["$"]> ? Ark : ReturnType<ArkEnv["$"]>;
37
25
  type meta = ArkEnv.meta;
38
26
  type prototypes = ArkEnv.prototypes;
39
27
  }
package/out/config.js CHANGED
@@ -1,2 +1,11 @@
1
- export { configure } from "./chunk-NRIGTMPM.js";
2
- import "./chunk-MLKGABMK.js";
1
+ export { configure } from "./chunk-WKOSL2G6.js";
2
+ import "./chunk-KXOSUYRA.js";
3
+ import "./chunk-W2XOI5DY.js";
4
+ import "./chunk-TACLEIDM.js";
5
+ import "./chunk-VYMXHSFR.js";
6
+ import "./chunk-PDLTEX6Z.js";
7
+ import "./chunk-3KBOPH3J.js";
8
+ import "./chunk-ZRYEHGSG.js";
9
+ import "./chunk-3SH2BQ4T.js";
10
+ import "./chunk-3HZC67MT.js";
11
+ import "./chunk-I2KLQ2HA.js";
package/out/declare.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { TypeMeta, UndeclaredKeyBehavior } from "@ark/schema";
2
- import type { anyOrNever, array, Backslash, equals, ErrorMessage, ErrorType, optionalKeyOf, requiredKeyOf, show, unset } from "@ark/util";
1
+ import type { TypeMeta, UndeclaredKeyBehavior } from "./_internal/schema/index.js";
2
+ import type { anyOrNever, array, Backslash, equals, ErrorMessage, ErrorType, optionalKeyOf, requiredKeyOf, show, unset } from "./_internal/util/index.js";
3
3
  import type { distill, Out } from "./attributes.ts";
4
4
  import type { type } from "./keywords/keywords.ts";
5
5
  import type { inferDefinition, TerminalObjectDefinition, ThunkCast } from "./parser/definition.ts";
@@ -9,24 +9,46 @@ import type { TupleExpression } from "./parser/tupleExpressions.ts";
9
9
  import type { bindThis } from "./scope.ts";
10
10
  import type { Type } from "./type.ts";
11
11
  export type DeclarationParser<$> = <preinferred = unset, ctx extends DeclareContext = {}>() => {
12
- type: <const def>(def: [preinferred] extends [unset] ? [
13
- preinferred
14
- ] extends [anyOrNever] ? validateDeclared<preinferred, def, $, ctx> : ErrorMessage<`declare<ExternalType>() requires a generic argument`> : validateDeclared<preinferred, def, $, ctx>) => Type<finalizePreinferred<preinferred, def, $, ctx>, $>;
12
+ type: <const def>(def: [preinferred] extends [anyOrNever] ? validateDeclared<preinferred, def, $, ctx> : [preinferred] extends [unset] ? ErrorMessage<`declare<ExternalType>() requires a generic argument`> : validateDeclared<preinferred, def, $, ctx>) => Type<finalizePreinferred<preinferred, def, $, ctx>, $>;
15
13
  };
16
- type finalizePreinferred<preinferred, def, $, ctx extends DeclareContext> = ctx["side"] extends distill.Side ? ctx["side"] extends "in" ? (In: preinferred) => type.infer.Out<def, $> : (In: type.infer.In<def, $>) => Out<preinferred> : preinferred;
14
+ type finalizePreinferred<preinferred, def, $, ctx extends DeclareContext> = ctx["assignable"] extends true ? inferDefinition<def, $> : ctx["side"] extends distill.Side ? ctx["side"] extends "in" ? (In: preinferred) => Out<type.infer.Out<def, $>> : (In: type.infer.In<def, $>) => Out<preinferred> : preinferred;
17
15
  export type DeclareContext = {
18
16
  side?: "in" | "out";
17
+ /**
18
+ * Check that the definition is assignable to the declared type, rather
19
+ * than equal to it, and keep the type the definition infers.
20
+ *
21
+ * A required key may be required or optional where it's declared optional,
22
+ * an optional key may be left out, and each value may be narrower than
23
+ * the one declared. A key the declared type doesn't name is still an error.
24
+ */
25
+ assignable?: boolean;
19
26
  };
20
27
  export type validateDeclared<declared, def, $, ctx extends DeclareContext> = def extends type.validate<def, $> ? validateInference<def, declared, $, bindThis<def>, ctx> : type.validate<def, $>;
21
28
  type validateInference<def, declared, $, args, ctx extends DeclareContext> = def extends TerminalObjectDefinition | ThunkCast | TupleExpression ? keyof def extends never ? validateObjectInference<def, declared, $, args, ctx> : validateShallowInference<inferDefinition<def, $, args>, declared, ctx> : def extends array ? validateArrayInference<def, declared, $, args, ctx> : def extends object ? validateObjectInference<def, declared, $, args, ctx> : validateShallowInference<inferDefinition<def, $, args>, declared, ctx>;
22
- type validateArrayInference<def extends array, declared, $, args, ctx extends DeclareContext> = declared extends array ? {
29
+ type validateArrayInference<def extends array, declared, $, args, ctx extends DeclareContext> = declaredObjectOf<declared, ctx> extends infer declared extends array ? {
23
30
  [i in keyof declared]: i extends keyof def ? validateInference<def[i], declared[i], $, args, ctx> : declared[i];
24
31
  } : show<declarationMismatch<inferDefinition<def, $, args>, declared>>;
25
- type validateObjectInference<def extends object, declared, $, args, ctx extends DeclareContext> = show<([keyof declared & MetaKey] extends [never] ? validateDeclaredKeys<def, declared, $, args, ctx> : validateEscapedDeclaredKeys<def, declared, $, args, ctx>) & DeclaredObjectSettings>;
32
+ type validateObjectInference<def extends object, declared, $, args, ctx extends DeclareContext> = show<validateObjectKeys<def, declaredObjectOf<declared, ctx>, $, args, ctx> & DeclaredObjectSettings>;
33
+ type declaredObjectOf<declared, ctx extends DeclareContext> = ctx["assignable"] extends true ? Exclude<declared, null | undefined> : declared;
34
+ type validateObjectKeys<def extends object, declared, $, args, ctx extends DeclareContext> = string extends keyof declared ? validateIndexedDeclaredKeys<def, declared, $, args, ctx> : [keyof declared & MetaKey] extends [never] ? validateDeclaredKeys<def, declared, $, args, ctx> : validateEscapedDeclaredKeys<def, declared, $, args, ctx>;
35
+ type validateIndexedDeclaredKeys<def extends object, declared, $, args, ctx extends DeclareContext, literalKey extends keyof declared = literalKeyOf<declared>> = ([literalKey] extends [never] ? unknown : validateObjectKeys<def, Pick<declared, literalKey>, $, args, ctx>) & {
36
+ [k in Exclude<keyof def, literalKey | `${literalKey & string}?` | MetaKey>]: validateInference<def[k], declared[string & keyof declared], $, args, ctx>;
37
+ };
38
+ type literalKeyOf<o> = keyof {
39
+ [k in keyof o as string extends k ? never : number extends k ? never : symbol extends k ? never : k]: 0;
40
+ };
26
41
  type validateDeclaredKeys<def extends object, declared, $, args, ctx extends DeclareContext> = {
27
42
  [k in requiredKeyOf<declared>]: k extends keyof def ? validateInference<def[k], declared[k], $, args, ctx> : declared[k];
28
- } & {
43
+ } & (ctx["assignable"] extends true ? validateAssignableOptionalKeys<def, declared, $, args, ctx> : {
29
44
  [k in optionalKeyOf<declared> & string as declaredOptionalKeySuggestion<k, def>]: declaredOptionalValueSuggestion<def, k, declared, $, args, ctx>;
45
+ });
46
+ type validateAssignableOptionalKeys<def extends object, declared, $, args, ctx extends DeclareContext> = {
47
+ [k in optionalKeyOf<declared> & string as k extends keyof def ? k : `${k}?` extends keyof def ? `${k}?` : k | `${k}?`]?: (k extends keyof def ? k : `${k}?` extends keyof def ? `${k}?` : never) extends infer defKey extends keyof def ? [
48
+ defKey
49
+ ] extends [never] ? declared[k] : validateInference<def[defKey], Required<declared>[k] | ({
50
+ [_ in k]: undefined;
51
+ } extends Pick<declared, k> ? undefined : never), $, args, ctx> : never;
30
52
  };
31
53
  type validateEscapedDeclaredKeys<def extends object, declared, $, args, ctx extends DeclareContext> = {
32
54
  [k in requiredKeyOf<declared> as declaredKey<k>]: declaredKey<k> extends (keyof def) ? validateInference<def[declaredKey<k>], declared[k], $, args, ctx> : declared[k];
@@ -39,9 +61,15 @@ type DeclaredObjectSettings = {
39
61
  };
40
62
  type declaredKey<k> = k extends MetaKey ? `${Backslash}${k}` : k;
41
63
  type declaredOptionalKeySuggestion<k extends string, def> = k extends keyof def ? def[k] extends OptionalPropertyDefinition ? k : `${k}?` : `${k}?`;
42
- type declaredEscapedOptionalValueSuggestion<def, k extends keyof declared & MetaKey, declared, $, args, ctx extends DeclareContext> = def[declaredKey<k> & keyof def] extends OptionalPropertyDefinition ? validateInference<def[declaredKey<k> & keyof def], Required<declared>[k], $, args, ctx> : OptionalPropertyDefinition;
43
- type declaredOptionalValueSuggestion<def, k extends keyof declared & string, declared, $, args, ctx extends DeclareContext> = k extends keyof def ? def[k] extends OptionalPropertyDefinition ? validateInference<def[k], Required<declared>[k], $, args, ctx> : declared[k] : `${k}?` extends keyof def ? validateInference<def[`${k}?`], Required<declared>[k], $, args, ctx> : declared[k];
44
- type validateShallowInference<t, declared, ctx extends DeclareContext, inferred = ctx["side"] extends distill.Side ? distill<t, ctx["side"]> : t> = equals<inferred, declared> extends true ? unknown : show<declarationMismatch<inferred, declared>>;
64
+ type declaredEscapedOptionalValueSuggestion<def, k extends keyof declared & MetaKey, declared, $, args, ctx extends DeclareContext> = def[declaredKey<k> & keyof def] extends OptionalPropertyDefinition ? validateInference<def[declaredKey<k> & keyof def], declaredOptionalValue<declared, k, def[declaredKey<k> & keyof def], $, args>, $, args, ctx> : OptionalPropertyDefinition;
65
+ type declaredOptionalValueSuggestion<def, k extends keyof declared & string, declared, $, args, ctx extends DeclareContext> = k extends keyof def ? def[k] extends OptionalPropertyDefinition ? validateInference<def[k], declaredOptionalValue<declared, k, def[k], $, args>, $, args, ctx> : declared[k] : `${k}?` extends keyof def ? validateInference<def[`${k}?`], declaredOptionalValue<declared, k, def[`${k}?`], $, args>, $, args, ctx> : declared[k];
66
+ type declaredOptionalValue<declared, k extends keyof declared, valueDef, $, args> = undefined extends inferDefinition<valueDef, $, args> ? {
67
+ [_ in k]: undefined;
68
+ } extends Pick<declared, k> ? declared[k] : Required<declared>[k] : Required<declared>[k];
69
+ type validateShallowInference<t, declared, ctx extends DeclareContext, inferred = ctx["side"] extends distill.Side ? distill<t, ctx["side"]> : t> = (ctx["assignable"] extends true ? [
70
+ inferred
71
+ ] extends [declared] ? true : false : isAny<declared> extends true ? unknown extends inferred ? true : false : equals<inferred, declared>) extends true ? unknown : show<declarationMismatch<inferred, declared>>;
72
+ type isAny<t> = 0 extends 1 & t ? true : false;
45
73
  type declarationMismatch<inferred, declared> = ErrorType<{
46
74
  declared: declared;
47
75
  inferred: inferred;
package/out/deferred.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BaseRoot, type GenericRoot } from "@ark/schema";
2
- import { type Dict, type Domain } from "@ark/util";
1
+ import { BaseRoot, type GenericRoot } from "./_internal/schema/index.js";
2
+ import { type Dict, type Domain } from "./_internal/util/index.js";
3
3
  import type { InternalScope } from "./scope.ts";
4
4
  export declare const keywordDomains: Dict<string, Domain>;
5
5
  export declare const deferUnion: (branches: unknown[], $: InternalScope) => BaseRoot | undefined;
package/out/errors.d.ts CHANGED
@@ -1 +1 @@
1
- export { UndetailedErrors } from "@ark/schema/errors";
1
+ export { UndetailedErrors } from "./_internal/schema/errors.js";
package/out/errors.js CHANGED
@@ -1,2 +1,10 @@
1
- export { UndetailedErrors } from "./chunk-TAHPKDNM.js";
2
- import "./chunk-MLKGABMK.js";
1
+ import "./chunk-KQPSKGUI.js";
2
+ export { UndetailedErrors } from "./chunk-R7WXIH5P.js";
3
+ import "./chunk-K7SLP5D2.js";
4
+ import "./chunk-VYMXHSFR.js";
5
+ import "./chunk-PDLTEX6Z.js";
6
+ import "./chunk-3KBOPH3J.js";
7
+ import "./chunk-ZRYEHGSG.js";
8
+ import "./chunk-3SH2BQ4T.js";
9
+ import "./chunk-3HZC67MT.js";
10
+ import "./chunk-I2KLQ2HA.js";
package/out/fn.d.ts CHANGED
@@ -1,14 +1,19 @@
1
- import type { BaseRoot, IntersectionNode } from "@ark/schema";
2
- import { Callable, type applyElementLabels, type conform, type Fn, type get } from "@ark/util";
1
+ import type { BaseRoot, IntersectionNode } from "./_internal/schema/index.js";
2
+ import { Callable, type applyElementLabels, type conform, type Fn, type get, type show } from "./_internal/util/index.js";
3
3
  import type { distill } from "./attributes.ts";
4
4
  import type { type } from "./keywords/keywords.ts";
5
- import type { validateInnerDefinition } from "./parser/definition.ts";
5
+ import type { inferDefinition, validateInnerDefinition } from "./parser/definition.ts";
6
6
  import type { inferTupleLiteral, validateTupleLiteral } from "./parser/tupleLiteral.ts";
7
7
  import type { InternalScope, Scope } from "./scope.ts";
8
8
  import type { Type } from "./type.ts";
9
- export type BaseFnParser<$ = {}> = <const args extends readonly unknown[], paramsT extends readonly unknown[] = inferTupleLiteral<args extends readonly [...infer params, ":", unknown] ? params : args, $, {}>, returnT = args extends readonly [...unknown[], ":", infer returnDef] ? type.infer<returnDef, $> : unknown>(...args: {
9
+ export type BaseFnParser<$ = {}> = <const args extends readonly unknown[], paramsT extends readonly unknown[] = inferTupleLiteral<args extends readonly [...infer params, ":", unknown] ? params : args, $, {}>, returnT = args extends readonly [...unknown[], ":", infer returnDef] ? inferDefinition<returnDef, $> : unknown>(...args: {
10
10
  [i in keyof args]: conform<args[i], get<validateFnArgs<args, $>, i>>;
11
- }) => <internalSignature extends (...args: distill.Out<paramsT>) => distill.In<returnT>, externalSignature extends Fn = (...args: applyElementLabels<distill.In<paramsT>, Required<Parameters<internalSignature>>>) => args extends readonly [...unknown[], ":", unknown] ? distill.Out<returnT> : ReturnType<internalSignature>>(implementation: internalSignature) => TypedFn<externalSignature, $, args extends readonly [...unknown[], ":", unknown] ? Return.introspectable : {}>;
11
+ }) => <internalSignature extends (...args: distill.Out<paramsT>) => distill.In<returnT>, externalSignature extends Fn = (...args: applyElementLabels<distill.In<paramsT>, Required<Parameters<internalSignature>>>) => args extends readonly [...unknown[], ":", unknown] ? distill.Out<returnT> : ReturnType<internalSignature>>(implementation: internalSignature) => TypedFn<externalSignature, $, fnMetaOf<args, paramsT, returnT>>;
12
+ type fnMetaOf<args, paramsT extends readonly unknown[], returnT> = show<(args extends readonly [...unknown[], ":", unknown] ? {
13
+ returns: returnT;
14
+ } : {}) & ([distill.In<paramsT>] extends [paramsT] ? {} : {
15
+ params: paramsT;
16
+ })>;
12
17
  export interface FnParser<$ = {}> extends BaseFnParser<$> {
13
18
  /**
14
19
  * The {@link Scope} in which definitions passed to this function will be parsed.
@@ -27,13 +32,20 @@ export declare class InternalFnParser extends Callable<(...args: unknown[]) => F
27
32
  }
28
33
  export declare namespace TypedFn {
29
34
  type meta = {
30
- introspectableReturn?: true;
35
+ /** its params' Types, where they transform or default */
36
+ params?: readonly unknown[];
37
+ /** its declared return Type */
38
+ returns?: unknown;
31
39
  };
32
40
  }
33
41
  export interface TypedFn<signature extends Fn = Fn, $ = {}, meta extends TypedFn.meta = {}> extends Callable<signature> {
34
42
  expression: string;
35
- params: signature extends Fn<infer params> ? Type<params, $> : never;
36
- returns: Type<meta extends Return.introspectable ? ReturnType<signature> : unknown, $>;
43
+ params: Type<meta extends {
44
+ params: infer params;
45
+ } ? params : Parameters<signature>, $>;
46
+ returns: Type<meta extends {
47
+ returns: infer returns;
48
+ } ? returns : unknown, $>;
37
49
  }
38
50
  export declare class InternalTypedFn extends Callable<(...args: unknown[]) => unknown> {
39
51
  raw: Fn;
@@ -42,11 +54,6 @@ export declare class InternalTypedFn extends Callable<(...args: unknown[]) => un
42
54
  constructor(raw: Fn, params: IntersectionNode, returns: BaseRoot);
43
55
  get expression(): string;
44
56
  }
45
- export declare namespace Return {
46
- interface introspectable {
47
- introspectableReturn: true;
48
- }
49
- }
50
57
  type validateFnArgs<args, $> = args extends readonly unknown[] ? args extends readonly [...infer paramDefs, ":", infer returnDef] ? readonly [
51
58
  ...validateFnParamDefs<paramDefs, $>,
52
59
  ":",
@@ -0,0 +1,18 @@
1
+ import type { StandardJSONSchemaV1 } from "./_internal/schema/index.js";
2
+ import type { inferJsonSchema } from "./jsonSchema/infer.ts";
3
+ import type { validateJsonSchema } from "./jsonSchema/validate.ts";
4
+ import type { Type } from "./type.ts";
5
+ /** a Standard Schema of any vendor, which is read only if it's a Standard JSON Schema */
6
+ export interface StandardSchemaLike {
7
+ readonly "~standard": unknown;
8
+ }
9
+ export type validateFromJsonSchema<schema> = schema extends StandardSchemaLike ? StandardJSONSchemaV1 : validateJsonSchema<schema>;
10
+ export type inferFromJsonSchema<schema> = 0 extends 1 & schema ? unknown : schema extends StandardJSONSchemaV1 ? StandardJSONSchemaV1.InferInput<schema> : inferJsonSchema<schema>;
11
+ export type FromJsonSchema = <const schema, r = Type<inferFromJsonSchema<schema>>>(schema: validateFromJsonSchema<schema>) => r extends infer _ ? _ : never;
12
+ /**
13
+ * The Type of a JSON Schema (an object or a boolean) or a Standard JSON Schema
14
+ * (e.g. a zod schema). A JSON Schema written as a literal is checked and its
15
+ * type inferred; a Standard Schema is read as the JSON Schema of its input.
16
+ * @throws {ParseError} for anything else, or a schema that can't be read exactly
17
+ */
18
+ export declare const fromJsonSchema: FromJsonSchema;
package/out/generic.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { GenericRoot, type arkKind, type BaseParseContext, type GenericAst, type GenericParamAst, type GenericParamDef, type genericParamNames, type LazyGenericBody } from "@ark/schema";
2
- import { type array, type Callable, type conform, type ErrorMessage, type ErrorType, type Hkt, type JsonStructure, type Scanner, type WhitespaceChar } from "@ark/util";
1
+ import { GenericRoot, type arkKind, type BaseParseContext, type GenericAst, type GenericParamAst, type GenericParamDef, type genericParamNames, type LazyGenericBody } from "./_internal/schema/index.js";
2
+ import { type array, type Callable, type conform, type ErrorMessage, type ErrorType, type Hkt, type JsonStructure, type Scanner, type WhitespaceChar } from "./_internal/util/index.js";
3
3
  import type { type } from "./keywords/keywords.ts";
4
4
  import type { inferAstRoot } from "./parser/ast/infer.ts";
5
5
  import type { validateAst } from "./parser/ast/validate.ts";
@@ -11,7 +11,7 @@ import type { Type } from "./type.ts";
11
11
  export type ParameterString<params extends string = string> = `<${params}>`;
12
12
  export type extractParams<s extends ParameterString> = s extends ParameterString<infer params> ? params : never;
13
13
  export type validateParameterString<s extends ParameterString, $> = parseGenericParams<extractParams<s>, $> extends infer e extends ErrorMessage ? e : s;
14
- export type validateGenericArg<arg, param extends GenericParamAst, $> = type.infer<arg, $> extends param[1] ? unknown : ErrorType<[`Invalid argument for ${param[0]}`, expected: param[1]]>;
14
+ export type validateGenericArg<arg, param extends GenericParamAst, $> = inferDefinition<arg, $> extends param[1] ? unknown : ErrorType<[`Invalid argument for ${param[0]}`, expected: param[1]]>;
15
15
  export type GenericInstantiator<params extends array<GenericParamAst>, def, $, args$> = params["length"] extends 1 ? {
16
16
  <const a, r = instantiateGeneric<def, params, [a], $, args$>>(a: type.validate<a, args$> & validateGenericArg<a, params[0], args$>): r extends infer _ ? _ : never;
17
17
  } : params["length"] extends 2 ? {
@@ -53,10 +53,10 @@ export type GenericInstantiator<params extends array<GenericParamAst>, def, $, a
53
53
  type instantiateGeneric<def, params extends array<GenericParamAst>, args, $, args$> = Type<[
54
54
  def
55
55
  ] extends [Hkt] ? Hkt.apply<def, {
56
- [i in keyof args]: type.infer<args[i], args$>;
56
+ [i in keyof args]: inferDefinition<args[i], args$>;
57
57
  }> : inferDefinition<def, $, bindGenericArgs<params, args$, args>>, args$>;
58
58
  type bindGenericArgs<params extends array<GenericParamAst>, $, args> = {
59
- [i in keyof params & `${number}` as params[i][0]]: type.infer<args[i & keyof args], $>;
59
+ [i in keyof params & `${number}` as params[i][0]]: inferDefinition<args[i & keyof args], $>;
60
60
  };
61
61
  type baseGenericResolutions<params extends array<GenericParamAst>, $> = baseGenericConstraints<params> extends infer baseConstraints ? {
62
62
  [k in keyof baseConstraints]: Type<baseConstraints[k], $>;
@@ -102,7 +102,10 @@ type _parseOptionalConstraint<unscanned extends string, name extends string, res
102
102
  ...result,
103
103
  [name, unknown]
104
104
  ], $>;
105
- type genericParamDefToAst<schema extends GenericParamDef, $> = schema extends string ? [schema, unknown] : schema extends readonly [infer name, infer def] ? [name, type.infer<def, $>] : never;
105
+ type genericParamDefToAst<schema extends GenericParamDef, $> = schema extends string ? [schema, unknown] : schema extends readonly [infer name, infer def] ? [
106
+ name,
107
+ inferDefinition<def, $>
108
+ ] : never;
106
109
  export type genericParamDefsToAst<defs extends array<GenericParamDef>, $> = [
107
110
  ...{
108
111
  [i in keyof defs]: genericParamDefToAst<defs[i], $>;
package/out/i18n.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { describeCause, describeMissing, groupByPath, labelOf, printedActualOf, writeKeywordExpected, type PathGroup } from "@ark/schema/i18n";
2
- export { isolate, listPattern, type ListPattern, type ListType } from "@ark/util";
1
+ export { describeCause, describeMissing, groupByPath, labelOf, printedActualOf, writeKeywordExpected, type PathGroup } from "./_internal/schema/i18n.js";
2
+ export { isolate, listPattern, type ListPattern, type ListType } from "./_internal/util/index.js";
package/out/i18n.js CHANGED
@@ -1,2 +1,9 @@
1
- export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, printedActualOf, writeKeywordExpected } from "./chunk-SWOOCAHN.js";
2
- import "./chunk-MLKGABMK.js";
1
+ import "./chunk-22RQSVV3.js";
2
+ import "./chunk-XLG66ZDF.js";
3
+ import "./chunk-NU73GNCX.js";
4
+ export { describeCause, describeMissing, groupByPath, labelOf, writeKeywordExpected } from "./chunk-PDLTEX6Z.js";
5
+ export { printedActualOf } from "./chunk-3KBOPH3J.js";
6
+ import "./chunk-ZRYEHGSG.js";
7
+ export { isolate, listPattern } from "./chunk-3SH2BQ4T.js";
8
+ import "./chunk-3HZC67MT.js";
9
+ import "./chunk-I2KLQ2HA.js";
package/out/index.d.ts CHANGED
@@ -1,13 +1,22 @@
1
- export { annotatingFallback, ArkErrors, byAncestorPath, byPath, flatByPath, firstIssue, flatMessagesByPath, messageIn, Traversal, TraversalError, type ArkError, type ArkErrorCode, type ArkSchemaConfig, type ArkSchemaScopeConfig, type GenericAst, type JsonSchema, type ToJsonSchema } from "@ark/schema";
2
- export { Hkt, inferred, ParseError, type Brand, type Json } from "@ark/util";
3
- export { regex, type Regex } from "arkregex";
4
- export type { Default, distill, Out, TerminallyInferredObject, To } from "./attributes.ts";
5
- export * from "./config.ts";
1
+ export { annotatingFallback, ArkErrors, byAncestorPath, byPath, flatByPath, firstIssue, flatMessagesByPath, messageIn, Traversal, TraversalError, type ArkEnv, type ArkError, type ArkErrorCode, type GenericAst, type JsonSchema, type StandardJSONSchemaV1, type StandardSchemaV1, type StandardTypedV1, type ToJsonSchema } from "./_internal/schema/index.js";
2
+ export { Hkt, inferred, ParseError, type Brand, type Json, type JsonStructure } from "./_internal/util/index.js";
3
+ export { regex, type Regex, type RegexExecArray } from "./_internal/regex/index.js";
4
+ export type { Default, distill, Out, To } from "./attributes.ts";
5
+ export { configure, type ArkConfig, type KeywordConfig } from "./config.ts";
6
+ export type { TypedFn } from "./fn.ts";
7
+ export { fromJsonSchema } from "./fromJsonSchema.ts";
6
8
  export { Generic } from "./generic.ts";
9
+ export type { ParsedFormData } from "./keywords/FormData.ts";
7
10
  export type { Locale } from "./locale.ts";
8
11
  export { ark, declare, define, fn, generic, keywords, match, type, type Ark } from "./keywords/keywords.ts";
12
+ export type { Match, MatchParser } from "./match.ts";
9
13
  export { Module, type BoundModule, type Submodule } from "./module.ts";
10
14
  export type { inferDefinition, validateDefinition } from "./parser/definition.ts";
11
15
  export { scope, type bindThis, type Scope } from "./scope.ts";
12
- export { Type } from "./type.ts";
13
- export type { BaseType } from "./variants/base.ts";
16
+ export { Type, type TypeParser } from "./type.ts";
17
+ export type { ArrayType } from "./variants/array.ts";
18
+ export type { BaseType, BoundType } from "./variants/base.ts";
19
+ export type { DateType } from "./variants/date.ts";
20
+ export type { NumberType } from "./variants/number.ts";
21
+ export type { BaseTypeProp, DefaultedTypeProp, ObjectType } from "./variants/object.ts";
22
+ export type { StringType } from "./variants/string.ts";
package/out/index.js CHANGED
@@ -1,8 +1,25 @@
1
- export { ArkErrors, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath, flatMessagesByPath, inferred, messageIn, regex } from "./chunk-UETB6YE2.js";
2
- export { ark, declare, define, fn, generic, keywords, match, type } from "./chunk-2U2AWCI3.js";
3
- export { Generic, Type, scope } from "./chunk-GPNK5353.js";
4
- import "./chunk-G45P2CLE.js";
5
- export { configure } from "./chunk-NRIGTMPM.js";
6
- import "./chunk-E3DZXEZK.js";
7
- import "./chunk-UK5UGFOX.js";
8
- import "./chunk-MLKGABMK.js";
1
+ export { Module, fromJsonSchema } from "./chunk-WC5L5YRP.js";
2
+ export { regex } from "./chunk-F5BACUJS.js";
3
+ export { inferred } from "./chunk-4NZCLVBD.js";
4
+ export { ark, declare, define, fn, generic, keywords, match, type } from "./chunk-C2V6QPE3.js";
5
+ export { Generic, Type, scope } from "./chunk-C3B4IFQL.js";
6
+ import "./chunk-4FTHWK63.js";
7
+ export { Hkt } from "./chunk-BDJVONP7.js";
8
+ export { configure } from "./chunk-WKOSL2G6.js";
9
+ import "./chunk-C2JOL5M2.js";
10
+ import "./chunk-4HREHNIV.js";
11
+ import "./chunk-KXOC3JEX.js";
12
+ import "./chunk-CWSF57VM.js";
13
+ import "./chunk-UJJGG4VQ.js";
14
+ import "./chunk-US6BWOGJ.js";
15
+ export { annotatingFallback } from "./chunk-KXOSUYRA.js";
16
+ import "./chunk-W2XOI5DY.js";
17
+ import "./chunk-TACLEIDM.js";
18
+ import "./chunk-K7SLP5D2.js";
19
+ import "./chunk-VYMXHSFR.js";
20
+ export { ArkErrors, ThrownErrors as TraversalError, byAncestorPath, byPath, firstIssue, flatByPath, flatMessagesByPath, messageIn } from "./chunk-PDLTEX6Z.js";
21
+ export { Traversal } from "./chunk-3KBOPH3J.js";
22
+ import "./chunk-ZRYEHGSG.js";
23
+ import "./chunk-3SH2BQ4T.js";
24
+ export { ParseError } from "./chunk-3HZC67MT.js";
25
+ import "./chunk-I2KLQ2HA.js";
package/out/internal.d.ts CHANGED
@@ -1,12 +1,16 @@
1
1
  export * from "./index.ts";
2
2
  export * from "./attributes.ts";
3
3
  export * from "./codecs.ts";
4
+ export * from "./config.ts";
4
5
  export * from "./declare.ts";
5
6
  export * from "./deferred.ts";
6
7
  export * from "./errors.ts";
7
8
  export * from "./fn.ts";
9
+ export * from "./fromJsonSchema.ts";
8
10
  export * from "./generic.ts";
9
11
  export * from "./i18n.ts";
12
+ export * from "./jsonSchema/infer.ts";
13
+ export * from "./jsonSchema/validate.ts";
10
14
  export * from "./keywords/Array.ts";
11
15
  export * from "./keywords/builtins.ts";
12
16
  export * from "./keywords/constructors.ts";
package/out/internal.js CHANGED
@@ -1,17 +1,41 @@
1
- export { ConfiguredWriter, DataParts, StandaloneArtifact, addIssueFeatures, appendPath, appliedSignature, assertBakeableJsonSchema, assertDescribed, assertReportsIssues, bakedRootsOf, bakingOf, basesOf, bindingsOf, boundApplierOf, calledMembersOf, canPipe, cellPrefix, cellSetterOf, cellSpecifierOf, collectDefaults, combines, compiledForSize, contentKeyOf, contentNodesOf, creatorSourceOf, declares, defaultBakedLimit, defaultMembers, defaultedNodeKeys, discriminantContextOf, encodeKey, failureSites, failureSources, fallbackCodes, forwardedOf, frozen, fusedApplierOf, heldSpecifier, holdsDefaults, holdsLocal, holdsObjectMeta, holdsOnlyMeta, holeNameIn, holeNamePattern, internsByHolder, introspectionMembers, invalidErrorsOf, isChecker, isCheckerIn, isCreatedByRuntime, isDescribed, isHole, isInlineSite, isKeyword, isLiteralSite, isPlainLiteral, isReadByName, isSharedUnit, isTypedFn, isVariadicArray, isWriting, issueContextOf, issueSite, issueSiteOf, jsonVariantOf, keyOf, keywordMetas, kindNameOf, listedIssueOf, listsBranches, madeApplierOf, mergeUnits, missingDescriptionOf, namesReadBy, noInlineOf, noIssueFeatures, originalOf, partsOf, preciseFormOf, precompileStandalone, precompileStandaloneModules, printablePrimitive, printedHoleNamePattern, raisedWritersByCode, raisesNothing, raisingKeys, readWritten, receiverPrefix, refNameOf, registeredNameAt, returnedOf, rootUnitsOf, runtimeImport, runtimeKeyOf, runtimePathsByValue, shapedForSize, totalBaked, traceFallbacks, traversalKeyOf, uncountedJsonOf, unifies, unionKeySiteOf, unitOf, wholeReads, withoutStrings, writeBakedLimitMessage, writeCombinator, writeDependencies, writeFixConfig, writeFunction, writeId, writeImports, writeLazyRead, writeModule, writeReplay, writeScope, writeSections, writeSiteOf, writeUnprecompilableMessage, writeValue, writtenAttributesOf, writtenByUnits, writtenSelectedOf } from "./chunk-VV6YDN2D.js";
2
- import "./chunk-5U2ZMDNI.js";
3
- export { registerPrecompiledUnits } from "./chunk-PRTMQCHS.js";
4
- export { ArkErrors, BoundModule, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath, flatMessagesByPath, inferred, messageIn, regex } from "./chunk-UETB6YE2.js";
5
- export { codec } from "./chunk-EVCML554.js";
6
- export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, iso8601Matcher, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-2U2AWCI3.js";
7
- export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, arrayIsNotGenericHint, chainedAtMessage, checkWrittenIntersection, comparatorStartChars, comparators, defaultablePostOptionalMessage, deferDefinition, deferUnion, deferUnits, deferredRecord, doubleAtMessage, emptyGenericParameterMessage, enclosingChar, enclosingLiteralTokens, enclosingQuote, enclosingRegexTokens, enclosingTokens, extractDateLiteralSource, finalizingLookaheads, foreignAliases, fullStringParse, getBoundKinds, incompleteArrayTokenMessage, invalidDefaultableKeyKindMessage, invalidOptionalKeyKindMessage, invertedComparators, isDateLiteral, keywordDomains, keywordModule, limitOf, lookaheadIsFinalizing, maxComparators, maybeParseTupleExpression, minComparators, multipleVariadicMesage, nonLeadingSpreadError, object, optionalOrDefaultableAfterVariadicMessage, parseBound, parseBrand, parseDefault, parseDivisor, parseEnclosed, parseGenericArgs, parseGenericInstantiation, parseGenericParamName, parseInnerDefinition, parseKeyOfTuple, parseMorphTuple, parseNarrowTuple, parseObject, parseObjectLiteral, parseOperand, parseOperator, parseProperty, parseRightBound, parseString, parseTuple, parseTupleLiteral, parseUnenclosed, parseUntilFinalizer, preparseKey, requiredPostOptionalMessage, scope, shallowDefaultableMessage, shallowOptionalMessage, shiftComparator, shiftUntilTerminator, spreadDefaultableMessage, spreadOptionalMessage, terminatingChars, tsGenericDefinitions, tsKeywordDefinitions, unknown, untilLookaheadIsClosing, writeAsyncStandardSchemaMessage, writeBadDefinitionTypeMessage, writeDoubleRightBoundMessage, writeExpressionExpectedMessage, writeIncompatibleRangeMessage, writeInvalidConstructorMessage, writeInvalidDivisorMessage, writeInvalidGenericArgCountMessage, writeInvalidLimitMessage, writeInvalidSpreadTypeMessage, writeInvalidUndeclaredBehaviorMessage, writeMalformedFunctionalExpressionMessage, writeMissingOperandMessage, writeMissingRightOperandMessage, writeMultipleLeftBoundsMessage, writeNonArraySpreadMessage, writeNonLiteralDefaultMessage, writeOpenRangeMessage, writeOptionalIndexKeyMessage, writeParameterizedGenericKeyMessage, writePrefixedPrivateReferenceMessage, writeUnexpectedCharacterMessage, writeUnpairableComparatorMessage, writeUnresolvableHint, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-GPNK5353.js";
8
- export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-G45P2CLE.js";
9
- export { configure } from "./chunk-NRIGTMPM.js";
10
- export { UndetailedErrors } from "./chunk-TAHPKDNM.js";
11
- export { de } from "./chunk-RAZ3TXOE.js";
12
- export { en } from "./chunk-4CUA5XIP.js";
13
- export { keywordMeta, keywordPhrases } from "./chunk-E3DZXEZK.js";
14
- export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, printedActualOf, writeKeywordExpected } from "./chunk-SWOOCAHN.js";
15
- import "./chunk-DLWCO4RV.js";
16
- export { capitalizeString, emptyCollectionDefaults, epochDescriptions, isEpochString, isJsonString, isLuhnValid, isParsableDate, isParsableUrl, isRegexPattern, keepFormatted, lowercaseString, maxEpoch, normalizationsByForm, parseDate, parseEpoch, parseFormData, parseInteger, parseIsoDate, parseJson, parseNumeric, parseUrl, parsesFinite, raisedErrorPhrases, stringifyJson, trimString, uppercaseString, writeEpoch, writeIsoDate, writeJsonSyntaxErrorMessage, writeUrl } from "./chunk-UK5UGFOX.js";
17
- import "./chunk-MLKGABMK.js";
1
+ export { ConfiguredWriter, DataParts, StandaloneArtifact, addIssueFeatures, appendPath, appliedSignature, assertBakeableJsonSchema, assertDescribed, assertReportsIssues, bakedRootsOf, bakingOf, basesOf, bindingsOf, boundApplierOf, calledMembersOf, canPipe, cellPrefix, cellSetterOf, cellSpecifierOf, collectDefaults, combines, compiledForSize, contentKeyOf, contentNodesOf, creatorSourceOf, declares, defaultBakedLimit, defaultMembers, defaultedNodeKeys, discriminantContextOf, encodeKey, failureSites, failureSources, fallbackCodes, forwardedOf, frozen, fusedApplierOf, heldSpecifier, holdsDefaults, holdsLocal, holdsObjectMeta, holdsOnlyMeta, holeNameIn, holeNamePattern, internsByHolder, introspectionMembers, invalidErrorsOf, isChecker, isCheckerIn, isCreatedByRuntime, isDescribed, isHole, isInlineSite, isKeyword, isLiteralSite, isPlainLiteral, isReadByName, isSharedUnit, isTypedFn, isVariadicArray, isWriting, issueContextOf, issueSite, issueSiteOf, jsonVariantOf, keyOf, keywordMetas, kindNameOf, listedIssueOf, listsBranches, madeApplierOf, mergeUnits, missingDescriptionOf, namesReadBy, noInlineOf, noIssueFeatures, originalOf, partsOf, preciseFormOf, precompileStandalone, precompileStandaloneModules, printablePrimitive, printedHoleNamePattern, raisedWritersByCode, raisesNothing, raisingKeys, readWritten, receiverPrefix, refNameOf, registeredNameAt, returnedOf, rootUnitsOf, runtimeImport, runtimeKeyOf, runtimePathsByValue, shapedForSize, totalBaked, traceFallbacks, traversalKeyOf, uncountedJsonOf, unifies, unionKeySiteOf, unitOf, wholeReads, withoutStrings, writeBakedLimitMessage, writeCombinator, writeDependencies, writeFixConfig, writeFunction, writeId, writeImports, writeLazyRead, writeModule, writeReplay, writeScope, writeSections, writeSiteOf, writeUnprecompilableMessage, writeValue, writtenAttributesOf, writtenByUnits, writtenSelectedOf } from "./chunk-QUS4IAXJ.js";
2
+ import "./chunk-LHNEY6QW.js";
3
+ import "./chunk-XNUAQSJ4.js";
4
+ import "./chunk-VMMMOO4R.js";
5
+ import "./chunk-46PLKNON.js";
6
+ export { BoundModule, Module, fromJsonSchema } from "./chunk-WC5L5YRP.js";
7
+ export { regex } from "./chunk-F5BACUJS.js";
8
+ export { inferred } from "./chunk-4NZCLVBD.js";
9
+ export { codec } from "./chunk-FWRSDUJ2.js";
10
+ import "./chunk-GID3FSQA.js";
11
+ export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-C2V6QPE3.js";
12
+ export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, arrayIsNotGenericHint, assertTupleArity, chainedAtMessage, checkWrittenIntersection, comparatorStartChars, comparators, defaultablePostOptionalMessage, deferDefinition, deferUnion, deferUnits, deferredRecord, doubleAtMessage, emptyGenericParameterMessage, enclosingChar, enclosingLiteralTokens, enclosingQuote, enclosingRegexTokens, enclosingTokens, extractDateLiteralSource, finalizingLookaheads, foreignAliases, fullStringParse, getBoundKinds, incompleteArrayTokenMessage, invalidDefaultableKeyKindMessage, invalidOptionalKeyKindMessage, invertedComparators, isDateLiteral, keywordDomains, keywordModule, limitOf, lookaheadIsFinalizing, maxComparators, maybeParseTupleExpression, minComparators, multipleVariadicMesage, nonLeadingSpreadError, object, optionalOrDefaultableAfterVariadicMessage, parseBound, parseBrand, parseDefault, parseDivisor, parseEnclosed, parseGenericArgs, parseGenericInstantiation, parseGenericParamName, parseInnerDefinition, parseKeyOfTuple, parseMorphTuple, parseNarrowTuple, parseObject, parseObjectLiteral, parseOperand, parseOperator, parseProperty, parseRightBound, parseString, parseTuple, parseTupleLiteral, parseUnenclosed, parseUntilFinalizer, preparseKey, requiredPostOptionalMessage, scope, shallowDefaultableMessage, shallowOptionalMessage, shiftComparator, shiftUntilTerminator, spreadDefaultableMessage, spreadOptionalMessage, terminatingChars, tsGenericDefinitions, tsKeywordDefinitions, unknown, untilLookaheadIsClosing, writeAsyncStandardSchemaMessage, writeBadDefinitionTypeMessage, writeDoubleRightBoundMessage, writeExpressionExpectedMessage, writeIncompatibleRangeMessage, writeInvalidConstructorMessage, writeInvalidDivisorMessage, writeInvalidGenericArgCountMessage, writeInvalidLimitMessage, writeInvalidSpreadTypeMessage, writeInvalidUndeclaredBehaviorMessage, writeMalformedFunctionalExpressionMessage, writeMissingOperandMessage, writeMissingRightOperandMessage, writeMultipleLeftBoundsMessage, writeNonArraySpreadMessage, writeNonLiteralDefaultMessage, writeOpenRangeMessage, writeOptionalIndexKeyMessage, writeParameterizedGenericKeyMessage, writePrefixedPrivateReferenceMessage, writeUnexpectedCharacterMessage, writeUnexpectedTupleElementsMessage, writeUnpairableComparatorMessage, writeUnresolvableHint, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-C3B4IFQL.js";
13
+ export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-4FTHWK63.js";
14
+ export { Hkt } from "./chunk-BDJVONP7.js";
15
+ export { configure } from "./chunk-WKOSL2G6.js";
16
+ import "./chunk-KQPSKGUI.js";
17
+ export { UndetailedErrors } from "./chunk-R7WXIH5P.js";
18
+ export { de } from "./chunk-P5W67FQH.js";
19
+ export { en } from "./chunk-7TALAWYX.js";
20
+ export { keywordMeta, keywordPhrases } from "./chunk-C2JOL5M2.js";
21
+ import "./chunk-22RQSVV3.js";
22
+ import "./chunk-XLG66ZDF.js";
23
+ import "./chunk-NU73GNCX.js";
24
+ import "./chunk-BCYKO54Z.js";
25
+ import "./chunk-MTWKGAGO.js";
26
+ export { capitalizeString, emptyCollectionDefaults, epochDescriptions, isEpochString, isJsonString, isLuhnValid, isParsableDate, isParsableUrl, isRegexPattern, keepFormatted, lowercaseString, maxEpoch, normalizationsByForm, parseDate, parseEpoch, parseFormData, parseInteger, parseIsoDate, parseJson, parseNumeric, parseUrl, parsesFinite, raisedErrorPhrases, stringifyJson, trimString, uppercaseString, writeEpoch, writeIsoDate, writeUrl } from "./chunk-4HREHNIV.js";
27
+ export { registerPrecompiledUnits } from "./chunk-KXOC3JEX.js";
28
+ import "./chunk-CWSF57VM.js";
29
+ import "./chunk-UJJGG4VQ.js";
30
+ export { iso8601Matcher } from "./chunk-US6BWOGJ.js";
31
+ export { annotatingFallback } from "./chunk-KXOSUYRA.js";
32
+ import "./chunk-W2XOI5DY.js";
33
+ import "./chunk-TACLEIDM.js";
34
+ import "./chunk-K7SLP5D2.js";
35
+ import "./chunk-VYMXHSFR.js";
36
+ export { ArkErrors, ThrownErrors as TraversalError, byAncestorPath, byPath, describeCause, describeMissing, firstIssue, flatByPath, flatMessagesByPath, groupByPath, labelOf, messageIn, writeKeywordExpected } from "./chunk-PDLTEX6Z.js";
37
+ export { Traversal, printedActualOf } from "./chunk-3KBOPH3J.js";
38
+ import "./chunk-ZRYEHGSG.js";
39
+ export { isolate, listPattern } from "./chunk-3SH2BQ4T.js";
40
+ export { ParseError } from "./chunk-3HZC67MT.js";
41
+ import "./chunk-I2KLQ2HA.js";
package/out/island.js CHANGED
@@ -1,6 +1,22 @@
1
- import "./chunk-R5G57XC7.js";
2
- import "./chunk-NRIGTMPM.js";
3
- import "./chunk-TAHPKDNM.js";
4
- import "./chunk-DLWCO4RV.js";
5
- import "./chunk-UK5UGFOX.js";
6
- import "./chunk-MLKGABMK.js";
1
+ import "./chunk-6FMBO47M.js";
2
+ import "./chunk-WKOSL2G6.js";
3
+ import "./chunk-KQPSKGUI.js";
4
+ import "./chunk-R7WXIH5P.js";
5
+ import "./chunk-BCYKO54Z.js";
6
+ import "./chunk-MTWKGAGO.js";
7
+ import "./chunk-4HREHNIV.js";
8
+ import "./chunk-KXOC3JEX.js";
9
+ import "./chunk-CWSF57VM.js";
10
+ import "./chunk-UJJGG4VQ.js";
11
+ import "./chunk-US6BWOGJ.js";
12
+ import "./chunk-KXOSUYRA.js";
13
+ import "./chunk-W2XOI5DY.js";
14
+ import "./chunk-TACLEIDM.js";
15
+ import "./chunk-K7SLP5D2.js";
16
+ import "./chunk-VYMXHSFR.js";
17
+ import "./chunk-PDLTEX6Z.js";
18
+ import "./chunk-3KBOPH3J.js";
19
+ import "./chunk-ZRYEHGSG.js";
20
+ import "./chunk-3SH2BQ4T.js";
21
+ import "./chunk-3HZC67MT.js";
22
+ import "./chunk-I2KLQ2HA.js";
@@ -1,18 +1,42 @@
1
- export { ConfiguredWriter, DataParts, StandaloneArtifact, addIssueFeatures, appendPath, appliedSignature, assertBakeableJsonSchema, assertDescribed, assertReportsIssues, bakedRootsOf, bakingOf, basesOf, bindingsOf, boundApplierOf, calledMembersOf, canPipe, cellPrefix, cellSetterOf, cellSpecifierOf, collectDefaults, combines, compiledForSize, contentKeyOf, contentNodesOf, creatorSourceOf, declares, defaultBakedLimit, defaultMembers, defaultedNodeKeys, discriminantContextOf, encodeKey, failureSites, failureSources, fallbackCodes, forwardedOf, frozen, fusedApplierOf, heldSpecifier, holdsDefaults, holdsLocal, holdsObjectMeta, holdsOnlyMeta, holeNameIn, holeNamePattern, internsByHolder, introspectionMembers, invalidErrorsOf, isChecker, isCheckerIn, isCreatedByRuntime, isDescribed, isHole, isInlineSite, isKeyword, isLiteralSite, isPlainLiteral, isReadByName, isSharedUnit, isTypedFn, isVariadicArray, isWriting, issueContextOf, issueSite, issueSiteOf, jsonVariantOf, keyOf, keywordMetas, kindNameOf, listedIssueOf, listsBranches, madeApplierOf, mergeUnits, missingDescriptionOf, namesReadBy, noInlineOf, noIssueFeatures, originalOf, partsOf, preciseFormOf, precompileStandalone, precompileStandaloneModules, printablePrimitive, printedHoleNamePattern, raisedWritersByCode, raisesNothing, raisingKeys, readWritten, receiverPrefix, refNameOf, registeredNameAt, returnedOf, rootUnitsOf, runtimeImport, runtimeKeyOf, runtimePathsByValue, shapedForSize, totalBaked, traceFallbacks, traversalKeyOf, uncountedJsonOf, unifies, unionKeySiteOf, unitOf, wholeReads, withoutStrings, writeBakedLimitMessage, writeCombinator, writeDependencies, writeFixConfig, writeFunction, writeId, writeImports, writeLazyRead, writeModule, writeReplay, writeScope, writeSections, writeSiteOf, writeUnprecompilableMessage, writeValue, writtenAttributesOf, writtenByUnits, writtenSelectedOf } from "./chunk-VV6YDN2D.js";
2
- import "./chunk-5U2ZMDNI.js";
3
- export { registerPrecompiledUnits } from "./chunk-PRTMQCHS.js";
4
- import "./chunk-R5G57XC7.js";
5
- export { ArkErrors, BoundModule, Hkt, Module, ParseError, Traversal, TraversalError, annotatingFallback, byAncestorPath, byPath, firstIssue, flatByPath, flatMessagesByPath, inferred, messageIn, regex } from "./chunk-UETB6YE2.js";
6
- export { codec } from "./chunk-EVCML554.js";
7
- export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, iso8601Matcher, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-2U2AWCI3.js";
8
- export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, arrayIsNotGenericHint, chainedAtMessage, checkWrittenIntersection, comparatorStartChars, comparators, defaultablePostOptionalMessage, deferDefinition, deferUnion, deferUnits, deferredRecord, doubleAtMessage, emptyGenericParameterMessage, enclosingChar, enclosingLiteralTokens, enclosingQuote, enclosingRegexTokens, enclosingTokens, extractDateLiteralSource, finalizingLookaheads, foreignAliases, fullStringParse, getBoundKinds, incompleteArrayTokenMessage, invalidDefaultableKeyKindMessage, invalidOptionalKeyKindMessage, invertedComparators, isDateLiteral, keywordDomains, keywordModule, limitOf, lookaheadIsFinalizing, maxComparators, maybeParseTupleExpression, minComparators, multipleVariadicMesage, nonLeadingSpreadError, object, optionalOrDefaultableAfterVariadicMessage, parseBound, parseBrand, parseDefault, parseDivisor, parseEnclosed, parseGenericArgs, parseGenericInstantiation, parseGenericParamName, parseInnerDefinition, parseKeyOfTuple, parseMorphTuple, parseNarrowTuple, parseObject, parseObjectLiteral, parseOperand, parseOperator, parseProperty, parseRightBound, parseString, parseTuple, parseTupleLiteral, parseUnenclosed, parseUntilFinalizer, preparseKey, requiredPostOptionalMessage, scope, shallowDefaultableMessage, shallowOptionalMessage, shiftComparator, shiftUntilTerminator, spreadDefaultableMessage, spreadOptionalMessage, terminatingChars, tsGenericDefinitions, tsKeywordDefinitions, unknown, untilLookaheadIsClosing, writeAsyncStandardSchemaMessage, writeBadDefinitionTypeMessage, writeDoubleRightBoundMessage, writeExpressionExpectedMessage, writeIncompatibleRangeMessage, writeInvalidConstructorMessage, writeInvalidDivisorMessage, writeInvalidGenericArgCountMessage, writeInvalidLimitMessage, writeInvalidSpreadTypeMessage, writeInvalidUndeclaredBehaviorMessage, writeMalformedFunctionalExpressionMessage, writeMissingOperandMessage, writeMissingRightOperandMessage, writeMultipleLeftBoundsMessage, writeNonArraySpreadMessage, writeNonLiteralDefaultMessage, writeOpenRangeMessage, writeOptionalIndexKeyMessage, writeParameterizedGenericKeyMessage, writePrefixedPrivateReferenceMessage, writeUnexpectedCharacterMessage, writeUnpairableComparatorMessage, writeUnresolvableHint, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-GPNK5353.js";
9
- export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-G45P2CLE.js";
10
- export { configure } from "./chunk-NRIGTMPM.js";
11
- export { UndetailedErrors } from "./chunk-TAHPKDNM.js";
12
- export { de } from "./chunk-RAZ3TXOE.js";
13
- export { en } from "./chunk-4CUA5XIP.js";
14
- export { keywordMeta, keywordPhrases } from "./chunk-E3DZXEZK.js";
15
- export { describeCause, describeMissing, groupByPath, isolate, labelOf, listPattern, printedActualOf, writeKeywordExpected } from "./chunk-SWOOCAHN.js";
16
- import "./chunk-DLWCO4RV.js";
17
- export { capitalizeString, emptyCollectionDefaults, epochDescriptions, isEpochString, isJsonString, isLuhnValid, isParsableDate, isParsableUrl, isRegexPattern, keepFormatted, lowercaseString, maxEpoch, normalizationsByForm, parseDate, parseEpoch, parseFormData, parseInteger, parseIsoDate, parseJson, parseNumeric, parseUrl, parsesFinite, raisedErrorPhrases, stringifyJson, trimString, uppercaseString, writeEpoch, writeIsoDate, writeJsonSyntaxErrorMessage, writeUrl } from "./chunk-UK5UGFOX.js";
18
- import "./chunk-MLKGABMK.js";
1
+ import "./chunk-6FMBO47M.js";
2
+ export { ConfiguredWriter, DataParts, StandaloneArtifact, addIssueFeatures, appendPath, appliedSignature, assertBakeableJsonSchema, assertDescribed, assertReportsIssues, bakedRootsOf, bakingOf, basesOf, bindingsOf, boundApplierOf, calledMembersOf, canPipe, cellPrefix, cellSetterOf, cellSpecifierOf, collectDefaults, combines, compiledForSize, contentKeyOf, contentNodesOf, creatorSourceOf, declares, defaultBakedLimit, defaultMembers, defaultedNodeKeys, discriminantContextOf, encodeKey, failureSites, failureSources, fallbackCodes, forwardedOf, frozen, fusedApplierOf, heldSpecifier, holdsDefaults, holdsLocal, holdsObjectMeta, holdsOnlyMeta, holeNameIn, holeNamePattern, internsByHolder, introspectionMembers, invalidErrorsOf, isChecker, isCheckerIn, isCreatedByRuntime, isDescribed, isHole, isInlineSite, isKeyword, isLiteralSite, isPlainLiteral, isReadByName, isSharedUnit, isTypedFn, isVariadicArray, isWriting, issueContextOf, issueSite, issueSiteOf, jsonVariantOf, keyOf, keywordMetas, kindNameOf, listedIssueOf, listsBranches, madeApplierOf, mergeUnits, missingDescriptionOf, namesReadBy, noInlineOf, noIssueFeatures, originalOf, partsOf, preciseFormOf, precompileStandalone, precompileStandaloneModules, printablePrimitive, printedHoleNamePattern, raisedWritersByCode, raisesNothing, raisingKeys, readWritten, receiverPrefix, refNameOf, registeredNameAt, returnedOf, rootUnitsOf, runtimeImport, runtimeKeyOf, runtimePathsByValue, shapedForSize, totalBaked, traceFallbacks, traversalKeyOf, uncountedJsonOf, unifies, unionKeySiteOf, unitOf, wholeReads, withoutStrings, writeBakedLimitMessage, writeCombinator, writeDependencies, writeFixConfig, writeFunction, writeId, writeImports, writeLazyRead, writeModule, writeReplay, writeScope, writeSections, writeSiteOf, writeUnprecompilableMessage, writeValue, writtenAttributesOf, writtenByUnits, writtenSelectedOf } from "./chunk-QUS4IAXJ.js";
3
+ import "./chunk-LHNEY6QW.js";
4
+ import "./chunk-XNUAQSJ4.js";
5
+ import "./chunk-VMMMOO4R.js";
6
+ import "./chunk-46PLKNON.js";
7
+ export { BoundModule, Module, fromJsonSchema } from "./chunk-WC5L5YRP.js";
8
+ export { regex } from "./chunk-F5BACUJS.js";
9
+ export { inferred } from "./chunk-4NZCLVBD.js";
10
+ export { codec } from "./chunk-FWRSDUJ2.js";
11
+ import "./chunk-GID3FSQA.js";
12
+ export { NFC, NFD, NFKC, NFKD, TypedArray, ark, arkArray, arkBuiltins, arkFormData, arkPrototypes, builtinDefinitions, capitalize, creditCard, declare, define, epoch, fn, generic, integer, ip, json, keywords, match, normalize, normalizedForms, number, prototypeDefinitions, regexStringNode, schema, string, stringDate, stringInteger, stringNumeric, tryParseDatePattern, type, url, uuid } from "./chunk-C2V6QPE3.js";
13
+ export { $arkTypeRegistry, Generic, InternalChainedMatchParser, InternalMatchParser, InternalScope, InternalTypeParser, RecordHkt, RuntimeState, Scope, Type, arkTsGenerics, arkTsKeywords, arrayIsNotGenericHint, assertTupleArity, chainedAtMessage, checkWrittenIntersection, comparatorStartChars, comparators, defaultablePostOptionalMessage, deferDefinition, deferUnion, deferUnits, deferredRecord, doubleAtMessage, emptyGenericParameterMessage, enclosingChar, enclosingLiteralTokens, enclosingQuote, enclosingRegexTokens, enclosingTokens, extractDateLiteralSource, finalizingLookaheads, foreignAliases, fullStringParse, getBoundKinds, incompleteArrayTokenMessage, invalidDefaultableKeyKindMessage, invalidOptionalKeyKindMessage, invertedComparators, isDateLiteral, keywordDomains, keywordModule, limitOf, lookaheadIsFinalizing, maxComparators, maybeParseTupleExpression, minComparators, multipleVariadicMesage, nonLeadingSpreadError, object, optionalOrDefaultableAfterVariadicMessage, parseBound, parseBrand, parseDefault, parseDivisor, parseEnclosed, parseGenericArgs, parseGenericInstantiation, parseGenericParamName, parseInnerDefinition, parseKeyOfTuple, parseMorphTuple, parseNarrowTuple, parseObject, parseObjectLiteral, parseOperand, parseOperator, parseProperty, parseRightBound, parseString, parseTuple, parseTupleLiteral, parseUnenclosed, parseUntilFinalizer, preparseKey, requiredPostOptionalMessage, scope, shallowDefaultableMessage, shallowOptionalMessage, shiftComparator, shiftUntilTerminator, spreadDefaultableMessage, spreadOptionalMessage, terminatingChars, tsGenericDefinitions, tsKeywordDefinitions, unknown, untilLookaheadIsClosing, writeAsyncStandardSchemaMessage, writeBadDefinitionTypeMessage, writeDoubleRightBoundMessage, writeExpressionExpectedMessage, writeIncompatibleRangeMessage, writeInvalidConstructorMessage, writeInvalidDivisorMessage, writeInvalidGenericArgCountMessage, writeInvalidLimitMessage, writeInvalidSpreadTypeMessage, writeInvalidUndeclaredBehaviorMessage, writeMalformedFunctionalExpressionMessage, writeMissingOperandMessage, writeMissingRightOperandMessage, writeMultipleLeftBoundsMessage, writeNonArraySpreadMessage, writeNonLiteralDefaultMessage, writeOpenRangeMessage, writeOptionalIndexKeyMessage, writeParameterizedGenericKeyMessage, writePrefixedPrivateReferenceMessage, writeUnexpectedCharacterMessage, writeUnexpectedTupleElementsMessage, writeUnpairableComparatorMessage, writeUnresolvableHint, writeUnresolvedFilterMessage, writeUnterminatedEnclosedMessage } from "./chunk-C3B4IFQL.js";
14
+ export { InternalFnParser, InternalTypedFn, badFnReturnTypeMessage } from "./chunk-4FTHWK63.js";
15
+ export { Hkt } from "./chunk-BDJVONP7.js";
16
+ export { configure } from "./chunk-WKOSL2G6.js";
17
+ import "./chunk-KQPSKGUI.js";
18
+ export { UndetailedErrors } from "./chunk-R7WXIH5P.js";
19
+ export { de } from "./chunk-P5W67FQH.js";
20
+ export { en } from "./chunk-7TALAWYX.js";
21
+ export { keywordMeta, keywordPhrases } from "./chunk-C2JOL5M2.js";
22
+ import "./chunk-22RQSVV3.js";
23
+ import "./chunk-XLG66ZDF.js";
24
+ import "./chunk-NU73GNCX.js";
25
+ import "./chunk-BCYKO54Z.js";
26
+ import "./chunk-MTWKGAGO.js";
27
+ export { capitalizeString, emptyCollectionDefaults, epochDescriptions, isEpochString, isJsonString, isLuhnValid, isParsableDate, isParsableUrl, isRegexPattern, keepFormatted, lowercaseString, maxEpoch, normalizationsByForm, parseDate, parseEpoch, parseFormData, parseInteger, parseIsoDate, parseJson, parseNumeric, parseUrl, parsesFinite, raisedErrorPhrases, stringifyJson, trimString, uppercaseString, writeEpoch, writeIsoDate, writeUrl } from "./chunk-4HREHNIV.js";
28
+ export { registerPrecompiledUnits } from "./chunk-KXOC3JEX.js";
29
+ import "./chunk-CWSF57VM.js";
30
+ import "./chunk-UJJGG4VQ.js";
31
+ export { iso8601Matcher } from "./chunk-US6BWOGJ.js";
32
+ export { annotatingFallback } from "./chunk-KXOSUYRA.js";
33
+ import "./chunk-W2XOI5DY.js";
34
+ import "./chunk-TACLEIDM.js";
35
+ import "./chunk-K7SLP5D2.js";
36
+ import "./chunk-VYMXHSFR.js";
37
+ export { ArkErrors, ThrownErrors as TraversalError, byAncestorPath, byPath, describeCause, describeMissing, firstIssue, flatByPath, flatMessagesByPath, groupByPath, labelOf, messageIn, writeKeywordExpected } from "./chunk-PDLTEX6Z.js";
38
+ export { Traversal, printedActualOf } from "./chunk-3KBOPH3J.js";
39
+ import "./chunk-ZRYEHGSG.js";
40
+ export { isolate, listPattern } from "./chunk-3SH2BQ4T.js";
41
+ export { ParseError } from "./chunk-3HZC67MT.js";
42
+ import "./chunk-I2KLQ2HA.js";