@typespec/emitter-framework 0.9.0-dev.6 → 0.9.0-dev.8

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 (154) hide show
  1. package/dist/src/core/components/output.d.ts +4 -4
  2. package/dist/src/core/components/output.d.ts.map +1 -1
  3. package/dist/src/core/components/output.js +3 -3
  4. package/dist/src/core/context/name-policy-context.d.ts +2 -2
  5. package/dist/src/core/context/name-policy-context.d.ts.map +1 -1
  6. package/dist/src/core/context/tsp-context.d.ts +2 -2
  7. package/dist/src/core/context/tsp-context.d.ts.map +1 -1
  8. package/dist/src/core/transport-name-policy.d.ts +1 -1
  9. package/dist/src/core/transport-name-policy.d.ts.map +1 -1
  10. package/dist/src/core/write-output.d.ts +2 -2
  11. package/dist/src/core/write-output.d.ts.map +1 -1
  12. package/dist/src/csharp/components/class/declaration.d.ts +3 -3
  13. package/dist/src/csharp/components/class/declaration.d.ts.map +1 -1
  14. package/dist/src/csharp/components/class/declaration.js +2 -2
  15. package/dist/src/csharp/components/class/declaration.test.js +100 -115
  16. package/dist/src/csharp/components/{enum-declaration.d.ts → enum/declaration.d.ts} +4 -4
  17. package/dist/src/csharp/components/enum/declaration.d.ts.map +1 -0
  18. package/dist/src/csharp/components/{enum-declaration.js → enum/declaration.js} +6 -6
  19. package/dist/src/csharp/components/enum/declaration.test.d.ts +2 -0
  20. package/dist/src/csharp/components/enum/declaration.test.d.ts.map +1 -0
  21. package/dist/src/csharp/components/enum/declaration.test.js +309 -0
  22. package/dist/src/csharp/components/index.d.ts +1 -1
  23. package/dist/src/csharp/components/index.js +1 -1
  24. package/dist/src/csharp/components/property/property.d.ts +2 -2
  25. package/dist/src/csharp/components/property/property.d.ts.map +1 -1
  26. package/dist/src/csharp/components/property/property.test.js +14 -14
  27. package/dist/src/csharp/components/type-expression.d.ts +3 -3
  28. package/dist/src/csharp/components/type-expression.d.ts.map +1 -1
  29. package/dist/src/csharp/components/utils/doc-comments.d.ts +4 -4
  30. package/dist/src/csharp/components/utils/doc-comments.d.ts.map +1 -1
  31. package/dist/src/csharp/components/utils/doc-comments.js +2 -2
  32. package/dist/src/testing/index.d.ts +1 -1
  33. package/dist/src/testing/index.d.ts.map +1 -1
  34. package/dist/src/testing/scenario-test/harness.d.ts +2 -2
  35. package/dist/src/testing/scenario-test/harness.d.ts.map +1 -1
  36. package/dist/src/testing/scenario-test/test-host.d.ts +2 -2
  37. package/dist/src/testing/scenario-test/test-host.d.ts.map +1 -1
  38. package/dist/src/typescript/components/array-expression.d.ts +2 -3
  39. package/dist/src/typescript/components/array-expression.d.ts.map +1 -1
  40. package/dist/src/typescript/components/array-expression.js +2 -2
  41. package/dist/src/typescript/components/arrow-function.d.ts +1 -1
  42. package/dist/src/typescript/components/arrow-function.d.ts.map +1 -1
  43. package/dist/src/typescript/components/class-method.d.ts +1 -1
  44. package/dist/src/typescript/components/class-method.d.ts.map +1 -1
  45. package/dist/src/typescript/components/enum-declaration.d.ts +6 -6
  46. package/dist/src/typescript/components/enum-declaration.d.ts.map +1 -1
  47. package/dist/src/typescript/components/enum-declaration.js +2 -2
  48. package/dist/src/typescript/components/function-declaration.d.ts +1 -1
  49. package/dist/src/typescript/components/function-declaration.d.ts.map +1 -1
  50. package/dist/src/typescript/components/function-expression.d.ts +1 -1
  51. package/dist/src/typescript/components/function-expression.d.ts.map +1 -1
  52. package/dist/src/typescript/components/function-type.d.ts +1 -1
  53. package/dist/src/typescript/components/function-type.d.ts.map +1 -1
  54. package/dist/src/typescript/components/interface-declaration.d.ts +4 -4
  55. package/dist/src/typescript/components/interface-declaration.d.ts.map +1 -1
  56. package/dist/src/typescript/components/interface-declaration.js +3 -4
  57. package/dist/src/typescript/components/interface-member.d.ts +2 -2
  58. package/dist/src/typescript/components/interface-member.d.ts.map +1 -1
  59. package/dist/src/typescript/components/interface-method.d.ts +2 -2
  60. package/dist/src/typescript/components/interface-method.d.ts.map +1 -1
  61. package/dist/src/typescript/components/record-expression.d.ts +1 -1
  62. package/dist/src/typescript/components/record-expression.d.ts.map +1 -1
  63. package/dist/src/typescript/components/type-alias-declaration.d.ts +1 -1
  64. package/dist/src/typescript/components/type-alias-declaration.d.ts.map +1 -1
  65. package/dist/src/typescript/components/type-declaration.d.ts +1 -1
  66. package/dist/src/typescript/components/type-declaration.d.ts.map +1 -1
  67. package/dist/src/typescript/components/type-expression.d.ts +1 -1
  68. package/dist/src/typescript/components/type-expression.d.ts.map +1 -1
  69. package/dist/src/typescript/components/type-transform.d.ts +2 -2
  70. package/dist/src/typescript/components/type-transform.d.ts.map +1 -1
  71. package/dist/src/typescript/components/union-declaration.d.ts +2 -2
  72. package/dist/src/typescript/components/union-declaration.d.ts.map +1 -1
  73. package/dist/src/typescript/components/union-expression.d.ts +3 -4
  74. package/dist/src/typescript/components/union-expression.d.ts.map +1 -1
  75. package/dist/src/typescript/components/union-expression.js +3 -3
  76. package/dist/src/typescript/components/value-expression.d.ts +2 -2
  77. package/dist/src/typescript/components/value-expression.d.ts.map +1 -1
  78. package/dist/src/typescript/utils/operation.d.ts +2 -2
  79. package/dist/src/typescript/utils/operation.d.ts.map +1 -1
  80. package/dist/test/typescript/components/member-expression.test.js +5 -5
  81. package/dist/test/typescript/test-host.d.ts +1 -1
  82. package/dist/test/typescript/test-host.d.ts.map +1 -1
  83. package/dist/test/utils.d.ts +2 -2
  84. package/dist/test/utils.d.ts.map +1 -1
  85. package/package.json +7 -4
  86. package/src/core/components/output.tsx +9 -5
  87. package/src/core/context/name-policy-context.ts +2 -2
  88. package/src/core/context/tsp-context.ts +2 -2
  89. package/src/core/transport-name-policy.ts +1 -1
  90. package/src/core/write-output.ts +2 -2
  91. package/src/csharp/components/class/declaration.test.tsx +107 -169
  92. package/src/csharp/components/class/declaration.tsx +8 -8
  93. package/src/csharp/components/enum/declaration.test.tsx +267 -0
  94. package/src/csharp/components/{enum-declaration.tsx → enum/declaration.tsx} +9 -9
  95. package/src/csharp/components/index.ts +1 -1
  96. package/src/csharp/components/property/property.test.tsx +16 -16
  97. package/src/csharp/components/property/property.tsx +2 -2
  98. package/src/csharp/components/type-expression.test.tsx +3 -3
  99. package/src/csharp/components/type-expression.tsx +3 -3
  100. package/src/csharp/components/utils/doc-comments.tsx +6 -6
  101. package/src/testing/index.ts +1 -1
  102. package/src/testing/scenario-test/harness.ts +2 -2
  103. package/src/testing/scenario-test/test-host.ts +4 -4
  104. package/src/typescript/components/array-expression.tsx +3 -3
  105. package/src/typescript/components/arrow-function.tsx +1 -1
  106. package/src/typescript/components/class-method.tsx +1 -1
  107. package/src/typescript/components/enum-declaration.tsx +6 -6
  108. package/src/typescript/components/function-declaration.tsx +1 -1
  109. package/src/typescript/components/function-expression.tsx +1 -1
  110. package/src/typescript/components/function-type.tsx +1 -1
  111. package/src/typescript/components/interface-declaration.tsx +11 -12
  112. package/src/typescript/components/interface-member.tsx +2 -2
  113. package/src/typescript/components/interface-method.tsx +2 -2
  114. package/src/typescript/components/record-expression.tsx +1 -1
  115. package/src/typescript/components/type-alias-declaration.tsx +1 -1
  116. package/src/typescript/components/type-declaration.tsx +1 -1
  117. package/src/typescript/components/type-expression.tsx +2 -2
  118. package/src/typescript/components/type-transform.tsx +3 -3
  119. package/src/typescript/components/union-declaration.tsx +2 -2
  120. package/src/typescript/components/union-expression.tsx +12 -7
  121. package/src/typescript/components/value-expression.tsx +2 -2
  122. package/src/typescript/utils/operation.ts +2 -2
  123. package/test/testing/snippet-extractor-csharp.test.ts +1 -1
  124. package/test/testing/snippet-extractor-java.test.ts +1 -1
  125. package/test/testing/snippet-extractor-python.test.ts +1 -1
  126. package/test/testing/snippet-extractor-typescript.test.ts +1 -1
  127. package/test/typescript/components/arrow-function.test.tsx +2 -2
  128. package/test/typescript/components/enum-declaration.test.tsx +1 -1
  129. package/test/typescript/components/function-declaration.test.tsx +1 -1
  130. package/test/typescript/components/function-expression.test.tsx +2 -2
  131. package/test/typescript/components/function-type.test.tsx +2 -2
  132. package/test/typescript/components/interface-declaration.test.tsx +1 -1
  133. package/test/typescript/components/interface-method.test.tsx +2 -2
  134. package/test/typescript/components/member-expression.test.tsx +10 -10
  135. package/test/typescript/components/type-alias-declaration.test.tsx +1 -1
  136. package/test/typescript/components/type-transform.test.tsx +2 -2
  137. package/test/typescript/components/union-declaration.test.tsx +2 -2
  138. package/test/typescript/components/value-expression.test.tsx +6 -6
  139. package/test/typescript/test-host.ts +1 -1
  140. package/test/utils.ts +2 -2
  141. package/tsconfig.json +1 -0
  142. package/dist/src/csharp/components/enum-declaration.d.ts.map +0 -1
  143. package/dist/test/csharp/components/enum-declaration.test.d.ts +0 -2
  144. package/dist/test/csharp/components/enum-declaration.test.d.ts.map +0 -1
  145. package/dist/test/csharp/components/enum-declaration.test.js +0 -403
  146. package/dist/test/csharp/test-host.d.ts +0 -11
  147. package/dist/test/csharp/test-host.d.ts.map +0 -1
  148. package/dist/test/csharp/test-host.js +0 -32
  149. package/dist/test/csharp/utils.d.ts +0 -3
  150. package/dist/test/csharp/utils.d.ts.map +0 -1
  151. package/dist/test/csharp/utils.js +0 -6
  152. package/test/csharp/components/enum-declaration.test.tsx +0 -337
  153. package/test/csharp/test-host.ts +0 -42
  154. package/test/csharp/utils.ts +0 -8
