@alloy-js/typescript 0.25.0-dev.1 → 0.25.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 (578) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/api-extractor.json +13 -1
  3. package/dist/dev/src/builtins/index.js.map +1 -1
  4. package/dist/dev/src/builtins/node.js.map +1 -1
  5. package/dist/dev/src/components/ArrayExpression.js +8 -8
  6. package/dist/dev/src/components/ArrayExpression.js.map +1 -1
  7. package/dist/dev/src/components/ArrowFunction.js +3 -3
  8. package/dist/dev/src/components/ArrowFunction.js.map +1 -1
  9. package/dist/dev/src/components/BarrelFile.js +3 -3
  10. package/dist/dev/src/components/BarrelFile.js.map +1 -1
  11. package/dist/dev/src/components/BlockScope.js +2 -2
  12. package/dist/dev/src/components/BlockScope.js.map +1 -1
  13. package/dist/dev/src/components/CallSignature.js +6 -5
  14. package/dist/dev/src/components/CallSignature.js.map +1 -1
  15. package/dist/dev/src/components/ClassDeclaration.js +4 -4
  16. package/dist/dev/src/components/ClassDeclaration.js.map +1 -1
  17. package/dist/dev/src/components/CommaList.js +1 -1
  18. package/dist/dev/src/components/CommaList.js.map +1 -1
  19. package/dist/dev/src/components/Declaration.js +5 -5
  20. package/dist/dev/src/components/Declaration.js.map +1 -1
  21. package/dist/dev/src/components/EnumDeclaration.js +12 -12
  22. package/dist/dev/src/components/EnumDeclaration.js.map +1 -1
  23. package/dist/dev/src/components/EnumMember.js +6 -6
  24. package/dist/dev/src/components/EnumMember.js.map +1 -1
  25. package/dist/dev/src/components/ExportStatement.js +1 -1
  26. package/dist/dev/src/components/ExportStatement.js.map +1 -1
  27. package/dist/dev/src/components/FunctionBase.js +27 -27
  28. package/dist/dev/src/components/FunctionBase.js.map +1 -1
  29. package/dist/dev/src/components/FunctionCallExpression.js +3 -3
  30. package/dist/dev/src/components/FunctionCallExpression.js.map +1 -1
  31. package/dist/dev/src/components/FunctionDeclaration.js +12 -12
  32. package/dist/dev/src/components/FunctionDeclaration.js.map +1 -1
  33. package/dist/dev/src/components/FunctionExpression.js +3 -3
  34. package/dist/dev/src/components/FunctionExpression.js.map +1 -1
  35. package/dist/dev/src/components/FunctionType.js +9 -9
  36. package/dist/dev/src/components/FunctionType.js.map +1 -1
  37. package/dist/dev/src/components/IfStatement.js +4 -3
  38. package/dist/dev/src/components/IfStatement.js.map +1 -1
  39. package/dist/dev/src/components/ImportStatement.js +10 -10
  40. package/dist/dev/src/components/ImportStatement.js.map +1 -1
  41. package/dist/dev/src/components/Interface.js +19 -19
  42. package/dist/dev/src/components/Interface.js.map +1 -1
  43. package/dist/dev/src/components/InterfaceMethod.js +11 -11
  44. package/dist/dev/src/components/InterfaceMethod.js.map +1 -1
  45. package/dist/dev/src/components/JSDoc.js +2 -2
  46. package/dist/dev/src/components/JSDoc.js.map +1 -1
  47. package/dist/dev/src/components/JSDocComment.js +1 -0
  48. package/dist/dev/src/components/JSDocComment.js.map +1 -1
  49. package/dist/dev/src/components/JSDocExample.js.map +1 -1
  50. package/dist/dev/src/components/JSDocParam.js +14 -14
  51. package/dist/dev/src/components/JSDocParam.js.map +1 -1
  52. package/dist/dev/src/components/LexicalScope.js +1 -1
  53. package/dist/dev/src/components/LexicalScope.js.map +1 -1
  54. package/dist/dev/src/components/MemberDeclaration.js.map +1 -1
  55. package/dist/dev/src/components/MemberExpression.js +17 -17
  56. package/dist/dev/src/components/MemberExpression.js.map +1 -1
  57. package/dist/dev/src/components/MemberScope.js +1 -1
  58. package/dist/dev/src/components/MemberScope.js.map +1 -1
  59. package/dist/dev/src/components/NewExpression.js +1 -1
  60. package/dist/dev/src/components/NewExpression.js.map +1 -1
  61. package/dist/dev/src/components/ObjectExpression.js +14 -14
  62. package/dist/dev/src/components/ObjectExpression.js.map +1 -1
  63. package/dist/dev/src/components/PackageDirectory.js +6 -6
  64. package/dist/dev/src/components/PackageDirectory.js.map +1 -1
  65. package/dist/dev/src/components/PackageJson.js +1 -1
  66. package/dist/dev/src/components/PackageJson.js.map +1 -1
  67. package/dist/dev/src/components/PropertyName.js +1 -1
  68. package/dist/dev/src/components/PropertyName.js.map +1 -1
  69. package/dist/dev/src/components/Reference.js +1 -1
  70. package/dist/dev/src/components/Reference.js.map +1 -1
  71. package/dist/dev/src/components/SingleLineCommentBlock.js.map +1 -1
  72. package/dist/dev/src/components/SourceFile.js.map +1 -1
  73. package/dist/dev/src/components/SwitchStatement.js +9 -9
  74. package/dist/dev/src/components/SwitchStatement.js.map +1 -1
  75. package/dist/dev/src/components/TryStatement.js +5 -5
  76. package/dist/dev/src/components/TryStatement.js.map +1 -1
  77. package/dist/dev/src/components/TryStatement.test.js +21 -21
  78. package/dist/dev/src/components/TryStatement.test.js.map +1 -1
  79. package/dist/dev/src/components/TsConfigJson.js +1 -1
  80. package/dist/dev/src/components/TsConfigJson.js.map +1 -1
  81. package/dist/dev/src/components/TypeDeclaration.js +5 -5
  82. package/dist/dev/src/components/TypeDeclaration.js.map +1 -1
  83. package/dist/dev/src/components/TypeRefContext.js +4 -4
  84. package/dist/dev/src/components/TypeRefContext.js.map +1 -1
  85. package/dist/dev/src/components/ValueExpression.js +2 -2
  86. package/dist/dev/src/components/ValueExpression.js.map +1 -1
  87. package/dist/dev/src/components/VarDeclaration.js +13 -13
  88. package/dist/dev/src/components/VarDeclaration.js.map +1 -1
  89. package/dist/dev/src/components/index.js +0 -1
  90. package/dist/dev/src/components/index.js.map +1 -1
  91. package/dist/dev/src/components/interface/expression.test.js +22 -22
  92. package/dist/dev/src/components/interface/expression.test.js.map +1 -1
  93. package/dist/dev/src/components/stc/index.js.map +1 -1
  94. package/dist/dev/src/context/index.js.map +1 -1
  95. package/dist/dev/src/context/package-metadata.js.map +1 -1
  96. package/dist/dev/src/context/type-ref-context.js.map +1 -1
  97. package/dist/dev/src/create-package.js.map +1 -1
  98. package/dist/dev/src/index.js +0 -1
  99. package/dist/dev/src/index.js.map +1 -1
  100. package/dist/dev/src/name-conflict-resolver.js.map +1 -1
  101. package/dist/dev/src/name-policy.js.map +1 -1
  102. package/dist/dev/src/parameter-descriptor.js.map +1 -1
  103. package/dist/dev/src/source-directory-data.js.map +1 -1
  104. package/dist/dev/src/symbols/index.js.map +1 -1
  105. package/dist/dev/src/symbols/reference.js +6 -6
  106. package/dist/dev/src/symbols/reference.js.map +1 -1
  107. package/dist/dev/src/symbols/scopes.js.map +1 -1
  108. package/dist/dev/src/symbols/ts-lexical-scope.js.map +1 -1
  109. package/dist/dev/src/symbols/ts-member-scope.js.map +1 -1
  110. package/dist/dev/src/symbols/ts-module-scope.js.map +1 -1
  111. package/dist/dev/src/symbols/ts-output-symbol.js.map +1 -1
  112. package/dist/dev/src/symbols/ts-package-scope.js.map +1 -1
  113. package/dist/dev/src/utils.js.map +1 -1
  114. package/dist/dev/test/array.test.js +24 -24
  115. package/dist/dev/test/array.test.js.map +1 -1
  116. package/dist/dev/test/arrow-function.test.js +38 -38
  117. package/dist/dev/test/arrow-function.test.js.map +1 -1
  118. package/dist/dev/test/barrel.test.js +13 -13
  119. package/dist/dev/test/barrel.test.js.map +1 -1
  120. package/dist/dev/test/basic.test.js +11 -11
  121. package/dist/dev/test/basic.test.js.map +1 -1
  122. package/dist/dev/test/block-scope.test.js +7 -7
  123. package/dist/dev/test/block-scope.test.js.map +1 -1
  124. package/dist/dev/test/class.test.js +104 -104
  125. package/dist/dev/test/class.test.js.map +1 -1
  126. package/dist/dev/test/decl-helpers.test.js +17 -17
  127. package/dist/dev/test/decl-helpers.test.js.map +1 -1
  128. package/dist/dev/test/enum-jsdoc.test.js +13 -13
  129. package/dist/dev/test/enum-jsdoc.test.js.map +1 -1
  130. package/dist/dev/test/enum.test.js.map +1 -1
  131. package/dist/dev/test/externals.test.js +33 -33
  132. package/dist/dev/test/externals.test.js.map +1 -1
  133. package/dist/dev/test/function-call-expression.test.js +14 -14
  134. package/dist/dev/test/function-call-expression.test.js.map +1 -1
  135. package/dist/dev/test/function-declaration-jsdoc.test.js +12 -12
  136. package/dist/dev/test/function-declaration-jsdoc.test.js.map +1 -1
  137. package/dist/dev/test/function-declaration.test.js +75 -75
  138. package/dist/dev/test/function-declaration.test.js.map +1 -1
  139. package/dist/dev/test/function-expression.test.js +38 -38
  140. package/dist/dev/test/function-expression.test.js.map +1 -1
  141. package/dist/dev/test/function-type.test.js +27 -27
  142. package/dist/dev/test/function-type.test.js.map +1 -1
  143. package/dist/dev/test/if-statement.test.js +4 -4
  144. package/dist/dev/test/if-statement.test.js.map +1 -1
  145. package/dist/dev/test/imports-reactive.test.js +14 -14
  146. package/dist/dev/test/imports-reactive.test.js.map +1 -1
  147. package/dist/dev/test/imports.test.js +161 -161
  148. package/dist/dev/test/imports.test.js.map +1 -1
  149. package/dist/dev/test/interface-jsdoc.test.js +27 -27
  150. package/dist/dev/test/interface-jsdoc.test.js.map +1 -1
  151. package/dist/dev/test/interface.test.js +118 -118
  152. package/dist/dev/test/interface.test.js.map +1 -1
  153. package/dist/dev/test/jscomment.test.js +13 -13
  154. package/dist/dev/test/jscomment.test.js.map +1 -1
  155. package/dist/dev/test/jsdoc.test.js +17 -17
  156. package/dist/dev/test/jsdoc.test.js.map +1 -1
  157. package/dist/dev/test/jsdocparam.test.js +18 -18
  158. package/dist/dev/test/jsdocparam.test.js.map +1 -1
  159. package/dist/dev/test/member-expression.test.js +282 -282
  160. package/dist/dev/test/member-expression.test.js.map +1 -1
  161. package/dist/dev/test/name-conflict.test.js +3 -3
  162. package/dist/dev/test/name-conflict.test.js.map +1 -1
  163. package/dist/dev/test/name-policy.test.js +24 -24
  164. package/dist/dev/test/name-policy.test.js.map +1 -1
  165. package/dist/dev/test/new-expression.test.js +9 -9
  166. package/dist/dev/test/new-expression.test.js.map +1 -1
  167. package/dist/dev/test/object.test.js +19 -19
  168. package/dist/dev/test/object.test.js.map +1 -1
  169. package/dist/dev/test/package-external.test.js +20 -20
  170. package/dist/dev/test/package-external.test.js.map +1 -1
  171. package/dist/dev/test/package-json.test.js +4 -4
  172. package/dist/dev/test/package-json.test.js.map +1 -1
  173. package/dist/dev/test/package.test.js +14 -14
  174. package/dist/dev/test/package.test.js.map +1 -1
  175. package/dist/dev/test/reference.test.js +12 -12
  176. package/dist/dev/test/reference.test.js.map +1 -1
  177. package/dist/dev/test/source-file.test.js +4 -4
  178. package/dist/dev/test/source-file.test.js.map +1 -1
  179. package/dist/dev/test/switch-statement.test.js +9 -9
  180. package/dist/dev/test/switch-statement.test.js.map +1 -1
  181. package/dist/dev/test/utils.js +2 -2
  182. package/dist/dev/test/utils.js.map +1 -1
  183. package/dist/dev/test/value-expression.test.js +2 -2
  184. package/dist/dev/test/value-expression.test.js.map +1 -1
  185. package/dist/dev/test/values.test.js.map +1 -1
  186. package/dist/dev/test/var-declaration-jsdoc.test.js +6 -6
  187. package/dist/dev/test/var-declaration-jsdoc.test.js.map +1 -1
  188. package/dist/dev/test/var-declaration.test.js +40 -40
  189. package/dist/dev/test/var-declaration.test.js.map +1 -1
  190. package/dist/dev/test/vitest.setup.js.map +1 -1
  191. package/dist/dev/testing/create-wrapper.js +1 -1
  192. package/dist/dev/testing/create-wrapper.js.map +1 -1
  193. package/dist/dev/testing/create-wrapper.test.js +20 -20
  194. package/dist/dev/testing/create-wrapper.test.js.map +1 -1
  195. package/dist/dev/testing/index.js.map +1 -1
  196. package/dist/src/builtins/index.js.map +1 -1
  197. package/dist/src/builtins/node.d.ts +58 -58
  198. package/dist/src/builtins/node.d.ts.map +1 -1
  199. package/dist/src/builtins/node.js.map +1 -1
  200. package/dist/src/components/ArrayExpression.d.ts +1 -1
  201. package/dist/src/components/ArrayExpression.d.ts.map +1 -1
  202. package/dist/src/components/ArrayExpression.js.map +1 -1
  203. package/dist/src/components/ArrowFunction.d.ts +5 -4
  204. package/dist/src/components/ArrowFunction.d.ts.map +1 -1
  205. package/dist/src/components/ArrowFunction.js.map +1 -1
  206. package/dist/src/components/BarrelFile.d.ts.map +1 -1
  207. package/dist/src/components/BarrelFile.js.map +1 -1
  208. package/dist/src/components/BlockScope.d.ts +1 -1
  209. package/dist/src/components/BlockScope.d.ts.map +1 -1
  210. package/dist/src/components/BlockScope.js.map +1 -1
  211. package/dist/src/components/CallSignature.d.ts +1 -1
  212. package/dist/src/components/CallSignature.d.ts.map +1 -1
  213. package/dist/src/components/CallSignature.js +1 -0
  214. package/dist/src/components/CallSignature.js.map +1 -1
  215. package/dist/src/components/ClassDeclaration.d.ts +3 -3
  216. package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
  217. package/dist/src/components/ClassDeclaration.js.map +1 -1
  218. package/dist/src/components/CommaList.d.ts +1 -1
  219. package/dist/src/components/CommaList.d.ts.map +1 -1
  220. package/dist/src/components/CommaList.js.map +1 -1
  221. package/dist/src/components/Declaration.d.ts +3 -3
  222. package/dist/src/components/Declaration.d.ts.map +1 -1
  223. package/dist/src/components/Declaration.js +3 -3
  224. package/dist/src/components/Declaration.js.map +1 -1
  225. package/dist/src/components/EnumDeclaration.d.ts +1 -1
  226. package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
  227. package/dist/src/components/EnumDeclaration.js.map +1 -1
  228. package/dist/src/components/EnumMember.d.ts +1 -1
  229. package/dist/src/components/EnumMember.d.ts.map +1 -1
  230. package/dist/src/components/EnumMember.js.map +1 -1
  231. package/dist/src/components/ExportStatement.d.ts +2 -2
  232. package/dist/src/components/ExportStatement.d.ts.map +1 -1
  233. package/dist/src/components/ExportStatement.js.map +1 -1
  234. package/dist/src/components/FunctionBase.d.ts +1 -1
  235. package/dist/src/components/FunctionBase.d.ts.map +1 -1
  236. package/dist/src/components/FunctionBase.js.map +1 -1
  237. package/dist/src/components/FunctionCallExpression.d.ts +1 -1
  238. package/dist/src/components/FunctionCallExpression.d.ts.map +1 -1
  239. package/dist/src/components/FunctionCallExpression.js.map +1 -1
  240. package/dist/src/components/FunctionDeclaration.d.ts +6 -5
  241. package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
  242. package/dist/src/components/FunctionDeclaration.js.map +1 -1
  243. package/dist/src/components/FunctionExpression.d.ts +5 -4
  244. package/dist/src/components/FunctionExpression.d.ts.map +1 -1
  245. package/dist/src/components/FunctionExpression.js.map +1 -1
  246. package/dist/src/components/FunctionType.d.ts +1 -1
  247. package/dist/src/components/FunctionType.d.ts.map +1 -1
  248. package/dist/src/components/FunctionType.js.map +1 -1
  249. package/dist/src/components/IfStatement.d.ts.map +1 -1
  250. package/dist/src/components/IfStatement.js +1 -0
  251. package/dist/src/components/IfStatement.js.map +1 -1
  252. package/dist/src/components/ImportStatement.d.ts +1 -1
  253. package/dist/src/components/ImportStatement.d.ts.map +1 -1
  254. package/dist/src/components/ImportStatement.js.map +1 -1
  255. package/dist/src/components/Interface.d.ts +5 -4
  256. package/dist/src/components/Interface.d.ts.map +1 -1
  257. package/dist/src/components/Interface.js.map +1 -1
  258. package/dist/src/components/InterfaceMethod.d.ts +6 -4
  259. package/dist/src/components/InterfaceMethod.d.ts.map +1 -1
  260. package/dist/src/components/InterfaceMethod.js.map +1 -1
  261. package/dist/src/components/JSDoc.d.ts.map +1 -1
  262. package/dist/src/components/JSDoc.js.map +1 -1
  263. package/dist/src/components/JSDocComment.js +1 -0
  264. package/dist/src/components/JSDocComment.js.map +1 -1
  265. package/dist/src/components/JSDocExample.js.map +1 -1
  266. package/dist/src/components/JSDocParam.d.ts +1 -1
  267. package/dist/src/components/JSDocParam.d.ts.map +1 -1
  268. package/dist/src/components/JSDocParam.js.map +1 -1
  269. package/dist/src/components/LexicalScope.d.ts +1 -1
  270. package/dist/src/components/LexicalScope.d.ts.map +1 -1
  271. package/dist/src/components/LexicalScope.js.map +1 -1
  272. package/dist/src/components/MemberDeclaration.d.ts +3 -3
  273. package/dist/src/components/MemberDeclaration.d.ts.map +1 -1
  274. package/dist/src/components/MemberDeclaration.js.map +1 -1
  275. package/dist/src/components/MemberExpression.d.ts +4 -2
  276. package/dist/src/components/MemberExpression.d.ts.map +1 -1
  277. package/dist/src/components/MemberExpression.js.map +1 -1
  278. package/dist/src/components/MemberScope.d.ts +2 -2
  279. package/dist/src/components/MemberScope.d.ts.map +1 -1
  280. package/dist/src/components/MemberScope.js.map +1 -1
  281. package/dist/src/components/NewExpression.d.ts +1 -1
  282. package/dist/src/components/NewExpression.d.ts.map +1 -1
  283. package/dist/src/components/NewExpression.js.map +1 -1
  284. package/dist/src/components/ObjectExpression.d.ts +1 -1
  285. package/dist/src/components/ObjectExpression.d.ts.map +1 -1
  286. package/dist/src/components/ObjectExpression.js.map +1 -1
  287. package/dist/src/components/PackageDirectory.d.ts +3 -3
  288. package/dist/src/components/PackageDirectory.d.ts.map +1 -1
  289. package/dist/src/components/PackageDirectory.js.map +1 -1
  290. package/dist/src/components/PackageJson.d.ts.map +1 -1
  291. package/dist/src/components/PackageJson.js.map +1 -1
  292. package/dist/src/components/PropertyName.d.ts.map +1 -1
  293. package/dist/src/components/PropertyName.js.map +1 -1
  294. package/dist/src/components/Reference.d.ts +1 -1
  295. package/dist/src/components/Reference.d.ts.map +1 -1
  296. package/dist/src/components/Reference.js.map +1 -1
  297. package/dist/src/components/SingleLineCommentBlock.js.map +1 -1
  298. package/dist/src/components/SourceFile.d.ts +2 -1
  299. package/dist/src/components/SourceFile.d.ts.map +1 -1
  300. package/dist/src/components/SourceFile.js.map +1 -1
  301. package/dist/src/components/SwitchStatement.d.ts.map +1 -1
  302. package/dist/src/components/SwitchStatement.js.map +1 -1
  303. package/dist/src/components/TryStatement.d.ts.map +1 -1
  304. package/dist/src/components/TryStatement.js.map +1 -1
  305. package/dist/src/components/TryStatement.test.js.map +1 -1
  306. package/dist/src/components/TsConfigJson.d.ts.map +1 -1
  307. package/dist/src/components/TsConfigJson.js.map +1 -1
  308. package/dist/src/components/TypeDeclaration.d.ts +1 -1
  309. package/dist/src/components/TypeDeclaration.d.ts.map +1 -1
  310. package/dist/src/components/TypeDeclaration.js.map +1 -1
  311. package/dist/src/components/TypeRefContext.d.ts.map +1 -1
  312. package/dist/src/components/TypeRefContext.js.map +1 -1
  313. package/dist/src/components/ValueExpression.d.ts +1 -1
  314. package/dist/src/components/ValueExpression.d.ts.map +1 -1
  315. package/dist/src/components/ValueExpression.js.map +1 -1
  316. package/dist/src/components/VarDeclaration.d.ts +2 -2
  317. package/dist/src/components/VarDeclaration.d.ts.map +1 -1
  318. package/dist/src/components/VarDeclaration.js.map +1 -1
  319. package/dist/src/components/index.d.ts +1 -1
  320. package/dist/src/components/index.d.ts.map +1 -1
  321. package/dist/src/components/index.js +0 -1
  322. package/dist/src/components/index.js.map +1 -1
  323. package/dist/src/components/interface/expression.test.js.map +1 -1
  324. package/dist/src/components/stc/index.js.map +1 -1
  325. package/dist/src/context/index.js.map +1 -1
  326. package/dist/src/context/package-metadata.d.ts +2 -2
  327. package/dist/src/context/package-metadata.d.ts.map +1 -1
  328. package/dist/src/context/package-metadata.js.map +1 -1
  329. package/dist/src/context/type-ref-context.d.ts +1 -1
  330. package/dist/src/context/type-ref-context.d.ts.map +1 -1
  331. package/dist/src/context/type-ref-context.js.map +1 -1
  332. package/dist/src/create-package.d.ts +6 -5
  333. package/dist/src/create-package.d.ts.map +1 -1
  334. package/dist/src/create-package.js.map +1 -1
  335. package/dist/src/index.d.ts +1 -1
  336. package/dist/src/index.d.ts.map +1 -1
  337. package/dist/src/index.js +0 -1
  338. package/dist/src/index.js.map +1 -1
  339. package/dist/src/name-conflict-resolver.d.ts +1 -1
  340. package/dist/src/name-conflict-resolver.d.ts.map +1 -1
  341. package/dist/src/name-conflict-resolver.js.map +1 -1
  342. package/dist/src/name-policy.d.ts +1 -1
  343. package/dist/src/name-policy.d.ts.map +1 -1
  344. package/dist/src/name-policy.js.map +1 -1
  345. package/dist/src/parameter-descriptor.js.map +1 -1
  346. package/dist/src/source-directory-data.d.ts +2 -2
  347. package/dist/src/source-directory-data.d.ts.map +1 -1
  348. package/dist/src/source-directory-data.js.map +1 -1
  349. package/dist/src/symbols/index.d.ts +3 -2
  350. package/dist/src/symbols/index.d.ts.map +1 -1
  351. package/dist/src/symbols/index.js.map +1 -1
  352. package/dist/src/symbols/reference.d.ts +2 -2
  353. package/dist/src/symbols/reference.d.ts.map +1 -1
  354. package/dist/src/symbols/reference.js.map +1 -1
  355. package/dist/src/symbols/scopes.d.ts +2 -2
  356. package/dist/src/symbols/scopes.d.ts.map +1 -1
  357. package/dist/src/symbols/scopes.js.map +1 -1
  358. package/dist/src/symbols/ts-lexical-scope.js.map +1 -1
  359. package/dist/src/symbols/ts-member-scope.d.ts +3 -3
  360. package/dist/src/symbols/ts-member-scope.d.ts.map +1 -1
  361. package/dist/src/symbols/ts-member-scope.js.map +1 -1
  362. package/dist/src/symbols/ts-module-scope.d.ts +1 -1
  363. package/dist/src/symbols/ts-module-scope.d.ts.map +1 -1
  364. package/dist/src/symbols/ts-module-scope.js.map +1 -1
  365. package/dist/src/symbols/ts-output-symbol.d.ts +3 -2
  366. package/dist/src/symbols/ts-output-symbol.d.ts.map +1 -1
  367. package/dist/src/symbols/ts-output-symbol.js.map +1 -1
  368. package/dist/src/symbols/ts-package-scope.d.ts +3 -2
  369. package/dist/src/symbols/ts-package-scope.d.ts.map +1 -1
  370. package/dist/src/symbols/ts-package-scope.js.map +1 -1
  371. package/dist/src/utils.d.ts +2 -2
  372. package/dist/src/utils.d.ts.map +1 -1
  373. package/dist/src/utils.js.map +1 -1
  374. package/dist/test/array.test.js.map +1 -1
  375. package/dist/test/arrow-function.test.js.map +1 -1
  376. package/dist/test/barrel.test.js.map +1 -1
  377. package/dist/test/basic.test.js.map +1 -1
  378. package/dist/test/block-scope.test.js.map +1 -1
  379. package/dist/test/class.test.js.map +1 -1
  380. package/dist/test/decl-helpers.test.js.map +1 -1
  381. package/dist/test/enum-jsdoc.test.js.map +1 -1
  382. package/dist/test/enum.test.js.map +1 -1
  383. package/dist/test/externals.test.js.map +1 -1
  384. package/dist/test/function-call-expression.test.js.map +1 -1
  385. package/dist/test/function-declaration-jsdoc.test.js.map +1 -1
  386. package/dist/test/function-declaration.test.js.map +1 -1
  387. package/dist/test/function-expression.test.js.map +1 -1
  388. package/dist/test/function-type.test.js.map +1 -1
  389. package/dist/test/if-statement.test.js.map +1 -1
  390. package/dist/test/imports-reactive.test.js.map +1 -1
  391. package/dist/test/imports.test.js.map +1 -1
  392. package/dist/test/interface-jsdoc.test.js.map +1 -1
  393. package/dist/test/interface.test.js.map +1 -1
  394. package/dist/test/jscomment.test.js.map +1 -1
  395. package/dist/test/jsdoc.test.js.map +1 -1
  396. package/dist/test/jsdocparam.test.js.map +1 -1
  397. package/dist/test/member-expression.test.js.map +1 -1
  398. package/dist/test/name-conflict.test.js.map +1 -1
  399. package/dist/test/name-policy.test.js.map +1 -1
  400. package/dist/test/new-expression.test.js.map +1 -1
  401. package/dist/test/object.test.js.map +1 -1
  402. package/dist/test/package-external.test.js.map +1 -1
  403. package/dist/test/package-json.test.js.map +1 -1
  404. package/dist/test/package.test.js.map +1 -1
  405. package/dist/test/reference.test.js.map +1 -1
  406. package/dist/test/source-file.test.js.map +1 -1
  407. package/dist/test/switch-statement.test.js.map +1 -1
  408. package/dist/test/utils.d.ts +1 -1
  409. package/dist/test/utils.d.ts.map +1 -1
  410. package/dist/test/utils.js.map +1 -1
  411. package/dist/test/value-expression.test.js.map +1 -1
  412. package/dist/test/values.test.js.map +1 -1
  413. package/dist/test/var-declaration-jsdoc.test.js.map +1 -1
  414. package/dist/test/var-declaration.test.js.map +1 -1
  415. package/dist/test/vitest.setup.js.map +1 -1
  416. package/dist/testing/create-wrapper.d.ts.map +1 -1
  417. package/dist/testing/create-wrapper.js +1 -1
  418. package/dist/testing/create-wrapper.js.map +1 -1
  419. package/dist/testing/create-wrapper.test.js +1 -1
  420. package/dist/testing/create-wrapper.test.js.map +1 -1
  421. package/dist/testing/index.js.map +1 -1
  422. package/dist/tsconfig.tsbuildinfo +1 -1
  423. package/docs/api/components/ArrowFunction.md +9 -9
  424. package/docs/api/components/BlockScope.md +20 -20
  425. package/docs/api/components/CallSignature.md +7 -7
  426. package/docs/api/components/CatchClause.md +4 -4
  427. package/docs/api/components/ClassDeclaration.md +4 -4
  428. package/docs/api/components/ClassField.md +15 -15
  429. package/docs/api/components/ClassMember.md +12 -12
  430. package/docs/api/components/ClassMethod.md +19 -19
  431. package/docs/api/components/Declaration.md +16 -16
  432. package/docs/api/components/EnumMember.md +8 -8
  433. package/docs/api/components/ExportStatement.md +4 -4
  434. package/docs/api/components/FunctionCallExpression.md +4 -4
  435. package/docs/api/components/FunctionDeclaration.md +9 -9
  436. package/docs/api/components/FunctionExpression.md +9 -9
  437. package/docs/api/components/InterfaceDeclaration.md +4 -4
  438. package/docs/api/components/InterfaceMember.md +18 -18
  439. package/docs/api/components/InterfaceMethod.md +12 -12
  440. package/docs/api/components/NewExpression.md +4 -4
  441. package/docs/api/components/ObjectExpression.md +1 -1
  442. package/docs/api/components/ObjectProperty.md +8 -8
  443. package/docs/api/components/ObjectSpreadProperty.md +5 -5
  444. package/docs/api/components/PackageDirectory.md +2 -2
  445. package/docs/api/components/PackageJsonFile.md +16 -16
  446. package/docs/api/components/SourceFile.md +7 -7
  447. package/docs/api/components/VarDeclaration.md +8 -8
  448. package/docs/api/functions/createInstanceMemberSymbol.md +16 -16
  449. package/docs/api/functions/createLexicalScope.md +5 -5
  450. package/docs/api/functions/createMemberScope.md +5 -5
  451. package/docs/api/functions/createMemberSymbol.md +16 -16
  452. package/docs/api/functions/createPrivateInstanceMemberSymbol.md +16 -16
  453. package/docs/api/functions/createPrivateStaticMemberSymbol.md +16 -16
  454. package/docs/api/functions/createStaticMemberSymbol.md +16 -16
  455. package/docs/api/functions/createTypeAndValueSymbol.md +16 -16
  456. package/docs/api/functions/createTypeSymbol.md +16 -16
  457. package/docs/api/functions/createValueSymbol.md +16 -16
  458. package/docs/api/functions/decl.md +16 -16
  459. package/docs/api/functions/declMember.md +16 -16
  460. package/docs/api/functions/declType.md +16 -16
  461. package/docs/api/types/CreateTsSymbolOptions.md +6 -6
  462. package/docs/api/types/DeclarationPropsBase.md +4 -4
  463. package/docs/api/types/FunctionBodyProps.md +3 -3
  464. package/docs/api/types/FunctionParametersProps.md +4 -4
  465. package/docs/api/types/FunctionTypeParametersProps.md +4 -4
  466. package/docs/api/types/FunctionTypeProps.md +5 -5
  467. package/docs/api/types/InterfaceExpressionProps.md +3 -3
  468. package/docs/api/types/InterfaceMemberPropsBase.md +7 -7
  469. package/docs/api/types/MemberExpressionPartProps.md +11 -11
  470. package/docs/api/types/ModuleSymbolsDescriptor.md +4 -4
  471. package/docs/api/types/NamedMap.md +4 -4
  472. package/docs/api/types/ParameterDescriptor.md +3 -3
  473. package/docs/api/types/ParameterDescriptorBase.md +10 -10
  474. package/docs/api/types/SourceFileHeaderProps.md +4 -4
  475. package/docs/api/types/TypeParameterDescriptor.md +7 -7
  476. package/docs/api/types/TypeParametersProps.md +4 -4
  477. package/package.json +8 -8
  478. package/src/builtins/node.ts +2 -1
  479. package/src/components/ArrayExpression.tsx +3 -1
  480. package/src/components/ArrowFunction.tsx +3 -1
  481. package/src/components/BarrelFile.tsx +2 -1
  482. package/src/components/BlockScope.tsx +3 -2
  483. package/src/components/CallSignature.tsx +14 -13
  484. package/src/components/ClassDeclaration.tsx +5 -5
  485. package/src/components/CommaList.tsx +2 -1
  486. package/src/components/Declaration.tsx +8 -15
  487. package/src/components/EnumDeclaration.tsx +2 -1
  488. package/src/components/EnumMember.tsx +7 -3
  489. package/src/components/ExportStatement.tsx +2 -1
  490. package/src/components/FunctionBase.tsx +8 -10
  491. package/src/components/FunctionCallExpression.tsx +2 -1
  492. package/src/components/FunctionDeclaration.tsx +5 -2
  493. package/src/components/FunctionExpression.tsx +3 -1
  494. package/src/components/FunctionType.tsx +3 -1
  495. package/src/components/IfStatement.tsx +1 -0
  496. package/src/components/ImportStatement.tsx +7 -8
  497. package/src/components/Interface.tsx +17 -16
  498. package/src/components/InterfaceMethod.tsx +4 -3
  499. package/src/components/JSDoc.tsx +1 -0
  500. package/src/components/JSDocParam.tsx +2 -1
  501. package/src/components/LexicalScope.tsx +3 -1
  502. package/src/components/MemberDeclaration.tsx +10 -10
  503. package/src/components/MemberExpression.tsx +34 -39
  504. package/src/components/MemberScope.tsx +4 -6
  505. package/src/components/NewExpression.tsx +3 -4
  506. package/src/components/ObjectExpression.tsx +2 -3
  507. package/src/components/PackageDirectory.tsx +6 -5
  508. package/src/components/PackageJson.tsx +4 -3
  509. package/src/components/PropertyName.tsx +2 -1
  510. package/src/components/Reference.tsx +3 -1
  511. package/src/components/SourceFile.tsx +4 -4
  512. package/src/components/SwitchStatement.tsx +5 -3
  513. package/src/components/TryStatement.test.tsx +1 -0
  514. package/src/components/TryStatement.tsx +4 -3
  515. package/src/components/TsConfigJson.tsx +1 -0
  516. package/src/components/TypeDeclaration.tsx +3 -1
  517. package/src/components/TypeRefContext.tsx +1 -0
  518. package/src/components/ValueExpression.tsx +3 -1
  519. package/src/components/VarDeclaration.tsx +9 -12
  520. package/src/components/index.ts +1 -1
  521. package/src/components/interface/expression.test.tsx +1 -0
  522. package/src/context/package-metadata.ts +4 -2
  523. package/src/context/type-ref-context.tsx +2 -5
  524. package/src/create-package.ts +15 -15
  525. package/src/index.ts +1 -1
  526. package/src/name-conflict-resolver.ts +4 -2
  527. package/src/name-policy.ts +2 -1
  528. package/src/source-directory-data.ts +4 -2
  529. package/src/symbols/index.ts +4 -3
  530. package/src/symbols/reference.tsx +12 -7
  531. package/src/symbols/scopes.ts +3 -2
  532. package/src/symbols/ts-member-scope.ts +4 -3
  533. package/src/symbols/ts-module-scope.ts +3 -6
  534. package/src/symbols/ts-output-symbol.ts +3 -4
  535. package/src/symbols/ts-package-scope.ts +4 -7
  536. package/src/utils.ts +2 -1
  537. package/temp/api.json +231 -1190
  538. package/test/array.test.tsx +1 -0
  539. package/test/arrow-function.test.tsx +4 -2
  540. package/test/barrel.test.tsx +1 -0
  541. package/test/basic.test.tsx +1 -0
  542. package/test/block-scope.test.tsx +1 -0
  543. package/test/class.test.tsx +1 -0
  544. package/test/decl-helpers.test.tsx +1 -0
  545. package/test/enum-jsdoc.test.tsx +1 -0
  546. package/test/externals.test.tsx +1 -0
  547. package/test/function-call-expression.test.tsx +1 -0
  548. package/test/function-declaration-jsdoc.test.tsx +1 -0
  549. package/test/function-declaration.test.tsx +3 -2
  550. package/test/function-expression.test.tsx +4 -2
  551. package/test/function-type.test.tsx +4 -2
  552. package/test/if-statement.test.tsx +1 -0
  553. package/test/imports-reactive.test.tsx +1 -0
  554. package/test/imports.test.tsx +1 -0
  555. package/test/interface-jsdoc.test.tsx +1 -0
  556. package/test/interface.test.tsx +3 -2
  557. package/test/jscomment.test.tsx +1 -0
  558. package/test/jsdoc.test.tsx +1 -0
  559. package/test/jsdocparam.test.tsx +1 -0
  560. package/test/member-expression.test.tsx +2 -1
  561. package/test/name-conflict.test.tsx +5 -3
  562. package/test/name-policy.test.tsx +1 -0
  563. package/test/new-expression.test.tsx +1 -0
  564. package/test/object.test.tsx +1 -0
  565. package/test/package-external.test.tsx +1 -0
  566. package/test/package-json.test.tsx +1 -0
  567. package/test/package.test.tsx +1 -0
  568. package/test/reference.test.tsx +1 -0
  569. package/test/source-file.test.tsx +1 -0
  570. package/test/switch-statement.test.tsx +1 -0
  571. package/test/utils.tsx +3 -1
  572. package/test/value-expression.test.tsx +1 -0
  573. package/test/var-declaration-jsdoc.test.tsx +1 -0
  574. package/test/var-declaration.test.tsx +1 -0
  575. package/testing/create-wrapper.test.tsx +6 -3
  576. package/testing/create-wrapper.tsx +3 -1
  577. package/tsdoc-metadata.json +1 -1
  578. package/vitest.config.ts +0 -12
