@powerlines/plugin-alloy 0.25.27 → 0.25.29

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 (91) hide show
  1. package/dist/core/components/output.cjs +7 -19
  2. package/dist/core/components/output.mjs +7 -19
  3. package/dist/core/components/output.mjs.map +1 -1
  4. package/dist/core/components/single-line-comment.cjs +8 -7
  5. package/dist/core/components/single-line-comment.mjs +8 -7
  6. package/dist/core/components/single-line-comment.mjs.map +1 -1
  7. package/dist/core/components/source-file.cjs +7 -12
  8. package/dist/core/components/source-file.mjs +7 -12
  9. package/dist/core/components/source-file.mjs.map +1 -1
  10. package/dist/core/components/spacing.cjs +6 -7
  11. package/dist/core/components/spacing.mjs +6 -7
  12. package/dist/core/components/spacing.mjs.map +1 -1
  13. package/dist/core/contexts/context.mjs.map +1 -1
  14. package/dist/core/contexts/meta.mjs.map +1 -1
  15. package/dist/core/contexts/reflection.mjs.map +1 -1
  16. package/dist/core/helpers/code.mjs.map +1 -1
  17. package/dist/helpers/capnp.mjs.map +1 -1
  18. package/dist/helpers/create-builtin.mjs.map +1 -1
  19. package/dist/helpers/refkey.mjs.map +1 -1
  20. package/dist/helpers/typescript.mjs.map +1 -1
  21. package/dist/index.cjs +6 -3
  22. package/dist/index.d.cts.map +1 -1
  23. package/dist/index.d.mts.map +1 -1
  24. package/dist/index.mjs +6 -3
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/markdown/components/front-matter.cjs +9 -14
  27. package/dist/markdown/components/front-matter.mjs +9 -14
  28. package/dist/markdown/components/front-matter.mjs.map +1 -1
  29. package/dist/markdown/components/markdown-file.cjs +41 -89
  30. package/dist/markdown/components/markdown-file.mjs +41 -89
  31. package/dist/markdown/components/markdown-file.mjs.map +1 -1
  32. package/dist/markdown/components/markdown-table.cjs +20 -52
  33. package/dist/markdown/components/markdown-table.mjs +20 -52
  34. package/dist/markdown/components/markdown-table.mjs.map +1 -1
  35. package/dist/markdown/contexts/markdown-table.mjs.map +1 -1
  36. package/dist/render.cjs +4 -10
  37. package/dist/render.mjs +4 -10
  38. package/dist/render.mjs.map +1 -1
  39. package/dist/typescript/components/builtin-file.cjs +9 -31
  40. package/dist/typescript/components/builtin-file.mjs +9 -31
  41. package/dist/typescript/components/builtin-file.mjs.map +1 -1
  42. package/dist/typescript/components/class-declaration.cjs +80 -193
  43. package/dist/typescript/components/class-declaration.mjs +80 -193
  44. package/dist/typescript/components/class-declaration.mjs.map +1 -1
  45. package/dist/typescript/components/dynamic-import-statement.cjs +1 -2
  46. package/dist/typescript/components/dynamic-import-statement.mjs +1 -2
  47. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
  48. package/dist/typescript/components/entry-file.cjs +3 -10
  49. package/dist/typescript/components/entry-file.mjs +3 -10
  50. package/dist/typescript/components/entry-file.mjs.map +1 -1
  51. package/dist/typescript/components/infrastructure-file.cjs +3 -10
  52. package/dist/typescript/components/infrastructure-file.mjs +3 -10
  53. package/dist/typescript/components/infrastructure-file.mjs.map +1 -1
  54. package/dist/typescript/components/interface-declaration.cjs +47 -134
  55. package/dist/typescript/components/interface-declaration.mjs +47 -134
  56. package/dist/typescript/components/interface-declaration.mjs.map +1 -1
  57. package/dist/typescript/components/object-declaration.cjs +35 -79
  58. package/dist/typescript/components/object-declaration.mjs +35 -79
  59. package/dist/typescript/components/object-declaration.mjs.map +1 -1
  60. package/dist/typescript/components/property-name.cjs +3 -3
  61. package/dist/typescript/components/property-name.mjs +3 -3
  62. package/dist/typescript/components/property-name.mjs.map +1 -1
  63. package/dist/typescript/components/record-expression.mjs.map +1 -1
  64. package/dist/typescript/components/tsdoc-reflection.cjs +53 -232
  65. package/dist/typescript/components/tsdoc-reflection.mjs +53 -232
  66. package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -1
  67. package/dist/typescript/components/tsdoc.cjs +140 -306
  68. package/dist/typescript/components/tsdoc.mjs +140 -306
  69. package/dist/typescript/components/tsdoc.mjs.map +1 -1
  70. package/dist/typescript/components/type-declaration.cjs +9 -22
  71. package/dist/typescript/components/type-declaration.mjs +9 -22
  72. package/dist/typescript/components/type-declaration.mjs.map +1 -1
  73. package/dist/typescript/components/type-parameters.cjs +33 -60
  74. package/dist/typescript/components/type-parameters.mjs +33 -60
  75. package/dist/typescript/components/type-parameters.mjs.map +1 -1
  76. package/dist/typescript/components/typescript-file.cjs +65 -155
  77. package/dist/typescript/components/typescript-file.mjs +65 -155
  78. package/dist/typescript/components/typescript-file.mjs.map +1 -1
  79. package/dist/typescript/contexts/lexical-scope.cjs +1 -7
  80. package/dist/typescript/contexts/lexical-scope.mjs +1 -7
  81. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
  82. package/dist/typescript/contexts/member-scope.cjs +2 -7
  83. package/dist/typescript/contexts/member-scope.mjs +2 -7
  84. package/dist/typescript/contexts/member-scope.mjs.map +1 -1
  85. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -1
  86. package/dist/typescript/helpers/utilities.mjs.map +1 -1
  87. package/dist/yaml/components/yaml-file.cjs +48 -103
  88. package/dist/yaml/components/yaml-file.mjs +48 -103
  89. package/dist/yaml/components/yaml-file.mjs.map +1 -1
  90. package/package.json +7 -7
  91. package/dist/_virtual/_rolldown/runtime.mjs +0 -3
