@alloy-js/csharp 0.18.0-dev.16 → 0.18.0-dev.18

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 (60) hide show
  1. package/dist/src/components/ClassDeclaration.d.ts +14 -1
  2. package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
  3. package/dist/src/components/ClassDeclaration.js +12 -25
  4. package/dist/src/components/ClassMethod.d.ts +14 -0
  5. package/dist/src/components/ClassMethod.d.ts.map +1 -1
  6. package/dist/src/components/ClassMethod.js +11 -1
  7. package/dist/src/components/index.d.ts +2 -0
  8. package/dist/src/components/index.d.ts.map +1 -1
  9. package/dist/src/components/index.js +3 -1
  10. package/dist/src/components/interface/declaration.d.ts +14 -1
  11. package/dist/src/components/interface/declaration.d.ts.map +1 -1
  12. package/dist/src/components/interface/declaration.js +12 -25
  13. package/dist/src/components/interface/declaration.test.js +84 -0
  14. package/dist/src/components/interface/method.d.ts +14 -0
  15. package/dist/src/components/interface/method.d.ts.map +1 -1
  16. package/dist/src/components/interface/method.js +11 -1
  17. package/dist/src/components/interface/method.test.js +79 -0
  18. package/dist/src/components/type-parameters/type-parameter-constraints.d.ts +8 -0
  19. package/dist/src/components/type-parameters/type-parameter-constraints.d.ts.map +1 -0
  20. package/dist/src/components/type-parameters/type-parameter-constraints.js +44 -0
  21. package/dist/src/components/type-parameters/type-parameter-constraints.test.d.ts +2 -0
  22. package/dist/src/components/type-parameters/type-parameter-constraints.test.d.ts.map +1 -0
  23. package/dist/src/components/type-parameters/type-parameter-constraints.test.js +67 -0
  24. package/dist/src/components/type-parameters/type-parameter.d.ts +20 -0
  25. package/dist/src/components/type-parameters/type-parameter.d.ts.map +1 -0
  26. package/dist/src/components/type-parameters/type-parameter.js +22 -0
  27. package/dist/src/components/type-parameters/type-parameters.d.ts +17 -0
  28. package/dist/src/components/type-parameters/type-parameters.d.ts.map +1 -0
  29. package/dist/src/components/type-parameters/type-parameters.js +65 -0
  30. package/dist/src/components/type-parameters/type-parameters.test.d.ts +2 -0
  31. package/dist/src/components/type-parameters/type-parameters.test.d.ts.map +1 -0
  32. package/dist/src/components/type-parameters/type-parameters.test.js +26 -0
  33. package/dist/src/components/var/declaration.d.ts +35 -0
  34. package/dist/src/components/var/declaration.d.ts.map +1 -0
  35. package/dist/src/components/var/declaration.js +40 -0
  36. package/dist/src/components/var/declaration.test.d.ts +2 -0
  37. package/dist/src/components/var/declaration.test.d.ts.map +1 -0
  38. package/dist/src/components/var/declaration.test.js +73 -0
  39. package/dist/src/name-policy.d.ts +1 -1
  40. package/dist/src/name-policy.d.ts.map +1 -1
  41. package/dist/test/class-declaration.test.js +79 -33
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +2 -2
  44. package/src/components/ClassDeclaration.tsx +23 -27
  45. package/src/components/ClassMethod.tsx +25 -1
  46. package/src/components/index.ts +2 -0
  47. package/src/components/interface/declaration.test.tsx +87 -0
  48. package/src/components/interface/declaration.tsx +23 -27
  49. package/src/components/interface/method.test.tsx +78 -0
  50. package/src/components/interface/method.tsx +24 -1
  51. package/src/components/type-parameters/type-parameter-constraints.test.tsx +93 -0
  52. package/src/components/type-parameters/type-parameter-constraints.tsx +46 -0
  53. package/src/components/type-parameters/type-parameter.tsx +35 -0
  54. package/src/components/type-parameters/type-parameters.test.tsx +19 -0
  55. package/src/components/type-parameters/type-parameters.tsx +72 -0
  56. package/src/components/var/declaration.test.tsx +59 -0
  57. package/src/components/var/declaration.tsx +47 -0
  58. package/src/name-policy.ts +1 -0
  59. package/temp/api.json +415 -23
  60. package/test/class-declaration.test.tsx +75 -25
