@powerlines/plugin-alloy 0.14.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 (276) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +304 -0
  3. package/dist/builtin-file-BU93ve2k.d.cts +34 -0
  4. package/dist/builtin-file-CG53y-09.d.mts +34 -0
  5. package/dist/builtin-file-CkwxD4el.mjs +37 -0
  6. package/dist/builtin-file-DLVCgiye.cjs +43 -0
  7. package/dist/capnp-8yVLwAox.cjs +364 -0
  8. package/dist/capnp-CKLYTfgy.d.mts +87 -0
  9. package/dist/capnp-CNythuSw.mjs +267 -0
  10. package/dist/capnp-wJ2_HpAN.d.cts +87 -0
  11. package/dist/chunk-CbDLau6x.cjs +34 -0
  12. package/dist/components-B0A7LpQD.d.cts +142 -0
  13. package/dist/components-B2kXCrty.d.mts +142 -0
  14. package/dist/components-BOkkDhM9.cjs +0 -0
  15. package/dist/components-BXrpeD8J.cjs +0 -0
  16. package/dist/components-C3qpgLKV.mjs +1 -0
  17. package/dist/components-CBtEhH9k.mjs +1 -0
  18. package/dist/components-Cj5gaIV0.cjs +0 -0
  19. package/dist/components-HMVhsFQl.mjs +1 -0
  20. package/dist/components-I0ydtjfW.cjs +0 -0
  21. package/dist/components-ajocJcib.mjs +1 -0
  22. package/dist/context-BIduC1bB.cjs +44 -0
  23. package/dist/context-BO25KgR_.d.cts +1668 -0
  24. package/dist/context-CBG6Pv09.d.cts +26 -0
  25. package/dist/context-Cx38_mgI.mjs +26 -0
  26. package/dist/context-DzaJOnXh.d.mts +26 -0
  27. package/dist/context-GtZoIVx8.d.mts +1670 -0
  28. package/dist/contexts-BSRk0whx.cjs +0 -0
  29. package/dist/contexts-X44bRyOp.mjs +1 -0
  30. package/dist/contexts-XuEdvZdE.mjs +1 -0
  31. package/dist/contexts-uXFW3CIa.cjs +0 -0
  32. package/dist/core/components/index.cjs +9 -0
  33. package/dist/core/components/index.d.cts +7 -0
  34. package/dist/core/components/index.d.mts +7 -0
  35. package/dist/core/components/index.mjs +7 -0
  36. package/dist/core/components/output.cjs +4 -0
  37. package/dist/core/components/output.d.cts +3 -0
  38. package/dist/core/components/output.d.mts +3 -0
  39. package/dist/core/components/output.mjs +4 -0
  40. package/dist/core/components/single-line-comment.cjs +3 -0
  41. package/dist/core/components/single-line-comment.d.cts +4 -0
  42. package/dist/core/components/single-line-comment.d.mts +4 -0
  43. package/dist/core/components/single-line-comment.mjs +3 -0
  44. package/dist/core/components/source-file.cjs +3 -0
  45. package/dist/core/components/source-file.d.cts +4 -0
  46. package/dist/core/components/source-file.d.mts +4 -0
  47. package/dist/core/components/source-file.mjs +3 -0
  48. package/dist/core/contexts/context.cjs +5 -0
  49. package/dist/core/contexts/context.d.cts +3 -0
  50. package/dist/core/contexts/context.d.mts +3 -0
  51. package/dist/core/contexts/context.mjs +3 -0
  52. package/dist/core/contexts/index.cjs +15 -0
  53. package/dist/core/contexts/index.d.cts +6 -0
  54. package/dist/core/contexts/index.d.mts +6 -0
  55. package/dist/core/contexts/index.mjs +5 -0
  56. package/dist/core/contexts/reflection.cjs +10 -0
  57. package/dist/core/contexts/reflection.d.cts +4 -0
  58. package/dist/core/contexts/reflection.d.mts +4 -0
  59. package/dist/core/contexts/reflection.mjs +3 -0
  60. package/dist/core/index.cjs +23 -0
  61. package/dist/core/index.d.cts +11 -0
  62. package/dist/core/index.d.mts +11 -0
  63. package/dist/core/index.mjs +10 -0
  64. package/dist/core-B57eQAue.mjs +1 -0
  65. package/dist/core-DzEmU6tL.cjs +0 -0
  66. package/dist/create-builtin-Bpswa0ZT.d.cts +15 -0
  67. package/dist/create-builtin-CP9mN5P-.mjs +18 -0
  68. package/dist/create-builtin-_3GNADDt.cjs +24 -0
  69. package/dist/create-builtin-wEbNOWNw.d.mts +15 -0
  70. package/dist/dynamic-import-statement-BhY2a13r.d.cts +32 -0
  71. package/dist/dynamic-import-statement-DoTHSt57.mjs +28 -0
  72. package/dist/dynamic-import-statement-DyVWBclX.d.mts +32 -0
  73. package/dist/dynamic-import-statement-JVLyMPXr.cjs +34 -0
  74. package/dist/entry-file-B159R5XY.d.cts +27 -0
  75. package/dist/entry-file-BA75rAwb.cjs +41 -0
  76. package/dist/entry-file-Bw1mgMP3.mjs +34 -0
  77. package/dist/entry-file-DfFhEkLi.d.mts +27 -0
  78. package/dist/helpers/capnp.cjs +19 -0
  79. package/dist/helpers/capnp.d.cts +3 -0
  80. package/dist/helpers/capnp.d.mts +3 -0
  81. package/dist/helpers/capnp.mjs +4 -0
  82. package/dist/helpers/create-builtin.cjs +3 -0
  83. package/dist/helpers/create-builtin.d.cts +2 -0
  84. package/dist/helpers/create-builtin.d.mts +2 -0
  85. package/dist/helpers/create-builtin.mjs +3 -0
  86. package/dist/helpers/index.cjs +26 -0
  87. package/dist/helpers/index.d.cts +7 -0
  88. package/dist/helpers/index.d.mts +7 -0
  89. package/dist/helpers/index.mjs +8 -0
  90. package/dist/helpers/refkey.cjs +3 -0
  91. package/dist/helpers/refkey.d.cts +2 -0
  92. package/dist/helpers/refkey.d.mts +2 -0
  93. package/dist/helpers/refkey.mjs +3 -0
  94. package/dist/helpers/typescript.cjs +4 -0
  95. package/dist/helpers/typescript.d.cts +2 -0
  96. package/dist/helpers/typescript.d.mts +2 -0
  97. package/dist/helpers/typescript.mjs +4 -0
  98. package/dist/helpers-BrA1Dy07.mjs +1 -0
  99. package/dist/helpers-Cten3PJk.cjs +0 -0
  100. package/dist/index-BINnViIh.d.mts +1 -0
  101. package/dist/index-BJ8-FA6N.d.cts +1 -0
  102. package/dist/index-BRJ_6A42.d.mts +1 -0
  103. package/dist/index-BXpMZvwA.d.cts +1 -0
  104. package/dist/index-Bi0Yc4v2.d.cts +1 -0
  105. package/dist/index-BrGZHEgX.d.mts +1 -0
  106. package/dist/index-BwFl_eS0.d.mts +1 -0
  107. package/dist/index-C1ihAKnV.d.cts +1 -0
  108. package/dist/index-CLTQPxoD.d.mts +1 -0
  109. package/dist/index-CoUVmp_Q.d.mts +1 -0
  110. package/dist/index-D1aKd2tO.d.cts +1 -0
  111. package/dist/index-D4d_pZLu.d.cts +1 -0
  112. package/dist/index-DBGd4WeR.d.mts +1 -0
  113. package/dist/index-DdxxIAKU.d.cts +1 -0
  114. package/dist/index-Deol7ZWO.d.mts +1 -0
  115. package/dist/index-DpEKQcoR.d.cts +1 -0
  116. package/dist/index-DrZ2Dh-H.d.cts +1 -0
  117. package/dist/index-MEuojd-r.d.cts +1 -0
  118. package/dist/index-bHnO4ZKt.d.mts +1 -0
  119. package/dist/index-lIMqGGJz.d.mts +1 -0
  120. package/dist/index.cjs +446 -0
  121. package/dist/index.d.cts +45 -0
  122. package/dist/index.d.mts +45 -0
  123. package/dist/index.mjs +361 -0
  124. package/dist/markdown/components/index.cjs +13 -0
  125. package/dist/markdown/components/index.d.cts +8 -0
  126. package/dist/markdown/components/index.d.mts +8 -0
  127. package/dist/markdown/components/index.mjs +9 -0
  128. package/dist/markdown/components/markdown-file.cjs +7 -0
  129. package/dist/markdown/components/markdown-file.d.cts +5 -0
  130. package/dist/markdown/components/markdown-file.d.mts +5 -0
  131. package/dist/markdown/components/markdown-file.mjs +6 -0
  132. package/dist/markdown/components/markdown-table.cjs +6 -0
  133. package/dist/markdown/components/markdown-table.d.cts +5 -0
  134. package/dist/markdown/components/markdown-table.d.mts +5 -0
  135. package/dist/markdown/components/markdown-table.mjs +4 -0
  136. package/dist/markdown/contexts/index.cjs +7 -0
  137. package/dist/markdown/contexts/index.d.cts +3 -0
  138. package/dist/markdown/contexts/index.d.mts +3 -0
  139. package/dist/markdown/contexts/index.mjs +4 -0
  140. package/dist/markdown/contexts/markdown-table.cjs +6 -0
  141. package/dist/markdown/contexts/markdown-table.d.cts +2 -0
  142. package/dist/markdown/contexts/markdown-table.d.mts +2 -0
  143. package/dist/markdown/contexts/markdown-table.mjs +3 -0
  144. package/dist/markdown/index.cjs +19 -0
  145. package/dist/markdown/index.d.cts +10 -0
  146. package/dist/markdown/index.d.mts +10 -0
  147. package/dist/markdown/index.mjs +11 -0
  148. package/dist/markdown-BTQE0AI9.cjs +0 -0
  149. package/dist/markdown-DMddlO1y.mjs +1 -0
  150. package/dist/markdown-file-BFbbzD59.mjs +90 -0
  151. package/dist/markdown-file-Bsuu9aIk.d.cts +23 -0
  152. package/dist/markdown-file-CB6u4Cp1.d.mts +23 -0
  153. package/dist/markdown-file-CzGNj_Ex.cjs +102 -0
  154. package/dist/markdown-table-2qP_4eLk.mjs +33 -0
  155. package/dist/markdown-table-BOWM26Kb.cjs +57 -0
  156. package/dist/markdown-table-BUxH6aRh.mjs +77 -0
  157. package/dist/markdown-table-CMaQVkwJ.d.mts +27 -0
  158. package/dist/markdown-table-CZMEY6IR.d.cts +37 -0
  159. package/dist/markdown-table-DFaNSBRn.cjs +95 -0
  160. package/dist/markdown-table-SvbpUdq-.d.cts +27 -0
  161. package/dist/markdown-table-kFQoqKQt.d.mts +37 -0
  162. package/dist/output-ChpN7bQM.d.cts +18 -0
  163. package/dist/output-CnofBsl0.cjs +38 -0
  164. package/dist/output-D9RlZeCO.d.mts +18 -0
  165. package/dist/output-DEdXZ94G.mjs +32 -0
  166. package/dist/plugin-C0DspKAF.d.mts +34 -0
  167. package/dist/plugin-DU0K2-Om.mjs +1 -0
  168. package/dist/plugin-DYBdUgTF.d.cts +34 -0
  169. package/dist/plugin-Fx-uJ4It.cjs +0 -0
  170. package/dist/record-expression-BOCZ9iqR.d.mts +12 -0
  171. package/dist/record-expression-DM_zSqE_.d.cts +12 -0
  172. package/dist/record-expression-DNVzCKgo.cjs +17 -0
  173. package/dist/record-expression-DxS_DiPc.mjs +11 -0
  174. package/dist/refkey-B0XSqdGY.d.mts +13 -0
  175. package/dist/refkey-B6A9kh_u.cjs +21 -0
  176. package/dist/refkey-CP7MJMac.d.cts +13 -0
  177. package/dist/refkey-CV0mIj0Y.mjs +15 -0
  178. package/dist/reflection-BSbFFYZO.cjs +108 -0
  179. package/dist/reflection-Bka9prwJ.d.mts +52 -0
  180. package/dist/reflection-CBMQ1FQo.mjs +60 -0
  181. package/dist/reflection-CkVyW69y.d.cts +52 -0
  182. package/dist/single-line-comment-BMPq6OR0.cjs +25 -0
  183. package/dist/single-line-comment-BjL_Z4Qn.d.cts +22 -0
  184. package/dist/single-line-comment-C5CtHQhi.mjs +19 -0
  185. package/dist/single-line-comment-DZAmp_BZ.d.mts +22 -0
  186. package/dist/source-file-4J1OvLed.d.cts +31 -0
  187. package/dist/source-file-BBbuhOKz.d.mts +31 -0
  188. package/dist/source-file-CCYwl5pI.mjs +52 -0
  189. package/dist/source-file-DTd1KgD5.cjs +59 -0
  190. package/dist/tsdoc-BFPYF-Fh.cjs +487 -0
  191. package/dist/tsdoc-BmyOQBxT.mjs +367 -0
  192. package/dist/tsdoc-C39LB5Mn.d.cts +152 -0
  193. package/dist/tsdoc-OE37Ht2l.d.mts +152 -0
  194. package/dist/tsdoc-reflection-3ZoV_Mjz.d.cts +18 -0
  195. package/dist/tsdoc-reflection-3hSdGY1e.mjs +97 -0
  196. package/dist/tsdoc-reflection-BQN8iUG1.cjs +115 -0
  197. package/dist/tsdoc-reflection-BtEk3cDW.d.mts +18 -0
  198. package/dist/types/components.cjs +1 -0
  199. package/dist/types/components.d.cts +3 -0
  200. package/dist/types/components.d.mts +3 -0
  201. package/dist/types/components.mjs +3 -0
  202. package/dist/types/index.cjs +3 -0
  203. package/dist/types/index.d.cts +5 -0
  204. package/dist/types/index.d.mts +5 -0
  205. package/dist/types/index.mjs +5 -0
  206. package/dist/types/plugin.cjs +1 -0
  207. package/dist/types/plugin.d.cts +3 -0
  208. package/dist/types/plugin.d.mts +3 -0
  209. package/dist/types/plugin.mjs +3 -0
  210. package/dist/types-BBEDEYnP.cjs +0 -0
  211. package/dist/types-BWlfXHs2.mjs +1 -0
  212. package/dist/typescript/components/builtin-file.cjs +9 -0
  213. package/dist/typescript/components/builtin-file.d.cts +7 -0
  214. package/dist/typescript/components/builtin-file.d.mts +7 -0
  215. package/dist/typescript/components/builtin-file.mjs +9 -0
  216. package/dist/typescript/components/dynamic-import-statement.cjs +3 -0
  217. package/dist/typescript/components/dynamic-import-statement.d.cts +2 -0
  218. package/dist/typescript/components/dynamic-import-statement.d.mts +2 -0
  219. package/dist/typescript/components/dynamic-import-statement.mjs +3 -0
  220. package/dist/typescript/components/entry-file.cjs +7 -0
  221. package/dist/typescript/components/entry-file.d.cts +6 -0
  222. package/dist/typescript/components/entry-file.d.mts +6 -0
  223. package/dist/typescript/components/entry-file.mjs +7 -0
  224. package/dist/typescript/components/index.cjs +50 -0
  225. package/dist/typescript/components/index.d.cts +14 -0
  226. package/dist/typescript/components/index.d.mts +14 -0
  227. package/dist/typescript/components/index.mjs +17 -0
  228. package/dist/typescript/components/record-expression.cjs +3 -0
  229. package/dist/typescript/components/record-expression.d.cts +2 -0
  230. package/dist/typescript/components/record-expression.d.mts +2 -0
  231. package/dist/typescript/components/record-expression.mjs +3 -0
  232. package/dist/typescript/components/tsdoc-reflection.cjs +9 -0
  233. package/dist/typescript/components/tsdoc-reflection.d.cts +5 -0
  234. package/dist/typescript/components/tsdoc-reflection.d.mts +5 -0
  235. package/dist/typescript/components/tsdoc-reflection.mjs +7 -0
  236. package/dist/typescript/components/tsdoc.cjs +24 -0
  237. package/dist/typescript/components/tsdoc.d.cts +4 -0
  238. package/dist/typescript/components/tsdoc.d.mts +4 -0
  239. package/dist/typescript/components/tsdoc.mjs +5 -0
  240. package/dist/typescript/components/typescript-file.cjs +8 -0
  241. package/dist/typescript/components/typescript-file.d.cts +5 -0
  242. package/dist/typescript/components/typescript-file.d.mts +5 -0
  243. package/dist/typescript/components/typescript-file.mjs +6 -0
  244. package/dist/typescript/components/typescript-interface.cjs +9 -0
  245. package/dist/typescript/components/typescript-interface.d.cts +4 -0
  246. package/dist/typescript/components/typescript-interface.d.mts +4 -0
  247. package/dist/typescript/components/typescript-interface.mjs +8 -0
  248. package/dist/typescript/components/typescript-object.cjs +9 -0
  249. package/dist/typescript/components/typescript-object.d.cts +4 -0
  250. package/dist/typescript/components/typescript-object.d.mts +4 -0
  251. package/dist/typescript/components/typescript-object.mjs +8 -0
  252. package/dist/typescript/index.cjs +51 -0
  253. package/dist/typescript/index.d.cts +15 -0
  254. package/dist/typescript/index.d.mts +15 -0
  255. package/dist/typescript/index.mjs +18 -0
  256. package/dist/typescript-45caIUPa.mjs +1 -0
  257. package/dist/typescript-BrZsJqvc.mjs +45 -0
  258. package/dist/typescript-CXP7Oa6_.d.cts +25 -0
  259. package/dist/typescript-DG1-qdBQ.d.mts +25 -0
  260. package/dist/typescript-DV5akLQO.cjs +0 -0
  261. package/dist/typescript-DcqKlMoH.cjs +51 -0
  262. package/dist/typescript-file-6Y81yLyB.cjs +157 -0
  263. package/dist/typescript-file-BR9I7R1v.d.cts +47 -0
  264. package/dist/typescript-file-BWq9GIUt.d.mts +47 -0
  265. package/dist/typescript-file-y6oF016h.mjs +139 -0
  266. package/dist/typescript-interface-AydoCmGY.mjs +52 -0
  267. package/dist/typescript-interface-CKjljRFu.d.mts +25 -0
  268. package/dist/typescript-interface-Codd49Sl.cjs +64 -0
  269. package/dist/typescript-interface-fGS4VBnW.d.cts +25 -0
  270. package/dist/typescript-object-C-BmpHfk.mjs +93 -0
  271. package/dist/typescript-object-CxC5Qo5P.d.cts +26 -0
  272. package/dist/typescript-object-DOrJkpcM.cjs +105 -0
  273. package/dist/typescript-object-I6Huh12F.d.mts +26 -0
  274. package/dist/utilities-CnaPrauh.mjs +109 -0
  275. package/dist/utilities-llRqOC4l.cjs +133 -0
  276. package/package.json +411 -0
