@alloy-js/csharp 0.23.0-dev.6 → 0.23.0-dev.7

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 (188) hide show
  1. package/dist/dev/src/components/constructor/constructor.js +15 -6
  2. package/dist/dev/src/components/constructor/constructor.js.map +1 -1
  3. package/dist/dev/src/components/constructor/constructor.test.js +53 -4
  4. package/dist/dev/src/components/constructor/constructor.test.js.map +1 -1
  5. package/dist/dev/src/components/enum/declaration.js +14 -5
  6. package/dist/dev/src/components/enum/declaration.js.map +1 -1
  7. package/dist/dev/src/components/enum/declaration.test.js +40 -0
  8. package/dist/dev/src/components/enum/declaration.test.js.map +1 -1
  9. package/dist/dev/src/components/enum/member.js +13 -4
  10. package/dist/dev/src/components/enum/member.js.map +1 -1
  11. package/dist/dev/src/components/enum/member.test.js +42 -0
  12. package/dist/dev/src/components/enum/member.test.js.map +1 -1
  13. package/dist/src/components/constructor/constructor.d.ts +2 -0
  14. package/dist/src/components/constructor/constructor.d.ts.map +1 -1
  15. package/dist/src/components/constructor/constructor.js +6 -1
  16. package/dist/src/components/constructor/constructor.js.map +1 -1
  17. package/dist/src/components/constructor/constructor.test.js +33 -0
  18. package/dist/src/components/constructor/constructor.test.js.map +1 -1
  19. package/dist/src/components/enum/declaration.d.ts +2 -0
  20. package/dist/src/components/enum/declaration.d.ts.map +1 -1
  21. package/dist/src/components/enum/declaration.js +6 -1
  22. package/dist/src/components/enum/declaration.js.map +1 -1
  23. package/dist/src/components/enum/declaration.test.js +24 -0
  24. package/dist/src/components/enum/declaration.test.js.map +1 -1
  25. package/dist/src/components/enum/member.d.ts +4 -2
  26. package/dist/src/components/enum/member.d.ts.map +1 -1
  27. package/dist/src/components/enum/member.js +6 -1
  28. package/dist/src/components/enum/member.js.map +1 -1
  29. package/dist/src/components/enum/member.test.js +26 -0
  30. package/dist/src/components/enum/member.test.js.map +1 -1
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/docs/api/components/AttributeList.md +34 -0
  33. package/docs/api/components/ClassDeclaration.md +104 -0
  34. package/docs/api/components/Constructor.md +55 -0
  35. package/docs/api/components/CsprojFile.md +34 -0
  36. package/docs/api/components/Declaration.md +32 -0
  37. package/docs/api/components/DocC.md +27 -0
  38. package/docs/api/components/DocCode.md +27 -0
  39. package/docs/api/components/DocComment.md +27 -0
  40. package/docs/api/components/DocDescription.md +27 -0
  41. package/docs/api/components/DocExample.md +27 -0
  42. package/docs/api/components/DocException.md +27 -0
  43. package/docs/api/components/DocFromMarkdown.md +27 -0
  44. package/docs/api/components/DocInclude.md +26 -0
  45. package/docs/api/components/DocList.md +26 -0
  46. package/docs/api/components/DocPara.md +27 -0
  47. package/docs/api/components/DocParam.md +28 -0
  48. package/docs/api/components/DocParamRef.md +25 -0
  49. package/docs/api/components/DocPermission.md +27 -0
  50. package/docs/api/components/DocRemarks.md +27 -0
  51. package/docs/api/components/DocReturns.md +27 -0
  52. package/docs/api/components/DocSee.md +30 -0
  53. package/docs/api/components/DocSeeAlso.md +29 -0
  54. package/docs/api/components/DocSummary.md +27 -0
  55. package/docs/api/components/DocTypeParam.md +28 -0
  56. package/docs/api/components/DocTypeParamRef.md +25 -0
  57. package/docs/api/components/DocValue.md +27 -0
  58. package/docs/api/components/DocWhen.md +27 -0
  59. package/docs/api/components/ElseClause.md +29 -0
  60. package/docs/api/components/ElseIfClause.md +30 -0
  61. package/docs/api/components/EnumDeclaration.md +76 -0
  62. package/docs/api/components/EnumMember.md +31 -0
  63. package/docs/api/components/Field.md +67 -0
  64. package/docs/api/components/IfStatement.md +30 -0
  65. package/docs/api/components/InterfaceDeclaration.md +82 -0
  66. package/docs/api/components/InterfaceMethod.md +68 -0
  67. package/docs/api/components/InterfaceProperty.md +78 -0
  68. package/docs/api/components/InvocationExpression.md +49 -0
  69. package/docs/api/components/LexicalScope.md +65 -0
  70. package/docs/api/components/Method.md +92 -0
  71. package/docs/api/components/MethodScope.md +65 -0
  72. package/docs/api/components/Name.md +19 -0
  73. package/docs/api/components/Namespace.md +35 -0
  74. package/docs/api/components/Parameter.md +58 -0
  75. package/docs/api/components/Parameters_2.md +27 -0
  76. package/docs/api/components/Property.md +110 -0
  77. package/docs/api/components/RecordDeclaration.md +84 -0
  78. package/docs/api/components/Reference.md +25 -0
  79. package/docs/api/components/Region.md +28 -0
  80. package/docs/api/components/SourceFile.md +45 -0
  81. package/docs/api/components/StructDeclaration.md +94 -0
  82. package/docs/api/components/UsingNamespaceDirective.md +25 -0
  83. package/docs/api/components/Usings.md +40 -0
  84. package/docs/api/components/VarDeclaration.md +74 -0
  85. package/docs/api/components/index.md +55 -0
  86. package/docs/api/functions/access.md +35 -0
  87. package/docs/api/functions/accessibilityFromProps.md +18 -0
  88. package/docs/api/functions/computeModifiersPrefix.md +20 -0
  89. package/docs/api/functions/createCSharpNamePolicy.md +17 -0
  90. package/docs/api/functions/createCSharpNamespaceScope.md +18 -0
  91. package/docs/api/functions/createClassScope.md +27 -0
  92. package/docs/api/functions/createFieldSymbol.md +43 -0
  93. package/docs/api/functions/createLibrary.md +19 -0
  94. package/docs/api/functions/createMethodScope.md +26 -0
  95. package/docs/api/functions/createMethodSymbol.md +34 -0
  96. package/docs/api/functions/createNamedTypeScope.md +27 -0
  97. package/docs/api/functions/createNamedTypeSymbol.md +35 -0
  98. package/docs/api/functions/createNamespaceSymbol.md +43 -0
  99. package/docs/api/functions/createParameterSymbol.md +45 -0
  100. package/docs/api/functions/createPropertySymbol.md +43 -0
  101. package/docs/api/functions/createTypeParameterSymbol.md +34 -0
  102. package/docs/api/functions/createVariableSymbol.md +43 -0
  103. package/docs/api/functions/getAccessModifier.md +18 -0
  104. package/docs/api/functions/getAsyncModifier.md +18 -0
  105. package/docs/api/functions/index.md +33 -0
  106. package/docs/api/functions/makeModifiers.md +18 -0
  107. package/docs/api/functions/nonAccessibilityFromProps.md +18 -0
  108. package/docs/api/functions/ref.md +18 -0
  109. package/docs/api/functions/useCSharpNamePolicy.md +17 -0
  110. package/docs/api/functions/useCSharpScope.md +17 -0
  111. package/docs/api/functions/useCsharpFormatOptions.md +18 -0
  112. package/docs/api/functions/useEnclosingNamespaceScope.md +17 -0
  113. package/docs/api/functions/useLexicalScope.md +17 -0
  114. package/docs/api/functions/useMethodScope.md +17 -0
  115. package/docs/api/functions/useNamedTypeScope.md +17 -0
  116. package/docs/api/functions/useNamespace.md +17 -0
  117. package/docs/api/functions/useSourceFileScope.md +17 -0
  118. package/docs/api/index.md +6 -0
  119. package/docs/api/types/AccessExpressionBuilder.md +11 -0
  120. package/docs/api/types/AccessExpressionPartProps.md +17 -0
  121. package/docs/api/types/AccessModifiers.md +13 -0
  122. package/docs/api/types/AttributeProps.md +8 -0
  123. package/docs/api/types/AttributesProp.md +5 -0
  124. package/docs/api/types/CSharpClassScope.md +9 -0
  125. package/docs/api/types/CSharpElements.md +5 -0
  126. package/docs/api/types/CSharpFormatOptions.md +5 -0
  127. package/docs/api/types/CSharpLexicalScope.md +10 -0
  128. package/docs/api/types/CSharpMethodScope.md +12 -0
  129. package/docs/api/types/CSharpNamedTypeScope.md +16 -0
  130. package/docs/api/types/CSharpNamespaceScope.md +10 -0
  131. package/docs/api/types/CSharpProjectSdk.md +5 -0
  132. package/docs/api/types/CSharpScope.md +12 -0
  133. package/docs/api/types/CSharpSourceFileScope.md +13 -0
  134. package/docs/api/types/CSharpSymbol.md +30 -0
  135. package/docs/api/types/CSharpSymbolKinds.md +5 -0
  136. package/docs/api/types/CSharpSymbolOptions.md +17 -0
  137. package/docs/api/types/ClassDescriptor.md +9 -0
  138. package/docs/api/types/ClassModifiers.md +10 -0
  139. package/docs/api/types/CreateMethodSymbolOptions.md +9 -0
  140. package/docs/api/types/CreateTypeParameterSymbolOptions.md +9 -0
  141. package/docs/api/types/DeclarationModifiers.md +8 -0
  142. package/docs/api/types/DeclaredAccessibility.md +5 -0
  143. package/docs/api/types/Descriptor.md +5 -0
  144. package/docs/api/types/DocCommentTagProps.md +7 -0
  145. package/docs/api/types/EnumDescriptor.md +9 -0
  146. package/docs/api/types/FieldDescriptor.md +9 -0
  147. package/docs/api/types/FieldModifiers.md +12 -0
  148. package/docs/api/types/GenericDescriptor.md +7 -0
  149. package/docs/api/types/InterfaceDescriptor.md +9 -0
  150. package/docs/api/types/InterfaceMethodModifiers.md +9 -0
  151. package/docs/api/types/InterfaceModifiers.md +7 -0
  152. package/docs/api/types/InterfacePropertyModifiers.md +9 -0
  153. package/docs/api/types/LexicalScopeProps.md +5 -0
  154. package/docs/api/types/LibraryFrom.md +7 -0
  155. package/docs/api/types/MemberDescriptor.md +16 -0
  156. package/docs/api/types/MethodDescriptor.md +10 -0
  157. package/docs/api/types/MethodKinds.md +5 -0
  158. package/docs/api/types/MethodModifiers.md +15 -0
  159. package/docs/api/types/MethodScopeProps.md +5 -0
  160. package/docs/api/types/MethodSymbol.md +13 -0
  161. package/docs/api/types/NamedTypeDescriptor.md +11 -0
  162. package/docs/api/types/NamedTypeSymbol.md +17 -0
  163. package/docs/api/types/NamedTypeSymbolKind.md +5 -0
  164. package/docs/api/types/NamedTypeTypeKind.md +5 -0
  165. package/docs/api/types/NamespaceDescriptor.md +8 -0
  166. package/docs/api/types/NamespaceSymbol.md +16 -0
  167. package/docs/api/types/NamespaceSymbolOptions.md +9 -0
  168. package/docs/api/types/NonAccessModifiers.md +13 -0
  169. package/docs/api/types/PropertyDescriptor_2.md +9 -0
  170. package/docs/api/types/PropertyModifiers.md +17 -0
  171. package/docs/api/types/RecordDescriptor.md +9 -0
  172. package/docs/api/types/RecordModifiers.md +7 -0
  173. package/docs/api/types/ResolveDescriptor.md +7 -0
  174. package/docs/api/types/StructDescriptor.md +9 -0
  175. package/docs/api/types/StructModifiers.md +10 -0
  176. package/docs/api/types/TypeParameterProps.md +11 -0
  177. package/docs/api/types/VarModifiers.md +8 -0
  178. package/docs/api/types/index.md +62 -0
  179. package/docs/api/variables/Attribute.md +21 -0
  180. package/docs/api/variables/index.md +3 -0
  181. package/package.json +5 -5
  182. package/src/components/constructor/constructor.test.tsx +27 -0
  183. package/src/components/constructor/constructor.tsx +5 -0
  184. package/src/components/enum/declaration.test.tsx +20 -0
  185. package/src/components/enum/declaration.tsx +4 -0
  186. package/src/components/enum/member.test.tsx +21 -0
  187. package/src/components/enum/member.tsx +5 -0
  188. package/temp/api.json +85 -5
