@alloy-js/typescript 0.24.0-dev.1 → 0.25.0-dev.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.
- package/CHANGELOG.md +4 -0
- package/dist/dev/src/components/BlockScope.js +2 -2
- package/dist/dev/src/components/BlockScope.js.map +1 -1
- package/dist/dev/src/components/FunctionBase.js +10 -10
- package/dist/dev/src/components/FunctionBase.js.map +1 -1
- package/dist/dev/src/components/FunctionDeclaration.js +10 -10
- package/dist/dev/src/components/FunctionDeclaration.js.map +1 -1
- package/dist/dev/src/components/MemberDeclaration.js +1 -1
- package/dist/dev/src/components/MemberDeclaration.js.map +1 -1
- package/dist/dev/src/components/index.js.map +1 -1
- package/dist/dev/test/function-declaration.test.js +151 -71
- package/dist/dev/test/function-declaration.test.js.map +1 -1
- package/dist/src/components/BlockScope.d.ts.map +1 -1
- package/dist/src/components/BlockScope.js.map +1 -1
- package/dist/src/components/FunctionBase.d.ts.map +1 -1
- package/dist/src/components/FunctionBase.js.map +1 -1
- package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
- package/dist/src/components/FunctionDeclaration.js.map +1 -1
- package/dist/src/components/MemberDeclaration.d.ts.map +1 -1
- package/dist/src/components/MemberDeclaration.js.map +1 -1
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/parameter-descriptor.d.ts.map +1 -1
- package/dist/test/function-declaration.test.js +65 -1
- package/dist/test/function-declaration.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/ArrowFunction.md +1 -3
- package/docs/api/components/FunctionDeclaration.md +1 -3
- package/docs/api/components/FunctionExpression.md +1 -3
- package/docs/api/components/InterfaceMethod.md +1 -3
- package/docs/api/components/MemberExpression.md +1 -6
- package/docs/api/components/ensureTypeRefContext.md +1 -1
- package/docs/api/components/index.md +0 -2
- package/docs/api/index.md +2 -2
- package/docs/api/types/NamedModuleDescriptor.md +1 -5
- package/docs/api/{components/Reference.md → types/ReferenceProps.md} +2 -20
- package/docs/api/types/TypeParametersProps.md +10 -0
- package/docs/api/types/TypeRefContextProps.md +7 -0
- package/docs/api/types/index.md +3 -0
- package/docs/api/variables/FunctionType.md +1 -3
- package/package.json +10 -9
- package/src/components/BlockScope.tsx +2 -4
- package/src/components/FunctionBase.tsx +12 -6
- package/src/components/FunctionDeclaration.tsx +1 -2
- package/src/components/MemberDeclaration.tsx +2 -4
- package/src/components/index.ts +1 -0
- package/src/parameter-descriptor.ts +1 -2
- package/temp/api.json +172 -62
- package/test/function-declaration.test.tsx +61 -0
- package/tsdoc-metadata.json +1 -1
- package/vitest.config.ts +1 -0
- package/docs/api/components/TypeRefContext.md +0 -35
package/temp/api.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.
|
|
4
|
+
"toolVersion": "7.58.8",
|
|
5
5
|
"schemaVersion": 1011,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -114,6 +114,22 @@
|
|
|
114
114
|
"tagName": "@virtual",
|
|
115
115
|
"syntaxKind": "modifier"
|
|
116
116
|
},
|
|
117
|
+
{
|
|
118
|
+
"tagName": "@jsx",
|
|
119
|
+
"syntaxKind": "block"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"tagName": "@jsxRuntime",
|
|
123
|
+
"syntaxKind": "block"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"tagName": "@jsxFrag",
|
|
127
|
+
"syntaxKind": "block"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"tagName": "@jsxImportSource",
|
|
131
|
+
"syntaxKind": "block"
|
|
132
|
+
},
|
|
117
133
|
{
|
|
118
134
|
"tagName": "@betaDocumentation",
|
|
119
135
|
"syntaxKind": "modifier"
|
|
@@ -340,7 +356,7 @@
|
|
|
340
356
|
{
|
|
341
357
|
"kind": "Function",
|
|
342
358
|
"canonicalReference": "@alloy-js/typescript!ArrowFunction:function(1)",
|
|
343
|
-
"docComment": "/**\n * A TypeScript arrow function expression.\n *\n * @remarks\n *\n
|
|
359
|
+
"docComment": "/**\n * A TypeScript arrow function expression.\n *\n * @remarks\n *\n * Providing parameters and type parameters can be accomplished in one of three ways:\n *\n * 1. As an array of {@link ParameterDescriptor}s or {@link TypeParameterDescriptor}s. 2. As raw content via the `parametersChildren` or `typeParametersChildren` props. 3. As a child of this component via the {@link (ArrowFunction:namespace).Parameters} or {@link (ArrowFunction:namespace).TypeParameters} components.\n *\n * @example\n * ```tsx\n * <FunctionExpression async parameters={[{ name: \"a\", type: \"number\" }, { name: \"b\", type: \"number\" }]}>\n * return a + b;\n * <FunctionExpression>\n * ```\n *\n * renders to\n * ```ts\n * async (a, b) => { return a + b; }\n * ```\n *\n */\n",
|
|
344
360
|
"excerptTokens": [
|
|
345
361
|
{
|
|
346
362
|
"kind": "Content",
|
|
@@ -576,7 +592,7 @@
|
|
|
576
592
|
{
|
|
577
593
|
"kind": "Reference",
|
|
578
594
|
"text": "TypeParametersProps",
|
|
579
|
-
"canonicalReference": "@alloy-js/typescript
|
|
595
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
580
596
|
},
|
|
581
597
|
{
|
|
582
598
|
"kind": "Content",
|
|
@@ -612,7 +628,7 @@
|
|
|
612
628
|
{
|
|
613
629
|
"kind": "Reference",
|
|
614
630
|
"text": "TypeParametersProps",
|
|
615
|
-
"canonicalReference": "@alloy-js/typescript
|
|
631
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
616
632
|
},
|
|
617
633
|
{
|
|
618
634
|
"kind": "Content",
|
|
@@ -719,7 +735,7 @@
|
|
|
719
735
|
{
|
|
720
736
|
"kind": "Function",
|
|
721
737
|
"canonicalReference": "@alloy-js/typescript!BarrelFile:function(1)",
|
|
722
|
-
"docComment": "/**\n * Creates a source file which re-exports the exports in other files and nested
|
|
738
|
+
"docComment": "/**\n * Creates a source file which re-exports the exports in other files and nested barrel files in the source directory its placed in.\n *\n * @remarks\n *\n * This component must be placed directly inside a {@link @alloy-js/core#SourceDirectory} component. It will only discover nested barrel files directly within nested source directories.\n *\n * @example\n *\n * Creating a barrel file which exports the two other source files in the same directory\n * ```tsx\n * <Output>\n * <SourceDirectory path=\"src\">\n * <SourceFile path=\"one.ts\" />\n * <SourceFile path=\"two.ts\" />\n * <BarrelFile />\n * </SourceDirectory>\n * </Output>\n * ```\n *\n * The barrel file will contain the following contents:\n * ```ts\n * export * from \"./one.js\";\n * export * from \"./two.js\";\n * ```\n *\n * @see\n *\n * {@link @alloy-js/core#SourceDirectory}\n *\n * @see\n *\n * {@link SourceFile}\n */\n",
|
|
723
739
|
"excerptTokens": [
|
|
724
740
|
{
|
|
725
741
|
"kind": "Content",
|
|
@@ -785,7 +801,7 @@
|
|
|
785
801
|
{
|
|
786
802
|
"kind": "PropertySignature",
|
|
787
803
|
"canonicalReference": "@alloy-js/typescript!BarrelFileProps#export:member",
|
|
788
|
-
"docComment": "/**\n * Whether the source file is exported out of the package. When true, this
|
|
804
|
+
"docComment": "/**\n * Whether the source file is exported out of the package. When true, this source file with its source file relative to the project root. Otherwise, it will be exported with the specified path.\n */\n",
|
|
789
805
|
"excerptTokens": [
|
|
790
806
|
{
|
|
791
807
|
"kind": "Content",
|
|
@@ -842,7 +858,7 @@
|
|
|
842
858
|
{
|
|
843
859
|
"kind": "Function",
|
|
844
860
|
"canonicalReference": "@alloy-js/typescript!BlockScope:function(1)",
|
|
845
|
-
"docComment": "/**\n * Create a TypeScript block which includes a scope for any nested declarations
|
|
861
|
+
"docComment": "/**\n * Create a TypeScript block which includes a scope for any nested declarations. Can either provide the scope directly via the `value` prop, or else provide information about the scope.\n */\n",
|
|
846
862
|
"excerptTokens": [
|
|
847
863
|
{
|
|
848
864
|
"kind": "Content",
|
|
@@ -1017,7 +1033,7 @@
|
|
|
1017
1033
|
{
|
|
1018
1034
|
"kind": "Function",
|
|
1019
1035
|
"canonicalReference": "@alloy-js/typescript!CallSignature:function(1)",
|
|
1020
|
-
"docComment": "/**\n * A TypeScript call signature, e.g. the part after the `function` keyword in an
|
|
1036
|
+
"docComment": "/**\n * A TypeScript call signature, e.g. the part after the `function` keyword in an anonymous function expression, or a call signature in an interface.\n *\n * Any parameters or type parameters declared in this signature will be placed in the current scope. This component does not make a scope to hold its parameters.\n */\n",
|
|
1021
1037
|
"excerptTokens": [
|
|
1022
1038
|
{
|
|
1023
1039
|
"kind": "Content",
|
|
@@ -1079,7 +1095,7 @@
|
|
|
1079
1095
|
{
|
|
1080
1096
|
"kind": "PropertySignature",
|
|
1081
1097
|
"canonicalReference": "@alloy-js/typescript!CallSignatureProps#parameters:member",
|
|
1082
|
-
"docComment": "/**\n * The parameters to the function. Can be an array of strings for parameters
|
|
1098
|
+
"docComment": "/**\n * The parameters to the function. Can be an array of strings for parameters which don't have a type or a default value. Otherwise, it's an array of {@link ParameterDescriptor}s.\n */\n",
|
|
1083
1099
|
"excerptTokens": [
|
|
1084
1100
|
{
|
|
1085
1101
|
"kind": "Content",
|
|
@@ -1167,7 +1183,7 @@
|
|
|
1167
1183
|
{
|
|
1168
1184
|
"kind": "PropertySignature",
|
|
1169
1185
|
"canonicalReference": "@alloy-js/typescript!CallSignatureProps#typeParameters:member",
|
|
1170
|
-
"docComment": "/**\n * The type parameters for the function. Can be an array of strings for
|
|
1186
|
+
"docComment": "/**\n * The type parameters for the function. Can be an array of strings for type parameters which don't have any constraints or a default type, otherwise it's an array of {@link TypeParameterDescriptor}s.\n */\n",
|
|
1171
1187
|
"excerptTokens": [
|
|
1172
1188
|
{
|
|
1173
1189
|
"kind": "Content",
|
|
@@ -1230,7 +1246,7 @@
|
|
|
1230
1246
|
{
|
|
1231
1247
|
"kind": "Function",
|
|
1232
1248
|
"canonicalReference": "@alloy-js/typescript!CaseClause:function(1)",
|
|
1233
|
-
"docComment": "/**\n * A case clause in a switch statement. Provide either an expression or a JS
|
|
1249
|
+
"docComment": "/**\n * A case clause in a switch statement. Provide either an expression or a JS value to compare to the switch expression. Can optionally be wrapped in a block. Pass `break` to finish with a break statement.\n */\n",
|
|
1234
1250
|
"excerptTokens": [
|
|
1235
1251
|
{
|
|
1236
1252
|
"kind": "Content",
|
|
@@ -1600,7 +1616,7 @@
|
|
|
1600
1616
|
{
|
|
1601
1617
|
"kind": "Function",
|
|
1602
1618
|
"canonicalReference": "@alloy-js/typescript!CatchClause:function(1)",
|
|
1603
|
-
"docComment": "/**\n * A catch clause of a try statement.\n *\n * @remarks\n *\n
|
|
1619
|
+
"docComment": "/**\n * A catch clause of a try statement.\n *\n * @remarks\n *\n * The parameter can be omitted for a catch-all clause, or provided as a string or {@link ParameterDescriptor}. When using a descriptor, a refkey can be provided to reference the parameter within the catch block. Note that TypeScript only allows `any` or `unknown` as catch parameter types.\n *\n * @example\n * ```tsx\n * <CatchClause parameter={{ name: \"error\", type: \"unknown\" }}>\n * console.error(error);\n * </CatchClause>\n * ```\n *\n * renders to\n * ```ts\n * catch (error: unknown) {\n * console.error(error);\n * }\n * ```\n *\n */\n",
|
|
1604
1620
|
"excerptTokens": [
|
|
1605
1621
|
{
|
|
1606
1622
|
"kind": "Content",
|
|
@@ -1725,7 +1741,7 @@
|
|
|
1725
1741
|
{
|
|
1726
1742
|
"kind": "Function",
|
|
1727
1743
|
"canonicalReference": "@alloy-js/typescript!ClassDeclaration:function(1)",
|
|
1728
|
-
"docComment": "/**\n * Create a TypeScript class declaration.\n *\n * @remarks\n *\n
|
|
1744
|
+
"docComment": "/**\n * Create a TypeScript class declaration.\n *\n * @remarks\n *\n * @example\n * ```tsx\n * const myPetRefkey = refkey();\n * const Animal = refkey();\n * const staticMember = refkey();\n * const instanceMember = refkey();\n *\n * <ClassDeclaration name=\"Animal\" refkey={Animal}>\n * <ClassMember public static name=\"something\" type=\"string\" refkey={staticMember}>\n * \"hello\"\n * </ClassMember>\n * <ClassMember public name=\"kind\" type=\"string\" />\n * <ClassMember public name=\"name\" type=\"string\" refkey={instanceMember} />\n * <ClassConstructor parameters=\"name: string\">\n * this.name = name;\n * </ClassConstructor>\n * </ClassDeclaration>\n *\n * <VarDeclaration const name=\"myPet\" refkey={myPetRefkey}>\n * new {Animal}();\n * </VarDeclaration>\n *\n * {staticMember}; // Animal.something\n * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name\n * {memberRefkey(myPetRefkey, instanceMember)}\n * ```\n *\n */\n",
|
|
1729
1745
|
"excerptTokens": [
|
|
1730
1746
|
{
|
|
1731
1747
|
"kind": "Content",
|
|
@@ -2516,7 +2532,7 @@
|
|
|
2516
2532
|
{
|
|
2517
2533
|
"kind": "Function",
|
|
2518
2534
|
"canonicalReference": "@alloy-js/typescript!CommaList:function(1)",
|
|
2519
|
-
"docComment": "/**\n * A comma-separated list of items (e.g. arguments to a function call
|
|
2535
|
+
"docComment": "/**\n * A comma-separated list of items (e.g. arguments to a function call, parameters, etc).\n */\n",
|
|
2520
2536
|
"excerptTokens": [
|
|
2521
2537
|
{
|
|
2522
2538
|
"kind": "Content",
|
|
@@ -3929,7 +3945,7 @@
|
|
|
3929
3945
|
{
|
|
3930
3946
|
"kind": "Function",
|
|
3931
3947
|
"canonicalReference": "@alloy-js/typescript!Declaration:function(1)",
|
|
3932
|
-
"docComment": "/**\n * Create a TypeScript declaration. Generally, this component shouldn't be used
|
|
3948
|
+
"docComment": "/**\n * Create a TypeScript declaration. Generally, this component shouldn't be used directly, and instead prefer components for specific declarations, e.g. {@link EnumDeclaration}, {@link (InterfaceDeclaration:function)}, {@link TypeDeclaration}, etc.\n *\n * @remarks\n *\n * This component will wrap its contents in a {@link @alloy-js/core#Declaration} component, so children can make use of declaration context.\n */\n",
|
|
3933
3949
|
"excerptTokens": [
|
|
3934
3950
|
{
|
|
3935
3951
|
"kind": "Content",
|
|
@@ -4164,7 +4180,7 @@
|
|
|
4164
4180
|
{
|
|
4165
4181
|
"kind": "PropertySignature",
|
|
4166
4182
|
"canonicalReference": "@alloy-js/typescript!DeclarationPropsWithInfo#kind:member",
|
|
4167
|
-
"docComment": "/**\n * Whether this is a declaration of a type (e.g. interface, type alias) or a
|
|
4183
|
+
"docComment": "/**\n * Whether this is a declaration of a type (e.g. interface, type alias) or a value (e.g. var, const, let).\n */\n",
|
|
4168
4184
|
"excerptTokens": [
|
|
4169
4185
|
{
|
|
4170
4186
|
"kind": "Content",
|
|
@@ -4223,7 +4239,7 @@
|
|
|
4223
4239
|
{
|
|
4224
4240
|
"kind": "PropertySignature",
|
|
4225
4241
|
"canonicalReference": "@alloy-js/typescript!DeclarationPropsWithInfo#name:member",
|
|
4226
|
-
"docComment": "/**\n * The base name of this declaration. May change depending on naming policy
|
|
4242
|
+
"docComment": "/**\n * The base name of this declaration. May change depending on naming policy and any conflicts.\n */\n",
|
|
4227
4243
|
"excerptTokens": [
|
|
4228
4244
|
{
|
|
4229
4245
|
"kind": "Content",
|
|
@@ -4766,7 +4782,7 @@
|
|
|
4766
4782
|
{
|
|
4767
4783
|
"kind": "Function",
|
|
4768
4784
|
"canonicalReference": "@alloy-js/typescript!ensureTypeRefContext:function(1)",
|
|
4769
|
-
"docComment": "/**\n * Ensure the current component is inside a type ref context
|
|
4785
|
+
"docComment": "/**\n * Ensure the current component is inside a type ref context. If not it will wrap in a {@link TypeRefContext} component. If yes it will not add an extra node and return the original component.\n */\n",
|
|
4770
4786
|
"excerptTokens": [
|
|
4771
4787
|
{
|
|
4772
4788
|
"kind": "Content",
|
|
@@ -5098,7 +5114,7 @@
|
|
|
5098
5114
|
{
|
|
5099
5115
|
"kind": "PropertySignature",
|
|
5100
5116
|
"canonicalReference": "@alloy-js/typescript!EnumMemberProps#name:member",
|
|
5101
|
-
"docComment": "/**\n * The name of the member.\n *\n * If a naming policy is provided in context, the policy name \"enum-member\" is
|
|
5117
|
+
"docComment": "/**\n * The name of the member.\n *\n * If a naming policy is provided in context, the policy name \"enum-member\" is used.\n */\n",
|
|
5102
5118
|
"excerptTokens": [
|
|
5103
5119
|
{
|
|
5104
5120
|
"kind": "Content",
|
|
@@ -5130,7 +5146,7 @@
|
|
|
5130
5146
|
{
|
|
5131
5147
|
"kind": "PropertySignature",
|
|
5132
5148
|
"canonicalReference": "@alloy-js/typescript!EnumMemberProps#refkey:member",
|
|
5133
|
-
"docComment": "/**\n * Refkey for the enum member symbol. If the refkey is not provided, a symbol
|
|
5149
|
+
"docComment": "/**\n * Refkey for the enum member symbol. If the refkey is not provided, a symbol is not created and the member cannot be referenced by refkey.\n */\n",
|
|
5134
5150
|
"excerptTokens": [
|
|
5135
5151
|
{
|
|
5136
5152
|
"kind": "Content",
|
|
@@ -5729,7 +5745,7 @@
|
|
|
5729
5745
|
{
|
|
5730
5746
|
"kind": "Function",
|
|
5731
5747
|
"canonicalReference": "@alloy-js/typescript!FunctionDeclaration:function(1)",
|
|
5732
|
-
"docComment": "/**\n * A TypeScript function declaration.\n *\n * @remarks\n *\n
|
|
5748
|
+
"docComment": "/**\n * A TypeScript function declaration.\n *\n * @remarks\n *\n * Providing parameters and type parameters can be accomplished in one of three ways:\n *\n * 1. As an array of {@link ParameterDescriptor}s or {@link TypeParameterDescriptor}s. 2. As raw content via the `parametersChildren` or `typeParametersChildren` props. 3. As a child of this component via the {@link (FunctionDeclaration:namespace).Parameters} or {@link (FunctionDeclaration:namespace).TypeParameters} components.\n */\n",
|
|
5733
5749
|
"excerptTokens": [
|
|
5734
5750
|
{
|
|
5735
5751
|
"kind": "Content",
|
|
@@ -5965,7 +5981,7 @@
|
|
|
5965
5981
|
{
|
|
5966
5982
|
"kind": "Reference",
|
|
5967
5983
|
"text": "TypeParametersProps",
|
|
5968
|
-
"canonicalReference": "@alloy-js/typescript
|
|
5984
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
5969
5985
|
},
|
|
5970
5986
|
{
|
|
5971
5987
|
"kind": "Content",
|
|
@@ -6001,7 +6017,7 @@
|
|
|
6001
6017
|
{
|
|
6002
6018
|
"kind": "Reference",
|
|
6003
6019
|
"text": "TypeParametersProps",
|
|
6004
|
-
"canonicalReference": "@alloy-js/typescript
|
|
6020
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
6005
6021
|
},
|
|
6006
6022
|
{
|
|
6007
6023
|
"kind": "Content",
|
|
@@ -6121,7 +6137,7 @@
|
|
|
6121
6137
|
{
|
|
6122
6138
|
"kind": "Function",
|
|
6123
6139
|
"canonicalReference": "@alloy-js/typescript!FunctionExpression:function(1)",
|
|
6124
|
-
"docComment": "/**\n * A TypeScript function expression.\n *\n * @remarks\n *\n
|
|
6140
|
+
"docComment": "/**\n * A TypeScript function expression.\n *\n * @remarks\n *\n * Providing parameters and type parameters can be accomplished in one of three ways:\n *\n * 1. As an array of {@link ParameterDescriptor}s or {@link TypeParameterDescriptor}s. 2. As raw content via the `parametersChildren` or `typeParametersChildren` props. 3. As a child of this component via the {@link (FunctionExpression:namespace).Parameters} or {@link (FunctionExpression:namespace).TypeParameters} components.\n *\n * @example\n * ```tsx\n * <FunctionExpression async parameters={[{ name: \"a\", type: \"number\" }, { name: \"b\", type: \"number\" }]}>\n * return a + b;\n * <FunctionExpression>\n * ```\n *\n * renders to\n * ```ts\n * async function (a, b) { return a + b; }\n * ```\n *\n */\n",
|
|
6125
6141
|
"excerptTokens": [
|
|
6126
6142
|
{
|
|
6127
6143
|
"kind": "Content",
|
|
@@ -6357,7 +6373,7 @@
|
|
|
6357
6373
|
{
|
|
6358
6374
|
"kind": "Reference",
|
|
6359
6375
|
"text": "TypeParametersProps",
|
|
6360
|
-
"canonicalReference": "@alloy-js/typescript
|
|
6376
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
6361
6377
|
},
|
|
6362
6378
|
{
|
|
6363
6379
|
"kind": "Content",
|
|
@@ -6393,7 +6409,7 @@
|
|
|
6393
6409
|
{
|
|
6394
6410
|
"kind": "Reference",
|
|
6395
6411
|
"text": "TypeParametersProps",
|
|
6396
|
-
"canonicalReference": "@alloy-js/typescript
|
|
6412
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
6397
6413
|
},
|
|
6398
6414
|
{
|
|
6399
6415
|
"kind": "Content",
|
|
@@ -6578,7 +6594,7 @@
|
|
|
6578
6594
|
{
|
|
6579
6595
|
"kind": "Variable",
|
|
6580
6596
|
"canonicalReference": "@alloy-js/typescript!FunctionType:var",
|
|
6581
|
-
"docComment": "/**\n * A TypeScript function declaration.\n *\n * @remarks\n *\n
|
|
6597
|
+
"docComment": "/**\n * A TypeScript function declaration.\n *\n * @remarks\n *\n * Providing parameters and type parameters can be accomplished in one of three ways:\n *\n * 1. As an array of {@link TypeParameterDescriptor}s or {@link TypeParameterDescriptor}s. 2. As raw content via the `parametersChildren` or `typeParametersChildren` props. 3. As a child of this component via the {@link FunctionType.Parameters} or {@link FunctionType.TypeParameters} components.\n *\n * @example\n * ```ts\n * (foo: string, bar: number) => void\n * ```\n *\n */\n",
|
|
6582
6598
|
"excerptTokens": [
|
|
6583
6599
|
{
|
|
6584
6600
|
"kind": "Content",
|
|
@@ -6618,7 +6634,7 @@
|
|
|
6618
6634
|
{
|
|
6619
6635
|
"kind": "Reference",
|
|
6620
6636
|
"text": "TypeParametersProps",
|
|
6621
|
-
"canonicalReference": "@alloy-js/typescript
|
|
6637
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
6622
6638
|
},
|
|
6623
6639
|
{
|
|
6624
6640
|
"kind": "Content",
|
|
@@ -6654,7 +6670,7 @@
|
|
|
6654
6670
|
{
|
|
6655
6671
|
"kind": "Reference",
|
|
6656
6672
|
"text": "TypeParametersProps",
|
|
6657
|
-
"canonicalReference": "@alloy-js/typescript
|
|
6673
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
6658
6674
|
},
|
|
6659
6675
|
{
|
|
6660
6676
|
"kind": "Content",
|
|
@@ -6951,7 +6967,7 @@
|
|
|
6951
6967
|
{
|
|
6952
6968
|
"kind": "Function",
|
|
6953
6969
|
"canonicalReference": "@alloy-js/typescript!getPackageScope:function(1)",
|
|
6954
|
-
"docComment": "/**\n * Retrieve the package scope associated with an external package created via
|
|
6970
|
+
"docComment": "/**\n * Retrieve the package scope associated with an external package created via createPackage.\n */\n",
|
|
6955
6971
|
"excerptTokens": [
|
|
6956
6972
|
{
|
|
6957
6973
|
"kind": "Content",
|
|
@@ -7530,7 +7546,7 @@
|
|
|
7530
7546
|
{
|
|
7531
7547
|
"kind": "Function",
|
|
7532
7548
|
"canonicalReference": "@alloy-js/typescript!InterfaceDeclaration:function(1)",
|
|
7533
|
-
"docComment": "/**\n * Create a TypeScript interface declaration.\n *\n * @remarks\n *\n
|
|
7549
|
+
"docComment": "/**\n * Create a TypeScript interface declaration.\n *\n * @remarks\n *\n * This component will declare a symbol for this interface. The `export` and `default` boolean props determine whether and how this symbol is exported from the package.\n */\n",
|
|
7534
7550
|
"excerptTokens": [
|
|
7535
7551
|
{
|
|
7536
7552
|
"kind": "Content",
|
|
@@ -7614,7 +7630,7 @@
|
|
|
7614
7630
|
{
|
|
7615
7631
|
"kind": "Reference",
|
|
7616
7632
|
"text": "TypeParametersProps",
|
|
7617
|
-
"canonicalReference": "@alloy-js/typescript
|
|
7633
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
7618
7634
|
},
|
|
7619
7635
|
{
|
|
7620
7636
|
"kind": "Content",
|
|
@@ -7650,7 +7666,7 @@
|
|
|
7650
7666
|
{
|
|
7651
7667
|
"kind": "Reference",
|
|
7652
7668
|
"text": "TypeParametersProps",
|
|
7653
|
-
"canonicalReference": "@alloy-js/typescript
|
|
7669
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
7654
7670
|
},
|
|
7655
7671
|
{
|
|
7656
7672
|
"kind": "Content",
|
|
@@ -7909,7 +7925,7 @@
|
|
|
7909
7925
|
{
|
|
7910
7926
|
"kind": "Function",
|
|
7911
7927
|
"canonicalReference": "@alloy-js/typescript!InterfaceMember:function(1)",
|
|
7912
|
-
"docComment": "/**\n * Create a TypeScript interface member.\n *\n * An interface member can either provide a `name` prop to create a named
|
|
7928
|
+
"docComment": "/**\n * Create a TypeScript interface member.\n *\n * An interface member can either provide a `name` prop to create a named property, or an `indexer` prop to define an indexer for the interface.\n *\n * The type of the member can be provided either as the `type` prop or as the children of the component.\n */\n",
|
|
7913
7929
|
"excerptTokens": [
|
|
7914
7930
|
{
|
|
7915
7931
|
"kind": "Content",
|
|
@@ -8162,7 +8178,7 @@
|
|
|
8162
8178
|
{
|
|
8163
8179
|
"kind": "Function",
|
|
8164
8180
|
"canonicalReference": "@alloy-js/typescript!InterfaceMethod:function(1)",
|
|
8165
|
-
"docComment": "/**\n * An interface method declaration.\n *\n * @remarks\n *\n
|
|
8181
|
+
"docComment": "/**\n * An interface method declaration.\n *\n * @remarks\n *\n * Providing parameters and type parameters can be accomplished in one of three ways:\n *\n * 1. As an array of {@link TypeParameterDescriptor}s or {@link TypeParameterDescriptor}s. 2. As raw content via the `parametersChildren` or `typeParametersChildren` props. 3. As a child of this component via the {@link (InterfaceMethod:namespace).Parameters} or {@link (InterfaceMethod:namespace).TypeParameters} components.\n *\n * @example\n * ```ts\n * (foo: string, bar: number) => void\n * ```\n *\n */\n",
|
|
8166
8182
|
"excerptTokens": [
|
|
8167
8183
|
{
|
|
8168
8184
|
"kind": "Content",
|
|
@@ -8322,7 +8338,7 @@
|
|
|
8322
8338
|
{
|
|
8323
8339
|
"kind": "Reference",
|
|
8324
8340
|
"text": "TypeParametersProps",
|
|
8325
|
-
"canonicalReference": "@alloy-js/typescript
|
|
8341
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
8326
8342
|
},
|
|
8327
8343
|
{
|
|
8328
8344
|
"kind": "Content",
|
|
@@ -8358,7 +8374,7 @@
|
|
|
8358
8374
|
{
|
|
8359
8375
|
"kind": "Reference",
|
|
8360
8376
|
"text": "TypeParametersProps",
|
|
8361
|
-
"canonicalReference": "@alloy-js/typescript
|
|
8377
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface"
|
|
8362
8378
|
},
|
|
8363
8379
|
{
|
|
8364
8380
|
"kind": "Content",
|
|
@@ -8684,7 +8700,7 @@
|
|
|
8684
8700
|
{
|
|
8685
8701
|
"kind": "Function",
|
|
8686
8702
|
"canonicalReference": "@alloy-js/typescript!JSDoc:function(1)",
|
|
8687
|
-
"docComment": "/**\n * A JSDoc comment. The children of this component are joined with two hard
|
|
8703
|
+
"docComment": "/**\n * A JSDoc comment. The children of this component are joined with two hard linebreaks. This is useful for creating JSDoc comments with multiple paragraphs.\n */\n",
|
|
8688
8704
|
"excerptTokens": [
|
|
8689
8705
|
{
|
|
8690
8706
|
"kind": "Content",
|
|
@@ -8731,7 +8747,7 @@
|
|
|
8731
8747
|
{
|
|
8732
8748
|
"kind": "Function",
|
|
8733
8749
|
"canonicalReference": "@alloy-js/typescript!JSDocComment:function(1)",
|
|
8734
|
-
"docComment": "/**\n * A JSDoc comment block. This is a low-level component that merely creates the
|
|
8750
|
+
"docComment": "/**\n * A JSDoc comment block. This is a low-level component that merely creates the block. Consider using {@link JSDoc} if you want to create more complex comments.\n */\n",
|
|
8735
8751
|
"excerptTokens": [
|
|
8736
8752
|
{
|
|
8737
8753
|
"kind": "Content",
|
|
@@ -8824,7 +8840,7 @@
|
|
|
8824
8840
|
{
|
|
8825
8841
|
"kind": "Function",
|
|
8826
8842
|
"canonicalReference": "@alloy-js/typescript!JSDocExample:function(1)",
|
|
8827
|
-
"docComment": "/**\n * Create a JSDoc example set off with `@example`. When the `fenced` prop is true, a `language` prop can
|
|
8843
|
+
"docComment": "/**\n * Create a JSDoc example set off with `@example`. When the `fenced` prop is true, a `language` prop can also be set.\n */\n",
|
|
8828
8844
|
"excerptTokens": [
|
|
8829
8845
|
{
|
|
8830
8846
|
"kind": "Content",
|
|
@@ -9017,7 +9033,7 @@
|
|
|
9017
9033
|
{
|
|
9018
9034
|
"kind": "Function",
|
|
9019
9035
|
"canonicalReference": "@alloy-js/typescript!MemberExpression:function(1)",
|
|
9020
|
-
"docComment": "/**\n * Create a member expression from parts. Each part can provide one of
|
|
9036
|
+
"docComment": "/**\n * Create a member expression from parts. Each part can provide one of the following:\n *\n * * **id**: The identifier for the member expression part * **refkey**: a refkey for a symbol whose name becomes the identifier * **symbol**: a symbol whose name becomes the identifier part * **args**: create a method call with the given args * **children**: arbitrary contents for the identifier part * **await**: whether to await the value that results from this part of the member expression\n *\n * Each part can have a nullish prop, which indicates that the part may be null or undefined.\n *\n * Each part can also have a quoteId prop, which indicates that the identifier of the part should be quoted (i.e. `[\"foo\"]` instead of `.foo`). This is only necessary when providing the children prop, otherwise it is determined automatically.\n *\n * @example\n * ```tsx\n * <MemberExpression>\n * <MemberExpression.Part id=\"base\" />\n * <MemberExpression.Part refkey={rk} nullish />\n * <MemberExpression.Part symbol={sym} />\n * <MemberExpression.Part args={[\"hello\", \"world\"]} />\n * <MemberExpression.Part>SomeValue</MemberExpression.Part>\n * </MemberExpression>\n * ```\n *\n * Assuming `rk` is a refkey to a symbol name \"prop1\", and `sym` is a symbol with a name of \"prop2\", this will render:\n * ```ts\n * base.prop1?.prop2(\"hello\", \"world\").SomeValue\n * ```\n *\n */\n",
|
|
9021
9037
|
"excerptTokens": [
|
|
9022
9038
|
{
|
|
9023
9039
|
"kind": "Content",
|
|
@@ -9196,7 +9212,7 @@
|
|
|
9196
9212
|
{
|
|
9197
9213
|
"kind": "PropertySignature",
|
|
9198
9214
|
"canonicalReference": "@alloy-js/typescript!MemberExpressionPartProps#children:member",
|
|
9199
|
-
"docComment": "/**\n * The contents of this part. When passed, overrides the other props except
|
|
9215
|
+
"docComment": "/**\n * The contents of this part. When passed, overrides the other props except nullish.\n */\n",
|
|
9200
9216
|
"excerptTokens": [
|
|
9201
9217
|
{
|
|
9202
9218
|
"kind": "Content",
|
|
@@ -9251,7 +9267,7 @@
|
|
|
9251
9267
|
{
|
|
9252
9268
|
"kind": "PropertySignature",
|
|
9253
9269
|
"canonicalReference": "@alloy-js/typescript!MemberExpressionPartProps#index:member",
|
|
9254
|
-
"docComment": "/**\n * The index for this part of the member expression. This is used when
|
|
9270
|
+
"docComment": "/**\n * The index for this part of the member expression. This is used when the part is an array access (i.e. `foo[0]`).\n */\n",
|
|
9255
9271
|
"excerptTokens": [
|
|
9256
9272
|
{
|
|
9257
9273
|
"kind": "Content",
|
|
@@ -9305,7 +9321,7 @@
|
|
|
9305
9321
|
{
|
|
9306
9322
|
"kind": "PropertySignature",
|
|
9307
9323
|
"canonicalReference": "@alloy-js/typescript!MemberExpressionPartProps#quoteId:member",
|
|
9308
|
-
"docComment": "/**\n * Whether the identifier should be quoted or not. Only needed when
|
|
9324
|
+
"docComment": "/**\n * Whether the identifier should be quoted or not. Only needed when providing the `children` prop, otherwise it is determined automatically.\n */\n",
|
|
9309
9325
|
"excerptTokens": [
|
|
9310
9326
|
{
|
|
9311
9327
|
"kind": "Content",
|
|
@@ -9437,7 +9453,7 @@
|
|
|
9437
9453
|
{
|
|
9438
9454
|
"kind": "TypeAlias",
|
|
9439
9455
|
"canonicalReference": "@alloy-js/typescript!ModuleExports:type",
|
|
9440
|
-
"docComment": "/**\n * Infers the exported members of a module based on its descriptor.\n *\n * D - The module descriptor, which may specify a `default` export (as a string)
|
|
9456
|
+
"docComment": "/**\n * Infers the exported members of a module based on its descriptor.\n *\n * D - The module descriptor, which may specify a `default` export (as a string) and/or an array of named exports (`named`).\n *\n * If `D` includes a `default` property of type `string`, the resulting type will include a `default` property of type `Refkey`. If `D` includes a `named` property (an array of `NamedModuleDescriptor`), the resulting type will include the mapped named exports as defined by `NamedMap`.\n */\n",
|
|
9441
9457
|
"excerptTokens": [
|
|
9442
9458
|
{
|
|
9443
9459
|
"kind": "Content",
|
|
@@ -9725,7 +9741,7 @@
|
|
|
9725
9741
|
{
|
|
9726
9742
|
"kind": "TypeAlias",
|
|
9727
9743
|
"canonicalReference": "@alloy-js/typescript!NamedModuleDescriptor:type",
|
|
9728
|
-
"docComment": "/**\n * Describes the structure of a module descriptor.\n *\n * A module descriptor can either be a string (representing the module name)
|
|
9744
|
+
"docComment": "/**\n * Describes the structure of a module descriptor.\n *\n * A module descriptor can either be a string (representing the module name) or an object with the following properties: - `name`: The name of the module. - `staticMembers`: An optional array of named module descriptors representing static members of the module. - `instanceMembers`: An optional array of named module descriptors representing instance members of the module.\n */\n",
|
|
9729
9745
|
"excerptTokens": [
|
|
9730
9746
|
{
|
|
9731
9747
|
"kind": "Content",
|
|
@@ -12037,7 +12053,7 @@
|
|
|
12037
12053
|
{
|
|
12038
12054
|
"kind": "PropertySignature",
|
|
12039
12055
|
"canonicalReference": "@alloy-js/typescript!PackageDirectoryProps#packages:member",
|
|
12040
|
-
"docComment": "/**\n * Optional configuration values for referenced external packages
|
|
12056
|
+
"docComment": "/**\n * Optional configuration values for referenced external packages. By default, external packages are added as regular dependencies. However you can specify `peerDependencies` or `devDependencies` to change this behavior. Version can also be specified here to override the configured package version.\n */\n",
|
|
12041
12057
|
"excerptTokens": [
|
|
12042
12058
|
{
|
|
12043
12059
|
"kind": "Content",
|
|
@@ -12198,7 +12214,7 @@
|
|
|
12198
12214
|
{
|
|
12199
12215
|
"kind": "Function",
|
|
12200
12216
|
"canonicalReference": "@alloy-js/typescript!PackageJsonFile:function(1)",
|
|
12201
|
-
"docComment": "/**\n * A file containing a package.json that defines a package. When placed inside a
|
|
12217
|
+
"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",
|
|
12202
12218
|
"excerptTokens": [
|
|
12203
12219
|
{
|
|
12204
12220
|
"kind": "Content",
|
|
@@ -12291,7 +12307,7 @@
|
|
|
12291
12307
|
{
|
|
12292
12308
|
"kind": "PropertySignature",
|
|
12293
12309
|
"canonicalReference": "@alloy-js/typescript!PackageJsonFileProps#dependencies:member",
|
|
12294
|
-
"docComment": "/**\n * The hard-coded dependencies of the package. References to external packages
|
|
12310
|
+
"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",
|
|
12295
12311
|
"excerptTokens": [
|
|
12296
12312
|
{
|
|
12297
12313
|
"kind": "Content",
|
|
@@ -13054,7 +13070,7 @@
|
|
|
13054
13070
|
{
|
|
13055
13071
|
"kind": "PropertySignature",
|
|
13056
13072
|
"canonicalReference": "@alloy-js/typescript!ParameterDescriptorBase#nullish:member",
|
|
13057
|
-
"docComment": "/**\n * Whether the parameter is can be null or undefined
|
|
13073
|
+
"docComment": "/**\n * Whether the parameter is can be null or undefined. when optional is true, this will be set to true by default, but explicitly setting this to false will override that.\n */\n",
|
|
13058
13074
|
"excerptTokens": [
|
|
13059
13075
|
{
|
|
13060
13076
|
"kind": "Content",
|
|
@@ -13149,7 +13165,7 @@
|
|
|
13149
13165
|
{
|
|
13150
13166
|
"kind": "PropertySignature",
|
|
13151
13167
|
"canonicalReference": "@alloy-js/typescript!ParameterDescriptorBase#rest:member",
|
|
13152
|
-
"docComment": "/**\n * Weather the parameter is rest parameter.\n *\n * @example\n
|
|
13168
|
+
"docComment": "/**\n * Weather the parameter is rest parameter.\n *\n * @example\n * ```ts\n * ...args: string[]\n * ```\n *\n */\n",
|
|
13153
13169
|
"excerptTokens": [
|
|
13154
13170
|
{
|
|
13155
13171
|
"kind": "Content",
|
|
@@ -13292,7 +13308,7 @@
|
|
|
13292
13308
|
"excerptTokens": [
|
|
13293
13309
|
{
|
|
13294
13310
|
"kind": "Content",
|
|
13295
|
-
"text": "export declare function Reference(
|
|
13311
|
+
"text": "export declare function Reference(input: "
|
|
13296
13312
|
},
|
|
13297
13313
|
{
|
|
13298
13314
|
"kind": "Reference",
|
|
@@ -13327,6 +13343,14 @@
|
|
|
13327
13343
|
"parameters": [
|
|
13328
13344
|
{
|
|
13329
13345
|
"parameterName": "{ refkey, type }",
|
|
13346
|
+
"parameterTypeTokenRange": {
|
|
13347
|
+
"startIndex": 0,
|
|
13348
|
+
"endIndex": 0
|
|
13349
|
+
},
|
|
13350
|
+
"isOptional": false
|
|
13351
|
+
},
|
|
13352
|
+
{
|
|
13353
|
+
"parameterName": "input",
|
|
13330
13354
|
"parameterTypeTokenRange": {
|
|
13331
13355
|
"startIndex": 1,
|
|
13332
13356
|
"endIndex": 2
|
|
@@ -13382,7 +13406,7 @@
|
|
|
13382
13406
|
{
|
|
13383
13407
|
"kind": "PropertySignature",
|
|
13384
13408
|
"canonicalReference": "@alloy-js/typescript!ReferenceProps#type:member",
|
|
13385
|
-
"docComment": "/**\n * Whether this is a reference to a type.\n *\n * @remarks\n *\n
|
|
13409
|
+
"docComment": "/**\n * Whether this is a reference to a type.\n *\n * @remarks\n *\n * This affect things like import where `type` keyword might be used.\n */\n",
|
|
13386
13410
|
"excerptTokens": [
|
|
13387
13411
|
{
|
|
13388
13412
|
"kind": "Content",
|
|
@@ -13457,7 +13481,7 @@
|
|
|
13457
13481
|
{
|
|
13458
13482
|
"kind": "Function",
|
|
13459
13483
|
"canonicalReference": "@alloy-js/typescript!SingleLineCommentBlock:function(1)",
|
|
13460
|
-
"docComment": "/**\n * A single line comment block. The children are rendered as a prose element, which means that they
|
|
13484
|
+
"docComment": "/**\n * A single line comment block. The children are rendered as a prose element, which means that they are broken into multiple lines\n */\n",
|
|
13461
13485
|
"excerptTokens": [
|
|
13462
13486
|
{
|
|
13463
13487
|
"kind": "Content",
|
|
@@ -14277,7 +14301,7 @@
|
|
|
14277
14301
|
{
|
|
14278
14302
|
"kind": "Class",
|
|
14279
14303
|
"canonicalReference": "@alloy-js/typescript!TSLexicalScope:class",
|
|
14280
|
-
"docComment": "/**\n * A lexical scope for TypeScript, which contains declaration spaces for types
|
|
14304
|
+
"docComment": "/**\n * A lexical scope for TypeScript, which contains declaration spaces for types and values. This scope is used to hold symbols for things like variable or interface declarations.\n */\n",
|
|
14281
14305
|
"excerptTokens": [
|
|
14282
14306
|
{
|
|
14283
14307
|
"kind": "Content",
|
|
@@ -14409,7 +14433,7 @@
|
|
|
14409
14433
|
{
|
|
14410
14434
|
"kind": "Class",
|
|
14411
14435
|
"canonicalReference": "@alloy-js/typescript!TSMemberScope:class",
|
|
14412
|
-
"docComment": "/**\n * A member scope for TypeScript. Member declarations create symbols in this
|
|
14436
|
+
"docComment": "/**\n * A member scope for TypeScript. Member declarations create symbols in this scope, which will be added to the owner symbol's members.\n */\n",
|
|
14413
14437
|
"excerptTokens": [
|
|
14414
14438
|
{
|
|
14415
14439
|
"kind": "Content",
|
|
@@ -14619,7 +14643,7 @@
|
|
|
14619
14643
|
{
|
|
14620
14644
|
"kind": "Class",
|
|
14621
14645
|
"canonicalReference": "@alloy-js/typescript!TSModuleScope:class",
|
|
14622
|
-
"docComment": "/**\n * A lexical scope for TypeScript which represents the top-level scope of a
|
|
14646
|
+
"docComment": "/**\n * A lexical scope for TypeScript which represents the top-level scope of a module. Manages the module's imported and exported symbols.\n */\n",
|
|
14623
14647
|
"excerptTokens": [
|
|
14624
14648
|
{
|
|
14625
14649
|
"kind": "Content",
|
|
@@ -14945,7 +14969,7 @@
|
|
|
14945
14969
|
{
|
|
14946
14970
|
"kind": "Method",
|
|
14947
14971
|
"canonicalReference": "@alloy-js/typescript!TSModuleScope#removeImport:member(1)",
|
|
14948
|
-
"docComment": "/**\n * Decrement the refcount for an import previously registered via
|
|
14972
|
+
"docComment": "/**\n * Decrement the refcount for an import previously registered via {@link TSModuleScope.addImport | addImport}. When the last live consumer goes away, the local import symbol is deleted, which removes it from the module's name spaces and triggers name-conflict-resolver reconciliation.\n */\n",
|
|
14949
14973
|
"excerptTokens": [
|
|
14950
14974
|
{
|
|
14951
14975
|
"kind": "Content",
|
|
@@ -16272,7 +16296,7 @@
|
|
|
16272
16296
|
{
|
|
16273
16297
|
"kind": "Property",
|
|
16274
16298
|
"canonicalReference": "@alloy-js/typescript!TSPackageScope#exportedSymbols:member",
|
|
16275
|
-
"docComment": "/**\n * The symbols exported by this package. They are broken down by which paths
|
|
16299
|
+
"docComment": "/**\n * The symbols exported by this package. They are broken down by which paths they are exported from. It is possible a symbol may be present at multiple paths, in which case emitters can decide which symbol to use based on their own heuristics.\n */\n",
|
|
16276
16300
|
"excerptTokens": [
|
|
16277
16301
|
{
|
|
16278
16302
|
"kind": "Content",
|
|
@@ -16374,7 +16398,7 @@
|
|
|
16374
16398
|
{
|
|
16375
16399
|
"kind": "Property",
|
|
16376
16400
|
"canonicalReference": "@alloy-js/typescript!TSPackageScope#modules:member",
|
|
16377
|
-
"docComment": "/**\n * All of the modules contained within the package. These modules may or may not
|
|
16401
|
+
"docComment": "/**\n * All of the modules contained within the package. These modules may or may not be exported.\n */\n",
|
|
16378
16402
|
"excerptTokens": [
|
|
16379
16403
|
{
|
|
16380
16404
|
"kind": "Content",
|
|
@@ -16914,14 +16938,92 @@
|
|
|
16914
16938
|
],
|
|
16915
16939
|
"extendsTokenRanges": []
|
|
16916
16940
|
},
|
|
16941
|
+
{
|
|
16942
|
+
"kind": "Interface",
|
|
16943
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps:interface",
|
|
16944
|
+
"docComment": "/**\n * Props for type parameters\n */\n",
|
|
16945
|
+
"excerptTokens": [
|
|
16946
|
+
{
|
|
16947
|
+
"kind": "Content",
|
|
16948
|
+
"text": "export interface TypeParametersProps "
|
|
16949
|
+
}
|
|
16950
|
+
],
|
|
16951
|
+
"fileUrlPath": "src/components/FunctionBase.tsx",
|
|
16952
|
+
"releaseTag": "Public",
|
|
16953
|
+
"name": "TypeParametersProps",
|
|
16954
|
+
"preserveMemberOrder": false,
|
|
16955
|
+
"members": [
|
|
16956
|
+
{
|
|
16957
|
+
"kind": "PropertySignature",
|
|
16958
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps#children:member",
|
|
16959
|
+
"docComment": "/**\n * Jsx Children\n */\n",
|
|
16960
|
+
"excerptTokens": [
|
|
16961
|
+
{
|
|
16962
|
+
"kind": "Content",
|
|
16963
|
+
"text": "children?: "
|
|
16964
|
+
},
|
|
16965
|
+
{
|
|
16966
|
+
"kind": "Reference",
|
|
16967
|
+
"text": "Children",
|
|
16968
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
16969
|
+
},
|
|
16970
|
+
{
|
|
16971
|
+
"kind": "Content",
|
|
16972
|
+
"text": ";"
|
|
16973
|
+
}
|
|
16974
|
+
],
|
|
16975
|
+
"isReadonly": false,
|
|
16976
|
+
"isOptional": true,
|
|
16977
|
+
"releaseTag": "Public",
|
|
16978
|
+
"name": "children",
|
|
16979
|
+
"propertyTypeTokenRange": {
|
|
16980
|
+
"startIndex": 1,
|
|
16981
|
+
"endIndex": 2
|
|
16982
|
+
}
|
|
16983
|
+
},
|
|
16984
|
+
{
|
|
16985
|
+
"kind": "PropertySignature",
|
|
16986
|
+
"canonicalReference": "@alloy-js/typescript!TypeParametersProps#parameters:member",
|
|
16987
|
+
"docComment": "/**\n * Parameters\n */\n",
|
|
16988
|
+
"excerptTokens": [
|
|
16989
|
+
{
|
|
16990
|
+
"kind": "Content",
|
|
16991
|
+
"text": "parameters?: "
|
|
16992
|
+
},
|
|
16993
|
+
{
|
|
16994
|
+
"kind": "Reference",
|
|
16995
|
+
"text": "TypeParameterDescriptor",
|
|
16996
|
+
"canonicalReference": "@alloy-js/typescript!TypeParameterDescriptor:interface"
|
|
16997
|
+
},
|
|
16998
|
+
{
|
|
16999
|
+
"kind": "Content",
|
|
17000
|
+
"text": "[] | string[]"
|
|
17001
|
+
},
|
|
17002
|
+
{
|
|
17003
|
+
"kind": "Content",
|
|
17004
|
+
"text": ";"
|
|
17005
|
+
}
|
|
17006
|
+
],
|
|
17007
|
+
"isReadonly": false,
|
|
17008
|
+
"isOptional": true,
|
|
17009
|
+
"releaseTag": "Public",
|
|
17010
|
+
"name": "parameters",
|
|
17011
|
+
"propertyTypeTokenRange": {
|
|
17012
|
+
"startIndex": 1,
|
|
17013
|
+
"endIndex": 3
|
|
17014
|
+
}
|
|
17015
|
+
}
|
|
17016
|
+
],
|
|
17017
|
+
"extendsTokenRanges": []
|
|
17018
|
+
},
|
|
16917
17019
|
{
|
|
16918
17020
|
"kind": "Function",
|
|
16919
17021
|
"canonicalReference": "@alloy-js/typescript!TypeRefContext:function(1)",
|
|
16920
|
-
"docComment": "/**\n * Set the current context of reference to be type reference.\n *\n * @remarks\n *\n
|
|
17022
|
+
"docComment": "/**\n * Set the current context of reference to be type reference.\n *\n * @remarks\n *\n * References used inside the children of this component will be treated as type reference {@link Reference}.\n *\n * Prefer using {@link ensureTypeRefContext} when wrapping the whole component to reduce tree nodes.\n */\n",
|
|
16921
17023
|
"excerptTokens": [
|
|
16922
17024
|
{
|
|
16923
17025
|
"kind": "Content",
|
|
16924
|
-
"text": "TypeRefContext: (
|
|
17026
|
+
"text": "TypeRefContext: (input: "
|
|
16925
17027
|
},
|
|
16926
17028
|
{
|
|
16927
17029
|
"kind": "Reference",
|
|
@@ -16948,6 +17050,14 @@
|
|
|
16948
17050
|
"parameters": [
|
|
16949
17051
|
{
|
|
16950
17052
|
"parameterName": "{ children }",
|
|
17053
|
+
"parameterTypeTokenRange": {
|
|
17054
|
+
"startIndex": 0,
|
|
17055
|
+
"endIndex": 0
|
|
17056
|
+
},
|
|
17057
|
+
"isOptional": false
|
|
17058
|
+
},
|
|
17059
|
+
{
|
|
17060
|
+
"parameterName": "input",
|
|
16951
17061
|
"parameterTypeTokenRange": {
|
|
16952
17062
|
"startIndex": 1,
|
|
16953
17063
|
"endIndex": 2
|