@@ -1 +1 @@
1
- {"version":3,"names":["memberRefkey","namekey","Output","refkey","StatementList","expect","it","ts","_$createComponent","children","SourceFile","path","VarDeclaration","name","initializer","fileName","import","meta","url","lineNumber","columnNumber","toRenderTo","TestType","TypeDeclaration","type","Reference","ifaceRk","ifaceMemberRk","classRk","classMemberRk","v1Rk","v2Rk","_$memo","InterfaceDeclaration","InterfaceMember","ClassDeclaration","ClassField","ObjectExpression","ObjectProperty","value"],"sources":["../../../test/var-declaration.test.tsx"],"sourcesCont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AAA;MAAA;QAAAL,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,IAAAZ,iBAAA,CAGvCD,EAAE,CAACG,UAAU;QAACC,IAAI;QAAA,IAAAF,SAAA;UAAA,OAAAD,iBAAA,CAChBD,EAAE,CAAC4B,gBAAgB;YAACtB,IAAI;YAAOV,MAAM,EAAEyB,OAAO;YAAA,IAAAnB,SAAA;cAAA,OAAAD,iBAAA,CAC5CJ,aAAa;gBAAA,IAAAK,SAAA;kBAAA,OAAAD,iBAAA,CACXD,EAAE,CAAC6B,UAAU;oBAACvB,IAAI;oBAAgBV,MAAM,EAAE0B,aAAa;oBAAApB,QAAA;kBAAA;oBAAAM,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;oBAAAC,UAAA;oBAAAC,YAAA;kBAAA;gBAAA;cAAA;gBAAAL,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;gBAAAC,UAAA;gBAAAC,YAAA;cAAA;YAAA;UAAA;YAAAL,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;YAAAC,UAAA;YAAAC,YAAA;UAAA;QAAA;MAAA;QAAAL,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA;IAAA;EAAA;IAAAL,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,EAOlE,CAAC,CAACC,UAAU,CAAC;IACX,SAAS,EAAE;AACf;AACA;AACA;AACA,KAAK;IACD,SAAS,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;EACE,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../test/var-declaration.test.tsx"],"sourcesContent":["import {\n memberRefkey,\n namekey,\n Output,\n refkey,\n StatementList,\n} from \"@alloy-js/core\";\nimport { expect, it } from \"vitest\";\n\nimport * as ts from \"../src/index.js\";\n\nit(\"works\", () => {\n expect(\n <Output>\n <ts.SourceFile path=\"test.js\">\n <ts.VarDeclaration name=\"hi\" initializer=\"12\" />;\n </ts.SourceFile>\n </Output>,\n ).toRenderTo(\"const hi = 12;\");\n});\n\nit(\"allows omitting the initializer\", () => {\n expect(\n <Output>\n <ts.SourceFile path=\"test.js\">\n <ts.VarDeclaration let name=\"hi\" />;\n </ts.SourceFile>\n </Output>,\n ).toRenderTo(\"let hi;\");\n});\n\nit(\"takes namekeys\", () => {\n expect(\n <Output>\n <ts.SourceFile path=\"test.js\">\n <ts.VarDeclaration name={namekey(\"foo\")} initializer=\"12\" />;\n </ts.SourceFile>\n </Output>,\n ).toRenderTo(\"const foo = 12;\");\n});\n\nit(\"works end-to-end\", () => {\n const TestType = refkey(\"TestType\");\n\n expect(\n <Output>\n <ts.SourceFile path=\"types.ts\">\n <ts.TypeDeclaration name=\"TestType\" refkey={TestType}>\n \"hello\" | \"goodbye\"\n </ts.TypeDeclaration>\n </ts.SourceFile>\n <ts.SourceFile path=\"test.ts\">\n <ts.VarDeclaration\n export\n let\n name=\"hi\"\n type={<ts.Reference refkey={TestType} />}\n >\n \"hello\"\n </ts.VarDeclaration>\n ;\n </ts.SourceFile>\n </Output>,\n ).toRenderTo({\n \"types.ts\": `\n type TestType = \"hello\" | \"goodbye\";\n `,\n \"test.ts\": `\n import type { TestType } from \"./types.js\";\n\n export let hi: TestType = \"hello\";\n `,\n });\n});\n\nit(\"instantiates symbols from its type\", () => {\n const ifaceRk = refkey();\n const ifaceMemberRk = refkey();\n const classRk = refkey();\n const classMemberRk = refkey();\n const v1Rk = refkey();\n const v2Rk = refkey();\n\n expect(\n <Output>\n <ts.SourceFile path=\"inst.ts\">\n <StatementList>\n <ts.VarDeclaration export name=\"one\" refkey={v1Rk} type={classRk}>\n \"test\"\n </ts.VarDeclaration>\n <>{memberRefkey(v1Rk, classMemberRk)}</>\n <ts.VarDeclaration export name=\"two\" refkey={v2Rk} type={ifaceRk}>\n \"test\"\n </ts.VarDeclaration>\n <>{memberRefkey(v2Rk, ifaceMemberRk)}</>\n </StatementList>\n </ts.SourceFile>\n <ts.SourceFile path=\"decl.ts\">\n <ts.InterfaceDeclaration name=\"Foo\" refkey={ifaceRk}>\n <StatementList>\n <ts.InterfaceMember name=\"instanceProp\" refkey={ifaceMemberRk}>\n 42\n </ts.InterfaceMember>\n </StatementList>\n </ts.InterfaceDeclaration>\n <ts.ClassDeclaration name=\"Bar\" refkey={classRk}>\n <StatementList>\n <ts.ClassField name=\"instanceProp\" refkey={classMemberRk}>\n 42\n </ts.ClassField>\n </StatementList>\n </ts.ClassDeclaration>\n </ts.SourceFile>\n </Output>,\n ).toRenderTo({\n \"decl.ts\": `\n interface Foo {\n instanceProp: 42;\n }class Bar {\n instanceProp = 42;\n }\n `,\n \"inst.ts\": `\n import type { Bar, Foo } from \"./decl.js\";\n\n export const one: Bar = \"test\";\n one.instanceProp;\n export const two: Foo = \"test\";\n two.instanceProp;\n `,\n });\n});\n\nit(\"instantiates symbols from type even when an expression is passed\", () => {\n const classRk = refkey();\n const classMemberRk = refkey();\n const v1Rk = refkey();\n\n expect(\n <Output>\n <ts.SourceFile path=\"inst.ts\">\n <StatementList>\n <ts.VarDeclaration export name=\"one\" refkey={v1Rk} type={classRk}>\n <ts.ObjectExpression>\n <ts.ObjectProperty name=\"noProp\" refkey={refkey()} value=\"1\" />\n </ts.ObjectExpression>\n </ts.VarDeclaration>\n <>{memberRefkey(v1Rk, classMemberRk)}</>\n </StatementList>\n </ts.SourceFile>\n <ts.SourceFile path=\"decl.ts\">\n <ts.ClassDeclaration name=\"Bar\" refkey={classRk}>\n <StatementList>\n <ts.ClassField name=\"instanceProp\" refkey={classMemberRk}>\n 42\n </ts.ClassField>\n </StatementList>\n </ts.ClassDeclaration>\n </ts.SourceFile>\n </Output>,\n ).toRenderTo({\n \"decl.ts\": `\n class Bar {\n instanceProp = 42;\n }\n `,\n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AAA;QAAA;MAAA;IAAA;EAAA;IAAA;IAAA;IAAA;EAAA,EAOlE,CAAC,CAAC,UAAU,CAAC;IACX,SAAS,EAAE;AACf;AACA;AACA;AACA,KAAK;IACD,SAAS,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;EACE,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../test/vitest.setup.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,wBAAwB","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../test/vitest.setup.ts"],"sourcesContent":["import \"@alloy-js/core/testing\";\n"],"mappings":"AAAA,OAAO,wBAAwB","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import { SourceFile } from "#components/index.js";
2
1
  import { createTestWrapper } from "@alloy-js/core/testing";