@@ -0,0 +1,309 @@
1
+ import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
+ import { Tester } from "#test/test-host.js";
3
+ import { createCSharpNamePolicy, Namespace, SourceFile } from "@alloy-js/csharp";
4
+ import { t } from "@typespec/compiler/testing";
5
+ import { beforeEach, expect, it } from "vitest";
6
+ import { Output } from "../../../core/index.js";
7
+ import { EnumDeclaration } from "../../index.js";
8
+ let runner;
9
+ beforeEach(async () => {
10
+ runner = await Tester.createInstance();
11
+ });
12
+ function Wrapper(props) {
13
+ const policy = createCSharpNamePolicy();
14
+ return _$createComponent(Output, {
15
+ get program() {
16
+ return runner.program;
17
+ },
18
+ namePolicy: policy,
19
+ get children() {
20
+ return _$createComponent(Namespace, {
21
+ name: "TestNamespace",
22
+ get children() {
23
+ return _$createComponent(SourceFile, {
24
+ path: "test.cs",
25
+ get children() {
26
+ return props.children;
27
+ }
28
+ });
29
+ }
30
+ });
31
+ }
32
+ });
33
+ }
34
+ it("renders a basic enum declaration", async () => {
35
+ const {
36
+ TestEnum
37
+ } = await runner.compile(t.code`
38
+ @test enum ${t.enum("TestEnum")} {
39
+ Value1;
40
+ Value2;
41
+ Value3;
42
+ }
43
+ `);
44
+ expect(_$createComponent(Wrapper, {
45
+ get children() {
46
+ return _$createComponent(EnumDeclaration, {
47
+ type: TestEnum
48
+ });
49
+ }
50
+ })).toRenderTo(`
51
+ namespace TestNamespace
52
+ {
53
+ enum TestEnum
54
+ {
55
+ Value1,
56
+ Value2,
57
+ Value3
58
+ }
59
+ }
60
+ `);
61
+ });
62
+ it("renders an empty enum declaration", async () => {
63
+ const {
64
+ TestEnum
65
+ } = await runner.compile(t.code`
66
+ @test enum ${t.enum("TestEnum")} {}
67
+ `);
68
+ expect(_$createComponent(Wrapper, {
69
+ get children() {
70
+ return _$createComponent(EnumDeclaration, {
71
+ type: TestEnum
72
+ });
73
+ }
74
+ })).toRenderTo(`
75
+ namespace TestNamespace
76
+ {
77
+ enum TestEnum
78
+ {
79
+
80
+ }
81
+ }
82
+ `);
83
+ });
84
+ it("can override enum name", async () => {
85
+ const {
86
+ TestEnum
87
+ } = await runner.compile(t.code`
88
+ @test enum ${t.enum("TestEnum")} {
89
+ Value1;
90
+ Value2;
91
+ }
92
+ `);
93
+ expect(_$createComponent(Wrapper, {
94
+ get children() {
95
+ return _$createComponent(EnumDeclaration, {
96
+ type: TestEnum,
97
+ name: "CustomEnumName"
98
+ });
99
+ }
100
+ })).toRenderTo(`
101
+ namespace TestNamespace
102
+ {
103
+ enum CustomEnumName
104
+ {
105
+ Value1,
106
+ Value2
107
+ }
108
+ }
109
+ `);
110
+ });
111
+ it("renders an enum with access modifiers", async () => {
112
+ const {
113
+ TestEnum
114
+ } = await runner.compile(t.code`
115
+ @test enum ${t.enum("TestEnum")} {
116
+ Value1;
117
+ Value2;
118
+ }
119
+ `);
120
+ expect(_$createComponent(Wrapper, {
121
+ get children() {
122
+ return _$createComponent(EnumDeclaration, {
123
+ type: TestEnum,
124
+ internal: true
125
+ });
126
+ }
127
+ })).toRenderTo(`
128
+ namespace TestNamespace
129
+ {
130
+ internal enum TestEnum
131
+ {
132
+ Value1,
133
+ Value2
134
+ }
135
+ }
136
+ `);
137
+ });
138
+ it("renders enum with C# naming conventions", async () => {
139
+ const {
140
+ TestEnum
141
+ } = await runner.compile(t.code`
142
+ @test enum ${t.enum("TestEnum")} {
143
+ value_one;
144
+ value_two;
145
+ value_three;
146
+ }
147
+ `);
148
+ expect(_$createComponent(Output, {
149
+ get program() {
150
+ return runner.program;
151
+ },
152
+ get namePolicy() {
153
+ return createCSharpNamePolicy();
154
+ },
155
+ get children() {
156
+ return _$createComponent(Namespace, {
157
+ name: "TestNamespace",
158
+ get children() {
159
+ return _$createComponent(SourceFile, {
160
+ path: "test.cs",
161
+ get children() {
162
+ return _$createComponent(EnumDeclaration, {
163
+ type: TestEnum
164
+ });
165
+ }
166
+ });
167
+ }
168
+ });
169
+ }
170
+ })).toRenderTo(`
171
+ namespace TestNamespace
172
+ {
173
+ enum TestEnum
174
+ {
175
+ ValueOne,
176
+ ValueTwo,
177
+ ValueThree
178
+ }
179
+ }
180
+ `);
181
+ });
182
+ it("renders enum with single value", async () => {
183
+ const {
184
+ TestEnum
185
+ } = await runner.compile(t.code`
186
+ @test enum ${t.enum("TestEnum")} {
187
+ OnlyValue;
188
+ }
189
+ `);
190
+ expect(_$createComponent(Wrapper, {
191
+ get children() {
192
+ return _$createComponent(EnumDeclaration, {
193
+ type: TestEnum
194
+ });
195
+ }
196
+ })).toRenderTo(`
197
+ namespace TestNamespace
198
+ {
199
+ enum TestEnum
200
+ {
201
+ OnlyValue
202
+ }
203
+ }
204
+ `);
205
+ });
206
+ it("renders enum with numeric-like member names", async () => {
207
+ const {
208
+ TestEnum
209
+ } = await runner.compile(t.code`
210
+ @test enum ${t.enum("TestEnum")} {
211
+ Value0;
212
+ Value1;
213
+ Value10;
214
+ Value100;
215
+ }
216
+ `);
217
+ expect(_$createComponent(Wrapper, {
218
+ get children() {
219
+ return _$createComponent(EnumDeclaration, {
220
+ type: TestEnum
221
+ });
222
+ }
223
+ })).toRenderTo(`
224
+ namespace TestNamespace
225
+ {
226
+ enum TestEnum
227
+ {
228
+ Value0,
229
+ Value1,
230
+ Value10,
231
+ Value100
232
+ }
233
+ }
234
+ `);
235
+ });
236
+ it("renders multiple enums in the same namespace", async () => {
237
+ const {
238
+ TestEnum1,
239
+ TestEnum2
240
+ } = await runner.compile(t.code`
241
+ @test enum ${t.enum("TestEnum1")} {
242
+ Value1;
243
+ Value2;
244
+ }
245
+ @test enum ${t.enum("TestEnum2")} {
246
+ OptionA;
247
+ OptionB;
248
+ OptionC;
249
+ }
250
+ `);
251
+ expect(_$createComponent(Wrapper, {
252
+ get children() {
253
+ return [_$createComponent(EnumDeclaration, {
254
+ type: TestEnum1
255
+ }), _$createIntrinsic("hbr", {}), _$createComponent(EnumDeclaration, {
256
+ type: TestEnum2
257
+ })];
258
+ }
259
+ })).toRenderTo(`
260
+ namespace TestNamespace
261
+ {
262
+ enum TestEnum1
263
+ {
264
+ Value1,
265
+ Value2
266
+ }
267
+ enum TestEnum2
268
+ {
269
+ OptionA,
270
+ OptionB,
271
+ OptionC
272
+ }
273
+ }
274
+ `);
275
+ });
276
+ it("renders an enum with doc comments", async () => {
277
+ const {
278
+ TestEnum
279
+ } = await runner.compile(t.code`
280
+ @test enum ${t.enum("TestEnum")} {
281
+ @doc("This is value one")
282
+ Value1;
283
+ /** This is value two */
284
+ Value2;
285
+ }
286
+ `);
287
+ expect(_$createComponent(Wrapper, {
288
+ get children() {
289
+ return _$createComponent(EnumDeclaration, {
290
+ type: TestEnum
291
+ });
292
+ }
293
+ })).toRenderTo(`
294
+ namespace TestNamespace
295
+ {
296
+ enum TestEnum
297
+ {
298
+ /// <summary>
299
+ /// This is value one
300
+ /// </summary>
301
+ Value1,
302
+ /// <summary>
303
+ /// This is value two
304
+ /// </summary>
305
+ Value2
306
+ }
307
+ }
308
+ `);
309
+ });
@@ -1,5 +1,5 @@
1
1
  export * from "./class/declaration.js";
