@alloy-js/typescript 0.25.0-dev.2 → 0.26.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 (494) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/dev/src/builtins/index.js.map +1 -1
  3. package/dist/dev/src/builtins/node.js.map +1 -1
  4. package/dist/dev/src/components/ArrayExpression.js +8 -8
  5. package/dist/dev/src/components/ArrayExpression.js.map +1 -1
  6. package/dist/dev/src/components/ArrowFunction.js +3 -3
  7. package/dist/dev/src/components/ArrowFunction.js.map +1 -1
  8. package/dist/dev/src/components/BarrelFile.js.map +1 -1
  9. package/dist/dev/src/components/BlockScope.js.map +1 -1
  10. package/dist/dev/src/components/CallSignature.js +1 -0
  11. package/dist/dev/src/components/CallSignature.js.map +1 -1
  12. package/dist/dev/src/components/ClassDeclaration.js +4 -4
  13. package/dist/dev/src/components/ClassDeclaration.js.map +1 -1
  14. package/dist/dev/src/components/CommaList.js +1 -1
  15. package/dist/dev/src/components/CommaList.js.map +1 -1
  16. package/dist/dev/src/components/Declaration.js +4 -3
  17. package/dist/dev/src/components/Declaration.js.map +1 -1
  18. package/dist/dev/src/components/EnumDeclaration.js +2 -2
  19. package/dist/dev/src/components/EnumDeclaration.js.map +1 -1
  20. package/dist/dev/src/components/EnumMember.js +6 -6
  21. package/dist/dev/src/components/EnumMember.js.map +1 -1
  22. package/dist/dev/src/components/ExportStatement.js +1 -1
  23. package/dist/dev/src/components/ExportStatement.js.map +1 -1
  24. package/dist/dev/src/components/FunctionBase.js +27 -27
  25. package/dist/dev/src/components/FunctionBase.js.map +1 -1
  26. package/dist/dev/src/components/FunctionCallExpression.js +3 -3
  27. package/dist/dev/src/components/FunctionCallExpression.js.map +1 -1
  28. package/dist/dev/src/components/FunctionDeclaration.js +12 -12
  29. package/dist/dev/src/components/FunctionDeclaration.js.map +1 -1
  30. package/dist/dev/src/components/FunctionExpression.js +3 -3
  31. package/dist/dev/src/components/FunctionExpression.js.map +1 -1
  32. package/dist/dev/src/components/FunctionType.js +9 -9
  33. package/dist/dev/src/components/FunctionType.js.map +1 -1
  34. package/dist/dev/src/components/IfStatement.js +1 -0
  35. package/dist/dev/src/components/IfStatement.js.map +1 -1
  36. package/dist/dev/src/components/ImportStatement.js +1 -1
  37. package/dist/dev/src/components/ImportStatement.js.map +1 -1
  38. package/dist/dev/src/components/Interface.js +19 -19
  39. package/dist/dev/src/components/Interface.js.map +1 -1
  40. package/dist/dev/src/components/InterfaceMethod.js +2 -2
  41. package/dist/dev/src/components/InterfaceMethod.js.map +1 -1
  42. package/dist/dev/src/components/JSDoc.js.map +1 -1
  43. package/dist/dev/src/components/JSDocComment.js +1 -0
  44. package/dist/dev/src/components/JSDocComment.js.map +1 -1
  45. package/dist/dev/src/components/JSDocExample.js.map +1 -1
  46. package/dist/dev/src/components/JSDocParam.js.map +1 -1
  47. package/dist/dev/src/components/LexicalScope.js +1 -1
  48. package/dist/dev/src/components/LexicalScope.js.map +1 -1
  49. package/dist/dev/src/components/MemberDeclaration.js +1 -1
  50. package/dist/dev/src/components/MemberDeclaration.js.map +1 -1
  51. package/dist/dev/src/components/MemberExpression.js +24 -20
  52. package/dist/dev/src/components/MemberExpression.js.map +1 -1
  53. package/dist/dev/src/components/MemberScope.js +1 -1
  54. package/dist/dev/src/components/MemberScope.js.map +1 -1
  55. package/dist/dev/src/components/NewExpression.js +1 -1
  56. package/dist/dev/src/components/NewExpression.js.map +1 -1
  57. package/dist/dev/src/components/ObjectExpression.js +14 -14
  58. package/dist/dev/src/components/ObjectExpression.js.map +1 -1
  59. package/dist/dev/src/components/PackageDirectory.js.map +1 -1
  60. package/dist/dev/src/components/PackageJson.js.map +1 -1
  61. package/dist/dev/src/components/PropertyName.js +1 -1
  62. package/dist/dev/src/components/PropertyName.js.map +1 -1
  63. package/dist/dev/src/components/Reference.js +1 -1
  64. package/dist/dev/src/components/Reference.js.map +1 -1
  65. package/dist/dev/src/components/SingleLineCommentBlock.js.map +1 -1
  66. package/dist/dev/src/components/SourceFile.js.map +1 -1
  67. package/dist/dev/src/components/SwitchStatement.js +2 -2
  68. package/dist/dev/src/components/SwitchStatement.js.map +1 -1
  69. package/dist/dev/src/components/TryStatement.js +1 -1
  70. package/dist/dev/src/components/TryStatement.js.map +1 -1
  71. package/dist/dev/src/components/TryStatement.test.js.map +1 -1
  72. package/dist/dev/src/components/TsConfigJson.js.map +1 -1
  73. package/dist/dev/src/components/TypeDeclaration.js +5 -5
  74. package/dist/dev/src/components/TypeDeclaration.js.map +1 -1
  75. package/dist/dev/src/components/TypeRefContext.js.map +1 -1
  76. package/dist/dev/src/components/ValueExpression.js +2 -2
  77. package/dist/dev/src/components/ValueExpression.js.map +1 -1
  78. package/dist/dev/src/components/VarDeclaration.js +1 -1
  79. package/dist/dev/src/components/VarDeclaration.js.map +1 -1
  80. package/dist/dev/src/components/index.js +0 -1
  81. package/dist/dev/src/components/index.js.map +1 -1
  82. package/dist/dev/src/components/interface/expression.test.js.map +1 -1
  83. package/dist/dev/src/components/stc/index.js.map +1 -1
  84. package/dist/dev/src/context/index.js.map +1 -1
  85. package/dist/dev/src/context/package-metadata.js.map +1 -1
  86. package/dist/dev/src/context/type-ref-context.js.map +1 -1
  87. package/dist/dev/src/create-package.js.map +1 -1
  88. package/dist/dev/src/index.js +0 -1
  89. package/dist/dev/src/index.js.map +1 -1
  90. package/dist/dev/src/name-conflict-resolver.js.map +1 -1
  91. package/dist/dev/src/name-policy.js.map +1 -1
  92. package/dist/dev/src/parameter-descriptor.js.map +1 -1
  93. package/dist/dev/src/source-directory-data.js.map +1 -1
  94. package/dist/dev/src/symbols/index.js.map +1 -1
  95. package/dist/dev/src/symbols/reference.js +6 -6
  96. package/dist/dev/src/symbols/reference.js.map +1 -1
  97. package/dist/dev/src/symbols/scopes.js.map +1 -1
  98. package/dist/dev/src/symbols/ts-lexical-scope.js.map +1 -1
  99. package/dist/dev/src/symbols/ts-member-scope.js.map +1 -1
  100. package/dist/dev/src/symbols/ts-module-scope.js.map +1 -1
  101. package/dist/dev/src/symbols/ts-output-symbol.js.map +1 -1
  102. package/dist/dev/src/symbols/ts-package-scope.js.map +1 -1
  103. package/dist/dev/src/utils.js.map +1 -1
  104. package/dist/dev/test/array.test.js.map +1 -1
  105. package/dist/dev/test/arrow-function.test.js +38 -38
  106. package/dist/dev/test/arrow-function.test.js.map +1 -1
  107. package/dist/dev/test/barrel.test.js.map +1 -1
  108. package/dist/dev/test/basic.test.js.map +1 -1
  109. package/dist/dev/test/block-scope.test.js.map +1 -1
  110. package/dist/dev/test/class.test.js.map +1 -1
  111. package/dist/dev/test/decl-helpers.test.js +1 -1
  112. package/dist/dev/test/decl-helpers.test.js.map +1 -1
  113. package/dist/dev/test/enum-jsdoc.test.js.map +1 -1
  114. package/dist/dev/test/enum.test.js.map +1 -1
  115. package/dist/dev/test/externals.test.js +2 -2
  116. package/dist/dev/test/externals.test.js.map +1 -1
  117. package/dist/dev/test/function-call-expression.test.js.map +1 -1
  118. package/dist/dev/test/function-declaration-jsdoc.test.js.map +1 -1
  119. package/dist/dev/test/function-declaration.test.js +1 -1
  120. package/dist/dev/test/function-declaration.test.js.map +1 -1
  121. package/dist/dev/test/function-expression.test.js +38 -38
  122. package/dist/dev/test/function-expression.test.js.map +1 -1
  123. package/dist/dev/test/function-type.test.js +27 -27
  124. package/dist/dev/test/function-type.test.js.map +1 -1
  125. package/dist/dev/test/if-statement.test.js.map +1 -1
  126. package/dist/dev/test/imports-reactive.test.js.map +1 -1
  127. package/dist/dev/test/imports.test.js.map +1 -1
  128. package/dist/dev/test/interface-jsdoc.test.js.map +1 -1
  129. package/dist/dev/test/interface.test.js.map +1 -1
  130. package/dist/dev/test/jscomment.test.js.map +1 -1
  131. package/dist/dev/test/jsdoc.test.js.map +1 -1
  132. package/dist/dev/test/jsdocparam.test.js.map +1 -1
  133. package/dist/dev/test/member-expression.test.js +109 -42
  134. package/dist/dev/test/member-expression.test.js.map +1 -1
  135. package/dist/dev/test/name-conflict.test.js +3 -3
  136. package/dist/dev/test/name-conflict.test.js.map +1 -1
  137. package/dist/dev/test/name-policy.test.js.map +1 -1
  138. package/dist/dev/test/new-expression.test.js.map +1 -1
  139. package/dist/dev/test/object.test.js.map +1 -1
  140. package/dist/dev/test/package-external.test.js.map +1 -1
  141. package/dist/dev/test/package-json.test.js.map +1 -1
  142. package/dist/dev/test/package.test.js +1 -1
  143. package/dist/dev/test/package.test.js.map +1 -1
  144. package/dist/dev/test/reference.test.js +94 -2
  145. package/dist/dev/test/reference.test.js.map +1 -1
  146. package/dist/dev/test/source-file.test.js.map +1 -1
  147. package/dist/dev/test/switch-statement.test.js.map +1 -1
  148. package/dist/dev/test/utils.js +2 -2
  149. package/dist/dev/test/utils.js.map +1 -1
  150. package/dist/dev/test/value-expression.test.js.map +1 -1
  151. package/dist/dev/test/values.test.js.map +1 -1
  152. package/dist/dev/test/var-declaration-jsdoc.test.js.map +1 -1
  153. package/dist/dev/test/var-declaration.test.js +3 -3
  154. package/dist/dev/test/var-declaration.test.js.map +1 -1
  155. package/dist/dev/test/vitest.setup.js.map +1 -1
  156. package/dist/dev/testing/create-wrapper.js.map +1 -1
  157. package/dist/dev/testing/create-wrapper.test.js +19 -19
  158. package/dist/dev/testing/create-wrapper.test.js.map +1 -1
  159. package/dist/dev/testing/index.js.map +1 -1
  160. package/dist/src/builtins/index.js.map +1 -1
  161. package/dist/src/builtins/node.d.ts +1 -1
  162. package/dist/src/builtins/node.d.ts.map +1 -1
  163. package/dist/src/builtins/node.js.map +1 -1
  164. package/dist/src/components/ArrayExpression.d.ts +1 -1
  165. package/dist/src/components/ArrayExpression.d.ts.map +1 -1
  166. package/dist/src/components/ArrayExpression.js.map +1 -1
  167. package/dist/src/components/ArrowFunction.d.ts +1 -1
  168. package/dist/src/components/ArrowFunction.d.ts.map +1 -1
  169. package/dist/src/components/ArrowFunction.js.map +1 -1
  170. package/dist/src/components/BarrelFile.js.map +1 -1
  171. package/dist/src/components/BlockScope.d.ts +1 -1
  172. package/dist/src/components/BlockScope.d.ts.map +1 -1
  173. package/dist/src/components/BlockScope.js.map +1 -1
  174. package/dist/src/components/CallSignature.d.ts +1 -1
  175. package/dist/src/components/CallSignature.d.ts.map +1 -1
  176. package/dist/src/components/CallSignature.js +1 -0
  177. package/dist/src/components/CallSignature.js.map +1 -1
  178. package/dist/src/components/ClassDeclaration.d.ts +3 -3
  179. package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
  180. package/dist/src/components/ClassDeclaration.js.map +1 -1
  181. package/dist/src/components/CommaList.d.ts +1 -1
  182. package/dist/src/components/CommaList.d.ts.map +1 -1
  183. package/dist/src/components/CommaList.js.map +1 -1
  184. package/dist/src/components/Declaration.d.ts +3 -3
  185. package/dist/src/components/Declaration.d.ts.map +1 -1
  186. package/dist/src/components/Declaration.js +2 -1
  187. package/dist/src/components/Declaration.js.map +1 -1
  188. package/dist/src/components/EnumDeclaration.d.ts +1 -1
  189. package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
  190. package/dist/src/components/EnumDeclaration.js.map +1 -1
  191. package/dist/src/components/EnumMember.d.ts +1 -1
  192. package/dist/src/components/EnumMember.d.ts.map +1 -1
  193. package/dist/src/components/EnumMember.js.map +1 -1
  194. package/dist/src/components/ExportStatement.d.ts +1 -1
  195. package/dist/src/components/ExportStatement.d.ts.map +1 -1
  196. package/dist/src/components/ExportStatement.js.map +1 -1
  197. package/dist/src/components/FunctionBase.d.ts +1 -1
  198. package/dist/src/components/FunctionBase.d.ts.map +1 -1
  199. package/dist/src/components/FunctionBase.js.map +1 -1
  200. package/dist/src/components/FunctionCallExpression.d.ts +1 -1
  201. package/dist/src/components/FunctionCallExpression.d.ts.map +1 -1
  202. package/dist/src/components/FunctionCallExpression.js.map +1 -1
  203. package/dist/src/components/FunctionDeclaration.d.ts +2 -2
  204. package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
  205. package/dist/src/components/FunctionDeclaration.js.map +1 -1
  206. package/dist/src/components/FunctionExpression.d.ts +1 -1
  207. package/dist/src/components/FunctionExpression.d.ts.map +1 -1
  208. package/dist/src/components/FunctionExpression.js.map +1 -1
  209. package/dist/src/components/FunctionType.d.ts +1 -1
  210. package/dist/src/components/FunctionType.d.ts.map +1 -1
  211. package/dist/src/components/FunctionType.js.map +1 -1
  212. package/dist/src/components/IfStatement.js +1 -0
  213. package/dist/src/components/IfStatement.js.map +1 -1
  214. package/dist/src/components/ImportStatement.d.ts +1 -1
  215. package/dist/src/components/ImportStatement.d.ts.map +1 -1
  216. package/dist/src/components/ImportStatement.js.map +1 -1
  217. package/dist/src/components/Interface.d.ts +3 -3
  218. package/dist/src/components/Interface.d.ts.map +1 -1
  219. package/dist/src/components/Interface.js.map +1 -1
  220. package/dist/src/components/InterfaceMethod.d.ts +3 -2
  221. package/dist/src/components/InterfaceMethod.d.ts.map +1 -1
  222. package/dist/src/components/InterfaceMethod.js.map +1 -1
  223. package/dist/src/components/JSDoc.js.map +1 -1
  224. package/dist/src/components/JSDocComment.js +1 -0
  225. package/dist/src/components/JSDocComment.js.map +1 -1
  226. package/dist/src/components/JSDocExample.js.map +1 -1
  227. package/dist/src/components/JSDocParam.d.ts +1 -1
  228. package/dist/src/components/JSDocParam.d.ts.map +1 -1
  229. package/dist/src/components/JSDocParam.js.map +1 -1
  230. package/dist/src/components/LexicalScope.d.ts +1 -1
  231. package/dist/src/components/LexicalScope.d.ts.map +1 -1
  232. package/dist/src/components/LexicalScope.js.map +1 -1
  233. package/dist/src/components/MemberDeclaration.d.ts +3 -3
  234. package/dist/src/components/MemberDeclaration.d.ts.map +1 -1
  235. package/dist/src/components/MemberDeclaration.js.map +1 -1
  236. package/dist/src/components/MemberExpression.d.ts +1 -1
  237. package/dist/src/components/MemberExpression.d.ts.map +1 -1
  238. package/dist/src/components/MemberExpression.js +8 -4
  239. package/dist/src/components/MemberExpression.js.map +1 -1
  240. package/dist/src/components/MemberScope.d.ts +2 -2
  241. package/dist/src/components/MemberScope.d.ts.map +1 -1
  242. package/dist/src/components/MemberScope.js.map +1 -1
  243. package/dist/src/components/NewExpression.d.ts +1 -1
  244. package/dist/src/components/NewExpression.d.ts.map +1 -1
  245. package/dist/src/components/NewExpression.js.map +1 -1
  246. package/dist/src/components/ObjectExpression.d.ts +1 -1
  247. package/dist/src/components/ObjectExpression.d.ts.map +1 -1
  248. package/dist/src/components/ObjectExpression.js.map +1 -1
  249. package/dist/src/components/PackageDirectory.d.ts +3 -3
  250. package/dist/src/components/PackageDirectory.d.ts.map +1 -1
  251. package/dist/src/components/PackageDirectory.js.map +1 -1
  252. package/dist/src/components/PackageJson.js.map +1 -1
  253. package/dist/src/components/PropertyName.js.map +1 -1
  254. package/dist/src/components/Reference.d.ts +1 -1
  255. package/dist/src/components/Reference.d.ts.map +1 -1
  256. package/dist/src/components/Reference.js.map +1 -1
  257. package/dist/src/components/SingleLineCommentBlock.js.map +1 -1
  258. package/dist/src/components/SourceFile.d.ts +2 -1
  259. package/dist/src/components/SourceFile.d.ts.map +1 -1
  260. package/dist/src/components/SourceFile.js.map +1 -1
  261. package/dist/src/components/SwitchStatement.js.map +1 -1
  262. package/dist/src/components/TryStatement.js.map +1 -1
  263. package/dist/src/components/TryStatement.test.js.map +1 -1
  264. package/dist/src/components/TsConfigJson.js.map +1 -1
  265. package/dist/src/components/TypeDeclaration.d.ts +1 -1
  266. package/dist/src/components/TypeDeclaration.d.ts.map +1 -1
  267. package/dist/src/components/TypeDeclaration.js.map +1 -1
  268. package/dist/src/components/TypeRefContext.js.map +1 -1
  269. package/dist/src/components/ValueExpression.d.ts +1 -1
  270. package/dist/src/components/ValueExpression.d.ts.map +1 -1
  271. package/dist/src/components/ValueExpression.js.map +1 -1
  272. package/dist/src/components/VarDeclaration.d.ts +2 -2
  273. package/dist/src/components/VarDeclaration.d.ts.map +1 -1
  274. package/dist/src/components/VarDeclaration.js.map +1 -1
  275. package/dist/src/components/index.d.ts +1 -1
  276. package/dist/src/components/index.d.ts.map +1 -1
  277. package/dist/src/components/index.js +0 -1
  278. package/dist/src/components/index.js.map +1 -1
  279. package/dist/src/components/interface/expression.test.js.map +1 -1
  280. package/dist/src/components/stc/index.js.map +1 -1
  281. package/dist/src/context/index.js.map +1 -1
  282. package/dist/src/context/package-metadata.d.ts +2 -2
  283. package/dist/src/context/package-metadata.d.ts.map +1 -1
  284. package/dist/src/context/package-metadata.js.map +1 -1
  285. package/dist/src/context/type-ref-context.d.ts +1 -1
  286. package/dist/src/context/type-ref-context.d.ts.map +1 -1
  287. package/dist/src/context/type-ref-context.js.map +1 -1
  288. package/dist/src/create-package.d.ts +2 -1
  289. package/dist/src/create-package.d.ts.map +1 -1
  290. package/dist/src/create-package.js.map +1 -1
  291. package/dist/src/index.d.ts +1 -1
  292. package/dist/src/index.d.ts.map +1 -1
  293. package/dist/src/index.js +0 -1
  294. package/dist/src/index.js.map +1 -1
  295. package/dist/src/name-conflict-resolver.d.ts +1 -1
  296. package/dist/src/name-conflict-resolver.d.ts.map +1 -1
  297. package/dist/src/name-conflict-resolver.js.map +1 -1
  298. package/dist/src/name-policy.d.ts +1 -1
  299. package/dist/src/name-policy.d.ts.map +1 -1
  300. package/dist/src/name-policy.js.map +1 -1
  301. package/dist/src/parameter-descriptor.js.map +1 -1
  302. package/dist/src/source-directory-data.d.ts +2 -2
  303. package/dist/src/source-directory-data.d.ts.map +1 -1
  304. package/dist/src/source-directory-data.js.map +1 -1
  305. package/dist/src/symbols/index.d.ts +3 -2
  306. package/dist/src/symbols/index.d.ts.map +1 -1
  307. package/dist/src/symbols/index.js.map +1 -1
  308. package/dist/src/symbols/reference.d.ts +2 -2
  309. package/dist/src/symbols/reference.d.ts.map +1 -1
  310. package/dist/src/symbols/reference.js.map +1 -1
  311. package/dist/src/symbols/scopes.d.ts +2 -2
  312. package/dist/src/symbols/scopes.d.ts.map +1 -1
  313. package/dist/src/symbols/scopes.js.map +1 -1
  314. package/dist/src/symbols/ts-lexical-scope.js.map +1 -1
  315. package/dist/src/symbols/ts-member-scope.d.ts +3 -3
  316. package/dist/src/symbols/ts-member-scope.d.ts.map +1 -1
  317. package/dist/src/symbols/ts-member-scope.js.map +1 -1
  318. package/dist/src/symbols/ts-module-scope.d.ts +1 -1
  319. package/dist/src/symbols/ts-module-scope.d.ts.map +1 -1
  320. package/dist/src/symbols/ts-module-scope.js.map +1 -1
  321. package/dist/src/symbols/ts-output-symbol.d.ts +3 -2
  322. package/dist/src/symbols/ts-output-symbol.d.ts.map +1 -1
  323. package/dist/src/symbols/ts-output-symbol.js.map +1 -1
  324. package/dist/src/symbols/ts-package-scope.d.ts +3 -2
  325. package/dist/src/symbols/ts-package-scope.d.ts.map +1 -1
  326. package/dist/src/symbols/ts-package-scope.js.map +1 -1
  327. package/dist/src/utils.d.ts +1 -1
  328. package/dist/src/utils.d.ts.map +1 -1
  329. package/dist/src/utils.js.map +1 -1
  330. package/dist/test/array.test.js.map +1 -1
  331. package/dist/test/arrow-function.test.js.map +1 -1
  332. package/dist/test/barrel.test.js.map +1 -1
  333. package/dist/test/basic.test.js.map +1 -1
  334. package/dist/test/block-scope.test.js.map +1 -1
  335. package/dist/test/class.test.js.map +1 -1
  336. package/dist/test/decl-helpers.test.js.map +1 -1
  337. package/dist/test/enum-jsdoc.test.js.map +1 -1
  338. package/dist/test/enum.test.js.map +1 -1
  339. package/dist/test/externals.test.js.map +1 -1
  340. package/dist/test/function-call-expression.test.js.map +1 -1
  341. package/dist/test/function-declaration-jsdoc.test.js.map +1 -1
  342. package/dist/test/function-declaration.test.js.map +1 -1
  343. package/dist/test/function-expression.test.js.map +1 -1
  344. package/dist/test/function-type.test.js.map +1 -1
  345. package/dist/test/if-statement.test.js.map +1 -1
  346. package/dist/test/imports-reactive.test.js.map +1 -1
  347. package/dist/test/imports.test.js.map +1 -1
  348. package/dist/test/interface-jsdoc.test.js.map +1 -1
  349. package/dist/test/interface.test.js.map +1 -1
  350. package/dist/test/jscomment.test.js.map +1 -1
  351. package/dist/test/jsdoc.test.js.map +1 -1
  352. package/dist/test/jsdocparam.test.js.map +1 -1
  353. package/dist/test/member-expression.test.js +31 -0
  354. package/dist/test/member-expression.test.js.map +1 -1
  355. package/dist/test/name-conflict.test.js.map +1 -1
  356. package/dist/test/name-policy.test.js.map +1 -1
  357. package/dist/test/new-expression.test.js.map +1 -1
  358. package/dist/test/object.test.js.map +1 -1
  359. package/dist/test/package-external.test.js.map +1 -1
  360. package/dist/test/package-json.test.js.map +1 -1
  361. package/dist/test/package.test.js.map +1 -1
  362. package/dist/test/reference.test.js +46 -2
  363. package/dist/test/reference.test.js.map +1 -1
  364. package/dist/test/source-file.test.js.map +1 -1
  365. package/dist/test/switch-statement.test.js.map +1 -1
  366. package/dist/test/utils.d.ts +1 -1
  367. package/dist/test/utils.d.ts.map +1 -1
  368. package/dist/test/utils.js.map +1 -1
  369. package/dist/test/value-expression.test.js.map +1 -1
  370. package/dist/test/values.test.js.map +1 -1
  371. package/dist/test/var-declaration-jsdoc.test.js.map +1 -1
  372. package/dist/test/var-declaration.test.js.map +1 -1
  373. package/dist/test/vitest.setup.js.map +1 -1
  374. package/dist/testing/create-wrapper.js.map +1 -1
  375. package/dist/testing/create-wrapper.test.js.map +1 -1
  376. package/dist/testing/index.js.map +1 -1
  377. package/dist/tsconfig.tsbuildinfo +1 -1
  378. package/docs/api/components/ArrowFunction.md +9 -9
  379. package/docs/api/components/BlockScope.md +20 -20
  380. package/docs/api/components/CallSignature.md +7 -7
  381. package/docs/api/components/CatchClause.md +4 -4
  382. package/docs/api/components/ClassDeclaration.md +4 -4
  383. package/docs/api/components/ClassField.md +15 -15
  384. package/docs/api/components/ClassMember.md +12 -12
  385. package/docs/api/components/ClassMethod.md +19 -19
  386. package/docs/api/components/Declaration.md +16 -16
  387. package/docs/api/components/EnumMember.md +8 -8
  388. package/docs/api/components/ExportStatement.md +4 -4
  389. package/docs/api/components/FunctionCallExpression.md +4 -4
  390. package/docs/api/components/FunctionDeclaration.md +9 -9
  391. package/docs/api/components/FunctionExpression.md +9 -9
  392. package/docs/api/components/InterfaceDeclaration.md +4 -4
  393. package/docs/api/components/InterfaceMember.md +18 -18
  394. package/docs/api/components/InterfaceMethod.md +12 -12
  395. package/docs/api/components/NewExpression.md +4 -4
  396. package/docs/api/components/ObjectExpression.md +1 -1
  397. package/docs/api/components/ObjectProperty.md +8 -8
  398. package/docs/api/components/ObjectSpreadProperty.md +5 -5
  399. package/docs/api/components/PackageDirectory.md +2 -2
  400. package/docs/api/components/PackageJsonFile.md +16 -16
  401. package/docs/api/components/SourceFile.md +7 -7
  402. package/docs/api/components/VarDeclaration.md +8 -8
  403. package/docs/api/functions/createInstanceMemberSymbol.md +16 -16
  404. package/docs/api/functions/createLexicalScope.md +5 -5
  405. package/docs/api/functions/createMemberScope.md +5 -5
  406. package/docs/api/functions/createMemberSymbol.md +16 -16
  407. package/docs/api/functions/createPrivateInstanceMemberSymbol.md +16 -16
  408. package/docs/api/functions/createPrivateStaticMemberSymbol.md +16 -16
  409. package/docs/api/functions/createStaticMemberSymbol.md +16 -16
  410. package/docs/api/functions/createTypeAndValueSymbol.md +16 -16
  411. package/docs/api/functions/createTypeSymbol.md +16 -16
  412. package/docs/api/functions/createValueSymbol.md +16 -16
  413. package/docs/api/functions/decl.md +16 -16
  414. package/docs/api/functions/declMember.md +16 -16
  415. package/docs/api/functions/declType.md +16 -16
  416. package/docs/api/types/CreateTsSymbolOptions.md +6 -6
  417. package/docs/api/types/DeclarationPropsBase.md +4 -4
  418. package/docs/api/types/FunctionBodyProps.md +3 -3
  419. package/docs/api/types/FunctionParametersProps.md +4 -4
  420. package/docs/api/types/FunctionTypeParametersProps.md +4 -4
  421. package/docs/api/types/FunctionTypeProps.md +5 -5
  422. package/docs/api/types/InterfaceExpressionProps.md +3 -3
  423. package/docs/api/types/InterfaceMemberPropsBase.md +7 -7
  424. package/docs/api/types/MemberExpressionPartProps.md +11 -11
  425. package/docs/api/types/ModuleSymbolsDescriptor.md +4 -4
  426. package/docs/api/types/ParameterDescriptor.md +3 -3
  427. package/docs/api/types/ParameterDescriptorBase.md +10 -10
  428. package/docs/api/types/SourceFileHeaderProps.md +4 -4
  429. package/docs/api/types/TypeParameterDescriptor.md +7 -7
  430. package/docs/api/types/TypeParametersProps.md +4 -4
  431. package/package.json +7 -7
  432. package/src/builtins/node.ts +1 -1
  433. package/src/components/ArrayExpression.tsx +2 -1
  434. package/src/components/ArrowFunction.tsx +2 -1
  435. package/src/components/BarrelFile.tsx +1 -1
  436. package/src/components/BlockScope.tsx +2 -2
  437. package/src/components/CallSignature.tsx +1 -1
  438. package/src/components/ClassDeclaration.tsx +5 -5
  439. package/src/components/CommaList.tsx +2 -1
  440. package/src/components/Declaration.tsx +7 -13
  441. package/src/components/EnumDeclaration.tsx +1 -1
  442. package/src/components/EnumMember.tsx +2 -1
  443. package/src/components/ExportStatement.tsx +1 -1
  444. package/src/components/FunctionBase.tsx +4 -7
  445. package/src/components/FunctionCallExpression.tsx +2 -1
  446. package/src/components/FunctionDeclaration.tsx +4 -2
  447. package/src/components/FunctionExpression.tsx +2 -1
  448. package/src/components/FunctionType.tsx +2 -1
  449. package/src/components/ImportStatement.tsx +1 -1
  450. package/src/components/Interface.tsx +4 -5
  451. package/src/components/InterfaceMethod.tsx +3 -3
  452. package/src/components/JSDocParam.tsx +1 -1
  453. package/src/components/LexicalScope.tsx +2 -1
  454. package/src/components/MemberDeclaration.tsx +6 -8
  455. package/src/components/MemberExpression.tsx +28 -20
  456. package/src/components/MemberScope.tsx +3 -6
  457. package/src/components/NewExpression.tsx +2 -4
  458. package/src/components/ObjectExpression.tsx +1 -3
  459. package/src/components/PackageDirectory.tsx +5 -5
  460. package/src/components/PropertyName.tsx +1 -1
  461. package/src/components/Reference.tsx +2 -1
  462. package/src/components/SourceFile.tsx +1 -1
  463. package/src/components/TypeDeclaration.tsx +2 -1
  464. package/src/components/ValueExpression.tsx +2 -1
  465. package/src/components/VarDeclaration.tsx +2 -2
  466. package/src/components/index.ts +1 -1
  467. package/src/context/package-metadata.ts +3 -2
  468. package/src/context/type-ref-context.tsx +2 -5
  469. package/src/create-package.ts +1 -2
  470. package/src/index.ts +1 -1
  471. package/src/name-conflict-resolver.ts +3 -2
  472. package/src/name-policy.ts +2 -1
  473. package/src/source-directory-data.ts +3 -2
  474. package/src/symbols/index.ts +3 -3
  475. package/src/symbols/reference.tsx +6 -4
  476. package/src/symbols/scopes.ts +2 -2
  477. package/src/symbols/ts-member-scope.ts +3 -3
  478. package/src/symbols/ts-module-scope.ts +2 -6
  479. package/src/symbols/ts-output-symbol.ts +2 -4
  480. package/src/symbols/ts-package-scope.ts +3 -7
  481. package/src/utils.ts +1 -1
  482. package/temp/api.json +1 -1
  483. package/test/arrow-function.test.tsx +3 -2
  484. package/test/function-declaration.test.tsx +2 -2
  485. package/test/function-expression.test.tsx +3 -2
  486. package/test/function-type.test.tsx +3 -2
  487. package/test/interface.test.tsx +2 -2
  488. package/test/member-expression.test.tsx +24 -1
  489. package/test/name-conflict.test.tsx +4 -3
  490. package/test/reference.test.tsx +40 -1
  491. package/test/utils.tsx +2 -1
  492. package/testing/create-wrapper.test.tsx +2 -1
  493. package/tsdoc-metadata.json +1 -1
  494. package/vitest.config.ts +0 -12
