arktype 2.0.0-dev.5 → 2.0.0-dev.6

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 (376) hide show
  1. package/__tests__/array.test.ts +70 -38
  2. package/__tests__/badDefinitionType.test.ts +9 -2
  3. package/__tests__/basis.test.ts +6 -2
  4. package/__tests__/bounds.test.ts +49 -218
  5. package/__tests__/cast.test.ts +7 -2
  6. package/__tests__/completions.test.ts +8 -3
  7. package/__tests__/config.test.ts +8 -2
  8. package/__tests__/cyclic.test.ts +141 -137
  9. package/__tests__/dateLiteral.test.ts +6 -2
  10. package/__tests__/declared.test.ts +2 -2
  11. package/__tests__/divisor.test.ts +28 -12
  12. package/__tests__/enclosed.test.ts +32 -23
  13. package/__tests__/examples.test.ts +56 -56
  14. package/__tests__/expressions.test.ts +184 -106
  15. package/__tests__/generic.test.ts +307 -287
  16. package/__tests__/group.test.ts +59 -51
  17. package/__tests__/imports.test.ts +44 -37
  18. package/__tests__/instanceof.test.ts +14 -12
  19. package/__tests__/intersection.test.ts +16 -36
  20. package/__tests__/keyTraversal.test.ts +6 -1
  21. package/__tests__/keyof.test.ts +57 -43
  22. package/__tests__/keywords.test.ts +144 -135
  23. package/__tests__/literal.test.ts +12 -7
  24. package/__tests__/match.test.ts +234 -236
  25. package/__tests__/morph.test.ts +169 -153
  26. package/__tests__/narrow.test.ts +14 -9
  27. package/__tests__/objectLiteral.test.ts +172 -184
  28. package/__tests__/realWorld.test.ts +60 -59
  29. package/__tests__/regex.test.ts +17 -7
  30. package/__tests__/scope.test.ts +59 -14
  31. package/__tests__/serialization.test.ts +19 -0
  32. package/__tests__/string.test.ts +11 -7
  33. package/__tests__/submodule.test.ts +24 -37
  34. package/__tests__/this.test.ts +83 -57
  35. package/__tests__/thunk.test.ts +13 -7
  36. package/__tests__/traverse.test.ts +22 -12
  37. package/__tests__/tsGenerics.test.ts +12 -12
  38. package/__tests__/type.test.ts +38 -0
  39. package/__tests__/typeReference.test.ts +5 -5
  40. package/__tests__/unenclosed.test.ts +106 -96
  41. package/__tests__/union.test.ts +207 -212
  42. package/ark.ts +44 -0
  43. package/generic.ts +67 -0
  44. package/main.ts +6 -17
  45. package/match.ts +41 -51
  46. package/module.ts +15 -0
  47. package/out/ark.d.ts +12 -40
  48. package/out/ark.d.ts.map +1 -1
  49. package/out/ark.js +9 -20
  50. package/out/ark.js.map +1 -1
  51. package/out/base.d.ts +198 -122
  52. package/out/base.d.ts.map +1 -1
  53. package/out/base.js +317 -271
  54. package/out/base.js.map +1 -1
  55. package/out/builtins/builtins.d.ts +21 -17
  56. package/out/builtins/builtins.js +15 -12
  57. package/out/builtins/jsObjects.d.ts +17 -17
  58. package/out/builtins/jsObjects.js +18 -15
  59. package/out/builtins/parsing.d.ts +13 -13
  60. package/out/builtins/parsing.js +57 -54
  61. package/out/builtins/tsGenerics.d.ts +2 -2
  62. package/out/builtins/tsGenerics.js +2 -2
  63. package/out/builtins/tsKeywords.d.ts +21 -21
  64. package/out/builtins/tsKeywords.js +23 -20
  65. package/out/builtins/utils/creditCard.d.ts +3 -3
  66. package/out/builtins/utils/creditCard.js +31 -32
  67. package/out/builtins/utils/date.d.ts +39 -20
  68. package/out/builtins/utils/date.js +51 -48
  69. package/out/builtins/validation.d.ts +17 -17
  70. package/out/builtins/validation.js +66 -62
  71. package/out/config.d.ts +9 -6
  72. package/out/config.js +17 -16
  73. package/out/constraints/ast.d.ts +263 -152
  74. package/out/constraints/ast.js +2 -2
  75. package/out/constraints/constraint.d.ts +196 -66
  76. package/out/constraints/constraint.js +21 -17
  77. package/out/constraints/predicate.d.ts +60 -42
  78. package/out/constraints/predicate.js +48 -43
  79. package/out/constraints/props/index.d.ts +35 -29
  80. package/out/constraints/props/index.js +54 -46
  81. package/out/constraints/props/optional.d.ts +31 -28
  82. package/out/constraints/props/optional.js +54 -53
  83. package/out/constraints/props/prop.d.ts +42 -39
  84. package/out/constraints/props/prop.js +104 -102
  85. package/out/constraints/props/props.d.ts +35 -32
  86. package/out/constraints/props/props.js +117 -102
  87. package/out/constraints/props/props.js.map +1 -1
  88. package/out/constraints/props/required.d.ts +40 -37
  89. package/out/constraints/props/required.js +78 -73
  90. package/out/constraints/props/sequence.d.ts +74 -56
  91. package/out/constraints/props/sequence.js +371 -322
  92. package/out/constraints/props/shared.d.ts +3 -3
  93. package/out/constraints/props/shared.js +4 -4
  94. package/out/constraints/refinements/after.d.ts +26 -18
  95. package/out/constraints/refinements/after.js +34 -33
  96. package/out/constraints/refinements/before.d.ts +26 -18
  97. package/out/constraints/refinements/before.js +41 -39
  98. package/out/constraints/refinements/divisor.d.ts +47 -37
  99. package/out/constraints/refinements/divisor.js +48 -37
  100. package/out/constraints/refinements/exactLength.d.ts +40 -36
  101. package/out/constraints/refinements/exactLength.js +50 -42
  102. package/out/constraints/refinements/kinds.d.ts +25 -25
  103. package/out/constraints/refinements/kinds.js +16 -16
  104. package/out/constraints/refinements/length.d.ts +45 -39
  105. package/out/constraints/refinements/length.js +51 -43
  106. package/out/constraints/refinements/max.d.ts +24 -17
  107. package/out/constraints/refinements/max.js +33 -29
  108. package/out/constraints/refinements/maxLength.d.ts +25 -17
  109. package/out/constraints/refinements/maxLength.js +34 -32
  110. package/out/constraints/refinements/min.d.ts +24 -17
  111. package/out/constraints/refinements/min.js +26 -23
  112. package/out/constraints/refinements/minLength.d.ts +25 -17
  113. package/out/constraints/refinements/minLength.js +31 -30
  114. package/out/constraints/refinements/range.d.ts +107 -78
  115. package/out/constraints/refinements/range.js +83 -66
  116. package/out/constraints/refinements/regex.d.ts +42 -38
  117. package/out/constraints/refinements/regex.js +35 -34
  118. package/out/constraints/refinements/shared.d.ts +20 -5
  119. package/out/constraints/refinements/shared.js +9 -9
  120. package/out/generic.d.ts +22 -0
  121. package/out/generic.d.ts.map +1 -0
  122. package/out/generic.js +23 -0
  123. package/out/generic.js.map +1 -0
  124. package/out/inference.d.ts +132 -35
  125. package/out/inference.js +2 -2
  126. package/out/keywords/ark.d.ts +60 -50
  127. package/out/keywords/ark.js +25 -25
  128. package/out/keywords/internal.d.ts +11 -11
  129. package/out/keywords/internal.js +13 -10
  130. package/out/keywords/jsObject.d.ts +18 -18
  131. package/out/keywords/jsObject.js +18 -15
  132. package/out/keywords/parsing.d.ts +14 -14
  133. package/out/keywords/parsing.js +53 -50
  134. package/out/keywords/root.d.ts +6 -6
  135. package/out/keywords/root.js +4 -4
  136. package/out/keywords/tsGenerics.d.ts +2 -2
  137. package/out/keywords/tsGenerics.js +2 -2
  138. package/out/keywords/tsPrimitive.d.ts +22 -22
  139. package/out/keywords/tsPrimitive.js +25 -22
  140. package/out/keywords/utils/creditCard.d.ts +11 -8
  141. package/out/keywords/utils/creditCard.js +31 -32
  142. package/out/keywords/utils/date.d.ts +43 -23
  143. package/out/keywords/utils/date.js +51 -48
  144. package/out/keywords/validation.d.ts +18 -18
  145. package/out/keywords/validation.js +67 -63
  146. package/out/kinds.d.ts +97 -67
  147. package/out/kinds.js +28 -28
  148. package/out/main.d.ts +6 -7
  149. package/out/main.d.ts.map +1 -1
  150. package/out/main.js +4 -2
  151. package/out/main.js.map +1 -1
  152. package/out/match.d.ts +6 -10
  153. package/out/match.d.ts.map +1 -1
  154. package/out/match.js +1 -1
  155. package/out/match.js.map +1 -1
  156. package/out/module.d.ts +11 -0
  157. package/out/module.d.ts.map +1 -0
  158. package/out/module.js +4 -0
  159. package/out/module.js.map +1 -0
  160. package/out/parse.d.ts +28 -22
  161. package/out/parse.js +157 -144
  162. package/out/parser/definition.d.ts +8 -10
  163. package/out/parser/definition.d.ts.map +1 -1
  164. package/out/parser/definition.js +5 -6
  165. package/out/parser/definition.js.map +1 -1
  166. package/out/parser/generic.d.ts +3 -4
  167. package/out/parser/generic.d.ts.map +1 -1
  168. package/out/parser/generic.js +6 -8
  169. package/out/parser/generic.js.map +1 -1
  170. package/out/parser/objectLiteral.d.ts +5 -6
  171. package/out/parser/objectLiteral.d.ts.map +1 -1
  172. package/out/parser/objectLiteral.js +10 -15
  173. package/out/parser/objectLiteral.js.map +1 -1
  174. package/out/parser/semantic/bounds.d.ts +4 -3
  175. package/out/parser/semantic/bounds.d.ts.map +1 -1
  176. package/out/parser/semantic/bounds.js.map +1 -1
  177. package/out/parser/semantic/divisor.d.ts +4 -3
  178. package/out/parser/semantic/divisor.d.ts.map +1 -1
  179. package/out/parser/semantic/infer.d.ts +7 -10
  180. package/out/parser/semantic/infer.d.ts.map +1 -1
  181. package/out/parser/semantic/utils.d.ts.map +1 -1
  182. package/out/parser/semantic/validate.d.ts +13 -11
  183. package/out/parser/semantic/validate.d.ts.map +1 -1
  184. package/out/parser/semantic/validate.js +1 -0
  185. package/out/parser/semantic/validate.js.map +1 -1
  186. package/out/parser/string/reduce/dynamic.d.ts +7 -8
  187. package/out/parser/string/reduce/dynamic.d.ts.map +1 -1
  188. package/out/parser/string/reduce/dynamic.js +26 -22
  189. package/out/parser/string/reduce/dynamic.js.map +1 -1
  190. package/out/parser/string/reduce/shared.d.ts +2 -2
  191. package/out/parser/string/reduce/shared.d.ts.map +1 -1
  192. package/out/parser/string/reduce/static.d.ts +8 -5
  193. package/out/parser/string/reduce/static.d.ts.map +1 -1
  194. package/out/parser/string/shift/operand/date.d.ts +1 -1
  195. package/out/parser/string/shift/operand/date.d.ts.map +1 -1
  196. package/out/parser/string/shift/operand/date.js +2 -2
  197. package/out/parser/string/shift/operand/date.js.map +1 -1
  198. package/out/parser/string/shift/operand/enclosed.d.ts +1 -1
  199. package/out/parser/string/shift/operand/enclosed.d.ts.map +1 -1
  200. package/out/parser/string/shift/operand/enclosed.js +1 -1
  201. package/out/parser/string/shift/operand/enclosed.js.map +1 -1
  202. package/out/parser/string/shift/operand/genericArgs.d.ts +8 -8
  203. package/out/parser/string/shift/operand/genericArgs.d.ts.map +1 -1
  204. package/out/parser/string/shift/operand/genericArgs.js +6 -8
  205. package/out/parser/string/shift/operand/genericArgs.js.map +1 -1
  206. package/out/parser/string/shift/operand/operand.d.ts +3 -3
  207. package/out/parser/string/shift/operand/operand.d.ts.map +1 -1
  208. package/out/parser/string/shift/operand/operand.js +8 -11
  209. package/out/parser/string/shift/operand/operand.js.map +1 -1
  210. package/out/parser/string/shift/operand/unenclosed.d.ts +10 -16
  211. package/out/parser/string/shift/operand/unenclosed.d.ts.map +1 -1
  212. package/out/parser/string/shift/operand/unenclosed.js +19 -24
  213. package/out/parser/string/shift/operand/unenclosed.js.map +1 -1
  214. package/out/parser/string/shift/operator/bounds.d.ts +6 -8
  215. package/out/parser/string/shift/operator/bounds.d.ts.map +1 -1
  216. package/out/parser/string/shift/operator/bounds.js +20 -29
  217. package/out/parser/string/shift/operator/bounds.js.map +1 -1
  218. package/out/parser/string/shift/operator/divisor.d.ts +1 -2
  219. package/out/parser/string/shift/operator/divisor.d.ts.map +1 -1
  220. package/out/parser/string/shift/operator/divisor.js.map +1 -1
  221. package/out/parser/string/shift/operator/operator.d.ts +1 -1
  222. package/out/parser/string/shift/operator/operator.d.ts.map +1 -1
  223. package/out/parser/string/shift/operator/operator.js +12 -18
  224. package/out/parser/string/shift/operator/operator.js.map +1 -1
  225. package/out/parser/string/shift/scanner.d.ts +2 -1
  226. package/out/parser/string/shift/scanner.d.ts.map +1 -1
  227. package/out/parser/string/shift/scanner.js +12 -11
  228. package/out/parser/string/shift/scanner.js.map +1 -1
  229. package/out/parser/string/string.d.ts +7 -4
  230. package/out/parser/string/string.d.ts.map +1 -1
  231. package/out/parser/string/string.js.map +1 -1
  232. package/out/parser/tuple.d.ts +27 -30
  233. package/out/parser/tuple.d.ts.map +1 -1
  234. package/out/parser/tuple.js +33 -35
  235. package/out/parser/tuple.js.map +1 -1
  236. package/out/schema.d.ts +171 -40
  237. package/out/schema.js +2 -2
  238. package/out/schemaScope.d.ts +170 -100
  239. package/out/schemaScope.js +231 -208
  240. package/out/scope.d.ts +43 -187
  241. package/out/scope.d.ts.map +1 -1
  242. package/out/scope.js +56 -326
  243. package/out/scope.js.map +1 -1
  244. package/out/shared/compile.d.ts +19 -19
  245. package/out/shared/compile.js +77 -65
  246. package/out/shared/context.d.ts +51 -26
  247. package/out/shared/context.js +50 -45
  248. package/out/shared/declare.d.ts +61 -45
  249. package/out/shared/declare.js +2 -2
  250. package/out/shared/disjoint.d.ts +85 -73
  251. package/out/shared/disjoint.js +108 -80
  252. package/out/shared/disjoint.js.map +1 -1
  253. package/out/shared/errors.d.ts +85 -45
  254. package/out/shared/errors.js +101 -101
  255. package/out/shared/implement.d.ts +351 -158
  256. package/out/shared/implement.js +61 -62
  257. package/out/shared/implement.js.map +1 -1
  258. package/out/shared/inference.d.ts +5 -5
  259. package/out/shared/inference.js +2 -2
  260. package/out/shared/intersections.d.ts +57 -12
  261. package/out/shared/intersections.js +2 -2
  262. package/out/shared/traversal.d.ts +57 -39
  263. package/out/shared/traversal.js +95 -95
  264. package/out/shared/utils.d.ts +23 -7
  265. package/out/shared/utils.d.ts.map +1 -1
  266. package/out/shared/utils.js +14 -9
  267. package/out/shared/utils.js.map +1 -1
  268. package/out/type.d.ts +24 -32
  269. package/out/type.d.ts.map +1 -1
  270. package/out/type.js +2 -51
  271. package/out/type.js.map +1 -1
  272. package/out/types/basis.d.ts +44 -21
  273. package/out/types/basis.js +13 -13
  274. package/out/types/discriminate.d.ts +33 -19
  275. package/out/types/discriminate.js +116 -110
  276. package/out/types/domain.d.ts +54 -37
  277. package/out/types/domain.js +39 -36
  278. package/out/types/intersection.d.ts +121 -61
  279. package/out/types/intersection.js +355 -326
  280. package/out/types/morph.d.ts +148 -70
  281. package/out/types/morph.js +97 -93
  282. package/out/types/proto.d.ts +48 -39
  283. package/out/types/proto.js +58 -46
  284. package/out/types/type.d.ts +137 -55
  285. package/out/types/type.d.ts.map +1 -1
  286. package/out/types/type.js +121 -109
  287. package/out/types/type.js.map +1 -1
  288. package/out/types/union.d.ts +66 -43
  289. package/out/types/union.js +299 -257
  290. package/out/types/unit.d.ts +41 -36
  291. package/out/types/unit.js +53 -45
  292. package/out/util.d.ts +30 -21
  293. package/out/util.js +8 -7
  294. package/package.json +3 -2
  295. package/parser/definition.ts +64 -81
  296. package/parser/generic.ts +35 -36
  297. package/parser/objectLiteral.ts +78 -92
  298. package/parser/semantic/bounds.ts +25 -33
  299. package/parser/semantic/divisor.ts +7 -11
  300. package/parser/semantic/infer.ts +69 -80
  301. package/parser/semantic/utils.ts +10 -13
  302. package/parser/semantic/validate.ts +81 -71
  303. package/parser/string/reduce/dynamic.ts +42 -39
  304. package/parser/string/reduce/shared.ts +1 -1
  305. package/parser/string/reduce/static.ts +50 -52
  306. package/parser/string/shift/operand/date.ts +5 -5
  307. package/parser/string/shift/operand/enclosed.ts +12 -13
  308. package/parser/string/shift/operand/genericArgs.ts +45 -44
  309. package/parser/string/shift/operand/operand.ts +32 -37
  310. package/parser/string/shift/operand/unenclosed.ts +99 -134
  311. package/parser/string/shift/operator/bounds.ts +78 -75
  312. package/parser/string/shift/operator/divisor.ts +11 -13
  313. package/parser/string/shift/operator/operator.ts +35 -46
  314. package/parser/string/shift/scanner.ts +39 -36
  315. package/parser/string/string.ts +26 -30
  316. package/parser/tuple.ts +206 -248
  317. package/scope.ts +185 -704
  318. package/type.ts +101 -140
  319. package/__tests__/errors.test.ts +0 -115
  320. package/__tests__/schema.bench.ts +0 -14
  321. package/__tests__/schema.test.ts +0 -60
  322. package/__tests__/typeMethods.test.ts +0 -68
  323. package/__tests__/unit.test.ts +0 -61
  324. package/base.ts +0 -520
  325. package/config.ts +0 -25
  326. package/constraints/ast.ts +0 -288
  327. package/constraints/constraint.ts +0 -91
  328. package/constraints/predicate.ts +0 -102
  329. package/constraints/props/index.ts +0 -93
  330. package/constraints/props/prop.ts +0 -146
  331. package/constraints/props/props.ts +0 -148
  332. package/constraints/props/sequence.ts +0 -473
  333. package/constraints/props/shared.ts +0 -5
  334. package/constraints/refinements/after.ts +0 -68
  335. package/constraints/refinements/before.ts +0 -75
  336. package/constraints/refinements/divisor.ts +0 -76
  337. package/constraints/refinements/exactLength.ts +0 -75
  338. package/constraints/refinements/kinds.ts +0 -31
  339. package/constraints/refinements/max.ts +0 -61
  340. package/constraints/refinements/maxLength.ts +0 -66
  341. package/constraints/refinements/min.ts +0 -54
  342. package/constraints/refinements/minLength.ts +0 -63
  343. package/constraints/refinements/range.ts +0 -181
  344. package/constraints/refinements/regex.ts +0 -59
  345. package/keywords/ark.ts +0 -101
  346. package/keywords/internal.ts +0 -29
  347. package/keywords/jsObject.ts +0 -39
  348. package/keywords/parsing.ts +0 -87
  349. package/keywords/root.ts +0 -9
  350. package/keywords/tsGenerics.ts +0 -28
  351. package/keywords/tsPrimitive.ts +0 -52
  352. package/keywords/utils/creditCard.ts +0 -37
  353. package/keywords/utils/date.ts +0 -112
  354. package/keywords/validation.ts +0 -115
  355. package/kinds.ts +0 -115
  356. package/parse.ts +0 -221
  357. package/schema.ts +0 -263
  358. package/shared/compile.ts +0 -92
  359. package/shared/declare.ts +0 -75
  360. package/shared/disjoint.ts +0 -203
  361. package/shared/errors.ts +0 -204
  362. package/shared/implement.ts +0 -327
  363. package/shared/inference.ts +0 -9
  364. package/shared/intersections.ts +0 -53
  365. package/shared/traversal.ts +0 -146
  366. package/shared/utils.ts +0 -30
  367. package/types/basis.ts +0 -62
  368. package/types/discriminate.ts +0 -168
  369. package/types/domain.ts +0 -79
  370. package/types/intersection.ts +0 -539
  371. package/types/morph.ts +0 -263
  372. package/types/proto.ts +0 -89
  373. package/types/type.ts +0 -319
  374. package/types/union.ts +0 -451
  375. package/types/unit.ts +0 -78
  376. package/util.ts +0 -39