2
- export * from "./enum-declaration.jsx";
2
+ export * from "./enum/declaration.jsx";
3
3
  export * from "./property/property.jsx";
4
4
  export * from "./type-expression.jsx";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export * from "./class/declaration.js";
2
- export * from "./enum-declaration.js";
2
+ export * from "./enum/declaration.js";
3
3
  export * from "./property/property.js";
4
4
  export * from "./type-expression.js";
@@ -1,5 +1,5 @@
1
- import { Children } from "@alloy-js/core";
2
- import { ModelProperty } from "@typespec/compiler";
1
+ import { type Children } from "@alloy-js/core";
2
+ import { type ModelProperty } from "@typespec/compiler";
3
3
  export interface PropertyProps {
4
4
  type: ModelProperty;
5
5
  /** If set the property will add the json serialization attributes(using System.Text.Json). */
@@ -1 +1 @@
1
- {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../../src/csharp/components/property/property.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,aAAa,EAA4B,MAAM,oBAAoB,CAAC;AAK7E,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,aAAa,CAAC;IACpB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,QAAQ,CAiBvD;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,aAAa,CAAC;CACrB"}
1
+ {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../../src/csharp/components/property/property.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EAAE,KAAK,aAAa,EAAiC,MAAM,oBAAoB,CAAC;AAKvF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,aAAa,CAAC;IACpB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,QAAQ,CAiBvD;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,aAAa,CAAC;CACrB"}
@@ -53,10 +53,10 @@ it("maps prop: string | null to nullable property", async () => {
53
53
  })).toRenderTo(`
54
54
  namespace TestNamespace
55
55
  {
56
- class Test
57
- {
58
- public required string? Prop1 { get; set; }
59
- }
56
+ class Test
57
+ {
58
+ public required string? Prop1 { get; set; }
59
+ }
60
60
  }
61
61
  `);
62
62
  });