2
+ import { SourceFile } from "#components/index.js";
3
3
  import { TSOutputSymbol, useTSScope } from "../src/index.js";
4
4
  export function createTSTestWrapper() {
5
5
  return createTestWrapper({
@@ -1 +1 @@
1
- {"version":3,"names":["SourceFile","createTestWrapper","TSOutputSymbol","useTSScope","createTSTestWrapper","filePath","useScope","makeSymbol","nk","scope","spaces"],"sources":["../../../testing/create-wrapper.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAU,QAAQ,sBAAsB;AACjD,SAASC,iBAAiB,QAA0B,wBAAwB;AAC5E,SAASC,cAAc,EAAEC,UAAU,QAAQ,iBAAiB;AAE5D,OAAO,SAASC,mBAAmBA,CAAA,EAAgB;EACjD,OAAOH,iBAAiB,CAAC;IACvBI,QAAQ,EAAE,SAAS;IACnBC,QAAQ,EAAEH,UAAU;IACpBI,UAAU,EAAEA,CAACC,EAAE,EAAEC,KAAK,KAAK,IAAIP,cAAc,CAACM,EAAE,EAAEC,KAAK,CAACC,MAAM,CAAC;IAC/DV;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../testing/create-wrapper.tsx"],"sourcesContent":["import { createTestWrapper, type TestWrapper } from \"@alloy-js/core/testing\";\n\nimport { SourceFile } from \"#components/index.js\";\n\nimport { TSOutputSymbol, useTSScope } from \"../src/index.js\";\n\nexport function createTSTestWrapper(): TestWrapper {\n return createTestWrapper({\n filePath: \"test.ts\",\n useScope: useTSScope,\n makeSymbol: (nk, scope) => new TSOutputSymbol(nk, scope.spaces),\n SourceFile,\n });\n}\n"],"mappings":"AAAA,SAAS,iBAAiB,QAA0B,wBAAwB;AAE5E,SAAS,UAAU,QAAQ,sBAAsB;AAEjD,SAAS,cAAc,EAAE,UAAU,QAAQ,iBAAiB;AAE5D,OAAO,SAAS,mBAAmB,GAAgB;EACjD,OAAO,iBAAiB,CAAC;IACvB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,CAAC,EAAE,EAAE,KAAK,KAAK,IAAI,cAAc,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC;IAC/D;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -1,8 +1,8 @@
1
1
  import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { ClassDeclaration, ClassField, ClassMethod } from "#components/index.js";
3
2
  import { List } from "@alloy-js/core";
4
3
  import { d } from "@alloy-js/core/testing";
5
4
  import { expect, it } from "vitest";
5
+ import { ClassDeclaration, ClassField, ClassMethod } from "#components/index.js";
6
6
  import { createTSTestWrapper } from "./create-wrapper.js";
7
7
  it("should render defkey inline", async () => {
8
8
  const {
@@ -11,11 +11,11 @@ it("should render defkey inline", async () => {
11
11
  } = createTSTestWrapper();
12
12
  expect(_$createComponent(Wrapper, {
13
13
  get children() {
14
- return ["return ", _$memo(() => defkey("myResult"), false, "defkey(\u2026)"), ";"];
14
+ return ["return ", _$memo(() => defkey("myResult"), false, "defkey(…)"), ";"];
15
15
  }
16
16
  }, {
17
17
  fileName: import.meta.url,
18
- lineNumber: 14,
18
+ lineNumber: 17,
19
19
  columnNumber: 10
20
20
  })).toRenderTo(`return myResult;`);
21
21
  });
@@ -42,7 +42,7 @@ it("reuses declarations across multiple usage sites", () => {
42
42
  }]
43
43
  }, {
44
44
  fileName: import.meta.url,
45
- lineNumber: 28,
45
+ lineNumber: 31,
46
46
  columnNumber: 11
47
47
  }), _$createComponent(ClassMethod, {
48
48
  name: "b",
@@ -53,25 +53,25 @@ it("reuses declarations across multiple usage sites", () => {
53
53
  }]
54
54
  }, {
55
55
  fileName: import.meta.url,
56
- lineNumber: 33,
56
+ lineNumber: 36,
57
57
  columnNumber: 11
58
58
  })];
59
59
  }
60
60
  }, {
61
61
  fileName: import.meta.url,
62
- lineNumber: 27,
62
+ lineNumber: 30,
63
63
  columnNumber: 9
64
64
  });