@@ -0,0 +1,34 @@
1
+ # AttributeList
2
+
3
+ Render each attributes in a new line.
4
+
5
+ * jsx
6
+
7
+ ```tsx
8
+ import { AttributeList } from "@alloy-js/csharp";
9
+
10
+
11
+ <AttributeList attributes={AttributesProp} endline>
12
+ {children}
13
+ </AttributeList>
14
+ ```
15
+
16
+ * stc
17
+
18
+ ```ts
19
+ import { AttributeList } from "@alloy-js/csharp/stc";
20
+
21
+
22
+ AttributeList({
23
+ attributes: AttributesProp,
24
+ endline: boolean,
25
+ }).children(children)
26
+ ```
27
+
28
+ ## Props
29
+
30
+ | | | |
31
+ | ---------- | ------------------------------------------------------ | ------------------------------------------------------------------------------ |
32
+ | attributes | optional [AttributesProp](../../types/attributesprop/) | |
33
+ | children | optional [Children](../../../core/types/children/)\[] | |
34
+ | endline | optional boolean | If the attribute list should finish with a hard line if there is any attribute |
@@ -0,0 +1,104 @@
1
+ # ClassDeclaration
2
+
3
+ CSharp class declaration.
4
+
5
+ * jsx
6
+
7
+ ```tsx
8
+ import { ClassDeclaration } from "@alloy-js/csharp";
9
+
10
+
11
+ <ClassDeclaration
12
+ abstract
13
+ attributes={AttributesProp}
14
+ baseType={Children}
15
+ doc={Children}
16
+ file
17
+ interfaceTypes={Children[]}
18
+ internal
19
+ name={string | Namekey}
20
+ partial
21
+ primaryConstructor={ParameterProps[]}
22
+ private
23
+ protected
24
+ public
25
+ refkey={Refkey}
26
+ sealed
27
+ static
28
+ typeParameters={(string | TypeParameterProps)[]}
29
+ />
30
+ ```
31
+
32
+ * stc
33
+
34
+ ```ts
35
+ import { ClassDeclaration } from "@alloy-js/csharp/stc";
36
+
37
+
38
+ ClassDeclaration({
39
+ abstract: boolean,
40
+ attributes: AttributesProp,
41
+ baseType: Children,
42
+ doc: Children,
43
+ file: boolean,
44
+ interfaceTypes: Children[],
45
+ internal: boolean,
46
+ name: string | Namekey,
47
+ partial: boolean,
48
+ primaryConstructor: ParameterProps[],
49
+ private: boolean,
50
+ protected: boolean,
51
+ public: boolean,
52
+ refkey: Refkey,
53
+ sealed: boolean,
54
+ static: boolean,
55
+ typeParameters: (string | TypeParameterProps)[],
56
+ }).children(children)
57
+ ```
58
+
59
+ ## Props
60
+
61
+ | | | |
62
+ | ------------------ | ----------------------------------------------------------------------------- | -------------------------------------- |
63
+ | abstract | optional boolean | |
64
+ | attributes | optional [AttributesProp](../../types/attributesprop/) | Define attributes to attach |
65
+ | baseType | optional [Children](../../../core/types/children/) | Base class that this class extends |
66
+ | doc | optional [Children](../../../core/types/children/) | Doc comment |
67
+ | file | optional boolean | |
68
+ | interfaceTypes | optional [Children](../../../core/types/children/)\[] | Interfaces this class implements |
69
+ | internal | optional boolean | |
70
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
71
+ | partial | optional boolean | |
72
+ | primaryConstructor | optional [ParameterProps](../parameter/)\[] | Set the primary constructor parameters |
73
+ | private | optional boolean | |
74
+ | protected | optional boolean | |
75
+ | public | optional boolean | |
76
+ | refkey | optional [Refkey](../../../core/types/refkey/) | |
77
+ | sealed | optional boolean | |
78
+ | static | optional boolean | |
79
+ | typeParameters | optional (string \| [TypeParameterProps](../../types/typeparameterprops/))\[] | Type parameters for the class |
80
+
81
+ ## Example
82
+
83
+ ```tsx
84
+ <ClassDeclaration public name="MyClass">
85
+ <ClassMember public name="MyField" type="int" />
86
+ <ClassConstructor>
87
+ <Parameter name="value" type="int" />
88
+ this.MyField = value;
89
+ </ClassConstructor>
90
+ </ClassDeclaration>
91
+ ```
92
+
93
+ This will produce:
94
+
95
+ ```csharp
96
+ public class MyClass
97
+ {
98
+ public int MyField;
99
+ public MyClass(int value)
100
+ {
101
+ this.MyField = value;
102
+ }
103
+ }
104
+ ```
@@ -0,0 +1,55 @@
1
+ # Constructor
2
+
3
+ Properties for [Constructor](../constructor/) component.
4
+
5
+ * jsx
6
+
7
+ ```tsx
8
+ import { Constructor } from "@alloy-js/csharp";
9
+
10
+
11
+ <Constructor
12
+ doc={Children}
13
+ file
14
+ internal
15
+ parameters={ParameterProps[]}
16
+ private
17
+ protected
18
+ public
19
+ refkey={Refkey}
20
+ >
21
+ {children}
22
+ </Constructor>
23
+ ```
24
+
25
+ * stc
26
+
27
+ ```ts
28
+ import { Constructor } from "@alloy-js/csharp/stc";
29
+
30
+
31
+ Constructor({
32
+ doc: Children,
33
+ file: boolean,
34
+ internal: boolean,
35
+ parameters: ParameterProps[],
36
+ private: boolean,
37
+ protected: boolean,
38
+ public: boolean,
39
+ refkey: Refkey,
40
+ }).children(children)
41
+ ```
42
+
43
+ ## Props
44
+
45
+ | | | |
46
+ | ---------- | -------------------------------------------------- | ---------------------- |
47
+ | children | optional [Children](../../../core/types/children/) | Constructor body |
48
+ | doc | optional [Children](../../../core/types/children/) | Doc comment |
49
+ | file | optional boolean | |
50
+ | internal | optional boolean | |
51
+ | parameters | optional [ParameterProps](../parameter/)\[] | Constructor parameters |
52
+ | private | optional boolean | |
53
+ | protected | optional boolean | |
54
+ | public | optional boolean | |
55
+ | refkey | optional [Refkey](../../../core/types/refkey/) | Refkey |
@@ -0,0 +1,34 @@
1
+ # CsprojFile
2
+
3
+ Create a .csproj file
4
+
5
+ * jsx
6
+
7
+ ```tsx
8
+ import { CsprojFile } from "@alloy-js/csharp";
9
+
10
+
11
+ <CsprojFile path={`${string}.csproj`} sdk={CSharpProjectSdk}>
12
+ {children}
13
+ </CsprojFile>
14
+ ```
15
+
16
+ * stc
17
+
18
+ ```ts
19
+ import { CsprojFile } from "@alloy-js/csharp/stc";
20
+
21
+
22
+ CsprojFile({
23
+ path: `${string}.csproj`,
24
+ sdk: CSharpProjectSdk,
25
+ }).children(children)
26
+ ```
27
+
28
+ ## Props
29
+
30
+ | | | |
31
+ | -------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------- |
32
+ | children | optional [Children](../../../core/types/children/) | Content inside |
33
+ | path | `$&#123;string&#125;.csproj` | |
34
+ | sdk | optional [CSharpProjectSdk](../../types/csharpprojectsdk/) | Project SDK <https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview> |
@@ -0,0 +1,32 @@
1
+ # Declaration
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { Declaration } from "@alloy-js/csharp";
7
+
8
+
9
+ <Declaration name="string" refkey={core.Refkey | core.Refkey[]}>
10
+ {children}
11
+ </Declaration>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { Declaration } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ Declaration({
21
+ name: string,
22
+ refkey: core.Refkey | core.Refkey[],
23
+ }).children(children)
24
+ ```
25
+
26
+ ## Props
27
+
28
+ | | | |
29
+ | -------- | ------------------------------------------------------------------------------------------ | - |
30
+ | children | optional [Children](../../../core/types/children/) | |
31
+ | name | string | |
32
+ | refkey | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | |
@@ -0,0 +1,27 @@
1
+ # DocC
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocC } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocC >
10
+ {children}
11
+ </DocC>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocC } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocC({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,27 @@
1
+ # DocCode
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocCode } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocCode >
10
+ {children}
11
+ </DocCode>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocCode } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocCode({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,27 @@
1
+ # DocComment
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocComment } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocComment >
10
+ {children}
11
+ </DocComment>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocComment } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocComment({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,27 @@
1
+ # DocDescription
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocDescription } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocDescription >
10
+ {children}
11
+ </DocDescription>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocDescription } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocDescription({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,27 @@
1
+ # DocExample
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocExample } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocExample >
10
+ {children}
11
+ </DocExample>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocExample } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocExample({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,27 @@
1
+ # DocException
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocException } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocException >
10
+ {children}
11
+ </DocException>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocException } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocException({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,27 @@
1
+ # DocFromMarkdown
2
+
3
+ Convert markdown to a Csharp doc comment
4
+
5
+ * jsx
6
+
7
+ ```tsx
8
+ import { DocFromMarkdown } from "@alloy-js/csharp";
9
+
10
+
11
+ <DocFromMarkdown markdown="string" />
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocFromMarkdown } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocFromMarkdown({ markdown: string }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ------ | - |
27
+ | markdown | string | |
@@ -0,0 +1,26 @@
1
+ # DocInclude
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocInclude } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocInclude file="string" path="string" />
10
+ ```
11
+
12
+ * stc
13
+
14
+ ```ts
15
+ import { DocInclude } from "@alloy-js/csharp/stc";
16
+
17
+
18
+ DocInclude({ file: string, path: string }).children(children)
19
+ ```
20
+
21
+ ## Props
22
+
23
+ | | | |
24
+ | ---- | --------------- | -------------------------------------------------------------------------------------------------------------------------- |
25
+ | file | string | is the file name of an external XML file. The file name is interpreted relative to the file that contains the include tag. |
26
+ | path | optional string | is an XPath expression that selects some of the XML in the external XML file. |
@@ -0,0 +1,26 @@
1
+ # DocList
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocList } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocList items={Children[]} type={"bullet" | "number"} />
10
+ ```
11
+
12
+ * stc
13
+
14
+ ```ts
15
+ import { DocList } from "@alloy-js/csharp/stc";
16
+
17
+
18
+ DocList({ items: Children[], type: "bullet" | "number" }).children(children)
19
+ ```
20
+
21
+ ## Props
22
+
23
+ | | | |
24
+ | ----- | -------------------------------------------- | - |
25
+ | items | [Children](../../../core/types/children/)\[] | |
26
+ | type | optional “bullet” \| “number” | |
@@ -0,0 +1,27 @@
1
+ # DocPara
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocPara } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocPara >
10
+ {children}
11
+ </DocPara>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocPara } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocPara({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,28 @@
1
+ # DocParam
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocParam } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocParam name="string">
10
+ {children}
11
+ </DocParam>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocParam } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocParam({ name: string }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
28
+ | name | string | |
@@ -0,0 +1,25 @@
1
+ # DocParamRef
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocParamRef } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocParamRef name="string" />
10
+ ```
11
+
12
+ * stc
13
+
14
+ ```ts
15
+ import { DocParamRef } from "@alloy-js/csharp/stc";
16
+
17
+
18
+ DocParamRef({ name: string }).children(children)
19
+ ```
20
+
21
+ ## Props
22
+
23
+ | | | |
24
+ | ---- | ------ | - |
25
+ | name | string | |
@@ -0,0 +1,27 @@
1
+ # DocPermission
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocPermission } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocPermission >
10
+ {children}
11
+ </DocPermission>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocPermission } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocPermission({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,27 @@
1
+ # DocRemarks
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocRemarks } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocRemarks >
10
+ {children}
11
+ </DocRemarks>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocRemarks } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocRemarks({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |
@@ -0,0 +1,27 @@
1
+ # DocReturns
2
+
3
+ * jsx
4
+
5
+ ```tsx
6
+ import { DocReturns } from "@alloy-js/csharp";
7
+
8
+
9
+ <DocReturns >
10
+ {children}
11
+ </DocReturns>
12
+ ```
13
+
14
+ * stc
15
+
16
+ ```ts
17
+ import { DocReturns } from "@alloy-js/csharp/stc";
18
+
19
+
20
+ DocReturns({ }).children(children)
21
+ ```
22
+
23
+ ## Props
24
+
25
+ | | | |
26
+ | -------- | ----------------------------------------- | - |
27
+ | children | [Children](../../../core/types/children/) | |