@@ -3,7 +3,6 @@ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
3
  const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
4
4
  const require_core_components_spacing = require('../../core/components/spacing.cjs');
5
5
  const require_typescript_components_tsdoc = require('./tsdoc.cjs');
6
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
6
  let _alloy_js_core = require("@alloy-js/core");
8
7
  let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
9
8
  let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
@@ -34,78 +33,26 @@ function TSDocReflectionClass(props) {
34
33
  const hidden = (0, _alloy_js_core.computed)(() => reflection.isHidden());
35
34
  if (!computedHeading.value || (0, _stryke_type_checks_is_set_string.isSetString)(computedHeading.value) && computedHeading.value.trim() === "") return null;
36
35
  const hasAttributes = (0, _alloy_js_core.computed)(() => (0, _stryke_type_checks_is_set_string.isSetString)(title.value) || !(0, _stryke_type_checks_is_undefined.isUndefined)(alias.value) && alias.value.length > 0 || !(0, _stryke_type_checks_is_undefined.isUndefined)(permission.value) && permission.value.length > 0 || (0, _stryke_type_checks_is_set_string.isSetString)(domain.value) || !(0, _stryke_type_checks_is_undefined.isUndefined)(readonly.value) || !(0, _stryke_type_checks_is_undefined.isUndefined)(internal.value) || !(0, _stryke_type_checks_is_undefined.isUndefined)(ignore.value) || !(0, _stryke_type_checks_is_undefined.isUndefined)(hidden.value));
37
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
38
- get heading() {
39
- return (0, _alloy_js_core_jsx_runtime.memo)(() => !!(0, _stryke_type_checks_is_set_string.isSetString)(computedHeading.value))() ? computedHeading.value.trim() : computedHeading.value;
40
- },
41
- get children() {
42
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
43
- get when() {
44
- return hasAttributes.value;
45
- },
46
- get children() {
47
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
48
- get title() {
49
- return title.value;
50
- },
51
- get alias() {
52
- return alias.value;
53
- },
54
- get domain() {
55
- return domain.value;
56
- },
57
- get permission() {
58
- return permission.value;
59
- },
60
- get readonly() {
61
- return readonly.value;
62
- },
63
- get internal() {
64
- return internal.value;
65
- },
66
- get ignore() {
67
- return ignore.value;
68
- },
69
- get hidden() {
70
- return hidden.value;
71
- }
72
- });
73
- }
74
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
75
- get when() {
76
- return (0, _alloy_js_core_jsx_runtime.memo)(() => !!!(0, _stryke_type_checks_is_undefined.isUndefined)(children))() && (0, _alloy_js_core.childrenArray)(() => children).filter(Boolean).length > 0;
77
- },
78
- get children() {
79
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
80
- get when() {
81
- return hasAttributes.value;
82
- },
83
- get children() {
84
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {});
85
- }
86
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.List, { get children() {
87
- return (0, _alloy_js_core.childrenArray)(() => children);
88
- } })];
89
- }
90
- })];
91
- }
92
- }));
36
+ return <require_typescript_components_tsdoc.TSDoc {...rest} heading={(0, _stryke_type_checks_is_set_string.isSetString)(computedHeading.value) ? computedHeading.value.trim() : computedHeading.value}>
37
+ <_alloy_js_core.Show when={hasAttributes.value}>
38
+ <require_typescript_components_tsdoc.TSDocAttributesTags title={title.value} alias={alias.value} domain={domain.value} permission={permission.value} readonly={readonly.value} internal={internal.value} ignore={ignore.value} hidden={hidden.value} />
39
+ </_alloy_js_core.Show>
40
+ <_alloy_js_core.Show when={!(0, _stryke_type_checks_is_undefined.isUndefined)(children) && (0, _alloy_js_core.childrenArray)(() => children).filter(Boolean).length > 0}>
41
+ <_alloy_js_core.Show when={hasAttributes.value}>
42
+ <require_core_components_spacing.Spacing />
43
+ </_alloy_js_core.Show>
44
+ <_alloy_js_core.List>{(0, _alloy_js_core.childrenArray)(() => children)}</_alloy_js_core.List>
45
+ </_alloy_js_core.Show>
46
+ </require_typescript_components_tsdoc.TSDoc>;
93
47
  }
