@powerlines/plugin-alloy 0.25.49 → 0.25.51

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 (334) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +3 -0
  3. package/dist/core/components/index.cjs +10 -0
  4. package/dist/core/components/index.d.cts +5 -0
  5. package/dist/core/components/index.d.mts +5 -0
  6. package/dist/core/components/index.mjs +6 -0
  7. package/dist/core/components/output.cjs +41 -0
  8. package/dist/core/components/output.d.cts +24 -0
  9. package/dist/core/components/output.d.cts.map +1 -0
  10. package/dist/core/components/output.d.mts +24 -0
  11. package/dist/core/components/output.d.mts.map +1 -0
  12. package/dist/core/components/output.mjs +40 -0
  13. package/dist/core/components/output.mjs.map +1 -0
  14. package/dist/core/components/single-line-comment.cjs +23 -0
  15. package/dist/core/components/single-line-comment.d.cts +23 -0
  16. package/dist/core/components/single-line-comment.d.cts.map +1 -0
  17. package/dist/core/components/single-line-comment.d.mts +23 -0
  18. package/dist/core/components/single-line-comment.d.mts.map +1 -0
  19. package/dist/core/components/single-line-comment.mjs +22 -0
  20. package/dist/core/components/single-line-comment.mjs.map +1 -0
  21. package/dist/core/components/source-file.cjs +64 -0
  22. package/dist/core/components/source-file.d.cts +33 -0
  23. package/dist/core/components/source-file.d.cts.map +1 -0
  24. package/dist/core/components/source-file.d.mts +33 -0
  25. package/dist/core/components/source-file.d.mts.map +1 -0
  26. package/dist/core/components/source-file.mjs +62 -0
  27. package/dist/core/components/source-file.mjs.map +1 -0
  28. package/dist/core/components/spacing.cjs +20 -0
  29. package/dist/core/components/spacing.d.cts +24 -0
  30. package/dist/core/components/spacing.d.cts.map +1 -0
  31. package/dist/core/components/spacing.d.mts +24 -0
  32. package/dist/core/components/spacing.d.mts.map +1 -0
  33. package/dist/core/components/spacing.mjs +19 -0
  34. package/dist/core/components/spacing.mjs.map +1 -0
  35. package/dist/core/contexts/context.cjs +41 -0
  36. package/dist/core/contexts/context.d.cts +29 -0
  37. package/dist/core/contexts/context.d.cts.map +1 -0
  38. package/dist/core/contexts/context.d.mts +29 -0
  39. package/dist/core/contexts/context.d.mts.map +1 -0
  40. package/dist/core/contexts/context.mjs +37 -0
  41. package/dist/core/contexts/context.mjs.map +1 -0
  42. package/dist/core/contexts/index.cjs +21 -0
  43. package/dist/core/contexts/index.d.cts +4 -0
  44. package/dist/core/contexts/index.d.mts +4 -0
  45. package/dist/core/contexts/index.mjs +5 -0
  46. package/dist/core/contexts/meta.cjs +41 -0
  47. package/dist/core/contexts/meta.d.cts +48 -0
  48. package/dist/core/contexts/meta.d.cts.map +1 -0
  49. package/dist/core/contexts/meta.d.mts +48 -0
  50. package/dist/core/contexts/meta.d.mts.map +1 -0
  51. package/dist/core/contexts/meta.mjs +37 -0
  52. package/dist/core/contexts/meta.mjs.map +1 -0
  53. package/dist/core/contexts/reflection.cjs +69 -0
  54. package/dist/core/contexts/reflection.d.cts +53 -0
  55. package/dist/core/contexts/reflection.d.cts.map +1 -0
  56. package/dist/core/contexts/reflection.d.mts +53 -0
  57. package/dist/core/contexts/reflection.d.mts.map +1 -0
  58. package/dist/core/contexts/reflection.mjs +61 -0
  59. package/dist/core/contexts/reflection.mjs.map +1 -0
  60. package/dist/core/helpers/code.cjs +34 -0
  61. package/dist/core/helpers/code.d.cts +29 -0
  62. package/dist/core/helpers/code.d.cts.map +1 -0
  63. package/dist/core/helpers/code.d.mts +29 -0
  64. package/dist/core/helpers/code.d.mts.map +1 -0
  65. package/dist/core/helpers/code.mjs +33 -0
  66. package/dist/core/helpers/code.mjs.map +1 -0
  67. package/dist/core/helpers/index.cjs +4 -0
  68. package/dist/core/helpers/index.d.cts +2 -0
  69. package/dist/core/helpers/index.d.mts +2 -0
  70. package/dist/core/helpers/index.mjs +3 -0
  71. package/dist/core/index.cjs +34 -0
  72. package/dist/core/index.d.cts +9 -0
  73. package/dist/core/index.d.mts +9 -0
  74. package/dist/core/index.mjs +13 -0
  75. package/dist/helpers/capnp.cjs +277 -0
  76. package/dist/helpers/capnp.d.cts +87 -0
  77. package/dist/helpers/capnp.d.cts.map +1 -0
  78. package/dist/helpers/capnp.d.mts +87 -0
  79. package/dist/helpers/capnp.d.mts.map +1 -0
  80. package/dist/helpers/capnp.mjs +260 -0
  81. package/dist/helpers/capnp.mjs.map +1 -0
  82. package/dist/helpers/create-builtin.cjs +20 -0
  83. package/dist/helpers/create-builtin.d.cts +16 -0
  84. package/dist/helpers/create-builtin.d.cts.map +1 -0
  85. package/dist/helpers/create-builtin.d.mts +16 -0
  86. package/dist/helpers/create-builtin.d.mts.map +1 -0
  87. package/dist/helpers/create-builtin.mjs +19 -0
  88. package/dist/helpers/create-builtin.mjs.map +1 -0
  89. package/dist/helpers/index.cjs +25 -0
  90. package/dist/helpers/index.d.cts +5 -0
  91. package/dist/helpers/index.d.mts +5 -0
  92. package/dist/helpers/index.mjs +6 -0
  93. package/dist/helpers/refkey.cjs +17 -0
  94. package/dist/helpers/refkey.d.cts +13 -0
  95. package/dist/helpers/refkey.d.cts.map +1 -0
  96. package/dist/helpers/refkey.d.mts +13 -0
  97. package/dist/helpers/refkey.d.mts.map +1 -0
  98. package/dist/helpers/refkey.mjs +16 -0
  99. package/dist/helpers/refkey.mjs.map +1 -0
  100. package/dist/helpers/typescript.cjs +47 -0
  101. package/dist/helpers/typescript.d.cts +26 -0
  102. package/dist/helpers/typescript.d.cts.map +1 -0
  103. package/dist/helpers/typescript.d.mts +26 -0
  104. package/dist/helpers/typescript.d.mts.map +1 -0
  105. package/dist/helpers/typescript.mjs +46 -0
  106. package/dist/helpers/typescript.mjs.map +1 -0
  107. package/dist/index.cjs +48 -0
  108. package/dist/index.d.cts +19 -0
  109. package/dist/index.d.cts.map +1 -0
  110. package/dist/index.d.mts +19 -0
  111. package/dist/index.d.mts.map +1 -0
  112. package/dist/index.mjs +45 -0
  113. package/dist/index.mjs.map +1 -0
  114. package/dist/markdown/components/front-matter.cjs +29 -0
  115. package/dist/markdown/components/front-matter.d.cts +16 -0
  116. package/dist/markdown/components/front-matter.d.cts.map +1 -0
  117. package/dist/markdown/components/front-matter.d.mts +16 -0
  118. package/dist/markdown/components/front-matter.d.mts.map +1 -0
  119. package/dist/markdown/components/front-matter.mjs +28 -0
  120. package/dist/markdown/components/front-matter.mjs.map +1 -0
  121. package/dist/markdown/components/index.cjs +11 -0
  122. package/dist/markdown/components/index.d.cts +4 -0
  123. package/dist/markdown/components/index.d.mts +4 -0
  124. package/dist/markdown/components/index.mjs +5 -0
  125. package/dist/markdown/components/markdown-file.cjs +135 -0
  126. package/dist/markdown/components/markdown-file.d.cts +29 -0
  127. package/dist/markdown/components/markdown-file.d.cts.map +1 -0
  128. package/dist/markdown/components/markdown-file.d.mts +29 -0
  129. package/dist/markdown/components/markdown-file.d.mts.map +1 -0
  130. package/dist/markdown/components/markdown-file.mjs +133 -0
  131. package/dist/markdown/components/markdown-file.mjs.map +1 -0
  132. package/dist/markdown/components/markdown-table.cjs +102 -0
  133. package/dist/markdown/components/markdown-table.d.cts +28 -0
  134. package/dist/markdown/components/markdown-table.d.cts.map +1 -0
  135. package/dist/markdown/components/markdown-table.d.mts +28 -0
  136. package/dist/markdown/components/markdown-table.d.mts.map +1 -0
  137. package/dist/markdown/components/markdown-table.mjs +99 -0
  138. package/dist/markdown/components/markdown-table.mjs.map +1 -0
  139. package/dist/markdown/contexts/index.cjs +7 -0
  140. package/dist/markdown/contexts/index.d.cts +2 -0
  141. package/dist/markdown/contexts/index.d.mts +2 -0
  142. package/dist/markdown/contexts/index.mjs +3 -0
  143. package/dist/markdown/contexts/markdown-table.cjs +38 -0
  144. package/dist/markdown/contexts/markdown-table.d.cts +38 -0
  145. package/dist/markdown/contexts/markdown-table.d.cts.map +1 -0
  146. package/dist/markdown/contexts/markdown-table.d.mts +38 -0
  147. package/dist/markdown/contexts/markdown-table.d.mts.map +1 -0
  148. package/dist/markdown/contexts/markdown-table.mjs +34 -0
  149. package/dist/markdown/contexts/markdown-table.mjs.map +1 -0
  150. package/dist/markdown/index.cjs +18 -0
  151. package/dist/markdown/index.d.cts +5 -0
  152. package/dist/markdown/index.d.mts +5 -0
  153. package/dist/markdown/index.mjs +8 -0
  154. package/dist/render.cjs +91 -0
  155. package/dist/render.d.cts +38 -0
  156. package/dist/render.d.cts.map +1 -0
  157. package/dist/render.d.mts +38 -0
  158. package/dist/render.d.mts.map +1 -0
  159. package/dist/render.mjs +89 -0
  160. package/dist/render.mjs.map +1 -0
  161. package/dist/types/components.cjs +0 -0
  162. package/dist/types/components.d.cts +142 -0
  163. package/dist/types/components.d.cts.map +1 -0
  164. package/dist/types/components.d.mts +142 -0
  165. package/dist/types/components.d.mts.map +1 -0
  166. package/dist/types/components.mjs +1 -0
  167. package/dist/types/index.cjs +0 -0
  168. package/dist/types/index.d.cts +3 -0
  169. package/dist/types/index.d.mts +3 -0
  170. package/dist/types/index.mjs +1 -0
  171. package/dist/types/plugin.cjs +0 -0
  172. package/dist/types/plugin.d.cts +39 -0
  173. package/dist/types/plugin.d.cts.map +1 -0
  174. package/dist/types/plugin.d.mts +39 -0
  175. package/dist/types/plugin.d.mts.map +1 -0
  176. package/dist/types/plugin.mjs +1 -0
  177. package/dist/typescript/components/builtin-file.cjs +63 -0
  178. package/dist/typescript/components/builtin-file.d.cts +35 -0
  179. package/dist/typescript/components/builtin-file.d.cts.map +1 -0
  180. package/dist/typescript/components/builtin-file.d.mts +35 -0
  181. package/dist/typescript/components/builtin-file.d.mts.map +1 -0
  182. package/dist/typescript/components/builtin-file.mjs +62 -0
  183. package/dist/typescript/components/builtin-file.mjs.map +1 -0
  184. package/dist/typescript/components/class-declaration.cjs +291 -0
  185. package/dist/typescript/components/class-declaration.d.cts +145 -0
  186. package/dist/typescript/components/class-declaration.d.cts.map +1 -0
  187. package/dist/typescript/components/class-declaration.d.mts +145 -0
  188. package/dist/typescript/components/class-declaration.d.mts.map +1 -0
  189. package/dist/typescript/components/class-declaration.mjs +285 -0
  190. package/dist/typescript/components/class-declaration.mjs.map +1 -0
  191. package/dist/typescript/components/dynamic-import-statement.cjs +26 -0
  192. package/dist/typescript/components/dynamic-import-statement.d.cts +33 -0
  193. package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -0
  194. package/dist/typescript/components/dynamic-import-statement.d.mts +33 -0
  195. package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -0
  196. package/dist/typescript/components/dynamic-import-statement.mjs +25 -0
  197. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -0
  198. package/dist/typescript/components/entry-file.cjs +43 -0
  199. package/dist/typescript/components/entry-file.d.cts +28 -0
  200. package/dist/typescript/components/entry-file.d.cts.map +1 -0
  201. package/dist/typescript/components/entry-file.d.mts +28 -0
  202. package/dist/typescript/components/entry-file.d.mts.map +1 -0
  203. package/dist/typescript/components/entry-file.mjs +41 -0
  204. package/dist/typescript/components/entry-file.mjs.map +1 -0
  205. package/dist/typescript/components/index.cjs +65 -0
  206. package/dist/typescript/components/index.d.cts +15 -0
  207. package/dist/typescript/components/index.d.mts +15 -0
  208. package/dist/typescript/components/index.mjs +16 -0
  209. package/dist/typescript/components/infrastructure-file.cjs +40 -0
  210. package/dist/typescript/components/infrastructure-file.d.cts +21 -0
  211. package/dist/typescript/components/infrastructure-file.d.cts.map +1 -0
  212. package/dist/typescript/components/infrastructure-file.d.mts +21 -0
  213. package/dist/typescript/components/infrastructure-file.d.mts.map +1 -0
  214. package/dist/typescript/components/infrastructure-file.mjs +38 -0
  215. package/dist/typescript/components/infrastructure-file.mjs.map +1 -0
  216. package/dist/typescript/components/interface-declaration.cjs +229 -0
  217. package/dist/typescript/components/interface-declaration.d.cts +86 -0
  218. package/dist/typescript/components/interface-declaration.d.cts.map +1 -0
  219. package/dist/typescript/components/interface-declaration.d.mts +86 -0
  220. package/dist/typescript/components/interface-declaration.d.mts.map +1 -0
  221. package/dist/typescript/components/interface-declaration.mjs +225 -0
  222. package/dist/typescript/components/interface-declaration.mjs.map +1 -0
  223. package/dist/typescript/components/object-declaration.cjs +128 -0
  224. package/dist/typescript/components/object-declaration.d.cts +30 -0
  225. package/dist/typescript/components/object-declaration.d.cts.map +1 -0
  226. package/dist/typescript/components/object-declaration.d.mts +30 -0
  227. package/dist/typescript/components/object-declaration.d.mts.map +1 -0
  228. package/dist/typescript/components/object-declaration.mjs +126 -0
  229. package/dist/typescript/components/object-declaration.mjs.map +1 -0
  230. package/dist/typescript/components/property-name.cjs +32 -0
  231. package/dist/typescript/components/property-name.d.cts +24 -0
  232. package/dist/typescript/components/property-name.d.cts.map +1 -0
  233. package/dist/typescript/components/property-name.d.mts +24 -0
  234. package/dist/typescript/components/property-name.d.mts.map +1 -0
  235. package/dist/typescript/components/property-name.mjs +31 -0
  236. package/dist/typescript/components/property-name.mjs.map +1 -0
  237. package/dist/typescript/components/record-expression.cjs +13 -0
  238. package/dist/typescript/components/record-expression.d.cts +13 -0
  239. package/dist/typescript/components/record-expression.d.cts.map +1 -0
  240. package/dist/typescript/components/record-expression.d.mts +13 -0
  241. package/dist/typescript/components/record-expression.d.mts.map +1 -0
  242. package/dist/typescript/components/record-expression.mjs +12 -0
  243. package/dist/typescript/components/record-expression.mjs.map +1 -0
  244. package/dist/typescript/components/tsdoc-reflection.cjs +310 -0
  245. package/dist/typescript/components/tsdoc-reflection.d.cts +44 -0
  246. package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -0
  247. package/dist/typescript/components/tsdoc-reflection.d.mts +44 -0
  248. package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -0
  249. package/dist/typescript/components/tsdoc-reflection.mjs +304 -0
  250. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -0
  251. package/dist/typescript/components/tsdoc.cjs +477 -0
  252. package/dist/typescript/components/tsdoc.d.cts +164 -0
  253. package/dist/typescript/components/tsdoc.d.cts.map +1 -0
  254. package/dist/typescript/components/tsdoc.d.mts +164 -0
  255. package/dist/typescript/components/tsdoc.d.mts.map +1 -0
  256. package/dist/typescript/components/tsdoc.mjs +457 -0
  257. package/dist/typescript/components/tsdoc.mjs.map +1 -0
  258. package/dist/typescript/components/type-declaration.cjs +39 -0
  259. package/dist/typescript/components/type-declaration.d.cts +18 -0
  260. package/dist/typescript/components/type-declaration.d.cts.map +1 -0
  261. package/dist/typescript/components/type-declaration.d.mts +18 -0
  262. package/dist/typescript/components/type-declaration.d.mts.map +1 -0
  263. package/dist/typescript/components/type-declaration.mjs +38 -0
  264. package/dist/typescript/components/type-declaration.mjs.map +1 -0
  265. package/dist/typescript/components/type-parameters.cjs +82 -0
  266. package/dist/typescript/components/type-parameters.d.cts +24 -0
  267. package/dist/typescript/components/type-parameters.d.cts.map +1 -0
  268. package/dist/typescript/components/type-parameters.d.mts +24 -0
  269. package/dist/typescript/components/type-parameters.d.mts.map +1 -0
  270. package/dist/typescript/components/type-parameters.mjs +81 -0
  271. package/dist/typescript/components/type-parameters.mjs.map +1 -0
  272. package/dist/typescript/components/typescript-file.cjs +221 -0
  273. package/dist/typescript/components/typescript-file.d.cts +50 -0
  274. package/dist/typescript/components/typescript-file.d.cts.map +1 -0
  275. package/dist/typescript/components/typescript-file.d.mts +50 -0
  276. package/dist/typescript/components/typescript-file.d.mts.map +1 -0
  277. package/dist/typescript/components/typescript-file.mjs +218 -0
  278. package/dist/typescript/components/typescript-file.mjs.map +1 -0
  279. package/dist/typescript/contexts/index.cjs +4 -0
  280. package/dist/typescript/contexts/index.d.cts +2 -0
  281. package/dist/typescript/contexts/index.d.mts +2 -0
  282. package/dist/typescript/contexts/index.mjs +3 -0
  283. package/dist/typescript/contexts/lexical-scope.cjs +26 -0
  284. package/dist/typescript/contexts/lexical-scope.d.cts +17 -0
  285. package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -0
  286. package/dist/typescript/contexts/lexical-scope.d.mts +17 -0
  287. package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -0
  288. package/dist/typescript/contexts/lexical-scope.mjs +25 -0
  289. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -0
  290. package/dist/typescript/contexts/member-scope.cjs +24 -0
  291. package/dist/typescript/contexts/member-scope.d.cts +20 -0
  292. package/dist/typescript/contexts/member-scope.d.cts.map +1 -0
  293. package/dist/typescript/contexts/member-scope.d.mts +20 -0
  294. package/dist/typescript/contexts/member-scope.d.mts.map +1 -0
  295. package/dist/typescript/contexts/member-scope.mjs +23 -0
  296. package/dist/typescript/contexts/member-scope.mjs.map +1 -0
  297. package/dist/typescript/helpers/get-call-signature-props.cjs +26 -0
  298. package/dist/typescript/helpers/get-call-signature-props.d.cts +14 -0
  299. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +1 -0
  300. package/dist/typescript/helpers/get-call-signature-props.d.mts +14 -0
  301. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +1 -0
  302. package/dist/typescript/helpers/get-call-signature-props.mjs +25 -0
  303. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -0
  304. package/dist/typescript/helpers/index.cjs +6 -0
  305. package/dist/typescript/helpers/index.d.cts +3 -0
  306. package/dist/typescript/helpers/index.d.mts +3 -0
  307. package/dist/typescript/helpers/index.mjs +4 -0
  308. package/dist/typescript/helpers/utilities.cjs +15 -0
  309. package/dist/typescript/helpers/utilities.d.cts +11 -0
  310. package/dist/typescript/helpers/utilities.d.cts.map +1 -0
  311. package/dist/typescript/helpers/utilities.d.mts +11 -0
  312. package/dist/typescript/helpers/utilities.d.mts.map +1 -0
  313. package/dist/typescript/helpers/utilities.mjs +14 -0
  314. package/dist/typescript/helpers/utilities.mjs.map +1 -0
  315. package/dist/typescript/index.cjs +74 -0
  316. package/dist/typescript/index.d.cts +18 -0
  317. package/dist/typescript/index.d.mts +18 -0
  318. package/dist/typescript/index.mjs +22 -0
  319. package/dist/yaml/components/index.cjs +5 -0
  320. package/dist/yaml/components/index.d.cts +2 -0
  321. package/dist/yaml/components/index.d.mts +2 -0
  322. package/dist/yaml/components/index.mjs +3 -0
  323. package/dist/yaml/components/yaml-file.cjs +149 -0
  324. package/dist/yaml/components/yaml-file.d.cts +34 -0
  325. package/dist/yaml/components/yaml-file.d.cts.map +1 -0
  326. package/dist/yaml/components/yaml-file.d.mts +34 -0
  327. package/dist/yaml/components/yaml-file.d.mts.map +1 -0
  328. package/dist/yaml/components/yaml-file.mjs +147 -0
  329. package/dist/yaml/components/yaml-file.mjs.map +1 -0
  330. package/dist/yaml/index.cjs +6 -0
  331. package/dist/yaml/index.d.cts +2 -0
  332. package/dist/yaml/index.d.mts +2 -0
  333. package/dist/yaml/index.mjs +4 -0
  334. package/package.json +7 -7