@@ -4,13 +4,13 @@ Common properties for ParameterDescriptor and FunctionTypeParameterDescriptor.
4
4
 
5
5
  ## Members
6
6
 
7
- | | | |
8
- | -------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9
- | doc | optional [Children](../../../core/types/children/) | Documentation for the parameter. |
10
- | metadata | optional Record\<string, unknown> | Arbitrary metadata for the parameter symbol. |
11
- | name | string \| [Namekey](../../../core/types/namekey/) | The name of the parameter. |
12
- | nullish | optional boolean | Whether the parameter is can be null or undefined. when optional is true, this will be set to true by default, but explicitly setting this to false will override that. |
13
- | optional | optional boolean | Whether the parameter is optional. |
14
- | refkey | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey for this parameter. |
15
- | rest | optional boolean | Weather the parameter is rest parameter. |
16
- | type | optional [Children](../../../core/types/children/) | The type of the parameter. |
7
+ | | | |
8
+ | -------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9
+ | doc | optional[Children](../../../core/types/children/) | Documentation for the parameter. |
10
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata for the parameter symbol. |
11
+ | name | string \| [Namekey](../../../core/types/namekey/) | The name of the parameter. |
12
+ | nullish | optional boolean | Whether the parameter is can be null or undefined. when optional is true, this will be set to true by default, but explicitly setting this to false will override that. |
13
+ | optional | optional boolean | Whether the parameter is optional. |
14
+ | refkey | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey for this parameter. |
15
+ | rest | optional boolean | Weather the parameter is rest parameter. |
16
+ | type | optional[Children](../../../core/types/children/) | The type of the parameter. |
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Members
4
4
 