65
65
  }
66
66
  }, {
67
67
  fileName: import.meta.url,
68
- lineNumber: 26,
68
+ lineNumber: 29,
69
69
  columnNumber: 7
70
70
  });
71
71
  }
72
72
  }, {
73
73
  fileName: import.meta.url,
74
- lineNumber: 25,
74
+ lineNumber: 28,
75
75
  columnNumber: 5
76
76
  })).toRenderTo(d`
77
77
  class A {
@@ -104,7 +104,7 @@ it("reuses declarations across multiple defkeys", () => {
104
104
  }
105
105
  }, {
106
106
  fileName: import.meta.url,
107
- lineNumber: 55,
107
+ lineNumber: 58,
108
108
  columnNumber: 11
109
109
  }), _$createComponent(ClassMethod, {
110
110
  name: "b",
@@ -119,25 +119,25 @@ it("reuses declarations across multiple defkeys", () => {
119
119
  }
120
120
  }, {
121
121
  fileName: import.meta.url,
122
- lineNumber: 60,
122
+ lineNumber: 63,
123
123
  columnNumber: 11
124
124
  })];
125
125
  }
126
126
  }, {
127
127
  fileName: import.meta.url,
128
- lineNumber: 54,
128
+ lineNumber: 57,
129
129
  columnNumber: 9
130
130
  });
131
131
  }
132
132
  }, {
133
133
  fileName: import.meta.url,
134
- lineNumber: 53,
134
+ lineNumber: 56,
135
135
  columnNumber: 7
136
136
  });
137
137
  }
138
138
  }, {
139
139
  fileName: import.meta.url,
140
- lineNumber: 52,
140
+ lineNumber: 55,
141
141
  columnNumber: 5
142
142
  })).toRenderTo(d`
143
143
  class A {
@@ -154,7 +154,7 @@ it("should render defkey in nested component", async () => {
154
154
  }
155
155
  }, {
156
156
  fileName: import.meta.url,
157
- lineNumber: 77,
157
+ lineNumber: 80,
158
158
  columnNumber: 12
159
159
  });
160
160
  }
