@powerlines/plugin-alloy 0.26.18 → 0.26.20
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.
- package/dist/core/components/infrastructure-file.cjs +9 -14
- package/dist/core/components/infrastructure-file.mjs +9 -14
- package/dist/core/components/infrastructure-file.mjs.map +1 -1
- package/dist/core/components/output.cjs +10 -17
- package/dist/core/components/output.mjs +10 -17
- package/dist/core/components/output.mjs.map +1 -1
- package/dist/core/components/single-line-comment.cjs +4 -6
- package/dist/core/components/single-line-comment.mjs +4 -6
- package/dist/core/components/single-line-comment.mjs.map +1 -1
- package/dist/core/components/source-file.cjs +6 -10
- package/dist/core/components/source-file.mjs +6 -10
- package/dist/core/components/source-file.mjs.map +1 -1
- package/dist/core/components/spacing.cjs +4 -6
- package/dist/core/components/spacing.mjs +4 -6
- package/dist/core/components/spacing.mjs.map +1 -1
- package/dist/hcl/components/block-declaration.cjs +8 -12
- package/dist/hcl/components/block-declaration.mjs +8 -12
- package/dist/hcl/components/block-declaration.mjs.map +1 -1
- package/dist/hcl/components/hcl-file.cjs +21 -35
- package/dist/hcl/components/hcl-file.mjs +22 -36
- package/dist/hcl/components/hcl-file.mjs.map +1 -1
- package/dist/hcl/components/packer-file.cjs +8 -8
- package/dist/hcl/components/packer-file.mjs +8 -8
- package/dist/hcl/components/packer-file.mjs.map +1 -1
- package/dist/hcl/components/terraform-file.cjs +8 -8
- package/dist/hcl/components/terraform-file.mjs +8 -8
- package/dist/hcl/components/terraform-file.mjs.map +1 -1
- package/dist/helpers/capnp.cjs +1 -1
- package/dist/helpers/capnp.mjs +1 -1
- package/dist/helpers/capnp.mjs.map +1 -1
- package/dist/index.cjs +7 -12
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +7 -11
- package/dist/index.mjs.map +1 -1
- package/dist/markdown/components/front-matter.cjs +7 -9
- package/dist/markdown/components/front-matter.mjs +7 -9
- package/dist/markdown/components/front-matter.mjs.map +1 -1
- package/dist/markdown/components/markdown-file.cjs +44 -76
- package/dist/markdown/components/markdown-file.mjs +44 -76
- package/dist/markdown/components/markdown-file.mjs.map +1 -1
- package/dist/markdown/components/markdown-table.cjs +28 -49
- package/dist/markdown/components/markdown-table.mjs +28 -49
- package/dist/markdown/components/markdown-table.mjs.map +1 -1
- package/dist/markdown/contexts/markdown-table.mjs.map +1 -1
- package/dist/render.cjs +3 -3
- package/dist/render.mjs +4 -4
- package/dist/render.mjs.map +1 -1
- package/dist/typescript/components/builtin-file.cjs +20 -30
- package/dist/typescript/components/builtin-file.mjs +20 -30
- package/dist/typescript/components/builtin-file.mjs.map +1 -1
- package/dist/typescript/components/class-declaration.cjs +100 -165
- package/dist/typescript/components/class-declaration.mjs +100 -165
- package/dist/typescript/components/class-declaration.mjs.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +6 -2
- package/dist/typescript/components/dynamic-import-statement.mjs +6 -2
- package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
- package/dist/typescript/components/entry-file.cjs +8 -11
- package/dist/typescript/components/entry-file.mjs +8 -11
- package/dist/typescript/components/entry-file.mjs.map +1 -1
- package/dist/typescript/components/interface-declaration.cjs +74 -127
- package/dist/typescript/components/interface-declaration.mjs +74 -127
- package/dist/typescript/components/interface-declaration.mjs.map +1 -1
- package/dist/typescript/components/object-declaration.cjs +50 -84
- package/dist/typescript/components/object-declaration.mjs +50 -84
- package/dist/typescript/components/object-declaration.mjs.map +1 -1
- package/dist/typescript/components/property-name.cjs +3 -3
- package/dist/typescript/components/property-name.mjs +3 -3
- package/dist/typescript/components/property-name.mjs.map +1 -1
- package/dist/typescript/components/record-expression.mjs.map +1 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +108 -241
- package/dist/typescript/components/tsdoc-reflection.mjs +108 -241
- package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -1
- package/dist/typescript/components/tsdoc.cjs +168 -265
- package/dist/typescript/components/tsdoc.mjs +168 -265
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/components/type-declaration.cjs +15 -20
- package/dist/typescript/components/type-declaration.mjs +15 -20
- package/dist/typescript/components/type-declaration.mjs.map +1 -1
- package/dist/typescript/components/type-parameters.cjs +29 -55
- package/dist/typescript/components/type-parameters.mjs +29 -55
- package/dist/typescript/components/type-parameters.mjs.map +1 -1
- package/dist/typescript/components/typescript-file.cjs +74 -135
- package/dist/typescript/components/typescript-file.mjs +74 -135
- package/dist/typescript/components/typescript-file.mjs.map +1 -1
- package/dist/typescript/contexts/lexical-scope.cjs +3 -5
- package/dist/typescript/contexts/lexical-scope.mjs +3 -5
- package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
- package/dist/typescript/contexts/member-scope.cjs +3 -5
- package/dist/typescript/contexts/member-scope.mjs +3 -5
- package/dist/typescript/contexts/member-scope.mjs.map +1 -1
- package/dist/yaml/components/yaml-file.cjs +47 -92
- package/dist/yaml/components/yaml-file.mjs +47 -92
- package/dist/yaml/components/yaml-file.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -8,8 +8,8 @@ const require_typescript_helpers_get_call_signature_props = require('../helpers/
|
|
|
8
8
|
require('../helpers/index.cjs');
|
|
9
9
|
const require_typescript_components_property_name = require('./property-name.cjs');
|
|
10
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
11
|
let _alloy_js_core = require("@alloy-js/core");
|
|
12
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
13
13
|
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
14
14
|
|
|
15
15
|
//#region src/typescript/components/class-declaration.tsx
|
|
@@ -44,20 +44,18 @@ let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
46
|
function ClassDeclaration(props) {
|
|
47
|
-
const extendsPart = props.extends &&
|
|
48
|
-
const implementsPart = props.implements && props.implements.length > 0 && [
|
|
47
|
+
const extendsPart = props.extends && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [" extends ", props.extends] });
|
|
48
|
+
const implementsPart = props.implements && props.implements.length > 0 && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
|
|
49
49
|
" ",
|
|
50
50
|
"implements",
|
|
51
51
|
" ",
|
|
52
|
-
(0, _alloy_js_core_jsx_runtime.
|
|
53
|
-
|
|
54
|
-
return props.implements;
|
|
55
|
-
},
|
|
52
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.For, {
|
|
53
|
+
each: props.implements,
|
|
56
54
|
comma: true,
|
|
57
55
|
space: true,
|
|
58
56
|
children: (implement) => implement
|
|
59
57
|
})
|
|
60
|
-
];
|
|
58
|
+
] });
|
|
61
59
|
const sym = (0, _alloy_js_typescript.createTypeAndValueSymbol)(props.name, {
|
|
62
60
|
refkeys: props.refkey,
|
|
63
61
|
export: props.export,
|
|
@@ -66,45 +64,27 @@ function ClassDeclaration(props) {
|
|
|
66
64
|
hasInstanceMembers: true,
|
|
67
65
|
namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("class")
|
|
68
66
|
});
|
|
69
|
-
return [(0, _alloy_js_core_jsx_runtime.
|
|
70
|
-
|
|
71
|
-
|
|
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, {
|
|
67
|
+
return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
|
|
68
|
+
when: Boolean(props.doc),
|
|
69
|
+
children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_tsdoc.TSDoc, { heading: props.doc })
|
|
70
|
+
}), /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.Declaration, {
|
|
79
71
|
symbol: sym,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
})];
|
|
72
|
+
export: props.export,
|
|
73
|
+
default: props.default,
|
|
74
|
+
children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(require_typescript_contexts_member_scope.MemberScope, {
|
|
75
|
+
ownerSymbol: sym,
|
|
76
|
+
children: [
|
|
77
|
+
props.abstract && _alloy_js_core.code`abstract `,
|
|
78
|
+
" class ",
|
|
79
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Name, {}),
|
|
80
|
+
props.typeParameters && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_type_parameters.TypeParameters, { parameters: props.typeParameters }),
|
|
81
|
+
extendsPart,
|
|
82
|
+
implementsPart,
|
|
83
|
+
" ",
|
|
84
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Block, { children: props.children })
|
|
85
|
+
]
|
|
86
|
+
})
|
|
87
|
+
})] });
|
|
108
88
|
}
|
|
109
89
|
ClassDeclaration.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
|
|
110
90
|
/**
|
|
@@ -121,29 +101,21 @@ function ClassMember(props) {
|
|
|
121
101
|
tsFlags,
|
|
122
102
|
namePolicy: (0, _alloy_js_typescript.useTSNamePolicy)().for("class-member-data")
|
|
123
103
|
});
|
|
124
|
-
return [(0, _alloy_js_core_jsx_runtime.
|
|
125
|
-
|
|
126
|
-
|
|
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, {
|
|
104
|
+
return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
|
|
105
|
+
when: Boolean(props.doc),
|
|
106
|
+
children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_tsdoc.TSDoc, { heading: props.doc })
|
|
107
|
+
}), /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core.MemberDeclaration, {
|
|
134
108
|
symbol: sym,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
})];
|
|
109
|
+
children: [
|
|
110
|
+
props.public && "public ",
|
|
111
|
+
props.private && "private ",
|
|
112
|
+
props.protected && "protected ",
|
|
113
|
+
props.abstract && "abstract ",
|
|
114
|
+
props.override && "override ",
|
|
115
|
+
props.static && "static ",
|
|
116
|
+
props.children
|
|
117
|
+
]
|
|
118
|
+
})] });
|
|
147
119
|
}
|
|
148
120
|
/**
|
|
149
121
|
* Generates a TypeScript class field declaration for the given reflection class.
|
|
@@ -153,31 +125,25 @@ function ClassMember(props) {
|
|
|
153
125
|
*/
|
|
154
126
|
function ClassField(props) {
|
|
155
127
|
const optionality = props.optional ? "?" : "";
|
|
156
|
-
const typeSection = props.type && [
|
|
128
|
+
const typeSection = props.type && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [
|
|
157
129
|
optionality,
|
|
158
130
|
": ",
|
|
159
|
-
(0, _alloy_js_core_jsx_runtime.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
nullish
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}),
|
|
176
|
-
typeSection,
|
|
177
|
-
initializerSection
|
|
178
|
-
];
|
|
179
|
-
}
|
|
180
|
-
}));
|
|
131
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.TypeRefContext, { children: props.type })
|
|
132
|
+
] });
|
|
133
|
+
const initializerSection = props.children && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [" = ", props.children] });
|
|
134
|
+
const nullish = props.nullish ?? props.optional;
|
|
135
|
+
return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(ClassMember, {
|
|
136
|
+
...props,
|
|
137
|
+
nullish,
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_property_name.PropertyName, {
|
|
140
|
+
private: props.isPrivateMember,
|
|
141
|
+
name: props.isPrivateMember ? props.name : void 0
|
|
142
|
+
}),
|
|
143
|
+
typeSection,
|
|
144
|
+
initializerSection
|
|
145
|
+
]
|
|
146
|
+
});
|
|
181
147
|
}
|
|
182
148
|
/**
|
|
183
149
|
* Generates a TypeScript class property setter declaration for the given reflection class.
|
|
@@ -186,30 +152,21 @@ function ClassField(props) {
|
|
|
186
152
|
* @returns A JSX element representing the class property setter declaration, which can be used within a ClassDeclaration component.
|
|
187
153
|
*/
|
|
188
154
|
function ClassPropertySet(props) {
|
|
189
|
-
return
|
|
190
|
-
|
|
155
|
+
return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(ClassMember, {
|
|
156
|
+
...props,
|
|
157
|
+
children: [
|
|
191
158
|
"set ",
|
|
192
|
-
(0, _alloy_js_core_jsx_runtime.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|
-
} }))];
|
|
159
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_property_name.PropertyName, { name: props.name }),
|
|
160
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(require_typescript_contexts_lexical_scope.LexicalScope, { children: [
|
|
161
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.CallSignature, { parameters: [{
|
|
162
|
+
name: "value",
|
|
163
|
+
type: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.TypeRefContext, { children: props.type })
|
|
164
|
+
}] }),
|
|
165
|
+
" ",
|
|
166
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Block, { children: props.children })
|
|
167
|
+
] })
|
|
168
|
+
]
|
|
169
|
+
}) });
|
|
213
170
|
}
|
|
214
171
|
/**
|
|
215
172
|
* Generates a TypeScript class property getter declaration for the given reflection class.
|
|
@@ -218,27 +175,18 @@ function ClassPropertySet(props) {
|
|
|
218
175
|
* @returns A JSX element representing the class property getter declaration, which can be used within a ClassDeclaration component.
|
|
219
176
|
*/
|
|
220
177
|
function ClassPropertyGet(props) {
|
|
221
|
-
return
|
|
222
|
-
|
|
178
|
+
return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(ClassMember, {
|
|
179
|
+
...props,
|
|
180
|
+
children: [
|
|
223
181
|
"get ",
|
|
224
|
-
(0, _alloy_js_core_jsx_runtime.
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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
|
-
} }));
|
|
182
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_property_name.PropertyName, { name: props.name }),
|
|
183
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(require_typescript_contexts_lexical_scope.LexicalScope, { children: [
|
|
184
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.CallSignature, { returnType: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.TypeRefContext, { children: props.type }) }),
|
|
185
|
+
" ",
|
|
186
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Block, { children: props.children })
|
|
187
|
+
] })
|
|
188
|
+
]
|
|
189
|
+
});
|
|
242
190
|
}
|
|
243
191
|
/**
|
|
244
192
|
* Generates a TypeScript class method declaration for the given reflection class.
|
|
@@ -249,37 +197,24 @@ function ClassPropertyGet(props) {
|
|
|
249
197
|
function ClassMethod(props) {
|
|
250
198
|
const callProps = require_typescript_helpers_get_call_signature_props.getCallSignatureProps(props);
|
|
251
199
|
const [_, rest] = (0, _alloy_js_core.splitProps)(props, ["doc"]);
|
|
252
|
-
return [(0, _alloy_js_core_jsx_runtime.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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
|
-
} }))];
|
|
200
|
+
return /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(_alloy_js_core_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Show, {
|
|
201
|
+
when: Boolean(props.doc),
|
|
202
|
+
children: /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_tsdoc.TSDoc, {
|
|
203
|
+
heading: props.doc,
|
|
204
|
+
children: Array.isArray(rest.parameters) && /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_tsdoc.TSDocParams, { parameters: rest.parameters })
|
|
205
|
+
})
|
|
206
|
+
}), /* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(ClassMember, {
|
|
207
|
+
...rest,
|
|
208
|
+
children: [
|
|
209
|
+
props.async && "async ",
|
|
210
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(require_typescript_components_property_name.PropertyName, {}),
|
|
211
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsxs)(require_typescript_contexts_lexical_scope.LexicalScope, { children: [
|
|
212
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_typescript.CallSignature, { ...callProps }),
|
|
213
|
+
" ",
|
|
214
|
+
/* @__PURE__ */ (0, _alloy_js_core_jsx_runtime.jsx)(_alloy_js_core.Block, { children: props.children })
|
|
215
|
+
] })
|
|
216
|
+
]
|
|
217
|
+
})] });
|
|
283
218
|
}
|
|
284
219
|
|
|
285
220
|
//#endregion
|