@alloy-js/typescript 0.6.0 → 0.7.0

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 (65) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/src/components/ArrayExpression.d.ts.map +1 -1
  3. package/dist/src/components/ArrayExpression.js +1 -1
  4. package/dist/src/components/ArrayExpression.js.map +1 -1
  5. package/dist/src/components/Declaration.d.ts +4 -0
  6. package/dist/src/components/Declaration.d.ts.map +1 -1
  7. package/dist/src/components/Declaration.js +3 -2
  8. package/dist/src/components/Declaration.js.map +1 -1
  9. package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
  10. package/dist/src/components/EnumDeclaration.js +3 -2
  11. package/dist/src/components/EnumDeclaration.js.map +1 -1
  12. package/dist/src/components/ExportStatement.d.ts.map +1 -1
  13. package/dist/src/components/ExportStatement.js +3 -1
  14. package/dist/src/components/ExportStatement.js.map +1 -1
  15. package/dist/src/components/FunctionDeclaration.d.ts +2 -1
  16. package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
  17. package/dist/src/components/FunctionDeclaration.js +2 -1
  18. package/dist/src/components/FunctionDeclaration.js.map +1 -1
  19. package/dist/src/components/MemberChainExpression.d.ts +2 -2
  20. package/dist/src/components/MemberChainExpression.d.ts.map +1 -1
  21. package/dist/src/components/MemberChainExpression.js +43 -7
  22. package/dist/src/components/MemberChainExpression.js.map +1 -1
  23. package/dist/src/components/PackageDirectory.d.ts +1 -3
  24. package/dist/src/components/PackageDirectory.d.ts.map +1 -1
  25. package/dist/src/components/PackageDirectory.js +9 -16
  26. package/dist/src/components/PackageDirectory.js.map +1 -1
  27. package/dist/src/components/PackageJson.d.ts +39 -0
  28. package/dist/src/components/PackageJson.d.ts.map +1 -1
  29. package/dist/src/components/PackageJson.js +30 -12
  30. package/dist/src/components/PackageJson.js.map +1 -1
  31. package/dist/src/components/VarDeclaration.d.ts.map +1 -1
  32. package/dist/src/components/VarDeclaration.js +3 -2
  33. package/dist/src/components/VarDeclaration.js.map +1 -1
  34. package/dist/src/symbols/reference.d.ts.map +1 -1
  35. package/dist/src/symbols/reference.js +5 -2
  36. package/dist/src/symbols/reference.js.map +1 -1
  37. package/dist/src/symbols/ts-output-symbol.d.ts +2 -1
  38. package/dist/src/symbols/ts-output-symbol.d.ts.map +1 -1
  39. package/dist/src/symbols/ts-output-symbol.js +4 -1
  40. package/dist/src/symbols/ts-output-symbol.js.map +1 -1
  41. package/dist/src/symbols/ts-package-scope.d.ts +0 -15
  42. package/dist/src/symbols/ts-package-scope.d.ts.map +1 -1
  43. package/dist/src/symbols/ts-package-scope.js +0 -8
  44. package/dist/src/symbols/ts-package-scope.js.map +1 -1
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +2 -2
  47. package/src/components/ArrayExpression.tsx +5 -1
  48. package/src/components/Declaration.tsx +7 -2
  49. package/src/components/EnumDeclaration.tsx +2 -2
  50. package/src/components/ExportStatement.tsx +3 -1
  51. package/src/components/FunctionDeclaration.tsx +4 -2
  52. package/src/components/MemberChainExpression.tsx +37 -5
  53. package/src/components/PackageDirectory.tsx +12 -22
  54. package/src/components/PackageJson.tsx +86 -27
  55. package/src/components/VarDeclaration.tsx +2 -2
  56. package/src/symbols/reference.ts +7 -4
  57. package/src/symbols/ts-output-symbol.ts +6 -2
  58. package/src/symbols/ts-package-scope.ts +0 -28
  59. package/temp/api.json +375 -304
  60. package/test/array.test.tsx +12 -0
  61. package/test/imports.test.tsx +25 -10
  62. package/test/interface.test.tsx +3 -3
  63. package/test/member-chain.test.tsx +77 -0
  64. package/test/package-external.test.tsx +98 -3
  65. package/test/package.test.tsx +56 -3