5
- | | | |
6
- | ------------- | -------------------------------------------------- | - |
7
- | header | optional [Children](../../../core/types/children/) | |
8
- | headerComment | optional string | |
5
+ | | | |
6
+ | ------------- | ------------------------------------------------- | - |
7
+ | header | optional[Children](../../../core/types/children/) | |
8
+ | headerComment | optional string | |
@@ -4,10 +4,10 @@ Information for a TypeScript generic type parameter.
4
4
 
5
5
  ## Members
6
6
 
7
- | | | |
8
- | -------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
9
- | default | optional [Children](../../../core/types/children/) | The default type of the type parameter. |
10
- | extends | optional [Children](../../../core/types/children/) | The extends constraint for the type parameter. |
11
- | metadata | optional Record\<string, unknown> | Arbitrary metadata for the type parameter symbol. |
12
- | name | string \| [Namekey](../../../core/types/namekey/) | The name of the type parameter. |
13
- | refkey | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | A refkey or array of refkeys for this type parameter. |
7
+ | | | |
8
+ | -------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------- |
9
+ | default | optional[Children](../../../core/types/children/) | The default type of the type parameter. |
10
+ | extends | optional[Children](../../../core/types/children/) | The extends constraint for the type parameter. |
11
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata for the type parameter symbol. |
12
+ | name | string \| [Namekey](../../../core/types/namekey/) | The name of the type parameter. |
13
+ | refkey | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | A refkey or array of refkeys for this type parameter. |
@@ -4,7 +4,7 @@ Props for type parameters
4
4
 