@@ -0,0 +1,47 @@
1
+ import { Children, DeclarationProps, Name, Refkey } from "@alloy-js/core";
2
+ import { useCSharpNamePolicy } from "../../name-policy.js";
3
+ import { Declaration } from "../Declaration.jsx";
4
+
5
+ /** Props for {@link VarDeclaration} component */
6
+ export interface VarDeclarationProps
7
+ extends Omit<DeclarationProps, "nameKind"> {
8
+ /** Variable name */
9
+ name: string;
10
+ /** Type of the variable declaration. If not specified, defaults to "var" */
11
+ type?: Children;
12
+ /** Variable refkey */
13
+ refkey?: Refkey;
14
+ /** Variable value */
15
+ children?: Children;
16
+ }
17
+
18
+ /**
19
+ * Render a variable declaration
20
+ *
21
+ * @example with var
22
+ * ```tsx
23
+ * <VarDeclaration name="myVar">42</VarDeclaration>
24
+ * ```
25
+ * This will render:
26
+ * ```csharp
27
+ * var myVar = 42;
28
+ * ```
29
+ *
30
+ * @example with type
31
+ * ```tsx
32
+ * <VarDeclaration name="myVar" type="int">42</VarDeclaration>
33
+ * ```
34
+ * This will render:
35
+ * ```csharp
36
+ * int myVar = 42;
37
+ * ```
38
+ */
39
+ export function VarDeclaration(props: VarDeclarationProps) {
40
+ const name = useCSharpNamePolicy().getName(props.name, "variable");
41
+
42
+ return (
43
+ <Declaration name={name} refkey={props.refkey}>
44
+ {props.type ?? "var"} <Name /> = {props.children};
45
+ </Declaration>
46
+ );
47
+ }
@@ -5,6 +5,7 @@ import * as changecase from "change-case";
5
5
  export type CSharpElements =
6
6
  | "class"
7
7
  | "constant"
8
+ | "variable"
8
9
  | "enum"
9
10
  | "enum-member"
10
11
  | "function"
package/temp/api.json CHANGED
@@ -777,29 +777,24 @@
777
777
  {
778
778
  "kind": "PropertySignature",
779
779
  "canonicalReference": "@alloy-js/csharp!ClassDeclarationProps#typeParameters:member",
780
- "docComment": "",
780
+ "docComment": "/**\n * Type parameters for the class\n *\n * @example\n * ```tsx\n * <ClassDeclaration name=\"MyClass\" typeParameters={[\"T\"]} />\n * ```\n *\n * This will produce:\n * ```csharp\n * public class MyClass<T>\n * ```\n *\n */\n",
781
781
  "excerptTokens": [
782
782
  {
783
783
  "kind": "Content",
784
784
  "text": "typeParameters?: "
785
785
  },
786
- {
787
- "kind": "Reference",
788
- "text": "Record",
789
- "canonicalReference": "!Record:type"
790
- },
791
786
  {
792
787
  "kind": "Content",
793
- "text": "<string, "
788
+ "text": "(string | "
794
789
  },
795
790
  {
796
791
  "kind": "Reference",
797
- "text": "core.Refkey",
798
- "canonicalReference": "@alloy-js/core!Refkey:type"
792
+ "text": "TypeParameterProps",
793
+ "canonicalReference": "@alloy-js/csharp!TypeParameterProps:interface"
799
794
  },
800
795
  {
801
796
  "kind": "Content",
802
- "text": ">"
797
+ "text": ")[]"
803
798
  },
804
799
  {
805
800
  "kind": "Content",
@@ -812,7 +807,7 @@
812
807
  "name": "typeParameters",
813
808
  "propertyTypeTokenRange": {
814
809
  "startIndex": 1,
815
- "endIndex": 5
810
+ "endIndex": 4
816
811
  }
817
812
  }
818
813
  ],
@@ -1433,6 +1428,42 @@
1433
1428
  "startIndex": 1,
1434
1429
  "endIndex": 2
1435
1430
  }