package/temp/api.json CHANGED
@@ -621,6 +621,38 @@
621
621
  "startIndex": 1,
622
622
  "endIndex": 2
623
623
  }
624
+ },
625
+ {
626
+ "kind": "PropertySignature",
627
+ "canonicalReference": "@alloy-js/typescript!BaseDeclarationProps#refkeys:member",
628
+ "docComment": "/**\n * Multiple unique keys for this declaration.\n */\n",
629
+ "excerptTokens": [
630
+ {
631
+ "kind": "Content",
632
+ "text": "refkeys?: "
633
+ },
634
+ {
635
+ "kind": "Reference",
636
+ "text": "Refkey",
637
+ "canonicalReference": "@alloy-js/core!Refkey:type"
638
+ },
639
+ {
640
+ "kind": "Content",
641
+ "text": "[]"
642
+ },
643
+ {
644
+ "kind": "Content",
645
+ "text": ";"
646
+ }
647
+ ],
648
+ "isReadonly": false,
649
+ "isOptional": true,
650
+ "releaseTag": "Public",
651
+ "name": "refkeys",
652
+ "propertyTypeTokenRange": {
653
+ "startIndex": 1,
654
+ "endIndex": 3
655
+ }
624
656
  }
625
657
  ],
626
658
  "extendsTokenRanges": []
@@ -2296,7 +2328,7 @@
2296
2328
  "excerptTokens": [
2297
2329
  {
2298
2330
  "kind": "Content",
2299
- "text": "refkey: "
2331
+ "text": "refkey?: "
2300
2332
  },
2301
2333
  {
2302
2334
  "kind": "Reference",
@@ -2309,7 +2341,7 @@
2309
2341
  }
2310
2342
  ],
2311
2343
  "isReadonly": false,
2312
- "isOptional": false,
2344
+ "isOptional": true,
2313
2345
  "releaseTag": "Public",
2314
2346
  "name": "refkey",
2315
2347
  "propertyTypeTokenRange": {
@@ -2317,6 +2349,38 @@
2317
2349
  "endIndex": 2
2318
2350
  }
2319
2351
  },