5
5
  ## Members
6
6
 
7
- | | | |
8
- | ---------- | ------------------------------------------------------------------------------- | ------------ |
9
- | children | optional [Children](../../../core/types/children/) | Jsx Children |
10
- | parameters | optional [TypeParameterDescriptor](../typeparameterdescriptor/)\[] \| string\[] | Parameters |
7
+ | | | |
8
+ | ---------- | ------------------------------------------------------------------------------ | ------------ |
9
+ | children | optional[Children](../../../core/types/children/) | Jsx Children |
10
+ | parameters | optional[TypeParameterDescriptor](../typeparameterdescriptor/)\[] \| string\[] | Parameters |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alloy-js/typescript",
3
- "version": "0.25.0-dev.2",
3
+ "version": "0.26.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,19 +30,19 @@
30
30
  "author": "brian.terlson@microsoft.com",
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@alloy-js/core": "~0.24.1 || >= 0.25.0-dev.2",
34
33
  "change-case": "^5.4.4",
35
- "pathe": "^2.0.3"
34
+ "pathe": "^2.0.3",
35
+ "@alloy-js/core": "~0.26.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@alloy-js/cli": "~0.24.0 || >= 0.25.0-dev.1",
39
- "@alloy-js/rollup-plugin": "~0.1.2 || >= 0.1.3-dev.3",
40
38
  "@microsoft/api-extractor": "~7.58.8",