1431
+ },
1432
+ {
1433
+ "kind": "PropertySignature",
1434
+ "canonicalReference": "@alloy-js/csharp!ClassMethodProps#typeParameters:member",
1435
+ "docComment": "/**\n * Type parameters for the method\n *\n * @example\n * ```tsx\n * <InterfaceMethod name=\"Test\" typeParameters={[\"T\"]} />\n * ```\n *\n * This will produce:\n * ```csharp\n * public void Test<T>()\n * ```\n *\n */\n",
1436
+ "excerptTokens": [
1437
+ {
1438
+ "kind": "Content",
1439
+ "text": "typeParameters?: "
1440
+ },
1441
+ {
1442
+ "kind": "Content",
1443
+ "text": "("
1444
+ },
1445
+ {
1446
+ "kind": "Reference",
1447
+ "text": "TypeParameterProps",
1448
+ "canonicalReference": "@alloy-js/csharp!TypeParameterProps:interface"
1449
+ },
1450
+ {
1451
+ "kind": "Content",
1452
+ "text": " | string)[]"
1453
+ },
1454
+ {
1455
+ "kind": "Content",
1456
+ "text": ";"
1457
+ }
1458
+ ],
1459
+ "isReadonly": false,
1460
+ "isOptional": true,
1461
+ "releaseTag": "Public",
1462
+ "name": "typeParameters",
1463
+ "propertyTypeTokenRange": {
1464
+ "startIndex": 1,
1465
+ "endIndex": 4
1466
+ }
1436
1467
  }
1437
1468
  ],
1438
1469
  "extendsTokenRanges": [
@@ -1675,7 +1706,7 @@
1675
1706
  },
1676
1707
  {
1677
1708
  "kind": "Content",
1678
- "text": "\"class\" | \"constant\" | \"enum\" | \"enum-member\" | \"function\" | \"interface\" | \"record\" | \"class-member-private\" | \"class-member-public\" | \"class-method\" | \"class-property\" | \"parameter\" | \"type-parameter\""
1709
+ "text": "\"class\" | \"constant\" | \"variable\" | \"enum\" | \"enum-member\" | \"function\" | \"interface\" | \"record\" | \"class-member-private\" | \"class-member-public\" | \"class-method\" | \"class-property\" | \"parameter\" | \"type-parameter\""
1679
1710
  },