94
48
  /**
95
49
  * Uses the `useReflectionClass` hook to retrieve the reflection class from the context, and then renders a `TSDocReflectionClass` component with the retrieved reflection class. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection class without having to manually retrieve the reflection class from the context.
96
50
  */
97
51
  function TSDocContextClass(props) {
98
52
  const reflectionClass = require_core_contexts_reflection.useReflectionClass();
99
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
100
- get when() {
101
- return (0, _stryke_type_checks.isSetObject)(reflectionClass.reflection);
102
- },
103
- get children() {
104
- return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocReflectionClass, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { get reflection() {
105
- return reflectionClass.reflection;
106
- } }));
107
- }
108
- });
53
+ return <_alloy_js_core.Show when={(0, _stryke_type_checks.isSetObject)(reflectionClass.reflection)}>
54
+ <TSDocReflectionClass {...props} reflection={reflectionClass.reflection} />
55
+ </_alloy_js_core.Show>;
109
56
  }
110
57
  /**
111
58
  * Generates a TSDoc documentation block for the given reflection property. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. This is useful for rendering additional details about the reflection that may not be included in the description, such as information about parameters of a method or properties of a class.
@@ -114,77 +61,26 @@ function TSDocReflectionProperty(props) {
114
61
  const [{ children, reflection }, rest] = (0, _alloy_js_core.splitProps)(props, ["children", "reflection"]);
115
62
  if (!(0, _stryke_type_checks.isSetObject)(reflection)) return null;
116
63
  const hasAttributes = (0, _alloy_js_core.computed)(() => (0, _stryke_type_checks_is_set_string.isSetString)(reflection.getTitle()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.getAlias()) && reflection.getAlias().length > 0 || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.getPermission()) && reflection.getPermission().length > 0 || (0, _stryke_type_checks_is_set_string.isSetString)(reflection.getDomain()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.isReadonly()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.isInternal()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.isIgnored()) || !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.isHidden()) || reflection.hasDefault() && !(0, _stryke_type_checks_is_undefined.isUndefined)(reflection.getDefaultValue()));
117
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, _alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
118
- return reflection.getDescription();
119
- } }, rest, { get children() {
120
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
121
- get when() {
122
- return hasAttributes.value;
123
- },
124
- get children() {
125
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
126
- type: reflection,
127
- get title() {
128
- return reflection.getTitle();
129
- },
130
- get alias() {
131
- return reflection.getAlias();
132
- },
133
- get domain() {
134
- return reflection.getDomain();
135
- },
136
- get permission() {
137
- return reflection.getPermission();
138
- },
139
- get readonly() {
140
- return reflection.isReadonly();
141
- },
142
- get internal() {
143
- return reflection.isInternal();
144
- },
145
- get ignore() {
146
- return reflection.isIgnored();
147
- },
148
- get hidden() {
149
- return reflection.isHidden();
150
- },
151
- get defaultValue() {
152
- return reflection.getDefaultValue();
153
- }
154
- });
155
- }
156
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
157
- get when() {
158
- return (0, _alloy_js_core_jsx_runtime.memo)(() => !!!(0, _stryke_type_checks_is_undefined.isUndefined)(children))() && (0, _alloy_js_core.childrenArray)(() => children).filter(Boolean).length > 0;
159
- },
160
- get children() {
161
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
162
- get when() {
163
- return hasAttributes.value;
164
- },
165
- get children() {
166
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {});
167
- }
168
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.List, { get children() {
169
- return (0, _alloy_js_core.childrenArray)(() => children);
170
- } })];
171
- }
172
- })];
173
- } }));
64
+ return <require_typescript_components_tsdoc.TSDoc heading={reflection.getDescription()} {...rest}>
65
+ <_alloy_js_core.Show when={hasAttributes.value}>
66
+ <require_typescript_components_tsdoc.TSDocAttributesTags type={reflection} title={reflection.getTitle()} alias={reflection.getAlias()} domain={reflection.getDomain()} permission={reflection.getPermission()} readonly={reflection.isReadonly()} internal={reflection.isInternal()} ignore={reflection.isIgnored()} hidden={reflection.isHidden()} defaultValue={reflection.getDefaultValue()} />
67
+ </_alloy_js_core.Show>
68
+ <_alloy_js_core.Show when={!(0, _stryke_type_checks_is_undefined.isUndefined)(children) && (0, _alloy_js_core.childrenArray)(() => children).filter(Boolean).length > 0}>
69
+ <_alloy_js_core.Show when={hasAttributes.value}>
70
+ <require_core_components_spacing.Spacing />
71
+ </_alloy_js_core.Show>
72
+ <_alloy_js_core.List>{(0, _alloy_js_core.childrenArray)(() => children)}</_alloy_js_core.List>
73
+ </_alloy_js_core.Show>
74
+ </require_typescript_components_tsdoc.TSDoc>;
174
75
  }
175
76
  /**
176
77
  * Uses the `useReflectionProperty` hook to retrieve the reflection property from the context, and then renders a `TSDocReflectionProperty` component with the retrieved reflection property. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection property without having to manually retrieve the reflection property from the context.
177
78
  */