package/out/scope.d.ts CHANGED
@@ -1,79 +1,15 @@
1
- import { type Dict, type Json, type array, type evaluate, type isAny, type nominal, type requireKeys } from "@arktype/util";
2
- import { type UnknownNode } from "./base.js";
3
- import type { type } from "./keywords/ark.js";
4
- import type { internalPrimitiveKeywords } from "./keywords/internal.js";
5
- import type { jsObjectKeywords } from "./keywords/jsObject.js";
6
- import type { tsPrimitiveKeywords } from "./keywords/tsPrimitive.js";
1
+ import { type ArkConfig, type GenericProps, type NodeParseOptions, type PreparsedNodeResolution, type RawSchema, type RawSchemaResolutions, RawSchemaScope, type SchemaScope, type ambient, type arkKind, type destructuredExportContext, type destructuredImportContext, type exportedNameOf } from "@arktype/schema";
2
+ import { type nominal, type show } from "@arktype/util";
3
+ import type { type } from "./ark.js";
4
+ import { Generic } from "./generic.js";
7
5
  import { type MatchParser } from "./match.js";
8
- import { type SchemaParseOptions } from "./parse.js";
6
+ import type { Module } from "./module.js";
9
7
  import { type inferDefinition, type validateDefinition } from "./parser/definition.js";