1680
1711
  {
1681
1712
  "kind": "Content",
@@ -4525,29 +4556,24 @@
4525
4556
  {
4526
4557
  "kind": "PropertySignature",
4527
4558
  "canonicalReference": "@alloy-js/csharp!InterfaceDeclarationProps#typeParameters:member",
4528
- "docComment": "",
4559
+ "docComment": "/**\n * Type parameters for the interface\n *\n * @example\n * ```tsx\n * <InterfaceDeclaration name=\"IList\" typeParameters={[\"T\"]} />\n * ```\n *\n * This will produce:\n * ```csharp\n * public interface IList<T>\n * ```\n *\n */\n",
4529
4560
  "excerptTokens": [
4530
4561
  {
4531
4562
  "kind": "Content",
4532
4563
  "text": "typeParameters?: "
4533
4564
  },
4534
- {
4535
- "kind": "Reference",
4536
- "text": "Record",
4537
- "canonicalReference": "!Record:type"
4538
- },
4539
4565
  {
4540
4566
  "kind": "Content",
4541
- "text": "<string, "
4567
+ "text": "("
4542
4568
  },
4543
4569
  {
4544
4570
  "kind": "Reference",
4545
- "text": "core.Refkey",
4546
- "canonicalReference": "@alloy-js/core!Refkey:type"
4571
+ "text": "TypeParameterProps",
4572
+ "canonicalReference": "@alloy-js/csharp!TypeParameterProps:interface"
4547
4573
  },
4548
4574
  {
4549
4575
  "kind": "Content",
4550
- "text": ">"
4576
+ "text": " | string)[]"
4551
4577
  },
4552
4578
  {
4553
4579
  "kind": "Content",
@@ -4560,7 +4586,7 @@
4560
4586
  "name": "typeParameters",
4561
4587
  "propertyTypeTokenRange": {
4562
4588
  "startIndex": 1,
4563
- "endIndex": 5
4589
+ "endIndex": 4
4564
4590
  }
4565
4591
  }
4566
4592
  ],
@@ -4883,6 +4909,42 @@
4883
4909
  "startIndex": 1,
4884
4910
  "endIndex": 2
4885
4911
  }
4912
+ },
4913
+ {
4914
+ "kind": "PropertySignature",
4915
+ "canonicalReference": "@alloy-js/csharp!InterfaceMethodProps#typeParameters:member",
4916
+ "docComment": "/**\n * Type parameters for the method\n *\n * @example\n * ```tsx\n * <InterfaceMethod name=\"Test\" typeParameters={[\"T\"]} />\n * ```\n *\n * This will produce:\n * ```csharp\n * public void Test<T>()\n * ```\n *\n */\n",
4917
+ "excerptTokens": [
4918
+ {
4919
+ "kind": "Content",
4920
+ "text": "typeParameters?: "
4921
+ },
4922
+ {
4923
+ "kind": "Content",
4924
+ "text": "("
4925
+ },
4926
+ {
4927
+ "kind": "Reference",
4928
+ "text": "TypeParameterProps",
4929
+ "canonicalReference": "@alloy-js/csharp!TypeParameterProps:interface"
4930
+ },
4931
+ {
4932
+ "kind": "Content",
4933
+ "text": " | string)[]"
4934
+ },
4935
+ {
4936
+ "kind": "Content",
4937
+ "text": ";"
4938
+ }
4939
+ ],
4940
+ "isReadonly": false,
4941
+ "isOptional": true,
4942
+ "releaseTag": "Public",
4943
+ "name": "typeParameters",
4944
+ "propertyTypeTokenRange": {
4945
+ "startIndex": 1,
4946
+ "endIndex": 4
4947
+ }
4886
4948
  }
4887
4949
  ],
4888
4950
  "extendsTokenRanges": [
@@ -7437,6 +7499,133 @@
7437
7499
  ],
7438
7500
  "extendsTokenRanges": []
7439
7501
  },