41
39
  "@rollup/plugin-typescript": "^12.3.0",
42
- "@types/node": "^25.9.2",
40
+ "@types/node": "^26.1.1",
43
41
  "concurrently": "^10.0.3",
44
42
  "typescript": "^7.0.2",
45
- "vitest": "4.1.8"
43
+ "vitest": "4.1.10",
44
+ "@alloy-js/cli": "~0.26.0",
45
+ "@alloy-js/rollup-plugin": "~0.2.0"
46
46
  },
47
47
  "type": "module",
48
48
  "scripts": {
@@ -1,4 +1,4 @@
1
- import { SymbolCreator } from "@alloy-js/core";
1
+ import type { SymbolCreator } from "@alloy-js/core";
2
2
 
3
3
  import { createPackage } from "../create-package.js";
4
4
 
@@ -1,4 +1,5 @@
1
- import { Children, childrenArray, For, Indent, Show } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { childrenArray, For, Indent, Show } from "@alloy-js/core";
2
3
 
3
4
  import { ValueExpression } from "./ValueExpression.js";
4
5
 
@@ -6,7 +6,8 @@ import {
6
6
  } from "@alloy-js/core";
7
7
 
8
8
  import { getCallSignatureProps } from "../utils.js";
9
- import { CallSignature, CallSignatureProps } from "./CallSignature.jsx";
9
+ import type { CallSignatureProps } from "./CallSignature.jsx";
10
+ import { CallSignature } from "./CallSignature.jsx";
10
11
  import {
11
12
  FunctionBody,
12
13
  FunctionParameters,
@@ -2,7 +2,7 @@ import { For, memo, SourceDirectoryContext, useContext } from "@alloy-js/core";
2
2
  import { basename } from "pathe";
3
3
 
4
4
  import { getSourceDirectoryData } from "../source-directory-data.js";
5
- import { TSModuleScope } from "../symbols/index.js";
5
+ import type { TSModuleScope } from "../symbols/index.js";
6
6
  import { ExportStatement } from "./ExportStatement.js";
7
7
  import { SourceFile } from "./SourceFile.js";
8
8
 
@@ -1,9 +1,9 @@
1
- import {
2
- Block,
1
+ import type {
3
2
  BlockProps,
4
3
  ScopePropsWithInfo,
5
4
  ScopePropsWithValue,
6
5
  } from "@alloy-js/core";
6
+ import { Block } from "@alloy-js/core";
7
7
 
8
8
  import { LexicalScope } from "./LexicalScope.jsx";
9
9
 
@@ -1,6 +1,6 @@
1
1
  import { type Children } from "@alloy-js/core";
2
2
 
3
- import {
3
+ import type {
4
4
  ParameterDescriptor,
5
5
  TypeParameterDescriptor,
6
6
  } from "../parameter-descriptor.js";
@@ -1,12 +1,10 @@
1
+ import type { Children, Namekey, Refkey } from "@alloy-js/core";
1
2
  import {
2
3
  Block,
3
- Children,
4
4
  For,
5
5
  MemberDeclaration,
6
6
  Name,
7
- Namekey,
8
7
  Prose,
9
- Refkey,
10
8
  Show,
11
9
  splitProps,
12
10
  } from "@alloy-js/core";
@@ -18,8 +16,10 @@ import {
18
16
  } from "../symbols/index.js";
19
17
  import { TSSymbolFlags } from "../symbols/ts-output-symbol.js";
20
18
  import { getCallSignatureProps } from "../utils.js";
21
- import { CallSignature, CallSignatureProps } from "./CallSignature.jsx";
22
- import { CommonDeclarationProps, Declaration } from "./Declaration.jsx";
19
+ import type { CallSignatureProps } from "./CallSignature.jsx";
20
+ import { CallSignature } from "./CallSignature.jsx";
21
+ import type { CommonDeclarationProps } from "./Declaration.jsx";
22
+ import { Declaration } from "./Declaration.jsx";
23
23
  import { JSDoc } from "./JSDoc.jsx";
24
24
  import { JSDocParams } from "./JSDocParam.jsx";
25
25
  import { LexicalScope } from "./LexicalScope.jsx";
@@ -1,4 +1,5 @@
1
- import { Children, List, splitProps } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { List, splitProps } from "@alloy-js/core";
2
3
 
3
4
  export interface CommaListProps {
4
5
  children: Children;
@@ -1,16 +1,10 @@
1
- import {
2
- Children,
3
- Declaration as CoreDeclaration,
4
- Namekey,
5
- Refkey,
6
- } from "@alloy-js/core";
7
-
8
- import { TypeScriptElements, useTSNamePolicy } from "../name-policy.js";
9
- import {
10
- createTypeSymbol,
11
- createValueSymbol,
12
- TSOutputSymbol,
13
- } from "../symbols/index.js";
1
+ import type { Children, Namekey, Refkey } from "@alloy-js/core";
2
+ import { Declaration as CoreDeclaration } from "@alloy-js/core";
3
+
4
+ import type { TypeScriptElements } from "../name-policy.js";
5
+ import { useTSNamePolicy } from "../name-policy.js";
6
+ import type { TSOutputSymbol } from "../symbols/index.js";
7
+ import { createTypeSymbol, createValueSymbol } from "../symbols/index.js";
14
8
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
9
  import { EnumDeclaration } from "./EnumDeclaration.jsx";
16
10
  // imports for documentation
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  import { useTSNamePolicy } from "../name-policy.js";
11
11
  import { createTypeAndValueSymbol } from "../symbols/index.js";
12
- import { CommonDeclarationProps } from "./Declaration.js";
12
+ import type { CommonDeclarationProps } from "./Declaration.js";
13
13
  import { EnumMember } from "./EnumMember.jsx";
14
14
  import { JSDoc } from "./JSDoc.jsx";
15
15
  import { MemberScope } from "./MemberScope.jsx";
@@ -1,4 +1,5 @@
1
- import { Children, Namekey, Refkey, Show } from "@alloy-js/core";
1
+ import type { Children, Namekey, Refkey } from "@alloy-js/core";
2
+ import { Show } from "@alloy-js/core";
2
3
 
3
4
  import { useTSNamePolicy } from "../name-policy.js";
4
5
  import { createStaticMemberSymbol } from "../symbols/index.js";
@@ -1,6 +1,6 @@
1
1
  import { dirname, relative } from "pathe";
2
2
 
3
- import { TSModuleScope, TSOutputSymbol } from "../symbols/index.js";
3
+ import type { TSModuleScope, TSOutputSymbol } from "../symbols/index.js";
4
4
  import { modulePath } from "../utils.js";
5
5
  import { useSourceFile } from "./SourceFile.js";
6
6
 
@@ -1,3 +1,4 @@
1
+ import type { SymbolSlot } from "@alloy-js/core";
1
2
  import {
2
3
  Block,
3
4
  code,
@@ -6,7 +7,6 @@ import {
6
7
  Indent,
7
8
  onCleanup,
8
9
  Show,
9
- SymbolSlot,
10
10
  taggedComponent,
11
11
  type Children,
12
12
  } from "@alloy-js/core";
@@ -16,12 +16,9 @@ import type {
16
16
  FunctionTypeParameterDescriptor,
17
17
  ParameterDescriptor,
18
18
  } from "../parameter-descriptor.js";
19
- import { TypeParameterDescriptor } from "../parameter-descriptor.js";
20
- import {
21
- createValueSymbol,
22
- TSOutputSymbol,
23
- TSSymbolFlags,
24
- } from "../symbols/index.js";
19
+ import type { TypeParameterDescriptor } from "../parameter-descriptor.js";
20
+ import type { TSOutputSymbol } from "../symbols/index.js";
21
+ import { createValueSymbol, TSSymbolFlags } from "../symbols/index.js";
25
22
  import { TypeRefContext } from "./TypeRefContext.jsx";
26
23
 
27
24
  const functionParametersTag = Symbol();
@@ -1,4 +1,5 @@
1
- import { Children, For, Indent, Wrap } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { For, Indent, Wrap } from "@alloy-js/core";
2
3
 
3
4
  export interface FunctionCallExpressionProps {
4
5
  target: Children;
@@ -9,8 +9,10 @@ import {
9
9
  } from "@alloy-js/core";
10
10
 
11
11
  import { getCallSignatureProps } from "../utils.js";
12
- import { CallSignature, CallSignatureProps } from "./CallSignature.jsx";
13
- import { CommonDeclarationProps, Declaration } from "./Declaration.js";
12
+ import type { CallSignatureProps } from "./CallSignature.jsx";
13
+ import { CallSignature } from "./CallSignature.jsx";
14
+ import type { CommonDeclarationProps } from "./Declaration.js";
15
+ import { Declaration } from "./Declaration.js";
14
16
  import {
15
17
  FunctionBody,
16
18
  FunctionParameters,
@@ -6,7 +6,8 @@ import {
6
6
  } from "@alloy-js/core";
7
7
 
8
8
  import { getCallSignatureProps } from "../utils.js";
9
- import { CallSignature, CallSignatureProps } from "./CallSignature.jsx";
9
+ import type { CallSignatureProps } from "./CallSignature.jsx";
10
+ import { CallSignature } from "./CallSignature.jsx";
10
11
  import {
11
12
  FunctionBody,
12
13
  FunctionParameters,
@@ -7,7 +7,8 @@ import {
7
7
  } from "@alloy-js/core";
8
8
 
9
9
  import { getCallSignatureProps } from "../utils.js";
10
- import { CallSignature, CallSignatureProps } from "./CallSignature.jsx";
10
+ import type { CallSignatureProps } from "./CallSignature.jsx";
11
+ import { CallSignature } from "./CallSignature.jsx";
11
12
  import {
12
13
  FunctionParameters,
13
14
  FunctionTypeParameters,
@@ -7,7 +7,7 @@ import {
7
7
  } from "@alloy-js/core";
8
8
  import { relative } from "pathe";
9
9
 
10
- import {
10
+ import type {
11
11
  ImportedSymbol,
12
12
  ImportRecords,
13
13
  TSPackageScope,
@@ -1,6 +1,6 @@
1
+ import type { Children, Namekey, Refkey } from "@alloy-js/core";
1
2
  import {
2
3
  Block,
3
- Children,
4
4
  childrenArray,
5
5
  createSymbol,
6
6
  createSymbolSlot,
@@ -9,17 +9,16 @@ import {
9
9
  findKeyedChild,
10
10
  findUnkeyedChildren,
11
11
  Name,
12
- Namekey,
13
- Refkey,
14
12
  Show,
15
13
  takeSymbols,
16
14
  } from "@alloy-js/core";
17
15
 
18
16
  import { useTSNamePolicy } from "../name-policy.js";
19
- import { TypeParameterDescriptor } from "../parameter-descriptor.js";
17
+ import type { TypeParameterDescriptor } from "../parameter-descriptor.js";
20
18
  import { useTSLexicalScope, useTSMemberScope } from "../symbols/scopes.js";
21
19
  import { TSOutputSymbol, TSSymbolFlags } from "../symbols/ts-output-symbol.js";
22
- import { CommonDeclarationProps, Declaration } from "./Declaration.js";
20
+ import type { CommonDeclarationProps } from "./Declaration.js";
21
+ import { Declaration } from "./Declaration.js";
23
22
  import { TypeParameters } from "./FunctionBase.jsx";
24
23
  import { JSDoc } from "./JSDoc.jsx";
25
24
  import { MemberDeclaration } from "./MemberDeclaration.jsx";
@@ -1,16 +1,16 @@
1
+ import type { Namekey, Refkey } from "@alloy-js/core";
1
2
  import {
2
3
  childrenArray,
3
4
  findKeyedChild,
4
5
  MemberName,
5
- Namekey,
6
6
  Prose,
7
- Refkey,
8
7
  Show,
9
8
  type Children,
10
9
  } from "@alloy-js/core";
11
10
 
12
11
  import { getCallSignatureProps } from "../utils.js";
13
- import { CallSignature, CallSignatureProps } from "./CallSignature.jsx";
12
+ import type { CallSignatureProps } from "./CallSignature.jsx";
13
+ import { CallSignature } from "./CallSignature.jsx";
14
14
  import {
15
15
  FunctionParameters,
16
16
  FunctionTypeParameters,
@@ -1,6 +1,6 @@
1
1
  import { For, Prose, Show, type Children } from "@alloy-js/core";
2
2
 
3
- import { ParameterDescriptor } from "../parameter-descriptor.js";
3
+ import type { ParameterDescriptor } from "../parameter-descriptor.js";
4
4
 
5
5
  export interface JSDocParamsProps {
6
6
  parameters: ParameterDescriptor[] | string[];
@@ -1,4 +1,5 @@
1
- import { Scope, ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
1
+ import type { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
2
+ import { Scope } from "@alloy-js/core";
2
3
 
3
4
  import { createLexicalScope, TSLexicalScope } from "../symbols/index.js";
4
5
 
@@ -1,15 +1,13 @@
1
- import {
2
- MemberDeclaration as CoreMemberDeclaration,
1
+ import type {
3
2
  MemberDeclarationPropsWithInfo as CoreMemberDeclarationPropsWithInfo,
4
3
  MemberDeclarationPropsWithSymbol as CoreMemberDeclarationPropsWithSymbol,
5
4
  } from "@alloy-js/core";
5
+ import { MemberDeclaration as CoreMemberDeclaration } from "@alloy-js/core";
6
6
 
7
- import { TypeScriptElements, useTSNamePolicy } from "../name-policy.js";
8
- import {
9
- createStaticMemberSymbol,
10
- TSOutputSymbol,
11
- TSSymbolFlags,
12
- } from "../symbols/index.js";
7
+ import type { TypeScriptElements } from "../name-policy.js";
8
+ import { useTSNamePolicy } from "../name-policy.js";
9
+ import type { TSOutputSymbol } from "../symbols/index.js";
10
+ import { createStaticMemberSymbol, TSSymbolFlags } from "../symbols/index.js";
13
11
 
14
12
  export interface MemberDeclarationPropsWithInfo extends CoreMemberDeclarationPropsWithInfo {
15
13
  /**
@@ -1,14 +1,8 @@
1
- import {
2
- Children,
3
- computed,
4
- createAccessExpression,
5
- For,
6
- OutputSymbol,
7
- Refkey,
8
- Show,
9
- } from "@alloy-js/core";
10
-
11
- import { TSOutputSymbol, TSSymbolFlags } from "../symbols/ts-output-symbol.js";
1
+ import type { Children, OutputSymbol, Refkey } from "@alloy-js/core";
2
+ import { computed, createAccessExpression, For, Show } from "@alloy-js/core";
3
+
4
+ import type { TSOutputSymbol } from "../symbols/ts-output-symbol.js";
5
+ import { TSSymbolFlags } from "../symbols/ts-output-symbol.js";
12
6
  import { isValidJSIdentifier } from "../utils.js";
13
7
 
14
8
  export interface MemberExpressionProps {
@@ -128,13 +122,13 @@ const { Expression, Part, registerOuterComponent } = createAccessExpression<
128
122
  return isIdPartDescriptor(part) ? part.id : part.index;
129
123
  },
130
124
 
131
- formatPart(part, prevPart, _inCallChain) {
125
+ formatPart(part, prevPart, inCallChain) {
132
126
  if (prevPart.type) {
133
127
  return formatArrayAccess(prevPart, part);
134
128
  } else if (part.args !== undefined) {
135
129
  return formatCallExpr(prevPart, part);
136
130
  } else if (part.accessStyle === "dot") {
137
- return formatDotAccess(prevPart, part);
131
+ return formatDotAccess(prevPart, part, inCallChain);
138
132
  } else {
139
133
  return formatArrayAccess(prevPart, part);
140
134
  }
@@ -288,17 +282,31 @@ function formatArrayAccess(prevPart: PartDescriptor, part: PartDescriptor) {
288
282
  );
289
283
  }
290
284
 
291
- function formatDotAccess(prevPart: PartDescriptor, part: PartDescriptor) {
285
+ function formatDotAccess(
286
+ prevPart: PartDescriptor,
287
+ part: PartDescriptor,
288
+ inCallChain: boolean,
289
+ ) {
290
+ const access = (
291
+ <>
292
+ {prevPart.nullish ? "?." : "."}
293
+ {isIdPartDescriptor(part)
294
+ ? part.jsPrivate
295
+ ? `#${part.id}`
296
+ : part.id
297
+ : part.index}
298
+ </>
299
+ );
300
+
301
+ if (inCallChain) {
302
+ return access;
303
+ }
304
+
292
305
  return (
293
306
  <group>
294
307
  <indent>
295
308
  <sbr />
296
- {prevPart.nullish ? "?." : "."}
297
- {isIdPartDescriptor(part)
298
- ? part.jsPrivate
299
- ? `#${part.id}`
300
- : part.id
301
- : part.index}
309
+ {access}
302
310
  </indent>
303
311
  </group>
304
312
  );
@@ -1,12 +1,9 @@
1
- import {
2
- Children,
3
- MemberScope as CoreMemberScope,
4
- createScope,
5
- } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { MemberScope as CoreMemberScope, createScope } from "@alloy-js/core";
6
3
 
7
4
  import { useTSLexicalScopeIfPresent } from "../symbols/scopes.js";
8
5
  import { TSMemberScope } from "../symbols/ts-member-scope.js";
9
- import { TSOutputSymbol } from "../symbols/ts-output-symbol.js";
6
+ import type { TSOutputSymbol } from "../symbols/ts-output-symbol.js";
10
7
 
11
8
  export interface MemberScopeProps {
12
9
  children: Children;
@@ -4,10 +4,8 @@ import {
4
4
  } from "@alloy-js/core";
5
5
 
6
6
  import { createValueSymbol } from "../symbols/index.js";
7
- import {
8
- FunctionCallExpression,
9
- FunctionCallExpressionProps,
10
- } from "./FunctionCallExpression.jsx";
7
+ import type { FunctionCallExpressionProps } from "./FunctionCallExpression.jsx";
8
+ import { FunctionCallExpression } from "./FunctionCallExpression.jsx";
11
9
 
12
10
  export interface NewExpressionProps extends FunctionCallExpressionProps {}
13
11
 
@@ -1,14 +1,12 @@
1
+ import type { Children, Namekey, Refkey } from "@alloy-js/core";
1
2
  import {
2
3
  Block,
3
- Children,
4
4
  computed,
5
5
  emitSymbol,
6
6
  For,
7
7
  isNamekey,
8
8
  Match,
9
9
  moveTakenMembersTo,
10
- Namekey,
11
- Refkey,
12
10
  Switch,
13
11
  takeSymbols,
14
12
  } from "@alloy-js/core";
@@ -1,9 +1,7 @@
1
+ import type { Children, ComponentContext, Ref } from "@alloy-js/core";
1
2
  import {
2
- Children,
3
- ComponentContext,
4
3
  createNamedContext,
5
4
  createScope,
6
- Ref,
7
5
  Scope,
8
6
  shallowRef,
9
7
  SourceDirectory,
@@ -15,10 +13,12 @@ import {
15
13
  import { join } from "pathe";
16
14
 
17
15
  import { PackageMetadataContext } from "../context/package-metadata.js";
18
- import { ExternalPackage, getPackageScope } from "../create-package.js";
16
+ import type { ExternalPackage } from "../create-package.js";
17
+ import { getPackageScope } from "../create-package.js";
19
18
  import { TSPackageScope } from "../symbols/index.js";
20
19
  import { modulePath } from "../utils.js";
21
- import { PackageJsonFile, PackageJsonFileProps } from "./PackageJson.js";
20
+ import type { PackageJsonFileProps } from "./PackageJson.js";
21
+ import { PackageJsonFile } from "./PackageJson.js";
22
22
  import { TSConfigJson } from "./TsConfigJson.js";
23
23
 
24
24
  export interface PackageDirectoryProps extends PackageJsonFileProps {
@@ -1,6 +1,6 @@
1
1
  import { MemberDeclarationContext, memo, useContext } from "@alloy-js/core";
2
2
 
3
- import { TSOutputSymbol } from "../symbols/ts-output-symbol.js";
3
+ import type { TSOutputSymbol } from "../symbols/ts-output-symbol.js";
4
4
  import { isValidJSIdentifier } from "../utils.js";
5
5
 
6
6
  export interface PropertyNameProps {
@@ -1,4 +1,5 @@
1
- import { computed, emitSymbol, Refkey } from "@alloy-js/core";
1
+ import type { Refkey } from "@alloy-js/core";
2
+ import { computed, emitSymbol } from "@alloy-js/core";
2
3
 
3
4
  import { isTypeRefContext } from "../context/type-ref-context.js";
4
5
  import { ref } from "../symbols/index.js";
@@ -1,5 +1,5 @@
1
+ import type { ComponentContext } from "@alloy-js/core";
1
2
  import {
2
- ComponentContext,
3
3
  SourceFile as CoreSourceFile,
4
4
  createNamedContext,
5
5
  createScope,
@@ -1,6 +1,7 @@
1
1
  import { Name, Show } from "@alloy-js/core";
2
2
 
3
- import { CommonDeclarationProps, Declaration } from "./Declaration.js";
3
+ import type { CommonDeclarationProps } from "./Declaration.js";
4
+ import { Declaration } from "./Declaration.js";
4
5
  import { JSDoc } from "./JSDoc.jsx";
5
6
  import { ensureTypeRefContext } from "./TypeRefContext.jsx";
6
7
 
@@ -1,4 +1,5 @@
1
- import { Children, memo } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { memo } from "@alloy-js/core";
2
3
 
3
4
  import { ArrayExpression } from "./ArrayExpression.js";
4
5
  import { ObjectExpression } from "./ObjectExpression.js";