@alloy-js/csharp 0.20.0-dev.1 → 0.20.0-dev.3

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 (42) hide show
  1. package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
  2. package/dist/src/components/EnumDeclaration.js +2 -5
  3. package/dist/src/components/class/declaration.js +1 -1
  4. package/dist/src/components/class/declaration.test.js +22 -1
  5. package/dist/src/components/constructor/constructor.d.ts.map +1 -1
  6. package/dist/src/components/constructor/constructor.js +2 -5
  7. package/dist/src/components/field/field.d.ts.map +1 -1
  8. package/dist/src/components/field/field.js +2 -5
  9. package/dist/src/components/interface/method.d.ts.map +1 -1
  10. package/dist/src/components/interface/method.js +2 -5
  11. package/dist/src/components/interface/property.d.ts.map +1 -1
  12. package/dist/src/components/interface/property.js +2 -5
  13. package/dist/src/components/method/method.d.ts.map +1 -1
  14. package/dist/src/components/method/method.js +2 -5
  15. package/dist/src/components/parameters/parameters.d.ts.map +1 -1
  16. package/dist/src/components/parameters/parameters.js +2 -5
  17. package/dist/src/components/property/property.d.ts.map +1 -1
  18. package/dist/src/components/property/property.js +2 -5
  19. package/dist/src/components/record/declaration.d.ts +18 -0
  20. package/dist/src/components/record/declaration.d.ts.map +1 -1
  21. package/dist/src/components/record/declaration.js +11 -1
  22. package/dist/src/components/record/declaration.test.js +56 -2
  23. package/dist/src/symbols/scopes.d.ts +6 -0
  24. package/dist/src/symbols/scopes.d.ts.map +1 -1
  25. package/dist/src/symbols/scopes.js +11 -0
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +5 -5
  28. package/src/components/EnumDeclaration.tsx +6 -7
  29. package/src/components/class/declaration.test.tsx +19 -1
  30. package/src/components/class/declaration.tsx +1 -1
  31. package/src/components/constructor/constructor.tsx +5 -10
  32. package/src/components/field/field.tsx +2 -10
  33. package/src/components/interface/method.tsx +6 -7
  34. package/src/components/interface/property.tsx +6 -7
  35. package/src/components/method/method.tsx +5 -10
  36. package/src/components/parameters/parameters.tsx +7 -12
  37. package/src/components/property/property.tsx +9 -12
  38. package/src/components/record/declaration.test.tsx +53 -2
  39. package/src/components/record/declaration.tsx +24 -0
  40. package/src/symbols/scopes.ts +20 -0
  41. package/temp/api.json +205 -1
  42. package/tsdoc-metadata.json +1 -1
package/temp/api.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.52.8",
4
+ "toolVersion": "7.52.9",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -325,6 +325,107 @@
325
325
  ],
326
326
  "extendsTokenRanges": []
327
327
  },
328
+ {
329
+ "kind": "Function",
330
+ "canonicalReference": "@alloy-js/csharp!assertMemberOfScope:function(1)",
331
+ "docComment": "",
332
+ "excerptTokens": [
333
+ {
334
+ "kind": "Content",
335
+ "text": "export declare function assertMemberOfScope<T extends "
336
+ },
337
+ {
338
+ "kind": "Content",
339
+ "text": "unknown[]"
340
+ },
341
+ {
342
+ "kind": "Content",
343
+ "text": ">(scope: "
344
+ },
345
+ {
346
+ "kind": "Reference",
347
+ "text": "CSharpOutputScope",
348
+ "canonicalReference": "@alloy-js/csharp!CSharpOutputScope:type"
349
+ },
350
+ {
351
+ "kind": "Content",
352
+ "text": ", names: "
353
+ },
354
+ {
355
+ "kind": "Content",
356
+ "text": "T"
357
+ },
358
+ {
359
+ "kind": "Content",
360
+ "text": "): "
361
+ },
362
+ {
363
+ "kind": "Content",
364
+ "text": "asserts "
365
+ },
366
+ {
367
+ "kind": "Reference",
368
+ "text": "scope",
369
+ "canonicalReference": "@alloy-js/csharp!~scope"
370
+ },
371
+ {
372
+ "kind": "Content",
373
+ "text": " is "
374
+ },
375
+ {
376
+ "kind": "Reference",
377
+ "text": "CSharpMemberScope",
378
+ "canonicalReference": "@alloy-js/csharp!CSharpMemberScope:class"
379
+ },
380
+ {
381
+ "kind": "Content",
382
+ "text": " & {\n name: T[number];\n}"
383
+ },
384
+ {
385
+ "kind": "Content",
386
+ "text": ";"
387
+ }
388
+ ],
389
+ "fileUrlPath": "src/symbols/scopes.ts",
390
+ "returnTypeTokenRange": {
391
+ "startIndex": 7,
392
+ "endIndex": 12
393
+ },
394
+ "releaseTag": "Public",
395
+ "overloadIndex": 1,
396
+ "parameters": [
397
+ {
398
+ "parameterName": "scope",
399
+ "parameterTypeTokenRange": {
400
+ "startIndex": 3,
401
+ "endIndex": 4
402
+ },
403
+ "isOptional": false
404
+ },
405
+ {
406
+ "parameterName": "names",
407
+ "parameterTypeTokenRange": {
408
+ "startIndex": 5,
409
+ "endIndex": 6
410
+ },
411
+ "isOptional": false
412
+ }
413
+ ],
414
+ "typeParameters": [
415
+ {
416
+ "typeParameterName": "T",
417
+ "constraintTokenRange": {
418
+ "startIndex": 1,
419
+ "endIndex": 2
420
+ },
421
+ "defaultTypeTokenRange": {
422
+ "startIndex": 0,
423
+ "endIndex": 0
424
+ }
425
+ }
426
+ ],
427
+ "name": "assertMemberOfScope"
428
+ },
328
429
  {
329
430
  "kind": "Variable",
330
431
  "canonicalReference": "@alloy-js/csharp!Attribute:var",
@@ -7880,6 +7981,38 @@
7880
7981
  "endIndex": 2
7881
7982
  }