7502
+ {
7503
+ "kind": "Interface",
7504
+ "canonicalReference": "@alloy-js/csharp!TypeParameterProps:interface",
7505
+ "docComment": "/**\n * Information for a TypeScript generic type parameter.\n */\n",
7506
+ "excerptTokens": [
7507
+ {
7508
+ "kind": "Content",
7509
+ "text": "export interface TypeParameterProps "
7510
+ }
7511
+ ],
7512
+ "fileUrlPath": "src/components/type-parameters/type-parameter.tsx",
7513
+ "releaseTag": "Public",
7514
+ "name": "TypeParameterProps",
7515
+ "preserveMemberOrder": false,
7516
+ "members": [
7517
+ {
7518
+ "kind": "PropertySignature",
7519
+ "canonicalReference": "@alloy-js/csharp!TypeParameterProps#constraints:member",
7520
+ "docComment": "/**\n * The parameter constraint\n */\n",
7521
+ "excerptTokens": [
7522
+ {
7523
+ "kind": "Content",
7524
+ "text": "readonly constraints?: "
7525
+ },
7526
+ {
7527
+ "kind": "Reference",
7528
+ "text": "Children",
7529
+ "canonicalReference": "@alloy-js/core!Children:type"
7530
+ },
7531
+ {
7532
+ "kind": "Content",
7533
+ "text": " | "
7534
+ },
7535
+ {
7536
+ "kind": "Reference",
7537
+ "text": "Children",
7538
+ "canonicalReference": "@alloy-js/core!Children:type"
7539
+ },
7540
+ {
7541
+ "kind": "Content",
7542
+ "text": "[]"
7543
+ },
7544
+ {
7545
+ "kind": "Content",
7546
+ "text": ";"
7547
+ }
7548
+ ],
7549
+ "isReadonly": true,
7550
+ "isOptional": true,
7551
+ "releaseTag": "Public",
7552
+ "name": "constraints",
7553
+ "propertyTypeTokenRange": {
7554
+ "startIndex": 1,
7555
+ "endIndex": 5
7556
+ }
7557
+ },
7558
+ {
7559
+ "kind": "PropertySignature",
7560
+ "canonicalReference": "@alloy-js/csharp!TypeParameterProps#name:member",
7561
+ "docComment": "/**\n * The name of the type parameter.\n */\n",
7562
+ "excerptTokens": [
7563
+ {
7564
+ "kind": "Content",
7565
+ "text": "readonly name: "
7566
+ },
7567
+ {
7568
+ "kind": "Content",
7569
+ "text": "string"
7570
+ },
7571
+ {
7572
+ "kind": "Content",
7573
+ "text": ";"
7574
+ }
7575
+ ],
7576
+ "isReadonly": true,
7577
+ "isOptional": false,
7578
+ "releaseTag": "Public",
7579
+ "name": "name",
7580
+ "propertyTypeTokenRange": {
7581
+ "startIndex": 1,
7582
+ "endIndex": 2
7583
+ }
7584
+ },
7585
+ {
7586
+ "kind": "PropertySignature",
7587
+ "canonicalReference": "@alloy-js/csharp!TypeParameterProps#refkey:member",
7588
+ "docComment": "/**\n * A refkey or array of refkeys for this type parameter.\n */\n",
7589
+ "excerptTokens": [
7590
+ {
7591
+ "kind": "Content",
7592
+ "text": "readonly refkey?: "
7593
+ },
7594
+ {
7595
+ "kind": "Reference",
7596
+ "text": "Refkey",
7597
+ "canonicalReference": "@alloy-js/core!Refkey:type"
7598
+ },
7599
+ {
7600
+ "kind": "Content",
7601
+ "text": " | "
7602
+ },
7603
+ {
7604
+ "kind": "Reference",
7605
+ "text": "Refkey",
7606
+ "canonicalReference": "@alloy-js/core!Refkey:type"
7607
+ },
7608
+ {
7609
+ "kind": "Content",
7610
+ "text": "[]"
7611
+ },
7612
+ {
7613
+ "kind": "Content",
7614
+ "text": ";"
7615
+ }
7616
+ ],
7617
+ "isReadonly": true,
7618
+ "isOptional": true,
7619
+ "releaseTag": "Public",
7620
+ "name": "refkey",
7621
+ "propertyTypeTokenRange": {
7622
+ "startIndex": 1,
7623
+ "endIndex": 5
7624
+ }
7625
+ }
7626
+ ],
7627
+ "extendsTokenRanges": []
7628
+ },
7440
7629
  {
7441
7630
  "kind": "Function",
7442
7631
  "canonicalReference": "@alloy-js/csharp!useCSharpNamePolicy:function(1)",
@@ -7670,6 +7859,209 @@
7670
7859
  }
7671
7860
  ],
7672
7861
  "extendsTokenRanges": []