10
- import { parseGenericParams, type GenericDeclaration, type GenericParamsParseError } from "./parser/generic.js";
11
- import type { NodeParser, SchemaParser } from "./schema.js";
12
- import type { ActualWriter, ArkErrorCode, ExpectedWriter, MessageWriter, ProblemWriter } from "./shared/errors.js";
13
- import { type DescriptionWriter, type NodeKind, type TypeKind } from "./shared/implement.js";
14
- import type { TraverseAllows, TraverseApply } from "./shared/traversal.js";
15
- import { type DeclarationParser, type DefinitionParser, type Generic, type GenericProps, type TypeParser } from "./type.js";
16
- import type { distillConstrainableIn, distillConstrainableOut } from "./types/morph.js";
17
- import { type Type } from "./types/type.js";
18
- import type { UnionNode } from "./types/union.js";
19
- import type { UnitNode } from "./types/unit.js";
20
- import { type arkKind } from "./util.js";
21
- export type nodeResolutions<keywords> = {
22
- [k in keyof keywords]: Type;
23
- };
24
- export type BaseResolutions = Record<string, Type>;
25
- declare global {
26
- export interface StaticArkConfig {
27
- preserve(): never;
28
- }
29
- }
30
- type nodeConfigForKind<kind extends NodeKind> = Readonly<evaluate<{
31
- description?: DescriptionWriter<kind>;
32
- } & (kind extends ArkErrorCode ? {
33
- expected?: ExpectedWriter<kind>;
34
- actual?: ActualWriter<kind>;
35
- problem?: ProblemWriter<kind>;
36
- message?: MessageWriter<kind>;
37
- } : {})>>;
38
- type NodeConfigsByKind = {
39
- [kind in NodeKind]: nodeConfigForKind<kind>;
40
- };
41
- export type NodeConfig<kind extends NodeKind = NodeKind> = NodeConfigsByKind[kind];
42
- type UnknownNodeConfig = {
43
- description?: DescriptionWriter;
44
- expected?: ExpectedWriter;
45
- actual?: ActualWriter;
46
- problem?: ProblemWriter;
47
- message?: MessageWriter;
48
- };
49
- export type ParsedUnknownNodeConfig = requireKeys<UnknownNodeConfig, "description">;
50
- export type StaticArkOption<k extends keyof StaticArkConfig> = ReturnType<StaticArkConfig[k]>;
51
- export interface ArkConfig extends Partial<Readonly<NodeConfigsByKind>> {
52
- readonly ambient?: Scope | null;
53
- }
54
- type resolveConfig<config extends ArkConfig> = {
55
- [k in keyof config]-?: k extends NodeKind ? Required<config[k]> : config[k];
56
- };
57
- export type ResolvedArkConfig = resolveConfig<ArkConfig>;
58
- export declare const defaultConfig: ResolvedArkConfig;
59
- declare const resolveConfig: (scopeConfig: ArkConfig | undefined) => ResolvedArkConfig;
60
- export type ScopeParser<parent, ambient> = {
61
- <const def>(def: validateScope<def, parent & ambient>, config?: ArkConfig): Scope<{
62
- exports: inferBootstrapped<{
63
- exports: bootstrapExports<def>;
64
- locals: bootstrapLocals<def> & parent;
65
- ambient: ambient;
66
- }>;
67
- locals: inferBootstrapped<{
68
- exports: bootstrapLocals<def>;
69
- locals: bootstrapExports<def> & parent;
70
- ambient: ambient;
71
- }>;
72
- ambient: ambient;
73
- }>;
74
- };
75
- type validateScope<def, $> = {
76
- [k in keyof def]: parseScopeKey<k>["params"] extends [] ? def[k] extends Type | PreparsedResolution ? def[k] : validateDefinition<def[k], $ & bootstrap<def>, {}> : parseScopeKey<k>["params"] extends GenericParamsParseError ? parseScopeKey<k>["params"][0] : validateDefinition<def[k], $ & bootstrap<def>, {
8
+ import { type GenericDeclaration, type GenericParamsParseError, parseGenericParams } from "./parser/generic.js";
9
+ import type { DeclarationParser, DefinitionParser, Type, TypeParser } from "./type.js";
10
+ export type ScopeParser = <const def>(def: validateScope<def>, config?: ArkConfig) => Scope<inferBootstrapped<bootstrapAliases<def>>>;
11
+ type validateScope<def> = {
12
+ [k in keyof def]: k extends symbol ? unknown : parseScopeKey<k>["params"] extends [] ? def[k] extends Type | PreparsedResolution ? def[k] : validateDefinition<def[k], ambient & bootstrapAliases<def>, {}> : parseScopeKey<k>["params"] extends GenericParamsParseError ? parseScopeKey<k>["params"][0] : validateDefinition<def[k], ambient & bootstrapAliases<def>, {
77
13
  [param in parseScopeKey<k>["params"][number]]: unknown;
78
14
  }>;
79
15
  };
@@ -84,143 +20,63 @@ export type bindThis<def> = {
84
20
  type Def<def = {}> = nominal<def, "unparsed">;
85
21
  /** sentinel indicating a scope that will be associated with a generic has not yet been parsed */
86
22
  export type UnparsedScope = "$";
87
- type bootstrap<def> = bootstrapLocals<def> & bootstrapExports<def>;
88
- type bootstrapLocals<def> = bootstrapAliases<{
89
- [k in keyof def & PrivateDeclaration as extractPrivateKey<k>]: def[k];
90
- }>;
91
- type bootstrapExports<def> = bootstrapAliases<{
92
- [k in Exclude<keyof def, PrivateDeclaration>]: def[k];
93
- }>;
94
23
  /** These are legal as values of a scope but not as definitions in other contexts */
95
- type PreparsedResolution = Module | GenericProps;
24
+ type PreparsedResolution = PreparsedNodeResolution;
96
25
  type bootstrapAliases<def> = {
97
26
  [k in Exclude<keyof def, GenericDeclaration | symbol>]: def[k] extends PreparsedResolution ? def[k] : def[k] extends (() => infer thunkReturn extends PreparsedResolution) ? thunkReturn : Def<def[k]>;
98
27
  } & {
99
- [k in keyof def & GenericDeclaration as extractGenericName<k>]: Generic<parseGenericParams<extractGenericParameters<k>>, def[k], UnparsedScope>;
28
+ [k in keyof def & GenericDeclaration as extractGenericName<k>]: GenericProps<parseGenericParams<extractGenericParameters<k>>, def[k], UnparsedScope>;
100
29
  };
101
- type inferBootstrapped<r extends Resolutions> = evaluate<{
102
- [name in keyof r["exports"]]: r["exports"][name] extends Def<infer def> ? inferDefinition<def, $<r>, {}> : r["exports"][name] extends GenericProps<infer params, infer def> ? Generic<params, def, $<r>> : r["exports"][name];
30
+ type inferBootstrapped<$> = show<{
31
+ [name in keyof $]: $[name] extends Def<infer def> ? inferDefinition<def, $ & ambient, {}> : $[name] extends GenericProps<infer params, infer def> ? Generic<params, def, $> : $[name];
103
32
  }>;
104
33
  type extractGenericName<k> = k extends GenericDeclaration<infer name> ? name : never;
105
34
  type extractGenericParameters<k> = k extends GenericDeclaration<string, infer params> ? params : never;
106
- type extractPrivateKey<k> = k extends PrivateDeclaration<infer key> ? key : never;
107
- type PrivateDeclaration<key extends string = string> = `#${key}`;
108
- export type resolve<reference extends keyof $ | keyof args, $, args> = (reference extends keyof args ? args[reference] : $[reference & keyof $]) extends infer resolution ? [resolution] extends [never] ? never : isAny<resolution> extends true ? any : resolution extends Def<infer def> ? inferDefinition<def, $, args> : resolution : never;
35
+ export type resolve<reference extends keyof $ | keyof args, $, args> = (reference extends keyof args ? args[reference] : $[reference & keyof $]) extends infer resolution ? resolution extends Def<infer def> ? def extends null ? resolution : inferDefinition<def, $, args> : resolution : never;
109
36
  export type moduleKeyOf<$> = {
110
- [k in keyof $]: $[k] extends Module ? k & string : never;
37
+ [k in keyof $]: $[k] extends {
38
+ [arkKind]: "module";
39
+ } ? k & string : never;
111
40
  }[keyof $];
112
- export type tryInferSubmoduleReference<$, token> = token extends `${infer submodule extends moduleKeyOf<$>}.${infer subalias}` ? subalias extends keyof $[submodule] ? $[submodule][subalias] extends Type<infer t> ? t : never : never : never;
113
- type $<r extends Resolutions> = r["exports"] & r["locals"] & r["ambient"];
114
- type exportedName<r extends Resolutions> = keyof r["exports"] & string;
115
- export type Module<r extends Resolutions = any> = {
116
- [k in exportedName<r> | arkKind]: k extends string ? [r["exports"][k]] extends [never] ? Type<never, $<r>> : isAny<r["exports"][k]> extends true ? Type<any, $<r>> : r["exports"][k] extends PreparsedResolution ? r["exports"][k] : Type<r["exports"][k], $<r>> : type.cast<"module">;
117
- };
118
- export type Resolutions = {
119
- exports: unknown;
120
- locals: unknown;
121
- ambient: unknown;
122
- };
123
- export type rootResolutions<exports> = {
124
- exports: exports;
125
- locals: {};
126
- ambient: {};
127
- };
128
- export type ParseContext = {
129
- baseName: string;
130
- path: string[];
131
- $: Scope;
132
- args: Record<string, Type> | undefined;
133
- };
134
- type ParseContextInput = Partial<ParseContext>;
135
- export type PrimitiveKeywords = typeof tsPrimitiveKeywords & typeof jsObjectKeywords & typeof internalPrimitiveKeywords;
136
- export declare class Scope<r extends Resolutions = any> {
137
- infer: distillConstrainableOut<r["exports"]>;
138
- inferIn: distillConstrainableIn<r["exports"]>;
139
- readonly config: ArkConfig;
140
- readonly resolvedConfig: ResolvedArkConfig;
41
+ export type tryInferSubmoduleReference<$, token> = token extends `${infer submodule extends moduleKeyOf<$>}.${infer subalias}` ? subalias extends keyof $[submodule] ? $[submodule][subalias] extends type.cast<infer t> ? t : never : never : never;
42
+ export interface ParseContext extends NodeParseOptions {
43
+ $: RawScope;
44
+ }
45
+ export declare const scope: ScopeParser;
46
+ export interface Scope<$ = any> extends SchemaScope<$> {
47
+ type: TypeParser<$>;
48
+ match: MatchParser<$>;
49
+ declare: DeclarationParser<$>;
50
+ define: DefinitionParser<$>;
51
+ import<names extends exportedNameOf<$>[]>(...names: names): Module<show<destructuredImportContext<$, names>>>;
52
+ export<names extends exportedNameOf<$>[]>(...names: names): Module<show<destructuredExportContext<$, names>>>;
53
+ }
54
+ export declare class RawScope<$ extends RawSchemaResolutions = RawSchemaResolutions> extends RawSchemaScope<$> {
141
55
  private parseCache;
142
- private resolutions;
143
- readonly nodeCache: {
144
- [innerId: string]: UnknownNode;
145
- };
146
- readonly referencesByName: {
147
- [name: string]: UnknownNode;
148
- };
149
- references: readonly UnknownNode[];
150
- json: Json;
151
- protected resolved: boolean;
152
- /** The set of names defined at the root-level of the scope mapped to their
153
- * corresponding definitions.**/
154
- aliases: Record<string, unknown>;
155
- private exportedNames;
156
- constructor(def: Dict, config?: ArkConfig);
157
- type: TypeParser<$<r>>;
158
- schema: SchemaParser<$<r>>;
159
- protected rawSchema(schema: unknown): ["schema", unknown];
160
- match: MatchParser<$<r>>;
161
- declare: DeclarationParser<$<r>>;
162
- scope: ScopeParser<r["exports"], r["ambient"]>;
163
- define: DefinitionParser<$<r>>;
164
- toAmbient(): Scope<{
165
- exports: r["exports"];
166
- locals: r["locals"];
167
- ambient: r["exports"];
168
- }>;
169
- get<name extends keyof r["exports"] & string>(name: name): Type<r["exports"][name], $<r>>;
170
- parse(def: unknown, ctx: ParseContext): Type;
171
- parseTypeRoot(def: unknown, input?: ParseContextInput): Type;
172
- parseString(def: string, ctx: ParseContext): Type;
173
- maybeResolve(name: string): Type | Generic | undefined;
174
- /** If name is a valid reference to a submodule alias, return its resolution */
175
- private maybeResolveSubalias;
176
- maybeResolveNode(name: string): Type | undefined;
177
- import<names extends exportedName<r>[]>(...names: names): destructuredImportContext<r, names extends [] ? keyof r["exports"] & string : names[number]>;
178
- private exportedResolutions;
179
- private exportCache;
180
- export<names extends exportedName<r>[]>(...names: names): Module<names extends [] ? r : destructuredExportContext<r, names[number]>>;
181
- parseUnits<const branches extends array>(...values: branches): branches["length"] extends 1 ? UnionNode<branches[0]> : UnionNode<branches[number]> | UnitNode<branches[number]>;
182
- node: NodeParser<$<r>>;
183
- protected internalNodeParser(schemaOrKind: unknown, schemaOrOpts?: unknown, constraintOpts?: SchemaParseOptions): UnknownNode;
184
- protected bindCompiledScope(references: readonly UnknownNode[]): void;
185
- protected compileScope(references: readonly UnknownNode[]): {
186
- [k: `${string}Allows`]: TraverseAllows;
187
- [k: `${string}Apply`]: TraverseApply;
56
+ constructor(def: Record<string, unknown>, config?: ArkConfig);
57
+ type(...args: unknown[]): RawSchema | Generic;
58
+ match: MatchParser<$>;
59
+ declare(): {
60
+ type: RawScope["type"];
188
61
  };
62
+ define(def: unknown): unknown;
63
+ preparseRoot(def: unknown): unknown;
64
+ parseRoot(def: unknown, opts?: NodeParseOptions): RawSchema;
65
+ parse(def: unknown, ctx: ParseContext): RawSchema;
66
+ parseString(def: string, ctx: ParseContext): RawSchema;
189
67
  }
190
- type destructuredExportContext<r extends Resolutions, name extends exportedName<r>> = {
191
- exports: {
192
- [k in name]: r["exports"][k];
193
- };
194
- locals: r["locals"] & {
195
- [k in Exclude<keyof r["exports"], name>]: r["exports"][k];
196
- };
197
- ambient: r["ambient"];
198
- };
199
- type destructuredImportContext<r extends Resolutions, name extends exportedName<r>> = {
200
- [k in name as `#${k & string}`]: type.cast<r["exports"][k]>;
201
- };
202
68
  export declare const writeShallowCycleErrorMessage: (name: string, seen: string[]) => string;
203
- export declare const writeDuplicateNameMessage: <name extends string>(name: name) => `Duplicate name '${name}'`;
204
- type writeDuplicateNameMessage<name extends string> = `Duplicate name '${name}'`;
205
69
  export type ParsedScopeKey = {
206
- isLocal: boolean;
207
70
  name: string;
208
71
  params: string[];
209
72
  };
210
73
  export declare const parseScopeKey: (k: string) => ParsedScopeKey;
211
- type parseScopeKey<k> = k extends PrivateDeclaration<infer inner> ? parsePossibleGenericDeclaration<inner, true> : parsePossibleGenericDeclaration<k, false>;
212
- type parsePossibleGenericDeclaration<k, isLocal extends boolean> = k extends GenericDeclaration<infer name, infer paramString> ? {
213
- isLocal: isLocal;
74
+ export type parseScopeKey<k> = k extends GenericDeclaration<infer name, infer paramString> ? {
214
75
  name: name;
215
76
  params: parseGenericParams<paramString>;
216
77
  } : {
217
- isLocal: isLocal;
218
78
  name: k;
219
79
  params: [];
220
80
  };
221
- export interface TypeSchemaParseOptions<allowedKind extends TypeKind = TypeKind> extends SchemaParseOptions {
222
- root?: boolean;
223
- allowedKinds?: readonly allowedKind[];
224
- }
225
81
  export {};
226
82
  //# sourceMappingURL=scope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../scope.ts"],"names":[],"mappings":"AAAA,OAAO,EASN,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,WA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