@@ -79,11 +79,11 @@ describe("jsonAttributes", () => {
79
79
  })).toRenderTo(`
80
80
  namespace TestNamespace
81
81
  {
82
- class Test
83
- {
84
- [System.Text.Json.JsonPropertyName("prop1")]
85
- public required string Prop1 { get; set; }
86
- }
82
+ class Test
83
+ {
84
+ [System.Text.Json.JsonPropertyName("prop1")]
85
+ public required string Prop1 { get; set; }
86
+ }
87
87
  }
88
88
  `);
89
89
  });
@@ -106,11 +106,11 @@ describe("jsonAttributes", () => {
106
106
  })).toRenderTo(`
107
107
  namespace TestNamespace
108
108
  {
109
- class Test
110
- {
111
- [System.Text.Json.JsonPropertyName("prop_1")]
112
- public required string Prop1 { get; set; }
113
- }
109
+ class Test
110
+ {
111
+ [System.Text.Json.JsonPropertyName("prop_1")]
112
+ public required string Prop1 { get; set; }
113
+ }
114
114
  }
115
115
  `);
116
116
  });
@@ -1,6 +1,6 @@
1
- import { Children } from "@alloy-js/core";
2
- import { IntrinsicType, Scalar, Type } from "@typespec/compiler";
3
- import { Typekit } from "@typespec/compiler/typekit";
1
+ import { type Children } from "@alloy-js/core";
2
+ import { type IntrinsicType, type Scalar, type Type } from "@typespec/compiler";
3
+ import type { Typekit } from "@typespec/compiler/typekit";
4
4
  export interface TypeExpressionProps {
5
5
  type: Type;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"type-expression.d.ts","sourceRoot":"","sources":["../../../../src/csharp/components/type-expression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAe,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAKrD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,QAAQ,CAgBnE;AAED,QAAA,MAAM,yBAAyB,4BAqC7B,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,CAAC,EAAE,OAAO,EACV,IAAI,EAAE,MAAM,GAAG,aAAa,GAC3B,MAAM,GAAG,IAAI,CAoBf;AA0BD,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"type-expression.d.ts","sourceRoot":"","sources":["../../../../src/csharp/components/type-expression.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAe,KAAK,aAAa,EAAE,KAAK,MAAM,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAK1D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,QAAQ,CAgBnE;AAED,QAAA,MAAM,yBAAyB,4BAqC7B,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,CAAC,EAAE,OAAO,EACV,IAAI,EAAE,MAAM,GAAG,aAAa,GAC3B,MAAM,GAAG,IAAI,CAoBf;AA0BD,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
- import * as ay from "@alloy-js/core";
2
- import { Type } from "@typespec/compiler";
3
- import { Typekit } from "@typespec/compiler/typekit";
1
+ import { type Children } from "@alloy-js/core";
2
+ import { type Type } from "@typespec/compiler";
3
+ import type { Typekit } from "@typespec/compiler/typekit";
4
4
  /**
5
5
  * Helper to render a doc string for a given TypeSpec type.
6
6
  *
@@ -10,5 +10,5 @@ import { Typekit } from "@typespec/compiler/typekit";
10
10
  * @param type The TypeSpec type to generate documentation for
11
11
  * @returns A DocSummary component containing the rendered doc string, or undefined if no doc is available.
12
12
  */
13
- export declare function getDocComments($: Typekit, type: Type): ay.Children;
13
+ export declare function getDocComments($: Typekit, type: Type): Children;
14
14
  //# sourceMappingURL=doc-comments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"doc-comments.d.ts","sourceRoot":"","sources":["../../../../../src/csharp/components/utils/doc-comments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAiB,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,CAAC,QAAQ,CA2ClE"}
1
+ {"version":3,"file":"doc-comments.d.ts","sourceRoot":"","sources":["../../../../../src/csharp/components/utils/doc-comments.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1D;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,QAAQ,CA2C/D"}
@@ -1,5 +1,5 @@
1
1
  import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import * as ay from "@alloy-js/core";
2
+ import { List } from "@alloy-js/core";
3
3
  import * as cs from "@alloy-js/csharp";
4
4
  import { getReturnsDoc } from "@typespec/compiler";
5
5
  /**
@@ -60,7 +60,7 @@ export function getDocComments($, type) {
60
60
  }));
61
61
  }
62
62
  }
63
- return _$createComponent(ay.List, {
63
+ return _$createComponent(List, {
64
64
  doubleHardline: true,
65
65
  children: docElements
66
66
  });
@@ -1,4 +1,4 @@
1
- import { TypeSpecTestLibrary } from "@typespec/compiler/testing";
1
+ import { type TypeSpecTestLibrary } from "@typespec/compiler/testing";
2
2
  export declare const EmitterFrameworkTestLibrary: TypeSpecTestLibrary;
3
3
  export * from "./scenario-test/index.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGpF,eAAO,MAAM,2BAA2B,EAAE,mBAGxC,CAAC;AAEH,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGzF,eAAO,MAAM,2BAA2B,EAAE,mBAGxC,CAAC;AAEH,cAAc,0BAA0B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { TypeSpecTestLibrary } from "@typespec/compiler/testing";
2
- import { LanguageConfiguration, SnippetExtractor } from "./snippet-extractor.js";
1
+ import type { TypeSpecTestLibrary } from "@typespec/compiler/testing";
2
+ import type { LanguageConfiguration, SnippetExtractor } from "./snippet-extractor.js";
3
3
  export declare function executeScenarios(testLibrary: TypeSpecTestLibrary, languageConfiguration: LanguageConfiguration, scenariosLocation: string, emitterOutputDir: string, snippetExtractor: SnippetExtractor): Promise<void>;
4
4
  //# sourceMappingURL=harness.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../../../src/testing/scenario-test/harness.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAMjE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA+HjF,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,mBAAmB,EAChC,qBAAqB,EAAE,qBAAqB,EAC5C,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,gBAAgB,iBAkBnC"}
1
+ {"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../../../src/testing/scenario-test/harness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAMtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA+HtF,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,mBAAmB,EAChC,qBAAqB,EAAE,qBAAqB,EAC5C,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,gBAAgB,iBAkBnC"}
@@ -1,5 +1,5 @@
1
- import { Diagnostic } from "@typespec/compiler";
2
- import { TypeSpecTestLibrary } from "@typespec/compiler/testing";
1
+ import type { Diagnostic } from "@typespec/compiler";
2
+ import { type TypeSpecTestLibrary } from "@typespec/compiler/testing";
3
3
  export interface EmittedFile {
4
4
  path: string;
5
5
  content: string;
@@ -1 +1 @@
1
- {"version":3,"file":"test-host.d.ts","sourceRoot":"","sources":["../../../../src/testing/scenario-test/test-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAKL,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAKpC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA4BD,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,mBAAmB,EAChC,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,SAAS,UAAU,EAAE,CAAC,CAAC,CAOjD"}
1
+ {"version":3,"file":"test-host.d.ts","sourceRoot":"","sources":["../../../../src/testing/scenario-test/test-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AAKpC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA4BD,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,mBAAmB,EAChC,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,SAAS,UAAU,EAAE,CAAC,CAAC,CAOjD"}
@@ -1,7 +1,6 @@
1
- import * as ay from "@alloy-js/core";
2
- import { Type } from "@typespec/compiler";
1
+ import type { Type } from "@typespec/compiler";
3
2
  export interface ArrayExpressionProps {
4
3
  elementType: Type;
5
4
  }
6
- export declare function ArrayExpression({ elementType }: ArrayExpressionProps): ay.Children;
5
+ export declare function ArrayExpression({ elementType }: ArrayExpressionProps): import("@alloy-js/core").Children;
7
6
  //# sourceMappingURL=array-expression.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"array-expression.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/array-expression.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,IAAI,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,EAAE,oBAAoB,eAEpE"}
1
+ {"version":3,"file":"array-expression.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/array-expression.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG/C,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,IAAI,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,EAAE,oBAAoB,qCAEpE"}
@@ -1,10 +1,10 @@
1
1
  import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import * as ay from "@alloy-js/core";
2
+ import { code } from "@alloy-js/core";
3
3
  import { TypeExpression } from "./type-expression.js";
4
4
  export function ArrayExpression({
5
5
  elementType
6
6
  }) {
7
- return ay.code`Array<${_$createComponent(TypeExpression, {
7
+ return code`Array<${_$createComponent(TypeExpression, {
8
8
  type: elementType
9
9
  })}>`;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import * as ts from "@alloy-js/typescript";
2
- import { Operation } from "@typespec/compiler";
2
+ import type { Operation } from "@typespec/compiler";
3
3
  export interface ArrowFunctionProps extends ts.ArrowFunctionProps {
4
4
  type?: Operation;
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"arrow-function.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/arrow-function.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI/C,MAAM,WAAW,kBAAmB,SAAQ,EAAE,CAAC,kBAAkB;IAC/D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,qCAkBhE"}
1
+ {"version":3,"file":"arrow-function.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/arrow-function.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD,MAAM,WAAW,kBAAmB,SAAQ,EAAE,CAAC,kBAAkB;IAC/D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,qCAkBhE"}
@@ -1,5 +1,5 @@
1
1
  import * as ts from "@alloy-js/typescript";
2
- import { Operation } from "@typespec/compiler";
2
+ import type { Operation } from "@typespec/compiler";
3
3
  export interface ClassMethodPropsWithType extends Omit<ts.ClassMethodProps, "name"> {
4
4
  type: Operation;
5
5
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"class-method.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/class-method.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI/C,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACjF,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,GAAG,EAAE,CAAC,gBAAgB,CAAC;AAE9E,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qCAuBlD"}
1
+ {"version":3,"file":"class-method.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/class-method.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACjF,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,GAAG,EAAE,CAAC,gBAAgB,CAAC;AAE9E,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qCAuBlD"}
@@ -1,15 +1,15 @@
1
- import * as ay from "@alloy-js/core";
1
+ import { type Children, type Refkey } from "@alloy-js/core";
2
2
  import * as ts from "@alloy-js/typescript";
3
- import { Enum, EnumMember as TspEnumMember, Union } from "@typespec/compiler";
3
+ import type { Enum, EnumMember as TspEnumMember, Union } from "@typespec/compiler";
4
4
  export interface EnumDeclarationProps extends Omit<ts.TypeDeclarationProps, "name"> {
5
5
  name?: string;
6
6
  type: Union | Enum;
7
7
  }
8
- export declare function EnumDeclaration(props: EnumDeclarationProps): ay.Children;
8
+ export declare function EnumDeclaration(props: EnumDeclarationProps): Children;
9
9
  export interface EnumMemberProps {
10
10
  type: TspEnumMember;
11
- doc?: ay.Children;
12
- refkey?: ay.Refkey;
11
+ doc?: Children;
12
+ refkey?: Refkey;
13
13
  }
14
- export declare function EnumMember(props: EnumMemberProps): ay.Children;
14
+ export declare function EnumMember(props: EnumMemberProps): Children;
15
15
  //# sourceMappingURL=enum-declaration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enum-declaration.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/enum-declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,UAAU,IAAI,aAAa,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAK9E,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,eA4C1D;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,GAAG,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC;IAClB,MAAM,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,eAShD"}
1
+ {"version":3,"file":"enum-declaration.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/enum-declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAO,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,IAAI,aAAa,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAKnF,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,YA4C1D;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YAShD"}
@@ -1,5 +1,5 @@
1
1
  import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import * as ay from "@alloy-js/core";
2
+ import { For } from "@alloy-js/core";
3
3
  import * as ts from "@alloy-js/typescript";
4
4
  import { useTsp } from "../../core/context/tsp-context.js";
5
5
  import { reportDiagnostic } from "../../lib.js";
@@ -38,7 +38,7 @@ export function EnumDeclaration(props) {
38
38
  return props.export;
39
39
  },
40
40
  get children() {
41
- return _$createComponent(ay.For, {
41
+ return _$createComponent(For, {
42
42
  each: members,
43
43
  joiner: ",\n",
44
44
  children: ([key, value]) => {
@@ -1,5 +1,5 @@
1
1
  import * as ts from "@alloy-js/typescript";
2
- import { Model, Operation } from "@typespec/compiler";
2
+ import type { Model, Operation } from "@typespec/compiler";
3
3
  export interface FunctionDeclarationPropsWithType extends Omit<ts.FunctionDeclarationProps, "name"> {
4
4
  type: Operation;
5
5
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"function-declaration.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/function-declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAMtD,MAAM,WAAW,gCACf,SAAQ,IAAI,CAAC,EAAE,CAAC,wBAAwB,EAAE,MAAM,CAAC;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,MAAM,wBAAwB,GAChC,gCAAgC,GAChC,EAAE,CAAC,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,qCAsClE;yBAtCe,mBAAmB;4BA+CyB,uBAAuB;;AAPnF,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CAAC,EAAE,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAC7F,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,uBAAuB,GAAG,4BAA4B,GAAG,EAAE,CAAC,uBAAuB,CAAC"}
1
+ {"version":3,"file":"function-declaration.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/function-declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM3D,MAAM,WAAW,gCACf,SAAQ,IAAI,CAAC,EAAE,CAAC,wBAAwB,EAAE,MAAM,CAAC;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,MAAM,wBAAwB,GAChC,gCAAgC,GAChC,EAAE,CAAC,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,qCAsClE;yBAtCe,mBAAmB;4BA+CyB,uBAAuB;;AAPnF,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CAAC,EAAE,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAC7F,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,uBAAuB,GAAG,4BAA4B,GAAG,EAAE,CAAC,uBAAuB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as ts from "@alloy-js/typescript";
2
- import { Operation } from "@typespec/compiler";
2
+ import type { Operation } from "@typespec/compiler";
3
3
  export interface FunctionExpressionProps extends ts.FunctionExpressionProps {
4
4
  type?: Operation;
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"function-expression.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/function-expression.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI/C,MAAM,WAAW,uBAAwB,SAAQ,EAAE,CAAC,uBAAuB;IACzE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,qCAoB1E"}
1
+ {"version":3,"file":"function-expression.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/function-expression.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD,MAAM,WAAW,uBAAwB,SAAQ,EAAE,CAAC,uBAAuB;IACzE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,qCAoB1E"}
@@ -1,5 +1,5 @@
1
1
  import * as ts from "@alloy-js/typescript";
2
- import { Operation } from "@typespec/compiler";
2
+ import type { Operation } from "@typespec/compiler";
3
3
  export interface FunctionTypeProps extends ts.FunctionTypeProps {
4
4
  type?: Operation;
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"function-type.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/function-type.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI/C,MAAM,WAAW,iBAAkB,SAAQ,EAAE,CAAC,iBAAiB;IAC7D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AACD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC,qCAkB9D"}
1
+ {"version":3,"file":"function-type.d.ts","sourceRoot":"","sources":["../../../../src/typescript/components/function-type.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD,MAAM,WAAW,iBAAkB,SAAQ,EAAE,CAAC,iBAAiB;IAC7D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACnD;AACD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC,qCAkB9D"}