@@ -0,0 +1,5 @@
1
+ import "../../utilities-CnaPrauh.mjs";
2
+ import "../../context-Cx38_mgI.mjs";
3
+ import { _ as TSDocReturns, a as TSDocDomain, b as TSDocTitle, c as TSDocIgnore, d as TSDocModule, f as TSDocParam, g as TSDocRemarks, h as TSDocReadonly, i as TSDocDefaultValue, l as TSDocInternal, m as TSDocPermission, n as TSDocAlias, o as TSDocExample, p as TSDocParams, r as TSDocAttributesTags, s as TSDocHidden, t as TSDoc, u as TSDocLink, v as TSDocTag, y as TSDocThrows } from "../../tsdoc-BmyOQBxT.mjs";
4
+
5
+ export { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle };
@@ -0,0 +1,8 @@
1
+ require('../../context-BIduC1bB.cjs');
2
+ require('../../single-line-comment-BMPq6OR0.cjs');
3
+ require('../../source-file-DTd1KgD5.cjs');
4
+ const require_typescript_file = require('../../typescript-file-6Y81yLyB.cjs');
5
+
6
+ exports.TypescriptFile = require_typescript_file.TypescriptFile;
7
+ exports.TypescriptFileHeader = require_typescript_file.TypescriptFileHeader;
8
+ exports.TypescriptFileHeaderImports = require_typescript_file.TypescriptFileHeaderImports;
@@ -0,0 +1,5 @@
1
+ import "../../context-BO25KgR_.cjs";
2
+ import "../../components-B0A7LpQD.cjs";
3
+ import "../../source-file-4J1OvLed.cjs";
4
+ import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../../typescript-file-BR9I7R1v.cjs";
5
+ export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
@@ -0,0 +1,5 @@
1
+ import "../../context-GtZoIVx8.mjs";
2
+ import "../../components-B2kXCrty.mjs";
3
+ import "../../source-file-BBbuhOKz.mjs";
4
+ import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../../typescript-file-BWq9GIUt.mjs";
5
+ export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
@@ -0,0 +1,6 @@
1
+ import "../../context-Cx38_mgI.mjs";
2
+ import "../../single-line-comment-C5CtHQhi.mjs";
3
+ import "../../source-file-CCYwl5pI.mjs";
4
+ import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "../../typescript-file-y6oF016h.mjs";
5
+
6
+ export { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports };
@@ -0,0 +1,9 @@
1
+ require('../../utilities-llRqOC4l.cjs');
2
+ require('../../context-BIduC1bB.cjs');
3
+ require('../../tsdoc-BFPYF-Fh.cjs');
4
+ require('../../reflection-BSbFFYZO.cjs');
5
+ require('../../tsdoc-reflection-BQN8iUG1.cjs');
6
+ const require_typescript_interface = require('../../typescript-interface-Codd49Sl.cjs');
7
+
8
+ exports.TypeScriptInterface = require_typescript_interface.TypeScriptInterface;
9
+ exports.TypescriptInterfaceProperty = require_typescript_interface.TypescriptInterfaceProperty;
@@ -0,0 +1,4 @@
1
+ import "../../context-BO25KgR_.cjs";
2
+ import "../../components-B0A7LpQD.cjs";
3
+ import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-fGS4VBnW.cjs";
4
+ export { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps };
@@ -0,0 +1,4 @@
1
+ import "../../context-GtZoIVx8.mjs";
2
+ import "../../components-B2kXCrty.mjs";
3
+ import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-CKjljRFu.mjs";
4
+ export { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps };
@@ -0,0 +1,8 @@
1
+ import "../../utilities-CnaPrauh.mjs";
2
+ import "../../context-Cx38_mgI.mjs";
3
+ import "../../tsdoc-BmyOQBxT.mjs";
4
+ import "../../reflection-CBMQ1FQo.mjs";
5
+ import "../../tsdoc-reflection-3hSdGY1e.mjs";
6
+ import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../../typescript-interface-AydoCmGY.mjs";
7
+
8
+ export { TypeScriptInterface, TypescriptInterfaceProperty };
@@ -0,0 +1,9 @@
1
+ require('../../utilities-llRqOC4l.cjs');
2
+ require('../../context-BIduC1bB.cjs');
3
+ require('../../tsdoc-BFPYF-Fh.cjs');
4
+ require('../../reflection-BSbFFYZO.cjs');
5
+ require('../../tsdoc-reflection-BQN8iUG1.cjs');
6
+ const require_typescript_object = require('../../typescript-object-DOrJkpcM.cjs');
7
+
8
+ exports.TypescriptObject = require_typescript_object.TypescriptObject;
9
+ exports.TypescriptObjectProperty = require_typescript_object.TypescriptObjectProperty;
@@ -0,0 +1,4 @@
1
+ import "../../context-BO25KgR_.cjs";
2
+ import "../../components-B0A7LpQD.cjs";
3
+ import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "../../typescript-object-CxC5Qo5P.cjs";
4
+ export { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
@@ -0,0 +1,4 @@
1
+ import "../../context-GtZoIVx8.mjs";
2
+ import "../../components-B2kXCrty.mjs";
3
+ import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "../../typescript-object-I6Huh12F.mjs";
4
+ export { TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
@@ -0,0 +1,8 @@
1
+ import "../../utilities-CnaPrauh.mjs";
2
+ import "../../context-Cx38_mgI.mjs";
3
+ import "../../tsdoc-BmyOQBxT.mjs";
4
+ import "../../reflection-CBMQ1FQo.mjs";
5
+ import "../../tsdoc-reflection-3hSdGY1e.mjs";
6
+ import { n as TypescriptObjectProperty, t as TypescriptObject } from "../../typescript-object-C-BmpHfk.mjs";
7
+
8
+ export { TypescriptObject, TypescriptObjectProperty };
@@ -0,0 +1,51 @@
1
+ require('../utilities-llRqOC4l.cjs');
2
+ require('../context-BIduC1bB.cjs');
3
+ const require_tsdoc = require('../tsdoc-BFPYF-Fh.cjs');
4
+ require('../single-line-comment-BMPq6OR0.cjs');
5
+ require('../source-file-DTd1KgD5.cjs');
6
+ const require_typescript_file = require('../typescript-file-6Y81yLyB.cjs');
7
+ const require_builtin_file = require('../builtin-file-DLVCgiye.cjs');
8
+ const require_dynamic_import_statement = require('../dynamic-import-statement-JVLyMPXr.cjs');
9
+ const require_entry_file = require('../entry-file-BA75rAwb.cjs');
10
+ const require_record_expression = require('../record-expression-DNVzCKgo.cjs');
11
+ require('../reflection-BSbFFYZO.cjs');
12
+ const require_tsdoc_reflection = require('../tsdoc-reflection-BQN8iUG1.cjs');
13
+ const require_typescript_interface = require('../typescript-interface-Codd49Sl.cjs');
14
+ const require_typescript_object = require('../typescript-object-DOrJkpcM.cjs');
15
+ require('../components-BOkkDhM9.cjs');
16
+ require('../typescript-DV5akLQO.cjs');
17
+
18
+ exports.BuiltinFile = require_builtin_file.BuiltinFile;
19
+ exports.DynamicImportStatement = require_dynamic_import_statement.DynamicImportStatement;
20
+ exports.EntryFile = require_entry_file.EntryFile;
21
+ exports.RecordExpression = require_record_expression.RecordExpression;
22
+ exports.TSDoc = require_tsdoc.TSDoc;
23
+ exports.TSDocAlias = require_tsdoc.TSDocAlias;
24
+ exports.TSDocAttributesTags = require_tsdoc.TSDocAttributesTags;
25
+ exports.TSDocDefaultValue = require_tsdoc.TSDocDefaultValue;
26
+ exports.TSDocDomain = require_tsdoc.TSDocDomain;
27
+ exports.TSDocExample = require_tsdoc.TSDocExample;
28
+ exports.TSDocHidden = require_tsdoc.TSDocHidden;
29
+ exports.TSDocIgnore = require_tsdoc.TSDocIgnore;
30
+ exports.TSDocInternal = require_tsdoc.TSDocInternal;
31
+ exports.TSDocLink = require_tsdoc.TSDocLink;
32
+ exports.TSDocModule = require_tsdoc.TSDocModule;
33
+ exports.TSDocParam = require_tsdoc.TSDocParam;
34
+ exports.TSDocParams = require_tsdoc.TSDocParams;
35
+ exports.TSDocPermission = require_tsdoc.TSDocPermission;
36
+ exports.TSDocReadonly = require_tsdoc.TSDocReadonly;
37
+ exports.TSDocReflectionClass = require_tsdoc_reflection.TSDocReflectionClass;
38
+ exports.TSDocReflectionMethod = require_tsdoc_reflection.TSDocReflectionMethod;
39
+ exports.TSDocReflectionProperty = require_tsdoc_reflection.TSDocReflectionProperty;
40
+ exports.TSDocRemarks = require_tsdoc.TSDocRemarks;
41
+ exports.TSDocReturns = require_tsdoc.TSDocReturns;
42
+ exports.TSDocTag = require_tsdoc.TSDocTag;
43
+ exports.TSDocThrows = require_tsdoc.TSDocThrows;
44
+ exports.TSDocTitle = require_tsdoc.TSDocTitle;
45
+ exports.TypeScriptInterface = require_typescript_interface.TypeScriptInterface;
46
+ exports.TypescriptFile = require_typescript_file.TypescriptFile;
47
+ exports.TypescriptFileHeader = require_typescript_file.TypescriptFileHeader;
48
+ exports.TypescriptFileHeaderImports = require_typescript_file.TypescriptFileHeaderImports;
49
+ exports.TypescriptInterfaceProperty = require_typescript_interface.TypescriptInterfaceProperty;
50
+ exports.TypescriptObject = require_typescript_object.TypescriptObject;
51
+ exports.TypescriptObjectProperty = require_typescript_object.TypescriptObjectProperty;
@@ -0,0 +1,15 @@
1
+ import "../context-BO25KgR_.cjs";
2
+ import "../components-B0A7LpQD.cjs";
3
+ import "../source-file-4J1OvLed.cjs";
4
+ import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-C39LB5Mn.cjs";
5
+ import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-BR9I7R1v.cjs";
6
+ import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-BU93ve2k.cjs";
7
+ import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-BhY2a13r.cjs";
8
+ import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-B159R5XY.cjs";
9
+ import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-DM_zSqE_.cjs";
10
+ import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-3ZoV_Mjz.cjs";
11
+ import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-fGS4VBnW.cjs";
12
+ import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "../typescript-object-CxC5Qo5P.cjs";
13
+ import "../index-D4d_pZLu.cjs";
14
+ import "../index-MEuojd-r.cjs";
15
+ export { BuiltinFile, BuiltinFileProps, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
@@ -0,0 +1,15 @@
1
+ import "../context-GtZoIVx8.mjs";
2
+ import "../components-B2kXCrty.mjs";
3
+ import "../source-file-BBbuhOKz.mjs";
4
+ import { A as __ΩTSDocDefaultValueProps, C as TSDocRemarks, D as TSDocThrows, E as TSDocTagProps, F as __ΩTSDocProps, I as __ΩTSDocTagProps, M as __ΩTSDocModuleProps, N as __ΩTSDocParamProps, O as TSDocTitle, P as __ΩTSDocParamsProps, S as TSDocReadonly, T as TSDocTag, _ as TSDocParamProps, a as TSDocDefaultValue, b as TSDocPermission, c as TSDocExample, d as TSDocIgnore, f as TSDocInternal, g as TSDocParam, h as TSDocModuleProps, i as TSDocAttributesTagsProps, j as __ΩTSDocExampleProps, k as __ΩTSDocAttributesTagsProps, l as TSDocExampleProps, m as TSDocModule, n as TSDocAlias, o as TSDocDefaultValueProps, p as TSDocLink, r as TSDocAttributesTags, s as TSDocDomain, t as TSDoc, u as TSDocHidden, v as TSDocParams, w as TSDocReturns, x as TSDocProps, y as TSDocParamsProps } from "../tsdoc-OE37Ht2l.mjs";
5
+ import { a as TypescriptFileHeaderProps, c as __ΩTypescriptFileHeaderProps, i as TypescriptFileHeaderImportsProps, l as __ΩTypescriptFileProps, n as TypescriptFileHeader, o as TypescriptFileProps, r as TypescriptFileHeaderImports, s as __ΩTypescriptFileHeaderImportsProps, t as TypescriptFile } from "../typescript-file-BWq9GIUt.mjs";
6
+ import { n as BuiltinFileProps, r as __ΩBuiltinFileProps, t as BuiltinFile } from "../builtin-file-CG53y-09.mjs";
7
+ import { n as DynamicImportStatementProps, r as __ΩDynamicImportStatementProps, t as DynamicImportStatement } from "../dynamic-import-statement-DyVWBclX.mjs";
8
+ import { n as EntryFileProps, r as __ΩEntryFileProps, t as EntryFile } from "../entry-file-DfFhEkLi.mjs";
9
+ import { n as RecordExpressionProps, r as __ΩRecordExpressionProps, t as RecordExpression } from "../record-expression-BOCZ9iqR.mjs";
10
+ import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-BtEk3cDW.mjs";
11
+ import { a as __ΩTypeScriptInterfaceProps, i as TypescriptInterfacePropertyProps, n as TypeScriptInterfaceProps, o as __ΩTypescriptInterfacePropertyProps, r as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-CKjljRFu.mjs";
12
+ import { a as __ΩTypescriptObjectPropertyProps, i as TypescriptObjectProps, n as TypescriptObjectProperty, o as __ΩTypescriptObjectProps, r as TypescriptObjectPropertyProps, t as TypescriptObject } from "../typescript-object-I6Huh12F.mjs";
13
+ import "../index-CLTQPxoD.mjs";
14
+ import "../index-BRJ_6A42.mjs";
15
+ export { BuiltinFile, BuiltinFileProps, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩBuiltinFileProps, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps };
@@ -0,0 +1,18 @@
1
+ import "../utilities-CnaPrauh.mjs";
2
+ import "../context-Cx38_mgI.mjs";
3
+ import { _ as TSDocReturns, a as TSDocDomain, b as TSDocTitle, c as TSDocIgnore, d as TSDocModule, f as TSDocParam, g as TSDocRemarks, h as TSDocReadonly, i as TSDocDefaultValue, l as TSDocInternal, m as TSDocPermission, n as TSDocAlias, o as TSDocExample, p as TSDocParams, r as TSDocAttributesTags, s as TSDocHidden, t as TSDoc, u as TSDocLink, v as TSDocTag, y as TSDocThrows } from "../tsdoc-BmyOQBxT.mjs";
4
+ import "../single-line-comment-C5CtHQhi.mjs";
5
+ import "../source-file-CCYwl5pI.mjs";
6
+ import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "../typescript-file-y6oF016h.mjs";
7
+ import { t as BuiltinFile } from "../builtin-file-CkwxD4el.mjs";
8
+ import { t as DynamicImportStatement } from "../dynamic-import-statement-DoTHSt57.mjs";
9
+ import { t as EntryFile } from "../entry-file-Bw1mgMP3.mjs";
10
+ import { t as RecordExpression } from "../record-expression-DxS_DiPc.mjs";
11
+ import "../reflection-CBMQ1FQo.mjs";
12
+ import { n as TSDocReflectionMethod, r as TSDocReflectionProperty, t as TSDocReflectionClass } from "../tsdoc-reflection-3hSdGY1e.mjs";
13
+ import { n as TypescriptInterfaceProperty, t as TypeScriptInterface } from "../typescript-interface-AydoCmGY.mjs";
14
+ import { n as TypescriptObjectProperty, t as TypescriptObject } from "../typescript-object-C-BmpHfk.mjs";
15
+ import "../components-ajocJcib.mjs";
16
+ import "../typescript-45caIUPa.mjs";
17
+
18
+ export { BuiltinFile, DynamicImportStatement, EntryFile, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeScriptInterface, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptInterfaceProperty, TypescriptObject, TypescriptObjectProperty };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,45 @@
1
+ import { i as stringifyValue } from "./utilities-CnaPrauh.mjs";
2
+ import { isUndefined } from "@stryke/type-checks/is-undefined";
3
+ import { titleCase } from "@stryke/string-format/title-case";
4
+ import { camelCase } from "@stryke/string-format/camel-case";
5
+
6
+ //#region src/helpers/typescript.ts
7
+ /**
8
+ * Generates a TypeScript object for the given reflection class.
9
+ *
10
+ * @param reflection - The reflection class to generate the object for.
11
+ * @param options - Options for generating the object.
12
+ * @returns A string containing the TypeScript object definition.
13
+ */
14
+ function generateTypeScriptObject(reflection, options = {}) {
15
+ if (!reflection) return "";
16
+ return `
17
+ /**
18
+ * ${reflection.getDescription() || `${titleCase(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`}.
19
+ */
20
+ export const ${camelCase(options.overrideName || reflection.getName())}${options.overrideExtends !== false && (options.overrideExtends || reflection.getSuperReflectionClass()?.getName()) ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}` : ""} = {
21
+ ${reflection.getProperties().filter((item) => !item.isIgnored() && !isUndefined(options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
22
+ if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
23
+ return ret;
24
+ }, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1).map((item) => ` /**
25
+ * ${item.getDescription() || item.getTitle() || titleCase(item.getNameAsString())}
26
+ *
27
+ * @title ${item.getTitle() || titleCase(item.getNameAsString())}${item.getAlias().length ? `
28
+ ${item.getAlias().map((alias) => ` * @alias ${alias}`).join("\n")}` : ""}${item.getDomain() ? `
29
+ * @domain ${item.getDomain()}` : ""}${item.getPermission().length ? `
30
+ ${item.getPermission().map((permission) => ` * @permission ${permission}`).join("\n")}` : ""}${item.isInternal() ? `
31
+ * @internal` : ""}${item.isReadonly() ? `
32
+ * @readonly` : ""}${item.isIgnored() ? `
33
+ * @ignored` : ""}${item.isHidden() ? `
34
+ * @hidden` : ""}
35
+ */
36
+ ${item.getNameAsString()}: ${stringifyValue(item.getType(), options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
37
+ if (isUndefined(ret) && !isUndefined(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
38
+ return ret;
39
+ }, void 0) ?? item.getDefaultValue())}`).join(", \n")}
40
+ };
41
+ `;
42
+ }
43
+
44
+ //#endregion
45
+ export { generateTypeScriptObject as t };
@@ -0,0 +1,25 @@
1
+ import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
2
+
3
+ //#region src/helpers/typescript.d.ts
4
+ interface GenerateTypeScriptInterfaceOptions<T> {
5
+ overrideName?: string;
6
+ overrideExtends?: string | false;
7
+ defaultValues?: Partial<T>;
8
+ }
9
+ interface GenerateTypeScriptObjectOptions<T> {
10
+ overrideName?: string;
11
+ overrideExtends?: string | false;
12
+ defaultValues?: Partial<T>;
13
+ }
14
+ /**
15
+ * Generates a TypeScript object for the given reflection class.
16
+ *
17
+ * @param reflection - The reflection class to generate the object for.
18
+ * @param options - Options for generating the object.
19
+ * @returns A string containing the TypeScript object definition.
20
+ */
21
+ declare function generateTypeScriptObject<T extends Record<string, any>>(reflection: ReflectionClass<T>, options?: GenerateTypeScriptObjectOptions<T>): string;
22
+ declare type __ΩGenerateTypeScriptInterfaceOptions = any[];
23
+ declare type __ΩGenerateTypeScriptObjectOptions = any[];
24
+ //#endregion
25
+ export { generateTypeScriptObject as a, __ΩGenerateTypeScriptObjectOptions as i, GenerateTypeScriptObjectOptions as n, __ΩGenerateTypeScriptInterfaceOptions as r, GenerateTypeScriptInterfaceOptions as t };
@@ -0,0 +1,25 @@
1
+ import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
2
+
3
+ //#region src/helpers/typescript.d.ts
4
+ interface GenerateTypeScriptInterfaceOptions<T> {
5
+ overrideName?: string;
6
+ overrideExtends?: string | false;
7
+ defaultValues?: Partial<T>;
8
+ }
9
+ interface GenerateTypeScriptObjectOptions<T> {
10
+ overrideName?: string;
11
+ overrideExtends?: string | false;
12
+ defaultValues?: Partial<T>;
13
+ }
14
+ /**
15
+ * Generates a TypeScript object for the given reflection class.
16
+ *
17
+ * @param reflection - The reflection class to generate the object for.
18
+ * @param options - Options for generating the object.
19
+ * @returns A string containing the TypeScript object definition.
20
+ */
21
+ declare function generateTypeScriptObject<T extends Record<string, any>>(reflection: ReflectionClass<T>, options?: GenerateTypeScriptObjectOptions<T>): string;
22
+ declare type __ΩGenerateTypeScriptInterfaceOptions = any[];
23
+ declare type __ΩGenerateTypeScriptObjectOptions = any[];
24
+ //#endregion
25
+ export { generateTypeScriptObject as a, __ΩGenerateTypeScriptObjectOptions as i, GenerateTypeScriptObjectOptions as n, __ΩGenerateTypeScriptInterfaceOptions as r, GenerateTypeScriptInterfaceOptions as t };
File without changes
@@ -0,0 +1,51 @@
1
+ const require_chunk = require('./chunk-CbDLau6x.cjs');
2
+ const require_utilities = require('./utilities-llRqOC4l.cjs');
3
+ let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
4
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
5
+ let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
6
+
7
+ //#region src/helpers/typescript.ts
8
+ /**
9
+ * Generates a TypeScript object for the given reflection class.
10
+ *
11
+ * @param reflection - The reflection class to generate the object for.
12
+ * @param options - Options for generating the object.
13
+ * @returns A string containing the TypeScript object definition.
14
+ */
15
+ function generateTypeScriptObject(reflection, options = {}) {
16
+ if (!reflection) return "";
17
+ return `
18
+ /**
19
+ * ${reflection.getDescription() || `${(0, __stryke_string_format_title_case.titleCase)(options.overrideName || reflection.getClassName() || reflection.getName())} object instance`}.
20
+ */
21
+ export const ${(0, __stryke_string_format_camel_case.camelCase)(options.overrideName || reflection.getName())}${options.overrideExtends !== false && (options.overrideExtends || reflection.getSuperReflectionClass()?.getName()) ? `: ${options.overrideExtends || reflection.getSuperReflectionClass()?.getName()}` : ""} = {
22
+ ${reflection.getProperties().filter((item) => !item.isIgnored() && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
23
+ if ((0, __stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
24
+ return ret;
25
+ }, void 0) ?? item.getDefaultValue())).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1).map((item) => ` /**
26
+ * ${item.getDescription() || item.getTitle() || (0, __stryke_string_format_title_case.titleCase)(item.getNameAsString())}
27
+ *
28
+ * @title ${item.getTitle() || (0, __stryke_string_format_title_case.titleCase)(item.getNameAsString())}${item.getAlias().length ? `
29
+ ${item.getAlias().map((alias) => ` * @alias ${alias}`).join("\n")}` : ""}${item.getDomain() ? `
30
+ * @domain ${item.getDomain()}` : ""}${item.getPermission().length ? `
31
+ ${item.getPermission().map((permission) => ` * @permission ${permission}`).join("\n")}` : ""}${item.isInternal() ? `
32
+ * @internal` : ""}${item.isReadonly() ? `
33
+ * @readonly` : ""}${item.isIgnored() ? `
34
+ * @ignored` : ""}${item.isHidden() ? `
35
+ * @hidden` : ""}
36
+ */
37
+ ${item.getNameAsString()}: ${require_utilities.stringifyValue(item.getType(), options.defaultValues?.[item.getNameAsString()] ?? item.getAlias().reduce((ret, alias) => {
38
+ if ((0, __stryke_type_checks_is_undefined.isUndefined)(ret) && !(0, __stryke_type_checks_is_undefined.isUndefined)(options.defaultValues?.[alias])) return options.defaultValues?.[alias];
39
+ return ret;
40
+ }, void 0) ?? item.getDefaultValue())}`).join(", \n")}
41
+ };
42
+ `;
43
+ }
44
+
45
+ //#endregion
46
+ Object.defineProperty(exports, 'generateTypeScriptObject', {
47
+ enumerable: true,
48
+ get: function () {
49
+ return generateTypeScriptObject;
50
+ }
51
+ });
@@ -0,0 +1,157 @@
1
+ const require_chunk = require('./chunk-CbDLau6x.cjs');
2
+ const require_context = require('./context-BIduC1bB.cjs');
3
+ const require_single_line_comment = require('./single-line-comment-BMPq6OR0.cjs');
4
+ const require_source_file = require('./source-file-DTd1KgD5.cjs');
5
+ let __alloy_js_core = require("@alloy-js/core");
6
+ let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
7
+ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
8
+ let __alloy_js_typescript = require("@alloy-js/typescript");
9
+ let __stryke_path_append = require("@stryke/path/append");
10
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
11
+ let __stryke_type_checks_is_boolean = require("@stryke/type-checks/is-boolean");
12
+
13
+ //#region src/typescript/components/typescript-file.tsx
14
+ /**
15
+ * A base component representing a Powerlines generated Typescript source file.
16
+ *
17
+ * @param props - The properties for the source file.
18
+ * @returns The rendered source file component.
19
+ */
20
+ function TypescriptFile(props) {
21
+ const [{ children, path, imports, tsx, header, hashbang }, rest] = (0, __alloy_js_core.splitProps)(props, [
22
+ "children",
23
+ "path",
24
+ "imports",
25
+ "tsx",
26
+ "header",
27
+ "hashbang"
28
+ ]);
29
+ const directoryContext = (0, __alloy_js_core.useContext)(__alloy_js_core.SourceDirectoryContext);
30
+ const sdData = (0, __alloy_js_typescript.getSourceDirectoryData)(directoryContext);
31
+ const modulePath = (0, __stryke_path_append.appendPath)(path, directoryContext.path);
32
+ const scope = new __alloy_js_typescript.TSModuleScope(modulePath, (0, __alloy_js_core.useScope)());
33
+ sdData.modules.add(scope);
34
+ const pkg = (0, __alloy_js_core.useContext)(__alloy_js_typescript.PackageContext);
35
+ if (pkg) pkg.scope.addModule(scope);
36
+ if (props.export) {
37
+ if (pkg) if ((0, __stryke_type_checks_is_boolean.isBoolean)(props.export)) pkg.scope.addExport(modulePath, scope);
38
+ else pkg.scope.addExport(props.export, scope);
39
+ }
40
+ return /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_typescript.SourceFileContext.Provider, {
41
+ value: { scope },
42
+ children: /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_core.Scope, {
43
+ value: scope,
44
+ children: /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(require_source_file.SourceFile, {
45
+ ...rest,
46
+ path: modulePath,
47
+ header: header ?? /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(TypescriptFileHeader, {
48
+ hashbang,
49
+ children: /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(TypescriptFileHeaderImports, {
50
+ imports,
51
+ scope
52
+ })
53
+ }),
54
+ filetype: tsx ? "tsx" : "typescript",
55
+ children
56
+ })
57
+ })
58
+ });
59
+ }
60
+ /**
61
+ * Renders the header for a Powerlines Typescript source file.
62
+ *
63
+ * @param props - The properties for the source file header.
64
+ * @returns The rendered source file header.
65
+ */
66
+ function TypescriptFileHeader(props) {
67
+ const { header, hashbang, disableEslint = true, disableBiome = true, disablePrettier = false, children } = props;
68
+ const context = require_context.usePowerlines();
69
+ return /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core_jsx_runtime.Fragment, { children: [
70
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core.Show, {
71
+ when: Boolean(hashbang),
72
+ children: [hashbang === true ? __alloy_js_core.code`#!/usr/bin/env ${context?.config.mode === "development" ? "-S NODE_OPTIONS=--enable-source-maps" : ""} node` : hashbang, /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})]
73
+ }),
74
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core.Show, {
75
+ when: Boolean(header),
76
+ children: [header, /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})]
77
+ }),
78
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {}),
79
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core.Show, {
80
+ when: Boolean(disableEslint),
81
+ children: [/* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(require_single_line_comment.SingleLineComment, {
82
+ variant: "slash-star",
83
+ children: "eslint-disable"
84
+ }), /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})]
85
+ }),
86
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core.Show, {
87
+ when: Boolean(disablePrettier),
88
+ children: [/* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(require_single_line_comment.SingleLineComment, {
89
+ variant: "slash-star",
90
+ children: "prettier-ignore"
91
+ }), /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})]
92
+ }),
93
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core.Show, {
94
+ when: Boolean(disableBiome),
95
+ children: [/* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(require_single_line_comment.SingleLineComment, { children: "biome-ignore lint: disable" }), /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})]
96
+ }),
97
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_core.Show, {
98
+ when: Boolean(disableEslint) || Boolean(disablePrettier) || Boolean(disableBiome),
99
+ children: /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})
100
+ }),
101
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_core.Show, {
102
+ when: Boolean(children),
103
+ children: /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core_jsx_runtime.Fragment, { children: [children, /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})] })
104
+ }),
105
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(require_single_line_comment.SingleLineComment, { children: __alloy_js_core.code`Generated by ${(0, __stryke_string_format_title_case.titleCase)(context?.config.framework) || "Powerlines"}` }),
106
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {}),
107
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(require_single_line_comment.SingleLineComment, { children: __alloy_js_core.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command` }),
108
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})
109
+ ] });
110
+ }
111
+ /**
112
+ * Renders the header for a Powerlines Typescript source file.
113
+ *
114
+ * @param props - The properties for the source file header.
115
+ * @returns The rendered source file header.
116
+ */
117
+ function TypescriptFileHeaderImports(props) {
118
+ const { imports } = props;
119
+ const sourceFile = (0, __alloy_js_typescript.useSourceFile)();
120
+ const scope = props.scope ?? sourceFile.scope;
121
+ return /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsxs)(__alloy_js_core.Show, {
122
+ when: scope.importedModules.size > 0 || !!imports && Object.keys(imports).length > 0,
123
+ children: [
124
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_core.Show, {
125
+ when: !!imports && Object.keys(imports).length > 0,
126
+ children: Object.entries(imports ?? {}).map(([module$1, imported]) => {
127
+ return __alloy_js_core.code`import ${imported === null ? "" : imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).map((i) => i.alias ? i.alias : i.name).join(", ") + (imported.filter((i) => !(0, __stryke_type_checks_is_string.isString)(i) && i.default).length > 0 && imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? ", " : "") + (imported.filter((i) => (0, __stryke_type_checks_is_string.isString)(i) || !i.default).length > 0 ? `{ ${imported.map((i) => (0, __stryke_type_checks_is_string.isString)(i) ? i : i.alias ? `${i.name} as ${i.alias}` : i.name).join(", ")} }` : "")} from "${module$1}";`;
128
+ })
129
+ }),
130
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_core.Show, {
131
+ when: scope.importedModules.size > 0,
132
+ children: /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)(__alloy_js_typescript.ImportStatements, { records: scope.importedModules })
133
+ }),
134
+ /* @__PURE__ */ (0, __alloy_js_core_jsx_runtime.jsx)("hbr", {})
135
+ ]
136
+ });
137
+ }
138
+
139
+ //#endregion
140
+ Object.defineProperty(exports, 'TypescriptFile', {
141
+ enumerable: true,
142
+ get: function () {
143
+ return TypescriptFile;
144
+ }
145
+ });
146
+ Object.defineProperty(exports, 'TypescriptFileHeader', {
147
+ enumerable: true,
148
+ get: function () {
149
+ return TypescriptFileHeader;
150
+ }
151
+ });
152
+ Object.defineProperty(exports, 'TypescriptFileHeaderImports', {
153
+ enumerable: true,
154
+ get: function () {
155
+ return TypescriptFileHeaderImports;
156
+ }
157
+ });
@@ -0,0 +1,47 @@
1
+ import { h as TypescriptFileImports, n as ComponentProps, p as SourceFileHeaderProps } from "./components-B0A7LpQD.cjs";
2
+ import { n as SourceFileProps$1 } from "./source-file-4J1OvLed.cjs";
3
+ import { Children } from "@alloy-js/core";
4
+ import { TSModuleScope } from "@alloy-js/typescript";
5
+
6
+ //#region src/typescript/components/typescript-file.d.ts
7
+ type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
8
+ hashbang?: Children | true;
9
+ header?: Children;
10
+ imports?: TypescriptFileImports;
11
+ export?: boolean | string;
12
+ tsx?: boolean;
13
+ };
14
+ /**
15
+ * A base component representing a Powerlines generated Typescript source file.
16
+ *
17
+ * @param props - The properties for the source file.
18
+ * @returns The rendered source file component.
19
+ */
20
+ declare function TypescriptFile(props: TypescriptFileProps): Children;
21
+ interface TypescriptFileHeaderProps extends SourceFileHeaderProps {
22
+ header?: Children;
23
+ hashbang?: Children | true;
24
+ }
25
+ /**
26
+ * Renders the header for a Powerlines Typescript source file.
27
+ *
28
+ * @param props - The properties for the source file header.
29
+ * @returns The rendered source file header.
30
+ */
31
+ declare function TypescriptFileHeader(props: TypescriptFileHeaderProps): Children;
32
+ interface TypescriptFileHeaderImportsProps extends SourceFileHeaderProps {
33
+ imports?: TypescriptFileImports;
34
+ scope?: TSModuleScope;
35
+ }
36
+ /**
37
+ * Renders the header for a Powerlines Typescript source file.
38
+ *
39
+ * @param props - The properties for the source file header.
40
+ * @returns The rendered source file header.
41
+ */
42
+ declare function TypescriptFileHeaderImports(props: TypescriptFileHeaderImportsProps): Children;
43
+ declare type __ΩTypescriptFileProps = any[];
44
+ declare type __ΩTypescriptFileHeaderProps = any[];
45
+ declare type __ΩTypescriptFileHeaderImportsProps = any[];
46
+ //#endregion
47
+ export { TypescriptFileHeaderProps as a, __ΩTypescriptFileHeaderProps as c, TypescriptFileHeaderImportsProps as i, __ΩTypescriptFileProps as l, TypescriptFileHeader as n, TypescriptFileProps as o, TypescriptFileHeaderImports as r, __ΩTypescriptFileHeaderImportsProps as s, TypescriptFile as t };