2352
+ {
2353
+ "kind": "PropertySignature",
2354
+ "canonicalReference": "@alloy-js/typescript!createTsSymbolOptions#refkeys:member",
2355
+ "docComment": "",
2356
+ "excerptTokens": [
2357
+ {
2358
+ "kind": "Content",
2359
+ "text": "refkeys?: "
2360
+ },
2361
+ {
2362
+ "kind": "Reference",
2363
+ "text": "Refkey",
2364
+ "canonicalReference": "@alloy-js/core!Refkey:type"
2365
+ },
2366
+ {
2367
+ "kind": "Content",
2368
+ "text": "[]"
2369
+ },
2370
+ {
2371
+ "kind": "Content",
2372
+ "text": ";"
2373
+ }
2374
+ ],
2375
+ "isReadonly": false,
2376
+ "isOptional": true,
2377
+ "releaseTag": "Public",
2378
+ "name": "refkeys",
2379
+ "propertyTypeTokenRange": {
2380
+ "startIndex": 1,
2381
+ "endIndex": 3
2382
+ }
2383
+ },
2320
2384
  {
2321
2385
  "kind": "PropertySignature",
2322
2386
  "canonicalReference": "@alloy-js/typescript!createTsSymbolOptions#scope:member",
@@ -4624,7 +4688,7 @@
4624
4688
  {
4625
4689
  "kind": "Function",
4626
4690
  "canonicalReference": "@alloy-js/typescript!MemberChainExpression:function(1)",
4627
- "docComment": "/**\n * Create a member chain expression, which is a member expression comprised of either children or {@link FunctionCallExpression} components. It is formatted such that when a linebreak is required, the FunctionCallExpression\n */\n",
4691
+ "docComment": "/**\n * Create a member chain expression, which is a member expression comprised of either children, {@link FunctionCallExpression} components, or nested member chain expression components. Other component types are ignored.\n */\n",
4628
4692
  "excerptTokens": [
4629
4693
  {
4630
4694
  "kind": "Content",
@@ -7049,75 +7113,6 @@
7049
7113
  "endIndex": 2
7050
7114
  }
7051
7115
  },
7052
- {
7053
- "kind": "PropertySignature",
7054
- "canonicalReference": "@alloy-js/typescript!PackageDirectoryProps#dependencies:member",
7055
- "docComment": "",
7056
- "excerptTokens": [
7057
- {
7058
- "kind": "Content",
7059
- "text": "dependencies?: "
7060
- },
7061
- {
7062
- "kind": "Reference",
7063
- "text": "Record",
7064
- "canonicalReference": "!Record:type"
7065
- },
7066
- {
7067
- "kind": "Content",
7068
- "text": "<string, string>"
7069
- },
7070
- {
7071
- "kind": "Content",
7072
- "text": ";"
7073
- }
7074
- ],
7075
- "isReadonly": false,
7076
- "isOptional": true,
7077
- "releaseTag": "Public",
7078
- "name": "dependencies",
7079
- "propertyTypeTokenRange": {
7080
- "startIndex": 1,
7081
- "endIndex": 3
7082
- }
7083
- },
7084
- {
7085
- "kind": "PropertySignature",
7086
- "canonicalReference": "@alloy-js/typescript!PackageDirectoryProps#exports:member",
7087
- "docComment": "",
7088
- "excerptTokens": [
7089
- {
7090
- "kind": "Content",
7091
- "text": "exports?: "
7092
- },
7093
- {
7094
- "kind": "Reference",
7095
- "text": "PackageExports",
7096
- "canonicalReference": "@alloy-js/typescript!PackageExports:interface"
7097
- },
7098
- {
7099
- "kind": "Content",
7100
- "text": " | "
7101
- },
7102
- {
7103
- "kind": "Reference",
7104
- "text": "ExportPath",
7105
- "canonicalReference": "@alloy-js/typescript!ExportPath:type"
7106
- },
7107
- {
7108
- "kind": "Content",
7109
- "text": ";"
7110
- }
7111
- ],
7112
- "isReadonly": false,
7113
- "isOptional": true,
7114
- "releaseTag": "Public",
7115
- "name": "exports",
7116
- "propertyTypeTokenRange": {
7117
- "startIndex": 1,
7118
- "endIndex": 4
7119
- }
7120
- },
7121
7116
  {
7122
7117
  "kind": "PropertySignature",
7123
7118
  "canonicalReference": "@alloy-js/typescript!PackageDirectoryProps#path:member",
@@ -7246,7 +7241,7 @@
7246
7241
  {
7247
7242
  "kind": "Function",
7248
7243
  "canonicalReference": "@alloy-js/typescript!PackageJsonFile:function(1)",
7249
- "docComment": "",
7244
+ "docComment": "/**\n * A file containing a package.json that defines a package. When placed inside a {@link PackageDirectory}, it will contain dependencies and exports for symbols defined inside the package. Additional dependencies and exports can be provided.\n *\n * @example\n * ```tsx\n * <PackageJsonFile name=\"my-package\" version=\"1.0.0\" />\n * ```\n *\n */\n",
7250
7245
  "excerptTokens": [
7251
7246
  {
7252
7247
  "kind": "Content",
@@ -7311,12 +7306,39 @@
7311
7306
  "members": [
7312
7307
  {
7313
7308
  "kind": "PropertySignature",
7314
- "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#devDependencies:member",
7315
- "docComment": "",
7309
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#author:member",
7310
+ "docComment": "/**\n * The author of the package\n */\n",
7316
7311
  "excerptTokens": [
7317
7312
  {
7318
7313
  "kind": "Content",
7319
- "text": "devDependencies?: "
7314
+ "text": "author?: "
7315
+ },
7316
+ {
7317
+ "kind": "Content",
7318
+ "text": "string"
7319
+ },
7320
+ {
7321
+ "kind": "Content",
7322
+ "text": ";"
7323
+ }
7324
+ ],
7325
+ "isReadonly": false,
7326
+ "isOptional": true,
7327
+ "releaseTag": "Public",
7328
+ "name": "author",
7329
+ "propertyTypeTokenRange": {
7330
+ "startIndex": 1,
7331
+ "endIndex": 2
7332
+ }
7333
+ },
7334
+ {
7335
+ "kind": "PropertySignature",
7336
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#dependencies:member",
7337
+ "docComment": "/**\n * The hard-coded dependencies of the package. References to external packages will add to the dependency list automatically. Only list dependencies here that are not referenced via refkey.\n */\n",
7338
+ "excerptTokens": [
7339
+ {
7340
+ "kind": "Content",
7341
+ "text": "dependencies?: "
7320
7342
  },
7321
7343
  {
7322
7344
  "kind": "Reference",
@@ -7335,7 +7357,7 @@
7335
7357
  "isReadonly": false,
7336
7358
  "isOptional": true,
7337
7359
  "releaseTag": "Public",
7338
- "name": "devDependencies",
7360
+ "name": "dependencies",
7339
7361
  "propertyTypeTokenRange": {
7340
7362
  "startIndex": 1,
7341
7363
  "endIndex": 3
@@ -7343,12 +7365,12 @@
7343
7365
  },
7344
7366
  {
7345
7367
  "kind": "PropertySignature",
7346
- "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#name:member",
7347
- "docComment": "",
7368
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#description:member",
7369
+ "docComment": "/**\n * The description of the package\n */\n",
7348
7370
  "excerptTokens": [
7349
7371
  {
7350
7372
  "kind": "Content",
7351
- "text": "name: "
7373
+ "text": "description?: "
7352
7374
  },
7353
7375
  {
7354
7376
  "kind": "Content",
@@ -7360,9 +7382,9 @@
7360
7382
  }
7361
7383
  ],
7362
7384
  "isReadonly": false,
7363
- "isOptional": false,
7385
+ "isOptional": true,
7364
7386
  "releaseTag": "Public",
7365
- "name": "name",
7387
+ "name": "description",
7366
7388
  "propertyTypeTokenRange": {
7367
7389
  "startIndex": 1,
7368
7390
  "endIndex": 2
@@ -7370,12 +7392,12 @@
7370
7392
  },
7371
7393
  {
7372
7394
  "kind": "PropertySignature",
7373
- "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#scripts:member",
7374
- "docComment": "",
7395
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#devDependencies:member",
7396
+ "docComment": "/**\n * The dev dependencies of the package.\n */\n",
7375
7397
  "excerptTokens": [
7376
7398
  {
7377
7399
  "kind": "Content",
7378
- "text": "scripts?: "
7400
+ "text": "devDependencies?: "
7379
7401
  },
7380
7402
  {
7381
7403
  "kind": "Reference",
@@ -7394,7 +7416,7 @@
7394
7416
  "isReadonly": false,
7395
7417
  "isOptional": true,
7396
7418
  "releaseTag": "Public",
7397
- "name": "scripts",
7419
+ "name": "devDependencies",
7398
7420
  "propertyTypeTokenRange": {
7399
7421
  "startIndex": 1,
7400
7422
  "endIndex": 3
@@ -7402,16 +7424,26 @@
7402
7424
  },
7403
7425
  {
7404
7426
  "kind": "PropertySignature",
7405
- "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#type:member",
7406
- "docComment": "",
7427
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#exports:member",
7428
+ "docComment": "/**\n * The hard-coded exports of the package.\n */\n",
7407
7429
  "excerptTokens": [
7408
7430
  {
7409
7431
  "kind": "Content",
7410
- "text": "type?: "
7432
+ "text": "exports?: "
7433
+ },
7434
+ {
7435
+ "kind": "Reference",
7436
+ "text": "PackageExports",
7437
+ "canonicalReference": "@alloy-js/typescript!PackageExports:interface"
7411
7438
  },
7412
7439
  {
7413
7440
  "kind": "Content",
7414
- "text": "\"module\" | \"commonjs\""
7441
+ "text": " | "
7442
+ },
7443
+ {
7444
+ "kind": "Reference",
7445
+ "text": "ExportPath",
7446
+ "canonicalReference": "@alloy-js/typescript!ExportPath:type"
7415
7447
  },
7416
7448
  {
7417
7449
  "kind": "Content",
@@ -7421,20 +7453,20 @@
7421
7453
  "isReadonly": false,
7422
7454
  "isOptional": true,
7423
7455
  "releaseTag": "Public",
7424
- "name": "type",
7456
+ "name": "exports",
7425
7457
  "propertyTypeTokenRange": {
7426
7458
  "startIndex": 1,
7427
- "endIndex": 2
7459
+ "endIndex": 4
7428
7460
  }
7429
7461
  },
7430
7462
  {
7431
7463
  "kind": "PropertySignature",
7432
- "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#version:member",
7433
- "docComment": "",
7464
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#homepage:member",
7465
+ "docComment": "/**\n * The homepage of the package\n */\n",
7434
7466
  "excerptTokens": [
7435
7467
  {
7436
7468
  "kind": "Content",
7437
- "text": "version: "
7469
+ "text": "homepage?: "
7438
7470
  },
7439
7471
  {
7440
7472
  "kind": "Content",
@@ -7446,37 +7478,231 @@
7446
7478
  }
7447
7479
  ],
7448
7480
  "isReadonly": false,
7449
- "isOptional": false,
7481
+ "isOptional": true,
7450
7482
  "releaseTag": "Public",
7451
- "name": "version",
7483
+ "name": "homepage",
7452
7484
  "propertyTypeTokenRange": {
7453
7485
  "startIndex": 1,
7454
7486
  "endIndex": 2
7455
7487
  }
7456
- }
7457
- ],
7458
- "extendsTokenRanges": []
7459
- },
7460
- {
7461
- "kind": "TypeAlias",
7462
- "canonicalReference": "@alloy-js/typescript!PackageRefkeys:type",
7463
- "docComment": "",
7464
- "excerptTokens": [
7465
- {
7466
- "kind": "Content",
7467
- "text": "export type PackageRefkeys<T extends "
7468
7488
  },
7469
7489
  {
7470
- "kind": "Reference",
7471
- "text": "PackageDescriptor",
7472
- "canonicalReference": "@alloy-js/typescript!PackageDescriptor:interface"
7490
+ "kind": "PropertySignature",
7491
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#keywords:member",
7492
+ "docComment": "/**\n * The keywords of the package\n */\n",
7493
+ "excerptTokens": [
7494
+ {
7495
+ "kind": "Content",
7496
+ "text": "keywords?: "
7497
+ },
7498
+ {
7499
+ "kind": "Content",
7500
+ "text": "string[]"
7501
+ },
7502
+ {
7503
+ "kind": "Content",
7504
+ "text": ";"
7505
+ }
7506
+ ],
7507
+ "isReadonly": false,
7508
+ "isOptional": true,
7509
+ "releaseTag": "Public",
7510
+ "name": "keywords",
7511
+ "propertyTypeTokenRange": {
7512
+ "startIndex": 1,
7513
+ "endIndex": 2
7514
+ }
7473
7515
  },
7474
7516
  {
7475
- "kind": "Content",
7476
- "text": "> = "
7517
+ "kind": "PropertySignature",
7518
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#license:member",
7519
+ "docComment": "/**\n * The license of the package\n */\n",
7520
+ "excerptTokens": [
7521
+ {
7522
+ "kind": "Content",
7523
+ "text": "license?: "
7524
+ },
7525
+ {
7526
+ "kind": "Content",
7527
+ "text": "string"
7528
+ },
7529
+ {
7530
+ "kind": "Content",
7531
+ "text": ";"
7532
+ }
7533
+ ],
7534
+ "isReadonly": false,
7535
+ "isOptional": true,
7536
+ "releaseTag": "Public",
7537
+ "name": "license",
7538
+ "propertyTypeTokenRange": {
7539
+ "startIndex": 1,
7540
+ "endIndex": 2
7541
+ }
7477
7542
  },
7478
7543
  {
7479
- "kind": "Content",
7544
+ "kind": "PropertySignature",
7545
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#name:member",
7546
+ "docComment": "/**\n * The name of the package\n */\n",
7547
+ "excerptTokens": [
7548
+ {
7549
+ "kind": "Content",
7550
+ "text": "name: "
7551
+ },
7552
+ {
7553
+ "kind": "Content",
7554
+ "text": "string"
7555
+ },
7556
+ {
7557
+ "kind": "Content",
7558
+ "text": ";"
7559
+ }
7560
+ ],
7561
+ "isReadonly": false,
7562
+ "isOptional": false,
7563
+ "releaseTag": "Public",
7564
+ "name": "name",
7565
+ "propertyTypeTokenRange": {
7566
+ "startIndex": 1,
7567
+ "endIndex": 2
7568
+ }
7569
+ },
7570
+ {
7571
+ "kind": "PropertySignature",
7572
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#repository:member",
7573
+ "docComment": "/**\n * The repository of the package\n */\n",
7574
+ "excerptTokens": [
7575
+ {
7576
+ "kind": "Content",
7577
+ "text": "repository?: "
7578
+ },
7579
+ {
7580
+ "kind": "Content",
7581
+ "text": "string | {\n type: string;\n url: string;\n }"
7582
+ },
7583
+ {
7584
+ "kind": "Content",
7585
+ "text": ";"
7586
+ }
7587
+ ],
7588
+ "isReadonly": false,
7589
+ "isOptional": true,
7590
+ "releaseTag": "Public",
7591
+ "name": "repository",
7592
+ "propertyTypeTokenRange": {
7593
+ "startIndex": 1,
7594
+ "endIndex": 2
7595
+ }
7596
+ },
7597
+ {
7598
+ "kind": "PropertySignature",
7599
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#scripts:member",
7600
+ "docComment": "/**\n * The scripts entries of the package.\n */\n",
7601
+ "excerptTokens": [
7602
+ {
7603
+ "kind": "Content",
7604
+ "text": "scripts?: "
7605
+ },
7606
+ {
7607
+ "kind": "Reference",
7608
+ "text": "Record",
7609
+ "canonicalReference": "!Record:type"
7610
+ },
7611
+ {
7612
+ "kind": "Content",
7613
+ "text": "<string, string>"
7614
+ },
7615
+ {
7616
+ "kind": "Content",
7617
+ "text": ";"
7618
+ }
7619
+ ],
7620
+ "isReadonly": false,
7621
+ "isOptional": true,
7622
+ "releaseTag": "Public",
7623
+ "name": "scripts",
7624
+ "propertyTypeTokenRange": {
7625
+ "startIndex": 1,
7626
+ "endIndex": 3
7627
+ }
7628
+ },
7629
+ {
7630
+ "kind": "PropertySignature",
7631
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#type:member",
7632
+ "docComment": "/**\n * Whether this is a commonjs or module. Defaults to module.\n */\n",
7633
+ "excerptTokens": [
7634
+ {
7635
+ "kind": "Content",
7636
+ "text": "type?: "
7637
+ },
7638
+ {
7639
+ "kind": "Content",
7640
+ "text": "\"module\" | \"commonjs\""
7641
+ },
7642
+ {
7643
+ "kind": "Content",
7644
+ "text": ";"
7645
+ }
7646
+ ],
7647
+ "isReadonly": false,
7648
+ "isOptional": true,
7649
+ "releaseTag": "Public",
7650
+ "name": "type",
7651
+ "propertyTypeTokenRange": {
7652
+ "startIndex": 1,
7653
+ "endIndex": 2
7654
+ }
7655
+ },
7656
+ {
7657
+ "kind": "PropertySignature",
7658
+ "canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#version:member",
7659
+ "docComment": "/**\n * The version of the package\n */\n",
7660
+ "excerptTokens": [
7661
+ {
7662
+ "kind": "Content",
7663
+ "text": "version: "
7664
+ },
7665
+ {
7666
+ "kind": "Content",
7667
+ "text": "string"
7668
+ },
7669
+ {
7670
+ "kind": "Content",
7671
+ "text": ";"
7672
+ }
7673
+ ],
7674
+ "isReadonly": false,
7675
+ "isOptional": false,
7676
+ "releaseTag": "Public",
7677
+ "name": "version",
7678
+ "propertyTypeTokenRange": {
7679
+ "startIndex": 1,
7680
+ "endIndex": 2
7681
+ }
7682
+ }
7683
+ ],
7684
+ "extendsTokenRanges": []
7685
+ },
7686
+ {
7687
+ "kind": "TypeAlias",
7688
+ "canonicalReference": "@alloy-js/typescript!PackageRefkeys:type",
7689
+ "docComment": "",
7690
+ "excerptTokens": [
7691
+ {
7692
+ "kind": "Content",
7693
+ "text": "export type PackageRefkeys<T extends "
7694
+ },
7695
+ {
7696
+ "kind": "Reference",
7697
+ "text": "PackageDescriptor",
7698
+ "canonicalReference": "@alloy-js/typescript!PackageDescriptor:interface"
7699
+ },
7700
+ {
7701
+ "kind": "Content",
7702
+ "text": "> = "
7703
+ },
7704
+ {
7705
+ "kind": "Content",
7480
7706
  "text": "{\n [K in keyof T as K extends \".\" ? never : K]: {\n [N in T[K][\"named\"] extends readonly string[] ? T[K][\"named\"][number] : never]: "
7481
7707
  },
7482
7708
  {
@@ -7590,7 +7816,7 @@
7590
7816
  "excerptTokens": [
7591
7817
  {
7592
7818
  "kind": "Content",
7593
- "text": "refkey: "
7819
+ "text": "refkey?: "
7594
7820
  },
7595
7821
  {
7596
7822
  "kind": "Reference",
@@ -7603,7 +7829,7 @@
7603
7829
  }
7604
7830
  ],
7605
7831
  "isReadonly": false,
7606
- "isOptional": false,
7832
+ "isOptional": true,
7607
7833
  "releaseTag": "Public",
7608
7834
  "name": "refkey",
7609
7835
  "propertyTypeTokenRange": {
@@ -7611,6 +7837,38 @@
7611
7837
  "endIndex": 2
7612
7838
  }
7613
7839
  },
7840
+ {
7841
+ "kind": "PropertySignature",
7842
+ "canonicalReference": "@alloy-js/typescript!ParameterDescriptor#refkeys:member",
7843
+ "docComment": "",
7844
+ "excerptTokens": [
7845
+ {
7846
+ "kind": "Content",
7847
+ "text": "refkeys?: "
7848
+ },
7849
+ {
7850
+ "kind": "Reference",
7851
+ "text": "Refkey",
7852
+ "canonicalReference": "@alloy-js/core!Refkey:type"
7853
+ },
7854
+ {
7855
+ "kind": "Content",
7856
+ "text": "[]"
7857
+ },
7858
+ {
7859
+ "kind": "Content",
7860
+ "text": ";"
7861
+ }
7862
+ ],
7863
+ "isReadonly": false,
7864
+ "isOptional": true,
7865
+ "releaseTag": "Public",
7866
+ "name": "refkeys",
7867
+ "propertyTypeTokenRange": {
7868
+ "startIndex": 1,
7869
+ "endIndex": 3
7870
+ }
7871
+ },
7614
7872
  {
7615
7873
  "kind": "PropertySignature",
7616
7874
  "canonicalReference": "@alloy-js/typescript!ParameterDescriptor#type:member",
@@ -9139,133 +9397,6 @@
9139
9397
  ],
9140
9398
  "name": "addModule"
9141
9399
  },
9142
- {
9143
- "kind": "MethodSignature",
9144
- "canonicalReference": "@alloy-js/typescript!TSPackageScope#addRawDependency:member(1)",
9145
- "docComment": "",
9146
- "excerptTokens": [
9147
- {
9148
- "kind": "Content",
9149
- "text": "addRawDependency(packageName: "
9150
- },
9151
- {
9152
- "kind": "Content",
9153
- "text": "string"
9154
- },
9155
- {
9156
- "kind": "Content",
9157
- "text": ", version: "
9158
- },
9159
- {
9160
- "kind": "Content",
9161
- "text": "string"
9162
- },
9163
- {
9164
- "kind": "Content",
9165
- "text": "): "
9166
- },
9167
- {
9168
- "kind": "Content",
9169
- "text": "void"
9170
- },
9171
- {
9172
- "kind": "Content",
9173
- "text": ";"
9174
- }
9175
- ],
9176
- "isOptional": false,
9177
- "returnTypeTokenRange": {
9178
- "startIndex": 5,
9179
- "endIndex": 6
9180
- },
9181
- "releaseTag": "Public",
9182
- "overloadIndex": 1,
9183
- "parameters": [
9184
- {
9185
- "parameterName": "packageName",
9186
- "parameterTypeTokenRange": {
9187
- "startIndex": 1,
9188
- "endIndex": 2
9189
- },
9190
- "isOptional": false
9191
- },
9192
- {
9193
- "parameterName": "version",
9194
- "parameterTypeTokenRange": {
9195
- "startIndex": 3,
9196
- "endIndex": 4
9197
- },
9198
- "isOptional": false
9199
- }
9200
- ],
9201
- "name": "addRawDependency"
9202
- },
9203
- {
9204
- "kind": "MethodSignature",
9205
- "canonicalReference": "@alloy-js/typescript!TSPackageScope#addRawExport:member(1)",
9206
- "docComment": "",
9207
- "excerptTokens": [
9208
- {
9209
- "kind": "Content",
9210
- "text": "addRawExport(publicPath: "
9211
- },
9212
- {
9213
- "kind": "Content",
9214
- "text": "string"
9215
- },
9216
- {
9217
- "kind": "Content",
9218
- "text": ", exportPath: "
9219
- },
9220
- {
9221
- "kind": "Content",
9222
- "text": "string | "
9223
- },
9224
- {
9225
- "kind": "Reference",
9226
- "text": "ExportConditions",
9227
- "canonicalReference": "@alloy-js/typescript!ExportConditions:interface"
9228
- },
9229
- {
9230
- "kind": "Content",
9231
- "text": "): "
9232
- },
9233
- {
9234
- "kind": "Content",
9235
- "text": "void"
9236
- },
9237
- {
9238
- "kind": "Content",
9239
- "text": ";"
9240
- }
9241
- ],
9242
- "isOptional": false,
9243
- "returnTypeTokenRange": {
9244
- "startIndex": 6,
9245
- "endIndex": 7
9246
- },
9247
- "releaseTag": "Public",
9248
- "overloadIndex": 1,
9249
- "parameters": [
9250
- {
9251
- "parameterName": "publicPath",
9252
- "parameterTypeTokenRange": {
9253
- "startIndex": 1,
9254
- "endIndex": 2
9255
- },
9256
- "isOptional": false
9257
- },
9258
- {
9259
- "parameterName": "exportPath",
9260
- "parameterTypeTokenRange": {
9261
- "startIndex": 3,
9262
- "endIndex": 5
9263
- },
9264
- "isOptional": false
9265
- }
9266
- ],
9267
- "name": "addRawExport"
9268
- },
9269
9400
  {
9270
9401
  "kind": "PropertySignature",
9271
9402
  "canonicalReference": "@alloy-js/typescript!TSPackageScope#builtin:member",
@@ -9525,66 +9656,6 @@
9525
9656
  "endIndex": 2
9526
9657
  }
9527
9658
  },
9528
- {
9529
- "kind": "PropertySignature",
9530
- "canonicalReference": "@alloy-js/typescript!TSPackageScope#rawDependencies:member",
9531
- "docComment": "/**\n * Fixed dependencies of this package. Only use this for packages in which you do not intend to reference via the `Reference` component. Symbols from raw dependencies cannot be auto imported.\n */\n",
9532
- "excerptTokens": [
9533
- {
9534
- "kind": "Content",
9535
- "text": "rawDependencies: "
9536
- },
9537
- {
9538
- "kind": "Reference",
9539
- "text": "Map",
9540
- "canonicalReference": "!Map:interface"
9541
- },
9542
- {
9543
- "kind": "Content",
9544
- "text": "<string, string>"
9545
- },
9546
- {
9547
- "kind": "Content",
9548
- "text": ";"
9549
- }
9550
- ],
9551
- "isReadonly": false,
9552
- "isOptional": false,
9553
- "releaseTag": "Public",
9554
- "name": "rawDependencies",
9555
- "propertyTypeTokenRange": {
9556
- "startIndex": 1,
9557
- "endIndex": 3
9558
- }
9559
- },
9560
- {
9561
- "kind": "PropertySignature",
9562
- "canonicalReference": "@alloy-js/typescript!TSPackageScope#rawExports:member",
9563
- "docComment": "/**\n * Fixed exports of this package. Only use this for exports which you want to add manually to the package. Otherwise use the `export` prop on `SourceFile` to add an export.\n */\n",
9564
- "excerptTokens": [
9565
- {
9566
- "kind": "Content",
9567
- "text": "rawExports: "
9568
- },
9569
- {
9570
- "kind": "Reference",
9571
- "text": "PackageExports",
9572
- "canonicalReference": "@alloy-js/typescript!PackageExports:interface"
9573
- },
9574
- {
9575
- "kind": "Content",
9576
- "text": ";"
9577
- }
9578
- ],
9579
- "isReadonly": false,
9580
- "isOptional": false,
9581
- "releaseTag": "Public",
9582
- "name": "rawExports",
9583
- "propertyTypeTokenRange": {
9584
- "startIndex": 1,
9585
- "endIndex": 2
9586
- }
9587
- },
9588
9659
  {
9589
9660
  "kind": "PropertySignature",
9590
9661
  "canonicalReference": "@alloy-js/typescript!TSPackageScope#version:member",