@@ -0,0 +1,291 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
+ const require_typescript_components_tsdoc = require('./tsdoc.cjs');
4
+ const require_typescript_contexts_lexical_scope = require('../contexts/lexical-scope.cjs');
5
+ require('../contexts/index.cjs');
6
+ const require_typescript_contexts_member_scope = require('../contexts/member-scope.cjs');
7
+ const require_typescript_helpers_get_call_signature_props = require('../helpers/get-call-signature-props.cjs');
8
+ require('../helpers/index.cjs');
9
+ const require_typescript_components_property_name = require('./property-name.cjs');
10
+ const require_typescript_components_type_parameters = require('./type-parameters.cjs');
11
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
12
+ let _alloy_js_core = require("@alloy-js/core");
13
+ let _alloy_js_typescript = require("@alloy-js/typescript");
14
+
15
+ //#region src/typescript/components/class-declaration.tsx
16
+ /**
17
+ * Create a TypeScript class declaration.
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * const myPetRefkey = refkey();
22
+ * const Animal = refkey();
23
+ * const staticMember = refkey();
24
+ * const instanceMember = refkey();
25
+ *
26
+ * <ClassDeclaration name="Animal" refkey={Animal}>
27
+ * <ClassMember public static name="something" type="string" refkey={staticMember}>
28
+ * "hello"
29
+ * </ClassMember>
30
+ * <ClassMember public name="kind" type="string" />
31
+ * <ClassMember public name="name" type="string" refkey={instanceMember} />
32
+ * <ClassConstructor parameters="name: string">
33
+ * this.name = name;
34
+ * </ClassConstructor>
35
+ * </ClassDeclaration>
36
+ *
37
+ * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
38
+ * new {Animal}();
39
+ * </VarDeclaration>
40
+ *
41
+ * {staticMember}; // Animal.something
42
+ * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
43
+ * {memberRefkey(myPetRefkey, instanceMember)}
44
+ * ```
45
+ */
46
+ function ClassDeclaration(props) {
47
+ const extendsPart = props.extends && [" extends ", (0, _alloy_js_core_jsx_runtime.memo)(() => props.extends)];
48
+ const implementsPart = props.implements && props.implements.length > 0 && [
49
+ " ",
50
+ "implements",
51
+ " ",
52
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
53
+ get each() {
54
+ return props.implements;
55
+ },
56
+ comma: true,
57
+ space: true,
58
+ children: (implement) => implement
59
+ })
60
+ ];
61
+ const sym = (0, _alloy_js_typescript.createTypeAndValueSymbol)(props.name, {
62
+ refkeys: props.refkey,
63
+ export: props.export,
64
+ default: props.default,
65
+ metadata: props.metadata,
66
+ hasInstanceMembers: true,
67
+ namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("class")
68
+ });
69
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
70
+ get when() {
71
+ return Boolean(props.doc);
72
+ },
73
+ get children() {
74
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
75
+ return props.doc;
76
+ } });
77
+ }
78
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.Declaration, {
79
+ symbol: sym,
80
+ get ["export"]() {
81
+ return props.export;
82
+ },
83
+ get ["default"]() {
84
+ return props.default;
85
+ },
86
+ get children() {
87
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_member_scope.MemberScope, {
88
+ ownerSymbol: sym,
89
+ get children() {
90
+ return [
91
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.abstract && _alloy_js_core.code`abstract `),
92
+ " class ",
93
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Name, {}),
94
+ (0, _alloy_js_core_jsx_runtime.memo)(() => (0, _alloy_js_core_jsx_runtime.memo)(() => !!props.typeParameters)() && (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_type_parameters.TypeParameters, { get parameters() {
95
+ return props.typeParameters;
96
+ } })),
97
+ extendsPart,
98
+ implementsPart,
99
+ " ",
100
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
101
+ return props.children;
102
+ } })
103
+ ];
104
+ }
105
+ });
106
+ }
107
+ })];
108
+ }
109
+ ClassDeclaration.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
110
+ /**
111
+ * Generates a TypeScript class member declaration for the given reflection class.
112
+ *
113
+ * @param props - The properties of the class member, including its name, visibility, and other modifiers.
114
+ * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
115
+ */
116
+ function ClassMember(props) {
117
+ let tsFlags = _alloy_js_typescript.TSSymbolFlags.None;
118
+ if (props.nullish) tsFlags |= _alloy_js_typescript.TSSymbolFlags.Nullish;
119
+ const sym = (0, _alloy_js_typescript.createMemberSymbol)(props.name, props, {
120
+ refkeys: props.refkey,
121
+ tsFlags,
122
+ namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("class-member-data")
123
+ });
124
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
125
+ get when() {
126
+ return Boolean(props.doc);
127
+ },
128
+ get children() {
129
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, { get heading() {
130
+ return props.doc;
131
+ } });
132
+ }
133
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.MemberDeclaration, {
134
+ symbol: sym,
135
+ get children() {
136
+ return [
137
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.public && "public "),
138
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.private && "private "),
139
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.protected && "protected "),
140
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.abstract && "abstract "),
141
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.override && "override "),
142
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.static && "static "),
143
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.children)
144
+ ];
145
+ }
146
+ })];
147
+ }
148
+ /**
149
+ * Generates a TypeScript class field declaration for the given reflection class.
150
+ *
151
+ * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
152
+ * @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
153
+ */
154
+ function ClassField(props) {
155
+ const optionality = props.optional ? "?" : "";
156
+ const typeSection = props.type && [
157
+ optionality,
158
+ ": ",
159
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
160
+ return props.type;
161
+ } })
162
+ ];
163
+ const initializerSection = props.children && [" = ", (0, _alloy_js_core_jsx_runtime.memo)(() => props.children)];
164
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, {
165
+ nullish: props.nullish ?? props.optional,
166
+ get children() {
167
+ return [
168
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {
169
+ get ["private"]() {
170
+ return props.isPrivateMember;
171
+ },
172
+ get name() {
173
+ return props.isPrivateMember ? props.name : void 0;
174
+ }
175
+ }),
176
+ typeSection,
177
+ initializerSection
178
+ ];
179
+ }
180
+ }));
181
+ }
182
+ /**
183
+ * Generates a TypeScript class property setter declaration for the given reflection class.
184
+ *
185
+ * @param props - The properties of the class property, including its name, type, and other modifiers.
186
+ * @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.
187
+ */
188
+ function ClassPropertySet(props) {
189
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get children() {
190
+ return [
191
+ "set ",
192
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, { get name() {
193
+ return props.name;
194
+ } }),
195
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
196
+ return [
197
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, { get parameters() {
198
+ return [{
199
+ name: "value",
200
+ type: (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
201
+ return props.type;
202
+ } })
203
+ }];
204
+ } }),
205
+ " ",
206
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
207
+ return props.children;
208
+ } })
209
+ ];
210
+ } })
211
+ ];
212
+ } }))];
213
+ }
214
+ /**
215
+ * Generates a TypeScript class property getter declaration for the given reflection class.
216
+ *
217
+ * @param props - The properties of the class property, including its name, type, and other modifiers.
218
+ * @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.
219
+ */
220
+ function ClassPropertyGet(props) {
221
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get children() {
222
+ return [
223
+ "get ",
224
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, { get name() {
225
+ return props.name;
226
+ } }),
227
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
228
+ return [
229
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, { get returnType() {
230
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeRefContext, { get children() {
231
+ return props.type;
232
+ } });
233
+ } }),
234
+ " ",
235
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
236
+ return props.children;
237
+ } })
238
+ ];
239
+ } })
240
+ ];
241
+ } }));
242
+ }
243
+ /**
244
+ * Generates a TypeScript class method declaration for the given reflection class.
245
+ *
246
+ * @param props - The properties of the class method, including its name, visibility, and other modifiers.
247
+ * @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
248
+ */
249
+ function ClassMethod(props) {
250
+ const callProps = require_typescript_helpers_get_call_signature_props.getCallSignatureProps(props);
251
+ const [_, rest] = (0, _alloy_js_core.splitProps)(props, ["doc"]);
252
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
253
+ get when() {
254
+ return Boolean(props.doc);
255
+ },
256
+ get children() {
257
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, {
258
+ get heading() {
259
+ return props.doc;
260
+ },
261
+ get children() {
262
+ return (0, _alloy_js_core_jsx_runtime.memo)(() => !!Array.isArray(rest.parameters))() && (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocParams, { get parameters() {
263
+ return rest.parameters;
264
+ } });
265
+ }
266
+ });
267
+ }
268
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(ClassMember, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, { get children() {
269
+ return [
270
+ (0, _alloy_js_core_jsx_runtime.memo)(() => props.async && "async "),
271
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_property_name.PropertyName, {}),
272
+ (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_contexts_lexical_scope.LexicalScope, { get children() {
273
+ return [
274
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.CallSignature, callProps),
275
+ " ",
276
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Block, { get children() {
277
+ return props.children;
278
+ } })
279
+ ];
280
+ } })
281
+ ];
282
+ } }))];
283
+ }
284
+
285
+ //#endregion
286
+ exports.ClassDeclaration = ClassDeclaration;
287
+ exports.ClassField = ClassField;
288
+ exports.ClassMember = ClassMember;
289
+ exports.ClassMethod = ClassMethod;
290
+ exports.ClassPropertyGet = ClassPropertyGet;
291
+ exports.ClassPropertySet = ClassPropertySet;
@@ -0,0 +1,145 @@
1
+ import { TypeParameters } from "./type-parameters.cjs";
2
+ import { Children, Namekey, Refkey } from "@alloy-js/core";
3
+ import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
4
+
5
+ //#region src/typescript/components/class-declaration.d.ts
6
+ /**
7
+ * Props for the ClassDeclaration component, which represents a TypeScript class declaration
8
+ */
9
+ interface ClassDeclarationProps extends CommonDeclarationProps {
10
+ /**
11
+ * An indication of whether this class is abstract
12
+ */
13
+ abstract?: boolean;
14
+ /**
15
+ * An optional class that this class extends. This will be rendered as an `extends` clause in the class declaration
16
+ */
17
+ extends?: Children;
18
+ /**
19
+ * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration
20
+ */
21
+ implements?: Children[];
22
+ /**
23
+ * The generic type parameters of the class.
24
+ */
25
+ typeParameters?: TypeParameterDescriptor[] | string[];
26
+ }
27
+ /**
28
+ * Create a TypeScript class declaration.
29
+ *
30
+ * @example
31
+ * ```tsx
32
+ * const myPetRefkey = refkey();
33
+ * const Animal = refkey();
34
+ * const staticMember = refkey();
35
+ * const instanceMember = refkey();
36
+ *
37
+ * <ClassDeclaration name="Animal" refkey={Animal}>
38
+ * <ClassMember public static name="something" type="string" refkey={staticMember}>
39
+ * "hello"
40
+ * </ClassMember>
41
+ * <ClassMember public name="kind" type="string" />
42
+ * <ClassMember public name="name" type="string" refkey={instanceMember} />
43
+ * <ClassConstructor parameters="name: string">
44
+ * this.name = name;
45
+ * </ClassConstructor>
46
+ * </ClassDeclaration>
47
+ *
48
+ * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
49
+ * new {Animal}();
50
+ * </VarDeclaration>
51
+ *
52
+ * {staticMember}; // Animal.something
53
+ * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
54
+ * {memberRefkey(myPetRefkey, instanceMember)}
55
+ * ```
56
+ */
57
+ declare function ClassDeclaration(props: ClassDeclarationProps): Children;
58
+ declare namespace ClassDeclaration {
59
+ var TypeParameters: typeof TypeParameters;
60
+ }
61
+ /**
62
+ * Generates a TypeScript class member declaration for the given reflection class.
63
+ */
64
+ interface ClassMemberProps {
65
+ name: string | Namekey;
66
+ refkey?: Refkey;
67
+ public?: boolean;
68
+ private?: boolean;
69
+ protected?: boolean;
70
+ jsPrivate?: boolean;
71
+ static?: boolean;
72
+ abstract?: boolean;
73
+ children?: Children;
74
+ doc?: Children;
75
+ nullish?: boolean;
76
+ override?: boolean;
77
+ }
78
+ /**
79
+ * Generates a TypeScript class member declaration for the given reflection class.
80
+ *
81
+ * @param props - The properties of the class member, including its name, visibility, and other modifiers.
82
+ * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
83
+ */
84
+ declare function ClassMember(props: ClassMemberProps): Children;
85
+ /**
86
+ * Props for a class field, which is a specific type of class member that represents a property of the class.
87
+ */
88
+ interface ClassFieldProps extends ClassMemberProps {
89
+ name: string;
90
+ type?: Children;
91
+ optional?: boolean;
92
+ children?: Children;
93
+ isPrivateMember?: boolean;
94
+ }
95
+ /**
96
+ * Generates a TypeScript class field declaration for the given reflection class.
97
+ *
98
+ * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
99
+ * @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
100
+ */
101
+ declare function ClassField(props: ClassFieldProps): Children;
102
+ /**
103
+ * Props for a class field, which is a specific type of class member that represents a property of the class.
104
+ */
105
+ interface ClassPropertyProps extends ClassMemberProps {
106
+ name: string;
107
+ type?: Children;
108
+ children?: Children;
109
+ }
110
+ /**
111
+ * Generates a TypeScript class property setter declaration for the given reflection class.
112
+ *
113
+ * @param props - The properties of the class property, including its name, type, and other modifiers.
114
+ * @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.
115
+ */
116
+ declare function ClassPropertySet(props: ClassPropertyProps): Children;
117
+ /**
118
+ * Generates a TypeScript class property getter declaration for the given reflection class.
119
+ *
120
+ * @param props - The properties of the class property, including its name, type, and other modifiers.
121
+ * @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.
122
+ */
123
+ declare function ClassPropertyGet(props: ClassPropertyProps): Children;
124
+ /**
125
+ * Props for a class method, which is a specific type of class member that represents a function defined within the class.
126
+ */
127
+ interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {
128
+ async?: boolean;
129
+ children?: Children;
130
+ }
131
+ /**
132
+ * Generates a TypeScript class method declaration for the given reflection class.
133
+ *
134
+ * @param props - The properties of the class method, including its name, visibility, and other modifiers.
135
+ * @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
136
+ */
137
+ declare function ClassMethod(props: ClassMethodProps): Children;
138
+ declare type __ΩClassDeclarationProps = any[];
139
+ declare type __ΩClassMemberProps = any[];
140
+ declare type __ΩClassFieldProps = any[];
141
+ declare type __ΩClassPropertyProps = any[];
142
+ declare type __ΩClassMethodProps = any[];
143
+ //#endregion
144
+ export { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps };
145
+ //# sourceMappingURL=class-declaration.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"mappings":";;;;;;;;UAoDiB,qBAAA,SAA8B,sBAAA;EAAR;;;EAIrC,QAAA;EAeiB;;;EAVjB,OAAA,GAAU,QAAA;EATmC;;;EAc7C,UAAA,GAAa,QAAA;EAAb;;;EAKA,cAAA,GAAiB,uBAAA;AAAA;;AAiCnB;;;;;;;;;;;;;;AA4CA;;;;;;;;;;;;;;;iBA5CgB,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,QAAA;AAAA,kBAA7C,gBAAA;EAAA,2BAAgB,cAAA;AAAA;;;;UA4Cf,gBAAA;EACf,IAAA,WAAe,OAAA;EACf,MAAA,GAAS,MAAA;EACT,MAAA;EACA,OAAA;EACA,SAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,QAAA,GAAW,QAAA;EACX,GAAA,GAAM,QAAA;EACN,OAAA;EACA,QAAA;AAAA;AA0CF;;;;;;AAAA,iBAjCgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;;;;UAiClC,eAAA,SAAwB,gBAAA;EACvC,IAAA;EACA,IAAA,GAAO,QAAA;EACP,QAAA;EACA,QAAA,GAAW,QAAA;EACX,eAAA;AAAA;;AASF;;;;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA;;;;UAyBhC,kBAAA,SAA2B,gBAAA;EAC1C,IAAA;EACA,IAAA,GAAO,QAAA;EACP,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,QAAA;;;;;AAA1D;;iBA4BgB,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,QAAA;;;;UAkBzC,gBAAA,SAAyB,gBAAA,EAAkB,kBAAA;EAC1D,KAAA;EACA,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;AAAA"}
@@ -0,0 +1,145 @@
1
+ import { TypeParameters } from "./type-parameters.mjs";
2
+ import { Children, Namekey, Refkey } from "@alloy-js/core";
3
+ import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
4
+
5
+ //#region src/typescript/components/class-declaration.d.ts
6
+ /**
7
+ * Props for the ClassDeclaration component, which represents a TypeScript class declaration
8
+ */
9
+ interface ClassDeclarationProps extends CommonDeclarationProps {
10
+ /**
11
+ * An indication of whether this class is abstract
12
+ */
13
+ abstract?: boolean;
14
+ /**
15
+ * An optional class that this class extends. This will be rendered as an `extends` clause in the class declaration
16
+ */
17
+ extends?: Children;
18
+ /**
19
+ * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration
20
+ */
21
+ implements?: Children[];
22
+ /**
23
+ * The generic type parameters of the class.
24
+ */
25
+ typeParameters?: TypeParameterDescriptor[] | string[];
26
+ }
27
+ /**
28
+ * Create a TypeScript class declaration.
29
+ *
30
+ * @example
31
+ * ```tsx
32
+ * const myPetRefkey = refkey();
33
+ * const Animal = refkey();
34
+ * const staticMember = refkey();
35
+ * const instanceMember = refkey();
36
+ *
37
+ * <ClassDeclaration name="Animal" refkey={Animal}>
38
+ * <ClassMember public static name="something" type="string" refkey={staticMember}>
39
+ * "hello"
40
+ * </ClassMember>
41
+ * <ClassMember public name="kind" type="string" />
42
+ * <ClassMember public name="name" type="string" refkey={instanceMember} />
43
+ * <ClassConstructor parameters="name: string">
44
+ * this.name = name;
45
+ * </ClassConstructor>
46
+ * </ClassDeclaration>
47
+ *
48
+ * <VarDeclaration const name="myPet" refkey={myPetRefkey}>
49
+ * new {Animal}();
50
+ * </VarDeclaration>
51
+ *
52
+ * {staticMember}; // Animal.something
53
+ * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name
54
+ * {memberRefkey(myPetRefkey, instanceMember)}
55
+ * ```
56
+ */
57
+ declare function ClassDeclaration(props: ClassDeclarationProps): Children;
58
+ declare namespace ClassDeclaration {
59
+ var TypeParameters: typeof TypeParameters;
60
+ }
61
+ /**
62
+ * Generates a TypeScript class member declaration for the given reflection class.
63
+ */
64
+ interface ClassMemberProps {
65
+ name: string | Namekey;
66
+ refkey?: Refkey;
67
+ public?: boolean;
68
+ private?: boolean;
69
+ protected?: boolean;
70
+ jsPrivate?: boolean;
71
+ static?: boolean;
72
+ abstract?: boolean;
73
+ children?: Children;
74
+ doc?: Children;
75
+ nullish?: boolean;
76
+ override?: boolean;
77
+ }
78
+ /**
79
+ * Generates a TypeScript class member declaration for the given reflection class.
80
+ *
81
+ * @param props - The properties of the class member, including its name, visibility, and other modifiers.
82
+ * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
83
+ */
84
+ declare function ClassMember(props: ClassMemberProps): Children;
85
+ /**
86
+ * Props for a class field, which is a specific type of class member that represents a property of the class.
87
+ */
88
+ interface ClassFieldProps extends ClassMemberProps {
89
+ name: string;
90
+ type?: Children;
91
+ optional?: boolean;
92
+ children?: Children;
93
+ isPrivateMember?: boolean;
94
+ }
95
+ /**
96
+ * Generates a TypeScript class field declaration for the given reflection class.
97
+ *
98
+ * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
99
+ * @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
100
+ */
101
+ declare function ClassField(props: ClassFieldProps): Children;
102
+ /**
103
+ * Props for a class field, which is a specific type of class member that represents a property of the class.
104
+ */
105
+ interface ClassPropertyProps extends ClassMemberProps {
106
+ name: string;
107
+ type?: Children;
108
+ children?: Children;
109
+ }
110
+ /**
111
+ * Generates a TypeScript class property setter declaration for the given reflection class.
112
+ *
113
+ * @param props - The properties of the class property, including its name, type, and other modifiers.
114
+ * @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.
115
+ */
116
+ declare function ClassPropertySet(props: ClassPropertyProps): Children;
117
+ /**
118
+ * Generates a TypeScript class property getter declaration for the given reflection class.
119
+ *
120
+ * @param props - The properties of the class property, including its name, type, and other modifiers.
121
+ * @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.
122
+ */
123
+ declare function ClassPropertyGet(props: ClassPropertyProps): Children;
124
+ /**
125
+ * Props for a class method, which is a specific type of class member that represents a function defined within the class.
126
+ */
127
+ interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {
128
+ async?: boolean;
129
+ children?: Children;
130
+ }
131
+ /**
132
+ * Generates a TypeScript class method declaration for the given reflection class.
133
+ *
134
+ * @param props - The properties of the class method, including its name, visibility, and other modifiers.
135
+ * @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
136
+ */
137
+ declare function ClassMethod(props: ClassMethodProps): Children;
138
+ declare type __ΩClassDeclarationProps = any[];
139
+ declare type __ΩClassMemberProps = any[];
140
+ declare type __ΩClassFieldProps = any[];
141
+ declare type __ΩClassPropertyProps = any[];
142
+ declare type __ΩClassMethodProps = any[];
143
+ //#endregion
144
+ export { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps };
145
+ //# sourceMappingURL=class-declaration.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"mappings":";;;;;;;;UAoDiB,qBAAA,SAA8B,sBAAA;EAAR;;;EAIrC,QAAA;EAeiB;;;EAVjB,OAAA,GAAU,QAAA;EATmC;;;EAc7C,UAAA,GAAa,QAAA;EAAb;;;EAKA,cAAA,GAAiB,uBAAA;AAAA;;AAiCnB;;;;;;;;;;;;;;AA4CA;;;;;;;;;;;;;;;iBA5CgB,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,QAAA;AAAA,kBAA7C,gBAAA;EAAA,2BAAgB,cAAA;AAAA;;;;UA4Cf,gBAAA;EACf,IAAA,WAAe,OAAA;EACf,MAAA,GAAS,MAAA;EACT,MAAA;EACA,OAAA;EACA,SAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,QAAA,GAAW,QAAA;EACX,GAAA,GAAM,QAAA;EACN,OAAA;EACA,QAAA;AAAA;AA0CF;;;;;;AAAA,iBAjCgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;;;;UAiClC,eAAA,SAAwB,gBAAA;EACvC,IAAA;EACA,IAAA,GAAO,QAAA;EACP,QAAA;EACA,QAAA,GAAW,QAAA;EACX,eAAA;AAAA;;AASF;;;;;iBAAgB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAe,QAAA;;;;UAyBhC,kBAAA,SAA2B,gBAAA;EAC1C,IAAA;EACA,IAAA,GAAO,QAAA;EACP,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,QAAA;;;;;AAA1D;;iBA4BgB,gBAAA,CAAiB,KAAA,EAAO,kBAAA,GAAkB,QAAA;;;;UAkBzC,gBAAA,SAAyB,gBAAA,EAAkB,kBAAA;EAC1D,KAAA;EACA,QAAA,GAAW,QAAA;AAAA;;;;;;;iBASG,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,QAAA;AAAA"}