178
79
  function TSDocContextProperty(props) {
179
80
  const reflection = require_core_contexts_reflection.useReflectionProperty();
180
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
181
- get when() {
182
- return (0, _stryke_type_checks.isSetObject)(reflection);
183
- },
184
- get children() {
185
- return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocReflectionProperty, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { reflection }));
186
- }
187
- });
81
+ return <_alloy_js_core.Show when={(0, _stryke_type_checks.isSetObject)(reflection)}>
82
+ <TSDocReflectionProperty {...props} reflection={reflection} />
83
+ </_alloy_js_core.Show>;
188
84
  }
189
85
  /**
190
86
  * Generates a TSDoc documentation block for the given reflection method. This component will render the description of the reflection as the main content of the documentation block, and will render any additional attributes (such as title, alias, domain, permission, etc.) as tags in the documentation block. If there are child elements provided, they will be rendered as a list below the main content of the documentation block. Additionally, this component will render information about the parameters and return type of the method, if available.
@@ -193,112 +89,37 @@ function TSDocReflectionMethod(props) {
193
89
  const [{ children, reflection }, rest] = (0, _alloy_js_core.splitProps)(props, ["children", "reflection"]);
194
90
  if (!(0, _stryke_type_checks.isSetObject)(reflection)) return null;
195
91
  const heading = (0, _alloy_js_core.computed)(() => reflection.getDescription() || ((0, _stryke_type_checks_is_string.isString)(reflection.getName()) ? _alloy_js_core.code`${String(reflection.getName())} method definition` : void 0));
196
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDoc, (0, _alloy_js_core_jsx_runtime.mergeProps)({ get heading() {
197
- return heading.value;
198
- } }, rest, { get children() {
199
- return [
200
- (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocAttributesTags, {
201
- get title() {
202
- return reflection.getTitle();
203
- },
204
- get alias() {
205
- return reflection.getAlias();
206
- },
207
- get domain() {
208
- return reflection.getDomain();
209
- },
210
- get permission() {
211
- return reflection.getPermission();
212
- },
213
- get readonly() {
214
- return reflection.isReadonly();
215
- },
216
- get internal() {
217
- return reflection.isInternal();
218
- },
219
- get ignore() {
220
- return reflection.isIgnored();
221
- },
222
- get hidden() {
223
- return reflection.isHidden();
224
- }
225
- }),
226
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
227
- get when() {
228
- return (0, _alloy_js_core_jsx_runtime.memo)(() => !!Boolean(children))() && (0, _alloy_js_core.childrenArray)(() => children).length > 0;
229
- },
230
- get children() {
231
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.List, { get children() {
232
- return (0, _alloy_js_core.childrenArray)(() => children);
233
- } });
234
- }
235
- }),
236
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
237
- get when() {
238
- return reflection.getParameters().length > 0;
239
- },
240
- get children() {
241
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
242
- get each() {
243
- return reflection.getParameters();
244
- },
245
- hardline: true,
246
- get ender() {
247
- return (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {});
248
- },
249
- children: (param) => (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocParam, {
250
- get name() {
251
- return param.getName();
252
- },
253
- get optional() {
254
- return param.isOptional();
255
- },
256
- get defaultValue() {
257
- return (0, _alloy_js_core_jsx_runtime.memo)(() => !!param.hasDefault())() ? param.getDefaultValue() : void 0;
258
- },
259
- get children() {
260
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
261
- get when() {
262
- return Boolean(param.parameter.description);
263
- },
264
- get fallback() {
265
- return _alloy_js_core.code`A parameter to provide a ${param.getName()} value to the function.`;
266
- },
267
- get children() {
268
- return param.parameter.description;
269
- }
270
- });
271
- }
272
- })
273
- })];
274
- }
275
- }),
276
- (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
277
- get when() {
278
- return reflection.getReturnType().kind !== _powerlines_deepkit_vendor_type.ReflectionKind.void;
279
- },
280
- get children() {
281
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_spacing.Spacing, {}), (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc.TSDocReturns, { get children() {
282
- return _alloy_js_core.code`The return value of the function, which is of type ${(0, _powerlines_deepkit_vendor_type.stringifyType)(reflection.getReturnType())}.`;
283
- } })];
284
- }
285
- })
286
- ];
287
- } }));
92
+ return <require_typescript_components_tsdoc.TSDoc heading={heading.value} {...rest}>
93
+ <require_typescript_components_tsdoc.TSDocAttributesTags title={reflection.getTitle()} alias={reflection.getAlias()} domain={reflection.getDomain()} permission={reflection.getPermission()} readonly={reflection.isReadonly()} internal={reflection.isInternal()} ignore={reflection.isIgnored()} hidden={reflection.isHidden()} />
94
+ <_alloy_js_core.Show when={Boolean(children) && (0, _alloy_js_core.childrenArray)(() => children).length > 0}>
95
+ <_alloy_js_core.List>{(0, _alloy_js_core.childrenArray)(() => children)}</_alloy_js_core.List>
96
+ </_alloy_js_core.Show>
97
+ <_alloy_js_core.Show when={reflection.getParameters().length > 0}>
98
+ <require_core_components_spacing.Spacing />
99
+ <_alloy_js_core.For each={reflection.getParameters()} hardline ender={<hbr />}>
100
+ {(param) => <require_typescript_components_tsdoc.TSDocParam name={param.getName()} optional={param.isOptional()} defaultValue={param.hasDefault() ? param.getDefaultValue() : void 0}>
101
+ <_alloy_js_core.Show when={Boolean(param.parameter.description)} fallback={_alloy_js_core.code`A parameter to provide a ${param.getName()} value to the function.`}>
102
+ {param.parameter.description}
103
+ </_alloy_js_core.Show>
104
+ </require_typescript_components_tsdoc.TSDocParam>}
105
+ </_alloy_js_core.For>
106
+ </_alloy_js_core.Show>
107
+ <_alloy_js_core.Show when={reflection.getReturnType().kind !== _powerlines_deepkit_vendor_type.ReflectionKind.void}>
108
+ <require_core_components_spacing.Spacing />
109
+ <require_typescript_components_tsdoc.TSDocReturns>
110
+ {_alloy_js_core.code`The return value of the function, which is of type ${(0, _powerlines_deepkit_vendor_type.stringifyType)(reflection.getReturnType())}.`}
111
+ </require_typescript_components_tsdoc.TSDocReturns>
112
+ </_alloy_js_core.Show>
113
+ </require_typescript_components_tsdoc.TSDoc>;
288
114
  }
289
115
  /**
290
116
  * Uses the `useReflectionMethod` hook to retrieve the reflection method from the context, and then renders a `TSDocReflectionMethod` component with the retrieved reflection method. This is a convenience component that allows you to easily render a TSDoc documentation block for the current reflection method without having to manually retrieve the reflection method from the context.
291
117
  */
292
118
  function TSDocContextMethod(props) {
293
119
  const reflection = require_core_contexts_reflection.useReflectionMethod();
294
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
295
- get when() {
296
- return (0, _stryke_type_checks.isSetObject)(reflection);
297
- },
298
- get children() {
299
- return (0, _alloy_js_core_jsx_runtime.createComponent)(TSDocReflectionMethod, (0, _alloy_js_core_jsx_runtime.mergeProps)(props, { reflection }));
300
- }
301
- });
120
+ return <_alloy_js_core.Show when={(0, _stryke_type_checks.isSetObject)(reflection)}>
121
+ <TSDocReflectionMethod {...props} reflection={reflection} />
122
+ </_alloy_js_core.Show>;
302
123
  }
303
124
 
304
125
  //#endregion