7882
7983
  },
7984
+ {
7985
+ "kind": "PropertySignature",
7986
+ "canonicalReference": "@alloy-js/csharp!RecordDeclarationProps#primaryConstructor:member",
7987
+ "docComment": "/**\n * Set the primary constructor parameters\n *\n * @example\n * ```tsx\n * <ClassDeclaration name=\"MyClass\" primaryConstructor={[\n * {name: \"value\", type: \"int\"}\n * ]}>\n * ```\n *\n * This will produce:\n * ```csharp\n * public class MyClass(int value)\n * {\n *\n * }\n * ```\n *\n */\n",
7988
+ "excerptTokens": [
7989
+ {
7990
+ "kind": "Content",
7991
+ "text": "primaryConstructor?: "
7992
+ },
7993
+ {
7994
+ "kind": "Reference",
7995
+ "text": "ParameterProps",
7996
+ "canonicalReference": "@alloy-js/csharp!ParameterProps:interface"
7997
+ },
7998
+ {
7999
+ "kind": "Content",
8000
+ "text": "[]"
8001
+ },
8002
+ {
8003
+ "kind": "Content",
8004
+ "text": ";"
8005
+ }
8006
+ ],
8007
+ "isReadonly": false,
8008
+ "isOptional": true,
8009
+ "releaseTag": "Public",
8010
+ "name": "primaryConstructor",
8011
+ "propertyTypeTokenRange": {
8012
+ "startIndex": 1,
8013
+ "endIndex": 3
8014
+ }
8015
+ },
7883
8016
  {
7884
8017
  "kind": "PropertySignature",
7885
8018
  "canonicalReference": "@alloy-js/csharp!RecordDeclarationProps#refkey:member",
@@ -8914,6 +9047,77 @@
8914
9047
  ],
8915
9048
  "extendsTokenRanges": []
8916
9049
  },
9050
+ {
9051
+ "kind": "Function",
9052
+ "canonicalReference": "@alloy-js/csharp!useCSharpMemberScope:function(1)",
9053
+ "docComment": "",
9054
+ "excerptTokens": [
9055
+ {
9056
+ "kind": "Content",
9057
+ "text": "export declare function useCSharpMemberScope<T extends "
9058
+ },
9059
+ {
9060
+ "kind": "Content",
9061
+ "text": "unknown[]"
9062
+ },
9063
+ {
9064
+ "kind": "Content",
9065
+ "text": ">(names: "
9066
+ },
9067
+ {
9068
+ "kind": "Content",
9069
+ "text": "T"
9070
+ },
9071
+ {
9072
+ "kind": "Content",
9073
+ "text": "): "
9074
+ },
9075
+ {
9076
+ "kind": "Reference",
9077
+ "text": "CSharpMemberScope",
9078
+ "canonicalReference": "@alloy-js/csharp!CSharpMemberScope:class"
9079
+ },
9080
+ {
9081
+ "kind": "Content",
9082
+ "text": " & {\n name: T[number];\n}"
9083
+ },
9084
+ {
9085
+ "kind": "Content",
9086
+ "text": ";"
9087
+ }
9088
+ ],
9089
+ "fileUrlPath": "src/symbols/scopes.ts",
9090
+ "returnTypeTokenRange": {
9091
+ "startIndex": 5,
9092
+ "endIndex": 7
9093
+ },
9094
+ "releaseTag": "Public",
9095
+ "overloadIndex": 1,
9096
+ "parameters": [
9097
+ {
9098
+ "parameterName": "names",
9099
+ "parameterTypeTokenRange": {
9100
+ "startIndex": 3,
9101
+ "endIndex": 4
9102
+ },
9103
+ "isOptional": false
9104
+ }
9105
+ ],
9106
+ "typeParameters": [
9107
+ {
9108
+ "typeParameterName": "T",
9109
+ "constraintTokenRange": {
9110
+ "startIndex": 1,
9111
+ "endIndex": 2
9112
+ },
9113
+ "defaultTypeTokenRange": {
9114
+ "startIndex": 0,
9115
+ "endIndex": 0
9116
+ }
9117
+ }
9118
+ ],
9119
+ "name": "useCSharpMemberScope"
9120
+ },
8917
9121
  {
8918
9122
  "kind": "Function",
8919
9123
  "canonicalReference": "@alloy-js/csharp!useCSharpNamePolicy:function(1)",
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.8"
8
+ "packageVersion": "7.52.9"
9
9
  }
10
10
  ]
11
11
  }