7862
+ },
7863
+ {
7864
+ "kind": "Function",
7865
+ "canonicalReference": "@alloy-js/csharp!VarDeclaration:function(1)",
7866
+ "docComment": "/**\n * Render a variable declaration\n *\n * @example\n *\n * with var\n * ```tsx\n * <VarDeclaration name=\"myVar\">42</VarDeclaration>\n * ```\n *\n * This will render:\n * ```csharp\n * var myVar = 42;\n * ```\n *\n * @example\n *\n * with type\n * ```tsx\n * <VarDeclaration name=\"myVar\" type=\"int\">42</VarDeclaration>\n * ```\n *\n * This will render:\n * ```csharp\n * int myVar = 42;\n * ```\n *\n */\n",
7867
+ "excerptTokens": [
7868
+ {
7869
+ "kind": "Content",
7870
+ "text": "export declare function VarDeclaration(props: "
7871
+ },
7872
+ {
7873
+ "kind": "Reference",
7874
+ "text": "VarDeclarationProps",
7875
+ "canonicalReference": "@alloy-js/csharp!VarDeclarationProps:interface"
7876
+ },
7877
+ {
7878
+ "kind": "Content",
7879
+ "text": "): "
7880
+ },
7881
+ {
7882
+ "kind": "Reference",
7883
+ "text": "Children",
7884
+ "canonicalReference": "@alloy-js/core!Children:type"
7885
+ },
7886
+ {
7887
+ "kind": "Content",
7888
+ "text": ";"
7889
+ }
7890
+ ],
7891
+ "fileUrlPath": "src/components/var/declaration.tsx",
7892
+ "returnTypeTokenRange": {
7893
+ "startIndex": 3,
7894
+ "endIndex": 4
7895
+ },
7896
+ "releaseTag": "Public",
7897
+ "overloadIndex": 1,
7898
+ "parameters": [
7899
+ {
7900
+ "parameterName": "props",
7901
+ "parameterTypeTokenRange": {
7902
+ "startIndex": 1,
7903
+ "endIndex": 2
7904
+ },
7905
+ "isOptional": false
7906
+ }
7907
+ ],
7908
+ "name": "VarDeclaration"
7909
+ },
7910
+ {
7911
+ "kind": "Interface",
7912
+ "canonicalReference": "@alloy-js/csharp!VarDeclarationProps:interface",
7913
+ "docComment": "/**\n * Props for {@link VarDeclaration} component\n */\n",
7914
+ "excerptTokens": [
7915
+ {
7916
+ "kind": "Content",
7917
+ "text": "export interface VarDeclarationProps extends "
7918
+ },
7919
+ {
7920
+ "kind": "Reference",
7921
+ "text": "Omit",
7922
+ "canonicalReference": "!Omit:type"
7923
+ },
7924
+ {
7925
+ "kind": "Content",
7926
+ "text": "<"
7927
+ },
7928
+ {
7929
+ "kind": "Reference",
7930
+ "text": "DeclarationProps",
7931
+ "canonicalReference": "@alloy-js/core!DeclarationProps:type"
7932
+ },
7933
+ {
7934
+ "kind": "Content",
7935
+ "text": ", \"nameKind\">"
7936
+ },
7937
+ {
7938
+ "kind": "Content",
7939
+ "text": " "
7940
+ }
7941
+ ],
7942
+ "fileUrlPath": "src/components/var/declaration.tsx",
7943
+ "releaseTag": "Public",
7944
+ "name": "VarDeclarationProps",
7945
+ "preserveMemberOrder": false,
7946
+ "members": [
7947
+ {
7948
+ "kind": "PropertySignature",
7949
+ "canonicalReference": "@alloy-js/csharp!VarDeclarationProps#children:member",
7950
+ "docComment": "/**\n * Variable value\n */\n",
7951
+ "excerptTokens": [
7952
+ {
7953
+ "kind": "Content",
7954
+ "text": "children?: "
7955
+ },
7956
+ {
7957
+ "kind": "Reference",
7958
+ "text": "Children",
7959
+ "canonicalReference": "@alloy-js/core!Children:type"
7960
+ },
7961
+ {
7962
+ "kind": "Content",
7963
+ "text": ";"
7964
+ }
7965
+ ],
7966
+ "isReadonly": false,
7967
+ "isOptional": true,
7968
+ "releaseTag": "Public",
7969
+ "name": "children",
7970
+ "propertyTypeTokenRange": {
7971
+ "startIndex": 1,
7972
+ "endIndex": 2
7973
+ }
7974
+ },
7975
+ {
7976
+ "kind": "PropertySignature",
7977
+ "canonicalReference": "@alloy-js/csharp!VarDeclarationProps#name:member",
7978
+ "docComment": "/**\n * Variable name\n */\n",
7979
+ "excerptTokens": [
7980
+ {
7981
+ "kind": "Content",
7982
+ "text": "name: "
7983
+ },
7984
+ {
7985
+ "kind": "Content",
7986
+ "text": "string"
7987
+ },
7988
+ {
7989
+ "kind": "Content",
7990
+ "text": ";"
7991
+ }
7992
+ ],
7993
+ "isReadonly": false,
7994
+ "isOptional": false,
7995
+ "releaseTag": "Public",
7996
+ "name": "name",
7997
+ "propertyTypeTokenRange": {
7998
+ "startIndex": 1,
7999
+ "endIndex": 2
8000
+ }
8001
+ },
8002
+ {
8003
+ "kind": "PropertySignature",
8004
+ "canonicalReference": "@alloy-js/csharp!VarDeclarationProps#refkey:member",
8005
+ "docComment": "/**\n * Variable refkey\n */\n",
8006
+ "excerptTokens": [
8007
+ {
8008
+ "kind": "Content",
8009
+ "text": "refkey?: "
8010
+ },
8011
+ {
8012
+ "kind": "Reference",
8013
+ "text": "Refkey",
8014
+ "canonicalReference": "@alloy-js/core!Refkey:type"
8015
+ },
8016
+ {
8017
+ "kind": "Content",
8018
+ "text": ";"
8019
+ }
8020
+ ],
8021
+ "isReadonly": false,
8022
+ "isOptional": true,
8023
+ "releaseTag": "Public",
8024
+ "name": "refkey",
8025
+ "propertyTypeTokenRange": {
8026
+ "startIndex": 1,
8027
+ "endIndex": 2
8028
+ }
8029
+ },
8030
+ {
8031
+ "kind": "PropertySignature",
8032
+ "canonicalReference": "@alloy-js/csharp!VarDeclarationProps#type:member",
8033
+ "docComment": "/**\n * Type of the variable declaration. If not specified, defaults to \"var\"\n */\n",
8034
+ "excerptTokens": [
8035
+ {
8036
+ "kind": "Content",
8037
+ "text": "type?: "
8038
+ },
8039
+ {
8040
+ "kind": "Reference",
8041
+ "text": "Children",
8042
+ "canonicalReference": "@alloy-js/core!Children:type"
8043
+ },
8044
+ {
8045
+ "kind": "Content",
8046
+ "text": ";"
8047
+ }
8048
+ ],
8049
+ "isReadonly": false,
8050
+ "isOptional": true,
8051
+ "releaseTag": "Public",
8052
+ "name": "type",
8053
+ "propertyTypeTokenRange": {
8054
+ "startIndex": 1,
8055
+ "endIndex": 2
8056
+ }
8057
+ }
8058
+ ],
8059
+ "extendsTokenRanges": [
8060
+ {
8061
+ "startIndex": 1,
8062
+ "endIndex": 5
8063
+ }
8064
+ ]
7673
8065
  }
7674
8066
  ]
7675
8067
  }