@@ -173,19 +173,19 @@ it("should render defkey in nested component", async () => {
173
173
  }
174
174
  }, {
175
175
  fileName: import.meta.url,
176
- lineNumber: 85,
176
+ lineNumber: 88,
177
177
  columnNumber: 9
178
178
  });
179
179
  }
180
180
  }, {
181
181
  fileName: import.meta.url,
182
- lineNumber: 84,
182
+ lineNumber: 87,
183
183
  columnNumber: 7
184
184
  });
185
185
  }
186
186
  }, {
187
187
  fileName: import.meta.url,
188
- lineNumber: 83,
188
+ lineNumber: 86,
189
189
  columnNumber: 5
190
190
  })).toRenderTo(d`
191
191
  class MyClass {
@@ -209,19 +209,19 @@ it("should render defkey in class property", async () => {
209
209
  }
210
210
  }, {
211
211
  fileName: import.meta.url,
212
- lineNumber: 100,
212
+ lineNumber: 103,
213
213
  columnNumber: 9
214
214
  });
215
215
  }
216
216
  }, {
217
217
  fileName: import.meta.url,
218
- lineNumber: 99,
218
+ lineNumber: 102,
219
219
  columnNumber: 7
220
220
  });
221
221
  }
222
222
  }, {
223
223
  fileName: import.meta.url,
224
- lineNumber: 98,
224
+ lineNumber: 101,
225
225
  columnNumber: 5
226
226
  })).toRenderTo(d`
227
227
  class TestClass {
@@ -1 +1 @@
1
- {"version":3,"names":["ClassDeclaration","ClassField","ClassMethod","List","d","expect","it","createTSTestWrapper","Wrapper","defkey","_$createComponent","children","_$memo","fileName","import","meta","url","lineNumber","columnNumber","toRenderTo","T","R","name","returnType","parameters","type","TestComponent","props","returnTypeRef"],"sources":["../../../testing/create-wrapper.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SACEA,gBAAgB,EAChBC,UAAU,EACVC,WAAW,Q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testing/create-wrapper.test.tsx"],"sourcesContent":["import type { Refkey } from \"@alloy-js/core\";\nimport { List } from \"@alloy-js/core\";\nimport { d } from \"@alloy-js/core/testing\";\nimport { expect, it } from \"vitest\";\n\nimport {\n ClassDeclaration,\n ClassField,\n ClassMethod,\n} from \"#components/index.js\";\n\nimport { createTSTestWrapper } from \"./create-wrapper.jsx\";\n\nit(\"should render defkey inline\", async () => {\n const { Wrapper, defkey } = createTSTestWrapper();\n\n expect(<Wrapper>return {defkey(\"myResult\")};</Wrapper>).toRenderTo(\n `return myResult;`,\n );\n});\n\nit(\"reuses declarations across multiple usage sites\", () => {\n const { Wrapper, defkey } = createTSTestWrapper();\n const T = defkey(\"Thing\");\n const R = defkey(\"Result\");\n\n expect(\n <Wrapper>\n <ClassDeclaration name=\"A\">\n <List>\n <ClassMethod\n name=\"a\"\n returnType={R}\n parameters={[{ name: \"x\", type: T }]}\n />\n <ClassMethod\n name=\"b\"\n returnType={R}\n parameters={[{ name: \"y\", type: T }]}\n />\n </List>\n </ClassDeclaration>\n </Wrapper>,\n ).toRenderTo(d`\n class A {\n a(x: Thing): Result {}\n b(y: Thing): Result {}\n }`);\n});\n\nit(\"reuses declarations across multiple defkeys\", () => {\n const { Wrapper, defkey } = createTSTestWrapper();\n\n expect(\n <Wrapper>\n <ClassDeclaration name=\"A\">\n <List>\n <ClassMethod\n name=\"a\"\n returnType={defkey(\"Result\")}\n parameters={[{ name: \"x\", type: defkey(\"Thing\") }]}\n />\n <ClassMethod\n name=\"b\"\n returnType={defkey(\"Result\")}\n parameters={[{ name: \"y\", type: defkey(\"Thing\") }]}\n />\n </List>\n </ClassDeclaration>\n </Wrapper>,\n ).toRenderTo(d`\n class A {\n a(x: Thing): Result {}\n b(y: Thing): Result {}\n }`);\n});\n\nit(\"should render defkey in nested component\", async () => {\n function TestComponent(props: { returnTypeRef: Refkey }) {\n return <ClassMethod name=\"foo\" returnType={props.returnTypeRef} />;\n }\n\n const { Wrapper, defkey } = createTSTestWrapper();\n\n expect(\n <Wrapper>\n <ClassDeclaration name=\"MyClass\">\n <TestComponent returnTypeRef={defkey(\"MyType\")} />\n </ClassDeclaration>\n </Wrapper>,\n ).toRenderTo(d`\n class MyClass {\n foo(): MyType {}\n }`);\n});\n\nit(\"should render defkey in class property\", async () => {\n const { Wrapper, defkey } = createTSTestWrapper();\n\n expect(\n <Wrapper>\n <ClassDeclaration name=\"TestClass\">\n <ClassField name=\"MyProperty\" type={defkey(\"MyType\")} />\n </ClassDeclaration>\n </Wrapper>,\n ).toRenderTo(d`\n class TestClass {\n MyProperty: MyType\n }`);\n});\n"],"mappings":";AACA,SAAS,IAAI,QAAQ,gBAAgB;AACrC,SAAS,CAAC,QAAQ,wBAAwB;AAC1C,SAAS,MAAM,EAAE,EAAE,QAAQ,QAAQ;AAEnC,SACE,gBAAgB,EAChB,UAAU,EACV,WAAW,QACN,sBAAsB;AAE7B,SAAS,mBAAmB;AAE5B,EAAE,CAAC,6BAA6B,EAAE,YAAY;EAC5C,MAAM;IAAE,OAAO;IAAE;EAAO,CAAC,GAAG,mBAAmB,CAAC,CAAC;EAEjD,MAAM,mBAAE,OAAO;IAAA;MAAA,gCAAS,MAAM,CAAC,UAAU,CAAC;IAAA;EAAA;IAAA;IAAA;IAAA;EAAA,EAAY,CAAC,CAAC,UAAU,CAChE,kBACF,CAAC;AACH,CAAC,CAAC;AAEF,EAAE,CAAC,iDAAiD,EAAE,MAAM;EAC1D,MAAM;IAAE,OAAO;IAAE;EAAO,CAAC,GAAG,mBAAmB,CAAC,CAAC;EACjD,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;EACzB,MAAM,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC;EAE1B,MAAM,mBACH,OAAO;IAAA;MAAA,yBACL,gBAAgB;QAAC,IAAI;QAAA;UAAA,yBACnB,IAAI;YAAA;cAAA,0BACF,WAAW;gBACV,IAAI;gBACJ,UAAU,EAAE,CAAC;gBACb,UAAU,EAAE,CAAC;kBAA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testing/index.ts"],"sourcesContent":[null],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../testing/index.ts"],"sourcesContent":["export * from \"./create-wrapper.jsx\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["node"],"sources":["../../../src/builtins/index.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,IAAI,MAAM,WAAW","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/builtins/index.ts"],"sourcesContent":["export * as node from \"./node.js\";\n"],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW","ignoreList":[]}
@@ -1,16 +1,16 @@
1
- import { SymbolCreator } from "@alloy-js/core";
1
+ import type { SymbolCreator } from "@alloy-js/core";
2
2
  export declare const path: {
3
3
  default: import("@alloy-js/core").Refkey;
4
4
  } & {
5
- join: import("@alloy-js/core").Refkey;
6
- normalize: import("@alloy-js/core").Refkey;
7
5
  basename: import("@alloy-js/core").Refkey;
8
6
  delimeter: import("@alloy-js/core").Refkey;
9
7
  dirname: import("@alloy-js/core").Refkey;
10
8
  extname: import("@alloy-js/core").Refkey;
11
9
  format: import("@alloy-js/core").Refkey;
12
- matchesGlob: import("@alloy-js/core").Refkey;
13
10
  isAbsolute: import("@alloy-js/core").Refkey;
11
+ join: import("@alloy-js/core").Refkey;
12
+ matchesGlob: import("@alloy-js/core").Refkey;
13
+ normalize: import("@alloy-js/core").Refkey;
14
14
  parse: import("@alloy-js/core").Refkey;
15
15
  posix: import("@alloy-js/core").Refkey;
16
16
  relative: import("@alloy-js/core").Refkey;
@@ -22,97 +22,97 @@ export declare const path: {
22
22
  export declare const fs: {
23
23
  default: import("@alloy-js/core").Refkey;
24
24
  } & {
25
- link: import("@alloy-js/core").Refkey;
26
25
  access: import("@alloy-js/core").Refkey;
26
+ accessSync: import("@alloy-js/core").Refkey;
27
27
  appendFile: import("@alloy-js/core").Refkey;
28
+ appendFileSync: import("@alloy-js/core").Refkey;
28
29
  chmod: import("@alloy-js/core").Refkey;
30
+ chmodSync: import("@alloy-js/core").Refkey;
29
31
  chown: import("@alloy-js/core").Refkey;
32
+ chownSync: import("@alloy-js/core").Refkey;
30
33
  close: import("@alloy-js/core").Refkey;
34
+ closeSync: import("@alloy-js/core").Refkey;
31
35
  copyFile: import("@alloy-js/core").Refkey;
36
+ copyFileSync: import("@alloy-js/core").Refkey;
32
37
  cp: import("@alloy-js/core").Refkey;
38
+ cpSync: import("@alloy-js/core").Refkey;
33
39
  createReadStream: import("@alloy-js/core").Refkey;
34
40
  createWriteStream: import("@alloy-js/core").Refkey;
35
41
  exists: import("@alloy-js/core").Refkey;
42
+ existsSync: import("@alloy-js/core").Refkey;
36
43
  fchmod: import("@alloy-js/core").Refkey;
44
+ fchmodSync: import("@alloy-js/core").Refkey;
37
45
  fchown: import("@alloy-js/core").Refkey;
46
+ fchownSync: import("@alloy-js/core").Refkey;
38
47
  fdatasync: import("@alloy-js/core").Refkey;
48
+ fdatasyncSync: import("@alloy-js/core").Refkey;
39
49
  fstat: import("@alloy-js/core").Refkey;
50
+ fstatSync: import("@alloy-js/core").Refkey;
40
51
  fsync: import("@alloy-js/core").Refkey;
52
+ fsyncSync: import("@alloy-js/core").Refkey;
41
53
  ftruncate: import("@alloy-js/core").Refkey;
54
+ ftruncateSync: import("@alloy-js/core").Refkey;
42
55
  futimes: import("@alloy-js/core").Refkey;
56
+ futimesSync: import("@alloy-js/core").Refkey;
43
57
  glob: import("@alloy-js/core").Refkey;
58
+ globSync: import("@alloy-js/core").Refkey;
44
59
  lchmod: import("@alloy-js/core").Refkey;
60
+ lchmodSync: import("@alloy-js/core").Refkey;
45
61
  lchown: import("@alloy-js/core").Refkey;
46
- lutimes: import("@alloy-js/core").Refkey;
62
+ lchownSync: import("@alloy-js/core").Refkey;
63
+ link: import("@alloy-js/core").Refkey;
64
+ linkSync: import("@alloy-js/core").Refkey;
47
65
  lstat: import("@alloy-js/core").Refkey;
66
+ lstatSync: import("@alloy-js/core").Refkey;
67
+ lutimes: import("@alloy-js/core").Refkey;
68
+ lutimesSync: import("@alloy-js/core").Refkey;
48
69
  mkdir: import("@alloy-js/core").Refkey;
70
+ mkdirSync: import("@alloy-js/core").Refkey;
49
71
  mkdtemp: import("@alloy-js/core").Refkey;
72
+ mkdtempSync: import("@alloy-js/core").Refkey;
50
73
  open: import("@alloy-js/core").Refkey;
51
74
  openAsBlob: import("@alloy-js/core").Refkey;
75
+ openSync: import("@alloy-js/core").Refkey;
52
76
  opendir: import("@alloy-js/core").Refkey;
77
+ opendirSync: import("@alloy-js/core").Refkey;
53
78
  read: import("@alloy-js/core").Refkey;
54
- readdir: import("@alloy-js/core").Refkey;
55
79
  readFile: import("@alloy-js/core").Refkey;
80
+ readFileSync: import("@alloy-js/core").Refkey;
81
+ readSync: import("@alloy-js/core").Refkey;
82
+ readdir: import("@alloy-js/core").Refkey;
83
+ readdirSync: import("@alloy-js/core").Refkey;
56
84
  readlink: import("@alloy-js/core").Refkey;
85
+ readlinkSync: import("@alloy-js/core").Refkey;
57
86
  readv: import("@alloy-js/core").Refkey;
87
+ readvSync: import("@alloy-js/core").Refkey;
58
88
  realpath: import("@alloy-js/core").Refkey;
89
+ realpathSync: import("@alloy-js/core").Refkey;
59
90
  rename: import("@alloy-js/core").Refkey;
60
- rmdir: import("@alloy-js/core").Refkey;
91
+ renameSync: import("@alloy-js/core").Refkey;
61
92
  rm: import("@alloy-js/core").Refkey;
93
+ rmSync: import("@alloy-js/core").Refkey;
94
+ rmdir: import("@alloy-js/core").Refkey;
95
+ rmdirSync: import("@alloy-js/core").Refkey;
62
96
  stat: import("@alloy-js/core").Refkey;
97
+ statSync: import("@alloy-js/core").Refkey;
63
98
  statfs: import("@alloy-js/core").Refkey;
99
+ statfsSync: import("@alloy-js/core").Refkey;
64
100
  symlink: import("@alloy-js/core").Refkey;
101
+ symlinkSync: import("@alloy-js/core").Refkey;
65
102
  truncate: import("@alloy-js/core").Refkey;
103
+ truncateSync: import("@alloy-js/core").Refkey;
66
104
  unlink: import("@alloy-js/core").Refkey;
105
+ unlinkSync: import("@alloy-js/core").Refkey;
67
106
  unwatchFile: import("@alloy-js/core").Refkey;
68
107
  utimes: import("@alloy-js/core").Refkey;
108
+ utimesSync: import("@alloy-js/core").Refkey;
69
109
  watch: import("@alloy-js/core").Refkey;
70
110
  watchFile: import("@alloy-js/core").Refkey;
71
111
  write: import("@alloy-js/core").Refkey;
72
112
  writeFile: import("@alloy-js/core").Refkey;
73
- writev: import("@alloy-js/core").Refkey;
74
- accessSync: import("@alloy-js/core").Refkey;
75
- appendFileSync: import("@alloy-js/core").Refkey;
76
- chmodSync: import("@alloy-js/core").Refkey;
77
- chownSync: import("@alloy-js/core").Refkey;
78
- closeSync: import("@alloy-js/core").Refkey;
79
- copyFileSync: import("@alloy-js/core").Refkey;
80
- cpSync: import("@alloy-js/core").Refkey;
81
- existsSync: import("@alloy-js/core").Refkey;
82
- fchmodSync: import("@alloy-js/core").Refkey;
83
- fchownSync: import("@alloy-js/core").Refkey;
84
- fdatasyncSync: import("@alloy-js/core").Refkey;
85
- fstatSync: import("@alloy-js/core").Refkey;
86
- fsyncSync: import("@alloy-js/core").Refkey;
87
- ftruncateSync: import("@alloy-js/core").Refkey;
88
- futimesSync: import("@alloy-js/core").Refkey;
89
- globSync: import("@alloy-js/core").Refkey;
90
- lchmodSync: import("@alloy-js/core").Refkey;
91
- lchownSync: import("@alloy-js/core").Refkey;
92
- lutimesSync: import("@alloy-js/core").Refkey;
93
- linkSync: import("@alloy-js/core").Refkey;
94
- lstatSync: import("@alloy-js/core").Refkey;
95
- mkdirSync: import("@alloy-js/core").Refkey;
96
- mkdtempSync: import("@alloy-js/core").Refkey;
97
- opendirSync: import("@alloy-js/core").Refkey;
98
- openSync: import("@alloy-js/core").Refkey;
99
- readdirSync: import("@alloy-js/core").Refkey;
100
- readFileSync: import("@alloy-js/core").Refkey;
101
- readlinkSync: import("@alloy-js/core").Refkey;
102
- readSync: import("@alloy-js/core").Refkey;
103
- readvSync: import("@alloy-js/core").Refkey;
104
- realpathSync: import("@alloy-js/core").Refkey;
105
- renameSync: import("@alloy-js/core").Refkey;
106
- rmdirSync: import("@alloy-js/core").Refkey;
107
- rmSync: import("@alloy-js/core").Refkey;
108
- statSync: import("@alloy-js/core").Refkey;
109
- statfsSync: import("@alloy-js/core").Refkey;
110
- symlinkSync: import("@alloy-js/core").Refkey;
111
- truncateSync: import("@alloy-js/core").Refkey;
112
- unlinkSync: import("@alloy-js/core").Refkey;
113
- utimesSync: import("@alloy-js/core").Refkey;
114
113
  writeFileSync: import("@alloy-js/core").Refkey;
115
114
  writeSync: import("@alloy-js/core").Refkey;
115
+ writev: import("@alloy-js/core").Refkey;
116
116
  writevSync: import("@alloy-js/core").Refkey;
117
117
  } & {} & {
118
118
  readonly "./promises": import("../create-package.js").ModuleExports<{
@@ -123,30 +123,30 @@ export declare const fs: {
123
123
  export declare const util: {
124
124
  default: import("@alloy-js/core").Refkey;
125
125
  } & {
126
- types: import("@alloy-js/core").Refkey;
127
- format: import("@alloy-js/core").Refkey;
126
+ MIMEParams: import("@alloy-js/core").Refkey;
127
+ MIMEType: import("@alloy-js/core").Refkey;
128
+ TextDecoder: import("@alloy-js/core").Refkey;
129
+ TextEncoder: import("@alloy-js/core").Refkey;
130
+ aborted: import("@alloy-js/core").Refkey;
128
131
  callbackify: import("@alloy-js/core").Refkey;
129
- debuglog: import("@alloy-js/core").Refkey;
130
132
  debug: import("@alloy-js/core").Refkey;
133
+ debuglog: import("@alloy-js/core").Refkey;
131
134
  deprecate: import("@alloy-js/core").Refkey;
135
+ format: import("@alloy-js/core").Refkey;
132
136
  formatWithOptions: import("@alloy-js/core").Refkey;
133
- getSystemErrorName: import("@alloy-js/core").Refkey;
134
137
  getSystemErrorMap: import("@alloy-js/core").Refkey;
138
+ getSystemErrorName: import("@alloy-js/core").Refkey;
135
139
  inherits: import("@alloy-js/core").Refkey;
136
140
  inspect: import("@alloy-js/core").Refkey;
137
141
  isDeepStrictEqual: import("@alloy-js/core").Refkey;
138
- MIMEType: import("@alloy-js/core").Refkey;
139
- MIMEParams: import("@alloy-js/core").Refkey;
140
142
  parseArgs: import("@alloy-js/core").Refkey;
141
143
  parseEnv: import("@alloy-js/core").Refkey;
142
144
  promisify: import("@alloy-js/core").Refkey;
143
145
  stripVTControlCharacters: import("@alloy-js/core").Refkey;
144
146
  styleText: import("@alloy-js/core").Refkey;
145
- TextDecoder: import("@alloy-js/core").Refkey;
146
- TextEncoder: import("@alloy-js/core").Refkey;
147
147
  toUSVString: import("@alloy-js/core").Refkey;
148
148
  transferableAbortController: import("@alloy-js/core").Refkey;
149
149
  transferableAbortSignal: import("@alloy-js/core").Refkey;
150
- aborted: import("@alloy-js/core").Refkey;
150
+ types: import("@alloy-js/core").Refkey;
151
151
  } & {} & {} & SymbolCreator & import("../create-package.js").ExternalPackage;
152
152
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/builtins/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAM/C,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;4EA2Bf,CAAC;AAEH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAqJb,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAoCf,CAAC"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/builtins/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAOpD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;4EA2Bf,CAAC;AAEH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAqJb,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAoCf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["createPackage","path","name","version","builtin","descriptor","default","named","fs","util"],"sources":["../../../src/builtins/node.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,aAAa,QAAQ,sBAAsB;;AAEpD;;AAGA,OAAO,MAAMC,IAAI,GAAGD,aAAa,CAAC;EAChCE,IAAI,EAAE,WAAW;EACjBC,OAAO,EAAE,QAAQ;EACjBC,OAAO,EAAE,IAAI;EACbC,UAAU,EAAE;IACV,GAAG,EAAE;MACHC,OAAO,EAAE,MAAM;MACfC,KAAK,EAAE,CACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,MAAM,EACN,WAAW,EACX,OAAO,EACP,OAAO,EACP,UAAU,EACV,SAAS,EACT,KAAK,EACL,kBAAkB,EAClB,OAAO;IAEX;EACF;AACF,CAAC,CAAC;AAEF,OAAO,MAAMC,EAAE,GAAGR,aAAa,CAAC;EAC9BE,IAAI,EAAE,SAAS;EACfC,OAAO,EAAE,QAAQ;EACjBC,OAAO,EAAE,IAAI;EACbC,UAAU,EAAE;IACV,GAAG,EAAE;MACHC,OAAO,EAAE,IAAI;MACbC,KAAK,EAAE,CACL,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EACV,IAAI,EACJ,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAA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AAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,WAAW;IAEf;EACF;AACF,CAAC,CAAC;AAEF,OAAO,MAAME,IAAI,GAAGT,aAAa,CAAC;EAChCE,IAAI,EAAE,WAAW;EACjBC,OAAO,EAAE,QAAQ;EACjBC,OAAO,EAAE,IAAI;EACbC,UAAU,EAAE;IACV,GAAG,EAAE;MACHC,OAAO,EAAE,MAAM;MACfC,KAAK,EAAE,CACL,aAAa,EACb,UAAU,EACV,OAAO,EACP,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,0BAA0B,EAC1B,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,6BAA6B,EAC7B,yBAAyB,EACzB,SAAS,EACT,OAAO;IAEX;EACF;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/builtins/node.ts"],"sourcesContent":["import type { SymbolCreator } from \"@alloy-js/core\";\n\nimport { createPackage } from \"../create-package.js\";\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ntype dummy = SymbolCreator;\n\nexport const path = createPackage({\n name: \"node:path\",\n version: \"22.5.1\",\n builtin: true,\n descriptor: {\n \".\": {\n default: \"path\",\n named: [\n \"basename\",\n \"delimeter\",\n \"dirname\",\n \"extname\",\n \"format\",\n \"matchesGlob\",\n \"isAbsolute\",\n \"join\",\n \"normalize\",\n \"parse\",\n \"posix\",\n \"relative\",\n \"resolve\",\n \"sep\",\n \"toNamespacedPath\",\n \"win32\",\n ],\n },\n },\n});\n\nexport const fs = createPackage({\n name: \"node:fs\",\n version: \"22.5.1\",\n builtin: true,\n descriptor: {\n \".\": {\n default: \"fs\",\n named: [\n \"access\",\n \"appendFile\",\n \"chmod\",\n \"chown\",\n \"close\",\n \"copyFile\",\n \"cp\",\n \"createReadStream\",\n \"createWriteStream\",\n \"exists\",\n \"fchmod\",\n \"fchown\",\n \"fdatasync\",\n \"fstat\",\n \"fsync\",\n \"ftruncate\",\n \"futimes\",\n \"glob\",\n \"lchmod\",\n \"lchown\",\n \"lutimes\",\n \"link\",\n \"lstat\",\n \"mkdir\",\n \"mkdtemp\",\n \"open\",\n \"openAsBlob\",\n \"opendir\",\n \"read\",\n \"read\",\n \"read\",\n \"readdir\",\n \"readFile\",\n \"readlink\",\n \"readv\",\n \"realpath\",\n \"realpath\",\n \"rename\",\n \"rmdir\",\n \"rm\",\n \"stat\",\n \"statfs\",\n \"symlink\",\n \"truncate\",\n \"unlink\",\n \"unwatchFile\",\n \"utimes\",\n \"watch\",\n \"watchFile\",\n \"write\",\n \"write\",\n \"write\",\n \"writeFile\",\n \"writev\",\n \"accessSync\",\n \"appendFileSync\",\n \"chmodSync\",\n \"chownSync\",\n \"closeSync\",\n \"copyFileSync\",\n \"cpSync\",\n \"existsSync\",\n \"fchmodSync\",\n \"fchownSync\",\n \"fdatasyncSync\",\n \"fstatSync\",\n \"fsyncSync\",\n \"ftruncateSync\",\n \"futimesSync\",\n \"globSync\",\n \"lchmodSync\",\n \"lchownSync\",\n \"lutimesSync\",\n \"linkSync\",\n \"lstatSync\",\n \"mkdirSync\",\n \"mkdtempSync\",\n \"opendirSync\",\n \"openSync\",\n \"readdirSync\",\n \"readFileSync\",\n \"readlinkSync\",\n \"readSync\",\n \"readSync\",\n \"readvSync\",\n \"realpathSync\",\n \"realpathSync\",\n \"renameSync\",\n \"rmdirSync\",\n \"rmSync\",\n \"statSync\",\n \"statfsSync\",\n \"symlinkSync\",\n \"truncateSync\",\n \"unlinkSync\",\n \"utimesSync\",\n \"writeFileSync\",\n \"writeSync\",\n \"writeSync\",\n \"writeSync\",\n \"writevSync\",\n ],\n },\n \"./promises\": {\n default: \"fs\",\n named: [\n \"access\",\n \"appendFile\",\n \"chmod\",\n \"chown\",\n \"copyFile\",\n \"cp\",\n \"glob\",\n \"lchmod\",\n \"lchown\",\n \"lutimes\",\n \"link\",\n \"lstat\",\n \"mkdir\",\n \"mkdtemp\",\n \"open\",\n \"opendir\",\n \"readdir\",\n \"readFile\",\n \"readLink\",\n \"realpath\",\n \"rename\",\n \"rmdir\",\n \"rm\",\n \"stat\",\n \"statfs\",\n \"symlink\",\n \"truncate\",\n \"unlink\",\n \"utimes\",\n \"watch\",\n \"writeFile\",\n \"constants\",\n ],\n },\n },\n});\n\nexport const util = createPackage({\n name: \"node:util\",\n version: \"22.5.1\",\n builtin: true,\n descriptor: {\n \".\": {\n default: \"util\",\n named: [\n \"callbackify\",\n \"debuglog\",\n \"debug\",\n \"deprecate\",\n \"format\",\n \"formatWithOptions\",\n \"getSystemErrorName\",\n \"getSystemErrorMap\",\n \"inherits\",\n \"inspect\",\n \"isDeepStrictEqual\",\n \"MIMEType\",\n \"MIMEParams\",\n \"parseArgs\",\n \"parseEnv\",\n \"promisify\",\n \"stripVTControlCharacters\",\n \"styleText\",\n \"TextDecoder\",\n \"TextEncoder\",\n \"toUSVString\",\n \"transferableAbortController\",\n \"transferableAbortSignal\",\n \"aborted\",\n \"types\",\n ],\n },\n },\n});\n"],"mappings":"AAEA,SAAS,aAAa,QAAQ,sBAAsB;;AAEpD;;AAGA,OAAO,MAAM,IAAI,GAAG,aAAa,CAAC;EAChC,IAAI,EAAE,WAAW;EACjB,OAAO,EAAE,QAAQ;EACjB,OAAO,EAAE,IAAI;EACb,UAAU,EAAE;IACV,GAAG,EAAE;MACH,OAAO,EAAE,MAAM;MACf,KAAK,EAAE,CACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,MAAM,EACN,WAAW,EACX,OAAO,EACP,OAAO,EACP,UAAU,EACV,SAAS,EACT,KAAK,EACL,kBAAkB,EAClB,OAAO;IAEX;EACF;AACF,CAAC,CAAC;AAEF,OAAO,MAAM,EAAE,GAAG,aAAa,CAAC;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,eAAe,EACf,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY;IAEhB,CAAC;IACD,YAAY,EAAE;MACZ,OAAO,EAAE,IAAI;MACb,KAAK,EAAE,CACL,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,OAAO,EACP,UAAU,EACV,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,WAAW;IAEf;EACF;AACF,CAAC,CAAC;AAEF,OAAO,MAAM,IAAI,GAAG,aAAa,CAAC;EAChC,IAAI,EAAE,WAAW;EACjB,OAAO,EAAE,QAAQ;EACjB,OAAO,EAAE,IAAI;EACb,UAAU,EAAE;IACV,GAAG,EAAE;MACH,OAAO,EAAE,MAAM;MACf,KAAK,EAAE,CACL,aAAa,EACb,UAAU,EACV,OAAO,EACP,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,0BAA0B,EAC1B,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,6BAA6B,EAC7B,yBAAyB,EACzB,SAAS,EACT,OAAO;IAEX;EACF;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { Children } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
2
  export interface ArrayExpressionProps {
3
3
  children?: Children;
4
4
  jsValue?: unknown[];
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayExpression.d.ts","sourceRoot":"","sources":["../../../src/components/ArrayExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAoC,MAAM,gBAAgB,CAAC;AAG5E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,YAuB1D"}
1
+ {"version":3,"file":"ArrayExpression.d.ts","sourceRoot":"","sources":["../../../src/components/ArrayExpression.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAK/C,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,YAuB1D"}
@@ -1 +1 @@
1
- {"version":3,"names":["childrenArray","For","Indent","Show","ValueExpression","ArrayExpression","props","hasVisibleChildren","children","filter","c","Boolean","length","_$createIntrinsic","_$createComponent","softline","each","jsValue","comma","line","value","when","_$memo"],"sources":["../../../src/components/ArrayExpression.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAAmBA,aAAa,EAAEC,GAAG,EAAEC,MAAM,EAAEC,IAAI,QAAQ,gBAAgB;AAC3E,SAASC,eAAe,QAAQ,sBAAsB;AAOtD,OAAO,SAASC,eAAeA,CAACC,KAA2B,EAAE;EAC3D,MAAMC,kBAAkB,GACtBP,aAAa,CAAC,MAAMM,KAAK,CAACE,QAAQ,CAAC,CAACC,MAAM,CAAEC,CAAC,IAAKC,OAAO,CAACD,CAAC,CAAC,CAAC,CAACE,MAAM,GAAG,CAAC;EAE1E,OAAAC,iBAAA;IAAA,IAAAL,SAAA;MAAA,aAAAM,iBAAA,CAGKZ,MAAM;QAACa,QAAQ;QAAA,IAAAP,SAAA;UAAA,QAAAM,iBAAA,CACbb,GAAG;YAAA,IAACe,IAAIA,CAAA;cAAA,OAAEV,KAAK,CAACW,OAAO,IAAI,EAAE;YAAA;YAAEC,KAAK;YAACC,IAAI;YAAAX,QAAA,EACtCY,KAAK,IAAAN,iBAAA,CAAMV,eAAe;cAACa,OAAO,EAAEG;YAAK;UAAI,IAAAN,iBAAA,CAEhDX,IAAI;YAACkB,IAAI,EAAEd,kBAAkB;YAAA,IAAAC,SAAA;cAAA,QAAAc,MAAA,OAC3BA,MAAA,UAAAhB,KAAK,CAACW,OAAO,IAAIX,KAAK,CAACW,OAAO,CAACL,MAAM,GAAG,CAAC,cAAAC,iBAAA,WAIzC,GAAAS,MAAA,OACAhB,KAAK,CAACE,QAAQ;YAAA;UAAA;QAAA;MAAA,IAAAK,iBAAA;IAAA;EAAA;AAMzB","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/ArrayExpression.tsx"],"sourcesContent":["import type { Children } from \"@alloy-js/core\";\nimport { childrenArray, For, Indent, Show } from \"@alloy-js/core\";\n\nimport { ValueExpression } from \"./ValueExpression.js\";\n\nexport interface ArrayExpressionProps {\n children?: Children;\n jsValue?: unknown[];\n}\n\nexport function ArrayExpression(props: ArrayExpressionProps) {\n const hasVisibleChildren =\n childrenArray(() => props.children).filter((c) => Boolean(c)).length > 0;\n\n return (\n <group>\n [\n <Indent softline>\n <For each={props.jsValue ?? []} comma line>\n {(value) => <ValueExpression jsValue={value} />}\n </For>\n <Show when={hasVisibleChildren}>\n {props.jsValue && props.jsValue.length > 0 && (\n <>\n ,<br />\n </>\n )}\n {props.children}\n </Show>\n </Indent>\n <sbr />]\n </group>\n );\n}\n"],"mappings":";AACA,SAAS,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,QAAQ,gBAAgB;AAEjE,SAAS,eAAe,QAAQ,sBAAsB;AAOtD,OAAO,SAAS,eAAe,CAAC,KAA2B,EAAE;EAC3D,MAAM,kBAAkB,GACtB,aAAa,CAAC,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAE,CAAC,IAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC;EAE1E;IAAA;MAAA,+BAGK,MAAM;QAAC,QAAQ;QAAA;UAAA,0BACb,GAAG;YAAA,IAAC,IAAI;cAAA,OAAE,KAAK,CAAC,OAAO,IAAI,EAAE;YAAA;YAAE,KAAK;YAAC,IAAI;YAAA,UACtC,KAAK,sBAAM,eAAe;cAAC,OAAO,EAAE;YAAK;UAAI,sBAEhD,IAAI;YAAC,IAAI,EAAE,kBAAkB;YAAA;cAAA,qBAC3B,qBAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,0CAIzC,gBACA,KAAK,CAAC,QAAQ;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAMzB","ignoreList":[]}
@@ -1,5 +1,6 @@
1
1
  import { type Children } from "@alloy-js/core";
2
- import { CallSignatureProps } from "./CallSignature.jsx";
2
+ import type { CallSignatureProps } from "./CallSignature.jsx";
3
+ import { FunctionBody, FunctionParameters, TypeParameters } from "./FunctionBase.jsx";
3
4
  export interface ArrowFunctionProps extends CallSignatureProps {
4
5
  async?: boolean;
5
6
  children?: Children;
@@ -33,8 +34,8 @@ export interface ArrowFunctionProps extends CallSignatureProps {
33
34
  */
34
35
  export declare function ArrowFunction(props: ArrowFunctionProps): Children;
35
36
  export declare namespace ArrowFunction {
36
- var TypeParameters: import("@alloy-js/core").Component<import("./FunctionBase.jsx").TypeParametersProps> & Required<Pick<import("@alloy-js/core").Component<import("./FunctionBase.jsx").TypeParametersProps>, "tag">>;
37
- var Parameters: import("@alloy-js/core").Component<import("./FunctionBase.jsx").FunctionParametersProps> & Required<Pick<import("@alloy-js/core").Component<import("./FunctionBase.jsx").FunctionParametersProps>, "tag">>;
38
- var Body: import("@alloy-js/core").Component<import("./FunctionBase.jsx").FunctionBodyProps> & Required<Pick<import("@alloy-js/core").Component<import("./FunctionBase.jsx").FunctionBodyProps>, "tag">>;
37
+ export { TypeParameters };
38
+ export { FunctionParameters as Parameters };
39
+ export { FunctionBody as Body };
39
40
  }
40
41
  //# sourceMappingURL=ArrowFunction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowFunction.d.ts","sourceRoot":"","sources":["../../../src/components/ArrowFunction.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAiB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AASxE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,YA+BtD;yBA/Be,aAAa"}
1
+ {"version":3,"file":"ArrowFunction.d.ts","sourceRoot":"","sources":["../../../src/components/ArrowFunction.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,kBAAkB,EAElB,cAAc,EACf,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,YA+BtD;yBA/Be,aAAa;;aAkCF,kBAAkB;aACxB,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"names":["childrenArray","findKeyedChild","findUnkeyedChildren","getCallSignatureProps","CallSignature","FunctionBody","FunctionParameters","getReturnType","TypeParameters","LexicalScope","ArrowFunction","props","children","typeParametersChildren","tag","undefined","parametersChildren","bodyChildren","filteredChildren","returnType","async","sBody","_$createComponent","Body","asyncKwd","callSignatureProps","_$mergeProps","Parameters"],"sources":["../../../src/components/ArrowFunction.tsx"],"sourcesContent":[null],"mappings":";AAAA,SACEA,aAAa,EACbC,cAAc,EACdC,mBAAmB,QAEd,gBAAgB;AACvB,SAASC,qBAAqB,QAAQ,aAAa;AACnD,SAASC,aAAa;AACtB,SACEC,YAAY,EACZC,kBAAkB,EAClBC,aAAa,EACbC,cAAc;AAEhB,SAASC,YAAY;AAOrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,KAAyB,EAAE;EACvD,MAAMC,QAAQ,GAAGZ,aAAa,CAAC,MAAMW,KAAK,CAACC,QAAQ,CAAC;EACpD,MAAMC,sBAAsB,GAC1BZ,cAAc,CAACW,QAAQ,EAAEJ,cAAc,CAACM,GAAG,CAAC,IAAIC,SAAS;EAC3D,MAAMC,kBAAkB,GACtBf,cAAc,CAACW,QAAQ,EAAEN,kBAAkB,CAACQ,GAAG,CAAC,IAAIC,SAAS;EAC/D,MAAME,YAAY,GAAGhB,cAAc,CAACW,QAAQ,EAAEP,YAAY,CAACS,GAAG,CAAC,IAAIC,SAAS;EAC5E,MAAMG,gBAAgB,GAAGhB,mBAAmB,CAACU,QAAQ,CAAC;EACtD,MAAMO,UAAU,GAAGZ,aAAa,CAACI,KAAK,CAACQ,UAAU,EAAE;IAAEC,KAAK,EAAET,KAAK,CAACS;EAAM,CAAC,CAAC;EAE1E,MAAMC,KAAK,GAAGJ,YAAY,IAAAK,iBAAA,CACvBZ,aAAa,CAACa,IAAI;IAAAX,QAAA,EAAEM;EAAgB,EACtC;EAED,MAAMM,QAAQ,GAAGb,KAAK,CAACS,KAAK,GAAG,QAAQ,GAAG,EAAE;EAE5C,MAAMK,kBAAkB,GAAGtB,qBAAqB,CAACQ,KAAK,EAAE;IACtDK,kBAAkB;IAClBH;EACF,CAAC,CAAC;EAEF,QAEKW,QAAQ,EAAAF,iBAAA,CACRb,YAAY;IAAA,IAAAG,SAAA;MAAA,QAAAU,iBAAA,CACVlB,aAAa,EAAAsB,YAAA,CAAKD,kBAAkB;QAAEN,UAAU,EAAEA;MAAU,KAC5D,MAAM,EACNE,KAAK;IAAA;EAAA;AAId;AAEAX,aAAa,CAACF,cAAc,GAAGA,cAAc;AAC7CE,aAAa,CAACiB,UAAU,GAAGrB,kBAAkB;AAC7CI,aAAa,CAACa,IAAI,GAAGlB,YAAY","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/ArrowFunction.tsx"],"sourcesContent":["import {\n childrenArray,\n findKeyedChild,\n findUnkeyedChildren,\n type Children,\n} from \"@alloy-js/core\";\n\nimport { getCallSignatureProps } from \"../utils.js\";\nimport type { CallSignatureProps } from \"./CallSignature.jsx\";\nimport { CallSignature } from \"./CallSignature.jsx\";\nimport {\n FunctionBody,\n FunctionParameters,\n getReturnType,\n TypeParameters,\n} from \"./FunctionBase.jsx\";\nimport { LexicalScope } from \"./LexicalScope.jsx\";\n\nexport interface ArrowFunctionProps extends CallSignatureProps {\n async?: boolean;\n children?: Children;\n}\n\n/**\n * A TypeScript arrow function expression.\n *\n * @example\n * ```tsx\n * <FunctionExpression async parameters={[{ name: \"a\", type: \"number\" }, { name: \"b\", type: \"number\" }]}>\n * return a + b;\n * <FunctionExpression>\n * ```\n * renders to\n * ```ts\n * async (a, b) => { return a + b; }\n * ```\n *\n * @remarks\n *\n * Providing parameters and type parameters can be accomplished in one of three\n * ways:\n *\n * 1. As an array of {@link ParameterDescriptor}s or\n * {@link TypeParameterDescriptor}s.\n * 2. As raw content via the `parametersChildren` or `typeParametersChildren`\n * props.\n * 3. As a child of this component via the\n * {@link (ArrowFunction:namespace).Parameters} or\n * {@link (ArrowFunction:namespace).TypeParameters} components.\n */\nexport function ArrowFunction(props: ArrowFunctionProps) {\n const children = childrenArray(() => props.children);\n const typeParametersChildren =\n findKeyedChild(children, TypeParameters.tag) ?? undefined;\n const parametersChildren =\n findKeyedChild(children, FunctionParameters.tag) ?? undefined;\n const bodyChildren = findKeyedChild(children, FunctionBody.tag) ?? undefined;\n const filteredChildren = findUnkeyedChildren(children);\n const returnType = getReturnType(props.returnType, { async: props.async });\n\n const sBody = bodyChildren ?? (\n <ArrowFunction.Body>{filteredChildren}</ArrowFunction.Body>\n );\n\n const asyncKwd = props.async ? \"async \" : \"\";\n\n const callSignatureProps = getCallSignatureProps(props, {\n parametersChildren,\n typeParametersChildren,\n });\n\n return (\n <>\n {asyncKwd}\n <LexicalScope>\n <CallSignature {...callSignatureProps} returnType={returnType} />\n {\" => \"}\n {sBody}\n </LexicalScope>\n </>\n );\n}\n\nArrowFunction.TypeParameters = TypeParameters;\nArrowFunction.Parameters = FunctionParameters;\nArrowFunction.Body = FunctionBody;\n"],"mappings":";AAAA,SACE,aAAa,EACb,cAAc,EACd,mBAAmB,QAEd,gBAAgB;AAEvB,SAAS,qBAAqB,QAAQ,aAAa;AAEnD,SAAS,aAAa;AACtB,SACE,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,cAAc;AAEhB,SAAS,YAAY;AAOrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS,aAAa,CAAC,KAAyB,EAAE;EACvD,MAAM,QAAQ,GAAG,aAAa,CAAC,MAAM,KAAK,CAAC,QAAQ,CAAC;EACpD,MAAM,sBAAsB,GAC1B,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,IAAI,SAAS;EAC3D,MAAM,kBAAkB,GACtB,cAAc,CAAC,QAAQ,EAAE,kBAAkB,CAAC,GAAG,CAAC,IAAI,SAAS;EAC/D,MAAM,YAAY,GAAG,cAAc,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,IAAI,SAAS;EAC5E,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,QAAQ,CAAC;EACtD,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,UAAU,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC;EAAM,CAAC,CAAC;EAE1E,MAAM,KAAK,GAAG,YAAY,sBACvB,aAAa,CAAC,IAAI;IAAA,UAAE;EAAgB,EACtC;EAED,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,GAAG,QAAQ,GAAG,EAAE;EAE5C,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,KAAK,EAAE;IACtD,kBAAkB;IAClB;EACF,CAAC,CAAC;EAEF,QAEK,QAAQ,oBACR,YAAY;IAAA;MAAA,0BACV,aAAa,eAAK,kBAAkB;QAAE,UAAU,EAAE;MAAU,KAC5D,MAAM,EACN,KAAK;IAAA;EAAA;AAId;AAEA,aAAa,CAAC,cAAc,GAAG,cAAc;AAC7C,aAAa,CAAC,UAAU,GAAG,kBAAkB;AAC7C,aAAa,CAAC,IAAI,GAAG,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"BarrelFile.d.ts","sourceRoot":"","sources":["../../../src/components/BarrelFile.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qCAiChD"}
1
+ {"version":3,"file":"BarrelFile.d.ts","sourceRoot":"","sources":["../../../src/components/BarrelFile.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qCAiChD"}