@powerlines/plugin-alloy 0.21.3 → 0.22.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/dist/core/components/output.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/contexts/reflection.d.cts.map +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +2 -2
- package/dist/helpers/index.d.mts +2 -2
- package/dist/helpers/index.mjs +2 -2
- package/dist/helpers/typescript.cjs +2 -2
- package/dist/helpers/typescript.d.cts +6 -6
- package/dist/helpers/typescript.d.cts.map +1 -1
- package/dist/helpers/typescript.d.mts +6 -6
- package/dist/helpers/typescript.d.mts.map +1 -1
- package/dist/helpers/typescript.mjs +2 -2
- package/dist/helpers/typescript.mjs.map +1 -1
- package/dist/markdown/components/front-matter.d.cts +2 -2
- package/dist/markdown/components/front-matter.d.cts.map +1 -1
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-file.d.mts +3 -3
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- package/dist/markdown/components/markdown-table.d.mts +4 -4
- package/dist/markdown/contexts/markdown-table.d.cts.map +1 -1
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/class-declaration.cjs +112 -14
- package/dist/typescript/components/class-declaration.d.cts +55 -1
- package/dist/typescript/components/class-declaration.d.cts.map +1 -1
- package/dist/typescript/components/class-declaration.d.mts +55 -1
- package/dist/typescript/components/class-declaration.d.mts.map +1 -1
- package/dist/typescript/components/class-declaration.mjs +112 -16
- package/dist/typescript/components/class-declaration.mjs.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/index.cjs +14 -10
- package/dist/typescript/components/index.d.cts +5 -5
- package/dist/typescript/components/index.d.mts +5 -5
- package/dist/typescript/components/index.mjs +6 -6
- package/dist/typescript/components/interface-declaration.cjs +225 -0
- package/dist/typescript/components/interface-declaration.d.cts +82 -0
- package/dist/typescript/components/interface-declaration.d.cts.map +1 -0
- package/dist/typescript/components/interface-declaration.d.mts +82 -0
- package/dist/typescript/components/interface-declaration.d.mts.map +1 -0
- package/dist/typescript/components/interface-declaration.mjs +222 -0
- package/dist/typescript/components/interface-declaration.mjs.map +1 -0
- package/dist/typescript/components/{typescript-object.cjs → object-declaration.cjs} +6 -6
- package/dist/typescript/components/object-declaration.d.cts +30 -0
- package/dist/typescript/components/object-declaration.d.cts.map +1 -0
- package/dist/typescript/components/object-declaration.d.mts +30 -0
- package/dist/typescript/components/object-declaration.d.mts.map +1 -0
- package/dist/typescript/components/{typescript-object.mjs → object-declaration.mjs} +6 -6
- package/dist/typescript/components/object-declaration.mjs.map +1 -0
- package/dist/typescript/components/{typescript-property-name.cjs → property-name.cjs} +3 -3
- package/dist/typescript/components/{typescript-property-name.d.mts → property-name.d.cts} +7 -7
- package/dist/typescript/components/property-name.d.cts.map +1 -0
- package/dist/typescript/components/{typescript-property-name.d.cts → property-name.d.mts} +7 -7
- package/dist/typescript/components/property-name.d.mts.map +1 -0
- package/dist/typescript/components/{typescript-property-name.mjs → property-name.mjs} +4 -4
- package/dist/typescript/components/property-name.mjs.map +1 -0
- package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +4 -4
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc.cjs +8 -12
- package/dist/typescript/components/tsdoc.d.cts.map +1 -1
- package/dist/typescript/components/tsdoc.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc.mjs +8 -12
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/contexts/lexical-scope.d.cts +2 -2
- package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -1
- package/dist/typescript/index.cjs +13 -9
- package/dist/typescript/index.d.cts +5 -5
- package/dist/typescript/index.d.mts +5 -5
- package/dist/typescript/index.mjs +6 -6
- package/package.json +48 -48
- package/dist/typescript/components/typescript-interface.cjs +0 -73
- package/dist/typescript/components/typescript-interface.d.cts +0 -26
- package/dist/typescript/components/typescript-interface.d.cts.map +0 -1
- package/dist/typescript/components/typescript-interface.d.mts +0 -26
- package/dist/typescript/components/typescript-interface.d.mts.map +0 -1
- package/dist/typescript/components/typescript-interface.mjs +0 -72
- package/dist/typescript/components/typescript-interface.mjs.map +0 -1
- package/dist/typescript/components/typescript-object.d.cts +0 -30
- package/dist/typescript/components/typescript-object.d.cts.map +0 -1
- package/dist/typescript/components/typescript-object.d.mts +0 -30
- package/dist/typescript/components/typescript-object.d.mts.map +0 -1
- package/dist/typescript/components/typescript-object.mjs.map +0 -1
- package/dist/typescript/components/typescript-property-name.d.cts.map +0 -1
- package/dist/typescript/components/typescript-property-name.d.mts.map +0 -1
- package/dist/typescript/components/typescript-property-name.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuCiB,UAAA,SAAmB;YACxB;AADZ;AAOA;
|
|
1
|
+
{"version":3,"file":"tsdoc.d.cts","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuCiB,UAAA,SAAmB;YACxB;AADZ;AAOA;AA+BA;AAOA;AAgBiB,iBAtDD,KAAA,CAsDiB,KACnB,EAvDe,UAuDf,CAAA,EAvDyB,QAuDN;AAMjB,UA9BC,aAAA,SAAsB,cA8BY,CAAA;EA2BnC,GAAA,EAAA,MAAA;AAahB;AAaA;AAaA;AAUA;AACQ,iBApGQ,QAAA,CAoGR,KAAA,EApGwB,aAoGxB,CAAA,EApGqC,QAoGrC;AAAiB,UApFR,gBAAA,CAoFQ;EAAqB,UAAA,EAnFhC,mBAmFgC,EAAA,GAAA,MAAA,EAAA;;;AAO9C;AAmBA;AAagB,iBApHA,WAAA,CAoHiB,KAAA,EApHE,gBAoHY,CAAA,EApHI,QAoHJ;AAI/C;AAYA;AA4BA;AAOgB,iBA5IA,UAAA,CA4Ia,KAAA,EA5IK,cA4IL,CAAA,EA5ImB,QA4InB;AAO7B;AAOA;AAIA;AACS,iBAlJO,WAAA,CAkJP,KAAA,EAlJ0B,cAkJ1B,CAAA,EAlJwC,QAkJxC;;;;AAeO,iBApJA,UAAA,CAoJmB,KAAQ,EApJT,cAoJS,CAAA,EApJK,QAoJmB;AA+EnE;;;AAIiB,iBA1ND,eAAA,CA0NC,KAAA,EA1NsB,cA0NtB,CAAA,EA1NoC,QA0NpC;AAAQ,UAhNR,sBAAA,SAA+B,cAgNvB,CAAA;EAMT,IAAA,EArNR,cAqNkB,GArND,kBAqNS,GArNY,mBAqNG;EAiDjC,YAAA,EAAA,GAAY;AAO5B;AAIA;AAiCA;;iBA3SgB,iBAAA,QAAyB,yBAAsB;;;;iBAmB/C,YAAA,QAAoB,iBAAc;;;;iBAalC,SAAA,QAAiB,iBAAc;UAI9B,iBAAA,SAA0B;;;;;;;;;;;iBAY3B,YAAA,QAAoB,oBAAiB;;;;iBA4BrC,aAAA,CAAA,GAAa;;;;iBAOb,aAAA,CAAA,GAAa;;;;iBAOb,WAAA,CAAA,GAAW;;;;iBAOX,WAAA,CAAA,GAAW;UAIV,wBAAA;SACR,iBAAiB,qBAAqB;;;;;;;;;;;;;;iBAe/B,mBAAA,QAA2B,2BAAwB;UA+ElD,eAAA;QACT;aACK;;iBAEI;;;;;iBAMD,UAAA,QAAkB,kBAAe;;;;iBAiDjC,YAAA,QAAoB,iBAAc;;;;iBAOlC,WAAA,QAAmB,iBAAc;UAIhC,gBAAA,SAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BlC;;;;;iBAMQ,WAAA,QAAmB,mBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc.d.mts","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuCiB,UAAA,SAAmB;YACxB;AADZ;AAOA;
|
|
1
|
+
{"version":3,"file":"tsdoc.d.mts","names":[],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":[],"mappings":";;;;;;UAuCiB,UAAA,SAAmB;YACxB;AADZ;AAOA;AA+BA;AAOA;AAgBiB,iBAtDD,KAAA,CAsDiB,KAAA,EAtDJ,UAuDf,CAAA,EAvDyB,QAuDN;AAMjB,UA9BC,aAAA,SAAsB,cA8BY,CAAA;EA2BnC,GAAA,EAAA,MAAA;AAahB;AAaA;AAaA;AAUA;AACQ,iBApGQ,QAAA,CAoGR,KAAA,EApGwB,aAoGxB,CAAA,EApGqC,QAoGrC;AAAiB,UApFR,gBAAA,CAoFQ;EAAqB,UAAA,EAnFhC,mBAmFgC,EAAA,GAAA,MAAA,EAAA;;;AAO9C;AAmBA;AAagB,iBApHA,WAAA,CAoHiB,KAAA,EApHE,gBAoHY,CAAA,EApHI,QAoHJ;AAI/C;AAYA;AA4BA;AAOgB,iBA5IA,UAAA,CA4Ia,KAAA,EA5IK,cA4IL,CAAA,EA5ImB,QA4InB;AAO7B;AAOA;AAIA;AACS,iBAlJO,WAAA,CAkJP,KAAA,EAlJ0B,cAkJ1B,CAAA,EAlJwC,QAkJxC;;;;AAeO,iBApJA,UAAA,CAoJmB,KAAQ,EApJT,cAoJS,CAAA,EApJK,QAoJmB;AA+EnE;;;AAIiB,iBA1ND,eAAA,CA0NC,KAAA,EA1NsB,cA0NtB,CAAA,EA1NoC,QA0NpC;AAAQ,UAhNR,sBAAA,SAA+B,cAgNvB,CAAA;EAMT,IAAA,EArNR,cAqNkB,GArND,kBAqNS,GArNY,mBAqNG;EAiDjC,YAAA,EAAA,GAAY;AAO5B;AAIA;AAiCA;;iBA3SgB,iBAAA,QAAyB,yBAAsB;;;;iBAmB/C,YAAA,QAAoB,iBAAc;;;;iBAalC,SAAA,QAAiB,iBAAc;UAI9B,iBAAA,SAA0B;;;;;;;;;;;iBAY3B,YAAA,QAAoB,oBAAiB;;;;iBA4BrC,aAAA,CAAA,GAAa;;;;iBAOb,aAAA,CAAA,GAAa;;;;iBAOb,WAAA,CAAA,GAAW;;;;iBAOX,WAAA,CAAA,GAAW;UAIV,wBAAA;SACR,iBAAiB,qBAAqB;;;;;;;;;;;;;;iBAe/B,mBAAA,QAA2B,2BAAwB;UA+ElD,eAAA;QACT;aACK;;iBAEI;;;;;iBAMD,UAAA,QAAkB,kBAAe;;;;iBAiDjC,YAAA,QAAoB,iBAAc;;;;iBAOlC,WAAA,QAAmB,iBAAc;UAIhC,gBAAA,SAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BlC;;;;;iBAMQ,WAAA,QAAmB,mBAAgB"}
|
|
@@ -23,18 +23,14 @@ function TSDoc(props) {
|
|
|
23
23
|
return !isUndefined(heading);
|
|
24
24
|
},
|
|
25
25
|
get children() {
|
|
26
|
-
return [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return createIntrinsic("hbr", {});
|
|
35
|
-
}
|
|
36
|
-
})
|
|
37
|
-
];
|
|
26
|
+
return [heading, createComponent(Show, {
|
|
27
|
+
get when() {
|
|
28
|
+
return memo(() => !!!isUndefined(children))() && childrenArray(() => children).length > 0;
|
|
29
|
+
},
|
|
30
|
+
get children() {
|
|
31
|
+
return createIntrinsic("hbr", {});
|
|
32
|
+
}
|
|
33
|
+
})];
|
|
38
34
|
}
|
|
39
35
|
}),
|
|
40
36
|
createComponent(Show, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdoc.mjs","names":["childrenArray","For","List","Prose","Show","splitProps","stringifyDefaultValue","isSetString","isUndefined","usePowerlinesSafe","TSDoc","props","children","heading","_$createIntrinsic","string","_$createComponent","when","_$memo","length","TSDocTag","tag","Boolean","width","TSDocParams","parameters","normalizeParametersForDoc","each","param","TSDocParam","name","optional","doc","some","p","TSDocTitle","rest","_$mergeProps","TSDocDomain","TSDocAlias","TSDocPermission","TSDocDefaultValue","type","defaultValue","TSDocRemarks","hardline","TSDocLink","TSDocExample","tsx","fenced","language","TSDocReadonly","TSDocInternal","TSDocIgnore","TSDocHidden","TSDocAttributesTags","title","alias","permission","domain","readonly","internal","ignore","hidden","trim","a","filter","TSDocParamName","TSDocParamDescription","TSDocReturns","TSDocThrows","TSDocModule","prefix","context","config","framework"],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n childrenArray,\n For,\n List,\n Prose,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport { JSDocExampleProps, ParameterDescriptor } from \"@alloy-js/typescript\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport {\n ReflectionKind,\n ReflectionParameter,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport interface TSDocProps extends ComponentProps {\n heading?: Children;\n}\n\n/**\n * Generates a TypeScript interface for the given reflection class.\n */\nexport function TSDoc(props: TSDocProps) {\n const [{ children, heading }] = splitProps(props, [\"children\", \"heading\"]);\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={!isUndefined(heading)}>\n {heading}\n <hbr />\n <Show\n when={\n !isUndefined(children) && childrenArray(() => children).length > 0\n }>\n <hbr />\n </Show>\n </Show>\n <Show\n when={\n !isUndefined(children) && childrenArray(() => children).length > 0\n }>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </align>\n <hbr />\n {` */`}\n <hbr />\n </>\n );\n}\n\nexport interface TSDocTagProps extends ComponentProps {\n tag: string;\n}\n\n/**\n * Create a TSDoc `@<props.tag>` tag.\n */\nexport function TSDocTag(props: TSDocTagProps) {\n const [{ children, tag }] = splitProps(props, [\"children\", \"tag\"]);\n\n return (\n <>\n {`@${tag} `}\n <Show when={Boolean(children)}>\n <align width={2}>\n <Prose>{children}</Prose>\n </align>\n </Show>\n <hbr />\n </>\n );\n}\n\nexport interface TSDocParamsProps {\n parameters: ParameterDescriptor[] | string[];\n}\n\n/**\n * A component that creates a TSDoc block with `@param` tags for each parameter.\n */\nexport function TSDocParams(props: TSDocParamsProps) {\n const parameters = normalizeParametersForDoc(props.parameters);\n\n return (\n <For each={parameters}>\n {param => (\n <TSDocParam name={param.name} optional={param.optional}>\n {param.doc}\n </TSDocParam>\n )}\n </For>\n );\n}\n\nfunction normalizeParametersForDoc(\n parameters: ParameterDescriptor[] | string[]\n): ParameterDescriptor[] {\n if (parameters.some(p => typeof p === \"string\")) {\n return [];\n }\n\n return parameters as ParameterDescriptor[];\n}\n\n/**\n * Create a TSDoc `@title` tag.\n */\nexport function TSDocTitle(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"title\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@domain` tag.\n */\nexport function TSDocDomain(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"domain\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@alias` tag.\n */\nexport function TSDocAlias(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"alias\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@permission` tag.\n */\nexport function TSDocPermission(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"permission\">\n {children}\n </TSDocTag>\n );\n}\n\nexport interface TSDocDefaultValueProps extends ComponentProps {\n type: ReflectionKind | ReflectionProperty | ReflectionParameter;\n defaultValue: any;\n}\n\n/**\n * Create a TSDoc `@defaultValue` tag.\n */\nexport function TSDocDefaultValue(props: TSDocDefaultValueProps) {\n const [{ type, defaultValue }] = splitProps(props, [\"type\", \"defaultValue\"]);\n\n return (\n <>\n {\"@defaultValue \"}\n <Show when={!isUndefined(defaultValue)}>\n <align width={2}>\n <Prose>{stringifyDefaultValue(type, defaultValue)}</Prose>\n </align>\n </Show>\n <hbr />\n </>\n );\n}\n\n/**\n * Create a TSDoc `@remarks` tag.\n */\nexport function TSDocRemarks(props: ComponentProps) {\n return (\n <>\n {\"@remarks \"}\n <hbr />\n <List hardline={true}>{childrenArray(() => props.children)}</List>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@see` tag.\n */\nexport function TSDocLink(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"see\" />;\n}\n\nexport interface TSDocExampleProps extends JSDocExampleProps {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n}\n\n/**\n * Create a TSDoc `@example` tag.\n */\nexport function TSDocExample(props: TSDocExampleProps) {\n const [{ tsx, fenced = true, language, children }] = splitProps(props, [\n \"tsx\",\n \"fenced\",\n \"language\",\n \"children\"\n ]);\n\n return (\n <>\n {\"@example \"}\n <hbr />\n <Show when={fenced}>\n ```{language || (tsx ? \"tsx\" : \"ts\")}\n <hbr />\n </Show>\n {children}\n <Show when={fenced}>\n <hbr />\n ```\n </Show>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@readonly` tag.\n */\nexport function TSDocReadonly() {\n return <TSDocTag tag=\"readonly\" />;\n}\n\n/**\n * Create a TSDoc `@internal` tag.\n */\nexport function TSDocInternal() {\n return <TSDocTag tag=\"internal\" />;\n}\n\n/**\n * Create a TSDoc `@ignore` tag.\n */\nexport function TSDocIgnore() {\n return <TSDocTag tag=\"ignore\" />;\n}\n\n/**\n * Create a TSDoc `@hidden` tag.\n */\nexport function TSDocHidden() {\n return <TSDocTag tag=\"hidden\" />;\n}\n\nexport interface TSDocAttributesTagsProps {\n type?: ReflectionKind | ReflectionProperty | ReflectionParameter;\n title?: string;\n alias?: string[];\n permission?: string[];\n domain?: string;\n readonly?: boolean;\n internal?: boolean;\n ignore?: boolean;\n hidden?: boolean;\n defaultValue?: any;\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocAttributesTags(props: TSDocAttributesTagsProps) {\n const [\n {\n type,\n title,\n alias,\n permission,\n domain,\n readonly,\n internal,\n ignore,\n hidden,\n defaultValue\n }\n ] = splitProps(props, [\n \"type\",\n \"title\",\n \"alias\",\n \"permission\",\n \"domain\",\n \"readonly\",\n \"internal\",\n \"ignore\",\n \"hidden\",\n \"defaultValue\"\n ]);\n\n return (\n <>\n <Show when={isSetString(title?.trim())}>\n <TSDocTitle>{title}</TSDocTitle>\n </Show>\n <Show\n when={\n !isUndefined(alias) &&\n alias.length > 0 &&\n alias.some(a => isSetString(a?.trim()))\n }>\n <For each={alias?.filter(a => isSetString(a?.trim())) ?? []}>\n {alias => <TSDocAlias>{alias}</TSDocAlias>}\n </For>\n </Show>\n <Show when={isSetString(domain?.trim())}>\n <TSDocDomain>{domain}</TSDocDomain>\n </Show>\n <Show\n when={\n !isUndefined(permission) &&\n permission.length > 0 &&\n permission.some(p => isSetString(p?.trim()))\n }>\n <For each={permission?.filter(p => isSetString(p?.trim())) ?? []}>\n {permission => <TSDocPermission>{permission}</TSDocPermission>}\n </For>\n </Show>\n <Show when={readonly === true}>\n <TSDocReadonly />\n </Show>\n <Show when={internal === true}>\n <TSDocInternal />\n </Show>\n <Show when={ignore === true}>\n <TSDocIgnore />\n </Show>\n <Show when={hidden === true}>\n <TSDocHidden />\n </Show>\n <Show when={!isUndefined(type) && !isUndefined(defaultValue)}>\n <TSDocDefaultValue\n type={\n type as ReflectionKind | ReflectionProperty | ReflectionParameter\n }\n defaultValue={defaultValue}\n />\n </Show>\n </>\n );\n}\n\nexport interface TSDocParamProps {\n name: Children;\n children?: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\n/**\n * Create a TSDoc parameter set off with `@param`.\n */\nexport function TSDocParam(props: TSDocParamProps) {\n return (\n <>\n {\"@param \"}\n <TSDocParamName\n name={props.name}\n optional={props.optional}\n defaultValue={props.defaultValue}\n />\n <TSDocParamDescription children={props.children} />\n </>\n );\n}\n\ninterface TSDocParamNameProps {\n name: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\nfunction TSDocParamName(props: TSDocParamNameProps) {\n return (\n <>\n <Show when={props.optional}>{\"[\"}</Show>\n {props.name}\n <Show when={Boolean(props.defaultValue)}>={props.defaultValue}</Show>\n <Show when={props.optional}>{\"]\"}</Show>\n </>\n );\n}\n\ninterface TSDocParamDescriptionProps {\n children?: Children;\n}\n\nfunction TSDocParamDescription(props: TSDocParamDescriptionProps) {\n return (\n <Show when={Boolean(props.children)}>\n {\" - \"}\n <align width={2}>\n <Prose>{props.children}</Prose>\n </align>\n </Show>\n );\n}\n\n/**\n * Create a TSDoc `@returns` tag.\n */\nexport function TSDocReturns(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"returns\" />;\n}\n\n/**\n * Create a TSDoc `@throws` tag.\n */\nexport function TSDocThrows(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"throws\" />;\n}\n\nexport interface TSDocModuleProps extends ComponentProps {\n /**\n * The prefix for the builtin module name\n *\n * @remarks\n * This value is populated from the Powerlines configuration output builtin prefix by default.\n *\n * @example\n * ```ts\n * /**\n * @module powerlines:my-module\n * \\/\n * ```\n */\n prefix?: string;\n\n /**\n * The name of the module\n *\n * @remarks\n * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.\n *\n * @example\n * ```ts\n * import { MyModule } from \"powerlines:my-module\";\n * ```\n */\n name: Children;\n}\n\n/**\n * Generates a TSDoc `@module` tag for the given module name.\n */\nexport function TSDocModule(props: TSDocModuleProps) {\n const [{ children, name, prefix }] = splitProps(props, [\n \"children\",\n \"name\",\n \"prefix\"\n ]);\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={Boolean(children)}>\n <List hardline={true}>{childrenArray(() => children)}</List>\n <hbr />\n <hbr />\n </Show>\n {\"@module \"}\n {prefix || context?.config?.framework || \"powerlines\"}:{name}\n </align>\n <hbr />\n {` */`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;SA+GE,MAAA,OAAA;UAAA,UAAA,aAAA,WAAA,OAAA,CAAA,YAAA,UAAA,CAAA;;;;;;;;;;mCAgBA;;MAAA,IAAA,WAAA;AAAA,cAAA;;QAAA,gBAAA,OAAA,EAAA,CAAA;QAAA,sBAAA;SAAA,IAAA,OAAA;AAAA,iBAAA,WAAA,CAAA,CAAA,CAAA,YAAA,SAAA,CAAA,EAAA,IAAA,oBAAA,SAAA,CAAA,SAAA;;SAAA,IAAA,WAAA;AAAA,iBAAA,gBAAA,OAAA,EAAA,CAAA;;SAAA,CAAA;QAAA;;MAAA,CAAA;KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAiHc+C;;;;;;;;;;oBA6Bd/B,OAAAA;OAAAA,CAAAA,EAAAA,YAAAA,QAAAA,WAAAA,OAAAA,CAAAA,WAAAA,CAAAA;AAAAA,QAAAA;;;;;;;;gCAqBoB;OAAA,CAAA,EAAA,YAAA,QAAA,WAAA,OAAA,CAAA,WAAA,CAAA;wBAAA,UAAA,WAAA,MAAA;EAAA,KAAA;EAAA;EAAA,CAAA,CAAA;;;;;;;;;kBAgDsB,MAAA;GAAA,IAAA,OAAA;AAAA,WAAA,CAAA,YAAA,aAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,SAAA;KAAA,OAAA;KAAA,IAAA,WAAA;AAAA,aAAA,gBAAA,OAAA,EAAA,IAAA,WAAA;AAAA,cAAA,sBAAA,MAAA,aAAA;SAAA,CAAA;;KAAA,CAAA;;GAAA,CAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;;;;;kBA6BjC,MAAA;GAAA,UAAA;GAAA,IAAA,WAAA;AAAA,WAAA,oBAAA,MAAA,SAAA;;GAAA,CAAA;EAAA;;;;;;;;;;;SA8BX,aAAA,OAAA;OAAA,CAAA,EAAA,KAAA,SAAA,MAAA,UAAA,cAAA,WAAA,OAAA;EAAA;;;;;;EAOgB;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;;;;;;;kBAAQe,MAAAA;GAAAA,MAAAA;GAAAA,IAAAA,WAAAA;AAAAA,WAAAA,CAAAA,gBAAAA,OAAAA,EAAAA,CAAAA,EAAAA,MAAAA;;GAAAA,CAAAA;EAAAA;;;;;;;;;;;SAuBxB,gBAAA;wBAAA,UAAA,EAAA,KAAA,YAAA,CAAA;;;;;SAAA,cAAA;wBAAA,UAAA,EAAA,KAAA,UAAA,CAAA;;;;;;;;;;;SAmBA,oBAAA,OAAA;CAAA,MAAA,CAAA,EAAA,MAAA,OAAA,OAAA,oBAAA,UAAA,UAAA;;;;;;;;;EAMA;EAAA;;;;;;;;;;;;OAoCA,OAAA;AAAA,WAAA,WAAA,CAAA,EAAA,CAAA,YAAA"}
|
|
1
|
+
{"version":3,"file":"tsdoc.mjs","names":["childrenArray","For","List","Prose","Show","splitProps","stringifyDefaultValue","isSetString","isUndefined","usePowerlinesSafe","TSDoc","props","children","heading","_$createIntrinsic","string","_$createComponent","when","_$memo","length","TSDocTag","tag","Boolean","width","TSDocParams","parameters","normalizeParametersForDoc","each","param","TSDocParam","name","optional","doc","some","p","TSDocTitle","rest","_$mergeProps","TSDocDomain","TSDocAlias","TSDocPermission","TSDocDefaultValue","type","defaultValue","TSDocRemarks","hardline","TSDocLink","TSDocExample","tsx","fenced","language","TSDocReadonly","TSDocInternal","TSDocIgnore","TSDocHidden","TSDocAttributesTags","title","alias","permission","domain","readonly","internal","ignore","hidden","trim","a","filter","TSDocParamName","TSDocParamDescription","TSDocReturns","TSDocThrows","TSDocModule","prefix","context","config","framework"],"sources":["../../../src/typescript/components/tsdoc.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n childrenArray,\n For,\n List,\n Prose,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport { JSDocExampleProps, ParameterDescriptor } from \"@alloy-js/typescript\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport {\n ReflectionKind,\n ReflectionParameter,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport interface TSDocProps extends ComponentProps {\n heading?: Children;\n}\n\n/**\n * Generates a TypeScript interface for the given reflection class.\n */\nexport function TSDoc(props: TSDocProps) {\n const [{ children, heading }] = splitProps(props, [\"children\", \"heading\"]);\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={!isUndefined(heading)}>\n {heading}\n <Show\n when={\n !isUndefined(children) && childrenArray(() => children).length > 0\n }>\n <hbr />\n </Show>\n </Show>\n <Show\n when={\n !isUndefined(children) && childrenArray(() => children).length > 0\n }>\n <List>{childrenArray(() => children)}</List>\n </Show>\n </align>\n <hbr />\n {` */`}\n <hbr />\n </>\n );\n}\n\nexport interface TSDocTagProps extends ComponentProps {\n tag: string;\n}\n\n/**\n * Create a TSDoc `@<props.tag>` tag.\n */\nexport function TSDocTag(props: TSDocTagProps) {\n const [{ children, tag }] = splitProps(props, [\"children\", \"tag\"]);\n\n return (\n <>\n {`@${tag} `}\n <Show when={Boolean(children)}>\n <align width={2}>\n <Prose>{children}</Prose>\n </align>\n </Show>\n <hbr />\n </>\n );\n}\n\nexport interface TSDocParamsProps {\n parameters: ParameterDescriptor[] | string[];\n}\n\n/**\n * A component that creates a TSDoc block with `@param` tags for each parameter.\n */\nexport function TSDocParams(props: TSDocParamsProps) {\n const parameters = normalizeParametersForDoc(props.parameters);\n\n return (\n <For each={parameters}>\n {param => (\n <TSDocParam name={param.name} optional={param.optional}>\n {param.doc}\n </TSDocParam>\n )}\n </For>\n );\n}\n\nfunction normalizeParametersForDoc(\n parameters: ParameterDescriptor[] | string[]\n): ParameterDescriptor[] {\n if (parameters.some(p => typeof p === \"string\")) {\n return [];\n }\n\n return parameters as ParameterDescriptor[];\n}\n\n/**\n * Create a TSDoc `@title` tag.\n */\nexport function TSDocTitle(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"title\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@domain` tag.\n */\nexport function TSDocDomain(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"domain\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@alias` tag.\n */\nexport function TSDocAlias(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"alias\">\n {children}\n </TSDocTag>\n );\n}\n\n/**\n * Create a TSDoc `@permission` tag.\n */\nexport function TSDocPermission(props: ComponentProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <TSDocTag {...rest} tag=\"permission\">\n {children}\n </TSDocTag>\n );\n}\n\nexport interface TSDocDefaultValueProps extends ComponentProps {\n type: ReflectionKind | ReflectionProperty | ReflectionParameter;\n defaultValue: any;\n}\n\n/**\n * Create a TSDoc `@defaultValue` tag.\n */\nexport function TSDocDefaultValue(props: TSDocDefaultValueProps) {\n const [{ type, defaultValue }] = splitProps(props, [\"type\", \"defaultValue\"]);\n\n return (\n <>\n {\"@defaultValue \"}\n <Show when={!isUndefined(defaultValue)}>\n <align width={2}>\n <Prose>{stringifyDefaultValue(type, defaultValue)}</Prose>\n </align>\n </Show>\n <hbr />\n </>\n );\n}\n\n/**\n * Create a TSDoc `@remarks` tag.\n */\nexport function TSDocRemarks(props: ComponentProps) {\n return (\n <>\n {\"@remarks \"}\n <hbr />\n <List hardline={true}>{childrenArray(() => props.children)}</List>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@see` tag.\n */\nexport function TSDocLink(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"see\" />;\n}\n\nexport interface TSDocExampleProps extends JSDocExampleProps {\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n}\n\n/**\n * Create a TSDoc `@example` tag.\n */\nexport function TSDocExample(props: TSDocExampleProps) {\n const [{ tsx, fenced = true, language, children }] = splitProps(props, [\n \"tsx\",\n \"fenced\",\n \"language\",\n \"children\"\n ]);\n\n return (\n <>\n {\"@example \"}\n <hbr />\n <Show when={fenced}>\n ```{language || (tsx ? \"tsx\" : \"ts\")}\n <hbr />\n </Show>\n {children}\n <Show when={fenced}>\n <hbr />\n ```\n </Show>\n </>\n );\n}\n\n/**\n * Create a TSDoc `@readonly` tag.\n */\nexport function TSDocReadonly() {\n return <TSDocTag tag=\"readonly\" />;\n}\n\n/**\n * Create a TSDoc `@internal` tag.\n */\nexport function TSDocInternal() {\n return <TSDocTag tag=\"internal\" />;\n}\n\n/**\n * Create a TSDoc `@ignore` tag.\n */\nexport function TSDocIgnore() {\n return <TSDocTag tag=\"ignore\" />;\n}\n\n/**\n * Create a TSDoc `@hidden` tag.\n */\nexport function TSDocHidden() {\n return <TSDocTag tag=\"hidden\" />;\n}\n\nexport interface TSDocAttributesTagsProps {\n type?: ReflectionKind | ReflectionProperty | ReflectionParameter;\n title?: string;\n alias?: string[];\n permission?: string[];\n domain?: string;\n readonly?: boolean;\n internal?: boolean;\n ignore?: boolean;\n hidden?: boolean;\n defaultValue?: any;\n}\n\n/**\n * Generates a TypeScript interface property for the given reflection class.\n */\nexport function TSDocAttributesTags(props: TSDocAttributesTagsProps) {\n const [\n {\n type,\n title,\n alias,\n permission,\n domain,\n readonly,\n internal,\n ignore,\n hidden,\n defaultValue\n }\n ] = splitProps(props, [\n \"type\",\n \"title\",\n \"alias\",\n \"permission\",\n \"domain\",\n \"readonly\",\n \"internal\",\n \"ignore\",\n \"hidden\",\n \"defaultValue\"\n ]);\n\n return (\n <>\n <Show when={isSetString(title?.trim())}>\n <TSDocTitle>{title}</TSDocTitle>\n </Show>\n <Show\n when={\n !isUndefined(alias) &&\n alias.length > 0 &&\n alias.some(a => isSetString(a?.trim()))\n }>\n <For each={alias?.filter(a => isSetString(a?.trim())) ?? []}>\n {alias => <TSDocAlias>{alias}</TSDocAlias>}\n </For>\n </Show>\n <Show when={isSetString(domain?.trim())}>\n <TSDocDomain>{domain}</TSDocDomain>\n </Show>\n <Show\n when={\n !isUndefined(permission) &&\n permission.length > 0 &&\n permission.some(p => isSetString(p?.trim()))\n }>\n <For each={permission?.filter(p => isSetString(p?.trim())) ?? []}>\n {permission => <TSDocPermission>{permission}</TSDocPermission>}\n </For>\n </Show>\n <Show when={readonly === true}>\n <TSDocReadonly />\n </Show>\n <Show when={internal === true}>\n <TSDocInternal />\n </Show>\n <Show when={ignore === true}>\n <TSDocIgnore />\n </Show>\n <Show when={hidden === true}>\n <TSDocHidden />\n </Show>\n <Show when={!isUndefined(type) && !isUndefined(defaultValue)}>\n <TSDocDefaultValue\n type={\n type as ReflectionKind | ReflectionProperty | ReflectionParameter\n }\n defaultValue={defaultValue}\n />\n </Show>\n </>\n );\n}\n\nexport interface TSDocParamProps {\n name: Children;\n children?: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\n/**\n * Create a TSDoc parameter set off with `@param`.\n */\nexport function TSDocParam(props: TSDocParamProps) {\n return (\n <>\n {\"@param \"}\n <TSDocParamName\n name={props.name}\n optional={props.optional}\n defaultValue={props.defaultValue}\n />\n <TSDocParamDescription children={props.children} />\n </>\n );\n}\n\ninterface TSDocParamNameProps {\n name: Children;\n optional?: boolean;\n defaultValue?: Children;\n}\n\nfunction TSDocParamName(props: TSDocParamNameProps) {\n return (\n <>\n <Show when={props.optional}>{\"[\"}</Show>\n {props.name}\n <Show when={Boolean(props.defaultValue)}>={props.defaultValue}</Show>\n <Show when={props.optional}>{\"]\"}</Show>\n </>\n );\n}\n\ninterface TSDocParamDescriptionProps {\n children?: Children;\n}\n\nfunction TSDocParamDescription(props: TSDocParamDescriptionProps) {\n return (\n <Show when={Boolean(props.children)}>\n {\" - \"}\n <align width={2}>\n <Prose>{props.children}</Prose>\n </align>\n </Show>\n );\n}\n\n/**\n * Create a TSDoc `@returns` tag.\n */\nexport function TSDocReturns(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"returns\" />;\n}\n\n/**\n * Create a TSDoc `@throws` tag.\n */\nexport function TSDocThrows(props: ComponentProps) {\n return <TSDocTag {...props} tag=\"throws\" />;\n}\n\nexport interface TSDocModuleProps extends ComponentProps {\n /**\n * The prefix for the builtin module name\n *\n * @remarks\n * This value is populated from the Powerlines configuration output builtin prefix by default.\n *\n * @example\n * ```ts\n * /**\n * @module powerlines:my-module\n * \\/\n * ```\n */\n prefix?: string;\n\n /**\n * The name of the module\n *\n * @remarks\n * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.\n *\n * @example\n * ```ts\n * import { MyModule } from \"powerlines:my-module\";\n * ```\n */\n name: Children;\n}\n\n/**\n * Generates a TSDoc `@module` tag for the given module name.\n */\nexport function TSDocModule(props: TSDocModuleProps) {\n const [{ children, name, prefix }] = splitProps(props, [\n \"children\",\n \"name\",\n \"prefix\"\n ]);\n\n const context = usePowerlinesSafe();\n\n return (\n <>\n /**\n <align string=\" * \">\n <hbr />\n <Show when={Boolean(children)}>\n <List hardline={true}>{childrenArray(() => children)}</List>\n <hbr />\n <hbr />\n </Show>\n {\"@module \"}\n {prefix || context?.config?.framework || \"powerlines\"}:{name}\n </align>\n <hbr />\n {` */`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;SA4GqB0B,MAAAA,OAAAA;UAAAA,UAAAA,aAAAA,WAAAA,OAAAA,CAAAA,YAAAA,UAAAA,CAAAA;;;;;;;;;;mCAaZA;;MAAAA,IAAAA,WAAAA;AAAAA,cAAAA,UAAAA,sBAAAA;QAAAA,IAAAA,OAAAA;AAAAA,gBAAAA,WAAAA,CAAAA,CAAAA,CAAAA,YAAAA,SAAAA,CAAAA,EAAAA,IAAAA,oBAAAA,SAAAA,CAAAA,SAAAA;;QAAAA,IAAAA,WAAAA;AAAAA,gBAAAA,gBAAAA,OAAAA,EAAAA,CAAAA;;QAAAA,CAAAA,CAAAA;;MAAAA,CAAAA;KAAAA;;;;;8BAckB,MAAA,EAAA,IAAA,WAAA;AAAA,eAAA,oBAAA,SAAA;UAAA,CAAA;;MAAA,CAAA;KAAA;;GAAA,CAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;SAgBtBN,SAAAA,OAAAA;OAAAA,CAAAA,EAAAA,UAAAA,SAAAA,WAAAA,OAAAA,CAAAA,YAAAA,MAAAA,CAAAA;;;;;;;;;;;sCAcU,UAAA,CAAA;;KAAA,CAAA;;GAAA,CAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;;;QAgBf,0BASA,MAAA,WAAA;;;;;;;;;;;;;;;;;;;;;SAuBkB,WAAA,OAAA;;;;;;;;;;SAuBlB,YAAA,OAAA;8BAAA,WAAA,OAAA,CAAA,WAAA,CAAA;;;;;;;;;SAewB,WAAA,OAaxB;8BAAA,WAAA,OAAA,CAAA,WAAA,CAAA;wBAAA,UAAA,WAAA,MAAA;EAAA,KAAA;;;;;;;;UAWsB,YAAA,QAAA,WAAA,OAAA,CAWtB,WAAA,CAAA;wBAAA,UAAA,WAAA,MAAA;EAAA,KAAA;EAAA;EAAA,CAAA,CAAA;;;;;;;;EAwBI;EAAA,gBAAA;;;;;;;;;;;;;;;;;;;;;SAqCgD,aAAA,OAAA;AAAA,QAAA;;;;;;;;;;;;;;;wBAuBhC,UAAA,WAAA,OAAA,EAAA,KAAA,OAAA,CAAA,CAAA;;;;;sBAepB,OAAA;8BAAA,UAAA,cAAA,WAAA,OAAA;EAAA;EAAA;;;;;;;kBAiBY,MAAA;GAAA,MAAA;GAAA,IAAA,WAAA;AAAA,WAAA;KAAA;;;;;;;;;;;;;;;;;;yBAeZ;wBAAA,UAAA,EAAA,KAAA,YAAA,CAAA;;;;;SAMgC,gBAAA;wBAAA,UAAA,EAAA,KAAA,YAAA,CAAA;;;;;SAAG,cAAA;wBAAA,UAAA,EAAA,KAAA,UAAA,CAAA;;;;;;;;;;;SAkBnC,oBAAA,OAAA;OAAA,CAAA,EAAA,MAAA,OAAA,OAAA,YAAA,kBAAA,UAAA,QAAA,QAAA,kBAAA,WAAA,OAAA;EAAA;;;;;;;;;EASA;EAAA,CAAA;;;;;;;;;;;;+DAG4BT,GAAAA,EAAAA,IAE5B,MAAA,MAAA,MAAA,YAAA,GAAA,MAAA,CAAA,CAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,KAAA;KAAA,IAAA,OAAA;AAAA,aAAA,OAAA,QAAA,MAAA,YAAA,GAAA,MAAA,CAAA,CAAA,IAAA,EAAA;;KAAA,WAAA,YAAA,gBAAA,YAAA,EAAA,UAAA,SAAA,CAAA;KAAA,CAAA;;GAAA,CAAA;EAAA,gBAAA,MAAA;GAAA,IAAA,OAAA;AAAA,WAAA,YAAA,QAAA,MAAA,CAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAAA,aAAA,EAAA,UAAA,QAAA,CAAA;;GAAA,CAAA;EAAA,gBAAA,MAAA;GAAA,IAAA,OAAA;AAAA,WAAA,WAAA,CAAA,EAAA,CAAA,YAAA,WAAA,IAAA,WAAA,SAAA,GAAA,EAAA,IAAA,WAAA,MAAA,MAAA,YAAA,GAAA,MAAA,CAAA,CAAA;;GAAA,IAAA,WAAA;AAAA,WAAA,gBAkCA,KAAA;KAAA,IAAA,OAAA;AAAA,aAAA,YAAA,QAAA,MAAA,YAAA,GAAA,MAAA,CAAA,CAAA,IAAA,EAAA;;KAAA;;;;;;;;;;;;;;;;kBAamB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
2
2
|
import { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/contexts/lexical-scope.d.ts
|
|
@@ -8,7 +8,7 @@ type LexicalScopeProps = LexicalScopePropsWithScopeValue | LexicalScopePropsWith
|
|
|
8
8
|
/**
|
|
9
9
|
* A lexical scope for TypeScript, which contains declaration spaces for types and values. Declaration components will create symbols in this scope.
|
|
10
10
|
*/
|
|
11
|
-
declare function LexicalScope(props: LexicalScopeProps):
|
|
11
|
+
declare function LexicalScope(props: LexicalScopeProps): _alloy_js_core1.Children;
|
|
12
12
|
declare type __ΩLexicalScopePropsWithScopeValue = any[];
|
|
13
13
|
declare type __ΩLexicalScopePropsWithScopeInfo = any[];
|
|
14
14
|
declare type __ΩLexicalScopeProps = any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexical-scope.d.cts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,+BAAA,SAAwC;UACxC,8BAAA,SAAuC,oBADxD;AACiB,KAEL,iBAAA,GACR,+BAHoD,GAIpD,8BAJsE;AAE1E;AAOA;;iBAAgB,YAAA,QAAoB,oBAAiB,
|
|
1
|
+
{"version":3,"file":"lexical-scope.d.cts","names":[],"sources":["../../../src/typescript/contexts/lexical-scope.tsx"],"sourcesContent":[],"mappings":";;;;UAqBiB,+BAAA,SAAwC;UACxC,8BAAA,SAAuC,oBADxD;AACiB,KAEL,iBAAA,GACR,+BAHoD,GAIpD,8BAJsE;AAE1E;AAOA;;iBAAgB,YAAA,QAAoB,oBAAiB,eAAA,CAAA"}
|
|
@@ -6,15 +6,15 @@ require('./contexts/index.cjs');
|
|
|
6
6
|
const require_typescript_helpers_get_call_signature_props = require('./helpers/get-call-signature-props.cjs');
|
|
7
7
|
const require_typescript_helpers_utilities = require('./helpers/utilities.cjs');
|
|
8
8
|
require('./helpers/index.cjs');
|
|
9
|
+
const require_typescript_components_property_name = require('./components/property-name.cjs');
|
|
9
10
|
const require_typescript_components_type_parameters = require('./components/type-parameters.cjs');
|
|
10
|
-
const require_typescript_components_typescript_property_name = require('./components/typescript-property-name.cjs');
|
|
11
11
|
const require_typescript_components_class_declaration = require('./components/class-declaration.cjs');
|
|
12
12
|
const require_typescript_components_dynamic_import_statement = require('./components/dynamic-import-statement.cjs');
|
|
13
13
|
const require_typescript_components_entry_file = require('./components/entry-file.cjs');
|
|
14
|
-
const require_typescript_components_record_expression = require('./components/record-expression.cjs');
|
|
15
14
|
const require_typescript_components_tsdoc_reflection = require('./components/tsdoc-reflection.cjs');
|
|
16
|
-
const
|
|
17
|
-
const
|
|
15
|
+
const require_typescript_components_interface_declaration = require('./components/interface-declaration.cjs');
|
|
16
|
+
const require_typescript_components_object_declaration = require('./components/object-declaration.cjs');
|
|
17
|
+
const require_typescript_components_record_expression = require('./components/record-expression.cjs');
|
|
18
18
|
require('./components/index.cjs');
|
|
19
19
|
|
|
20
20
|
exports.BuiltinFile = require_typescript_components_builtin_file.BuiltinFile;
|
|
@@ -22,9 +22,18 @@ exports.ClassDeclaration = require_typescript_components_class_declaration.Class
|
|
|
22
22
|
exports.ClassField = require_typescript_components_class_declaration.ClassField;
|
|
23
23
|
exports.ClassMember = require_typescript_components_class_declaration.ClassMember;
|
|
24
24
|
exports.ClassMethod = require_typescript_components_class_declaration.ClassMethod;
|
|
25
|
+
exports.ClassPropertyGet = require_typescript_components_class_declaration.ClassPropertyGet;
|
|
26
|
+
exports.ClassPropertySet = require_typescript_components_class_declaration.ClassPropertySet;
|
|
25
27
|
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
26
28
|
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
29
|
+
exports.InterfaceDeclaration = require_typescript_components_interface_declaration.InterfaceDeclaration;
|
|
30
|
+
exports.InterfaceDeclarationProperty = require_typescript_components_interface_declaration.InterfaceDeclarationProperty;
|
|
31
|
+
exports.InterfaceExpression = require_typescript_components_interface_declaration.InterfaceExpression;
|
|
32
|
+
exports.InterfaceMember = require_typescript_components_interface_declaration.InterfaceMember;
|
|
27
33
|
exports.LexicalScope = require_typescript_contexts_lexical_scope.LexicalScope;
|
|
34
|
+
exports.ObjectDeclaration = require_typescript_components_object_declaration.ObjectDeclaration;
|
|
35
|
+
exports.ObjectDeclarationProperty = require_typescript_components_object_declaration.ObjectDeclarationProperty;
|
|
36
|
+
exports.PropertyName = require_typescript_components_property_name.PropertyName;
|
|
28
37
|
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
29
38
|
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
30
39
|
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
@@ -50,13 +59,8 @@ exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
|
50
59
|
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
51
60
|
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
52
61
|
exports.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
|
|
53
|
-
exports.TypeScriptInterface = require_typescript_components_typescript_interface.TypeScriptInterface;
|
|
54
62
|
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
55
63
|
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
56
64
|
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
57
|
-
exports.TypescriptInterfaceProperty = require_typescript_components_typescript_interface.TypescriptInterfaceProperty;
|
|
58
|
-
exports.TypescriptObject = require_typescript_components_typescript_object.TypescriptObject;
|
|
59
|
-
exports.TypescriptObjectProperty = require_typescript_components_typescript_object.TypescriptObjectProperty;
|
|
60
|
-
exports.TypescriptPropertyName = require_typescript_components_typescript_property_name.TypescriptPropertyName;
|
|
61
65
|
exports.getCallSignatureProps = require_typescript_helpers_get_call_signature_props.getCallSignatureProps;
|
|
62
66
|
exports.isValidJSIdentifier = require_typescript_helpers_utilities.isValidJSIdentifier;
|
|
@@ -2,18 +2,18 @@ import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDoc
|
|
|
2
2
|
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./components/typescript-file.cjs";
|
|
3
3
|
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./components/builtin-file.cjs";
|
|
4
4
|
import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./components/type-parameters.cjs";
|
|
5
|
-
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps } from "./components/class-declaration.cjs";
|
|
5
|
+
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./components/class-declaration.cjs";
|
|
6
6
|
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./components/dynamic-import-statement.cjs";
|
|
7
7
|
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./components/entry-file.cjs";
|
|
8
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./components/interface-declaration.cjs";
|
|
9
|
+
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./components/object-declaration.cjs";
|
|
10
|
+
import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./components/property-name.cjs";
|
|
8
11
|
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./components/record-expression.cjs";
|
|
9
12
|
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./components/tsdoc-reflection.cjs";
|
|
10
|
-
import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./components/typescript-interface.cjs";
|
|
11
|
-
import { ComputedRef, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩComputedRef, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./components/typescript-object.cjs";
|
|
12
|
-
import { TypescriptPropertyName, TypescriptPropertyNameProps, __ΩTypescriptPropertyNameProps } from "./components/typescript-property-name.cjs";
|
|
13
13
|
import "./components/index.cjs";
|
|
14
14
|
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.cjs";
|
|
15
15
|
import "./contexts/index.cjs";
|
|
16
16
|
import { getCallSignatureProps } from "./helpers/get-call-signature-props.cjs";
|
|
17
17
|
import { isValidJSIdentifier } from "./helpers/utilities.cjs";
|
|
18
18
|
import "./helpers/index.cjs";
|
|
19
|
-
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeParameters, TypeParametersProps,
|
|
19
|
+
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
|
|
@@ -2,18 +2,18 @@ import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDoc
|
|
|
2
2
|
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps } from "./components/typescript-file.mjs";
|
|
3
3
|
import { BuiltinFile, BuiltinFileProps, __ΩBuiltinFileProps } from "./components/builtin-file.mjs";
|
|
4
4
|
import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./components/type-parameters.mjs";
|
|
5
|
-
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps } from "./components/class-declaration.mjs";
|
|
5
|
+
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps } from "./components/class-declaration.mjs";
|
|
6
6
|
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./components/dynamic-import-statement.mjs";
|
|
7
7
|
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./components/entry-file.mjs";
|
|
8
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./components/interface-declaration.mjs";
|
|
9
|
+
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./components/object-declaration.mjs";
|
|
10
|
+
import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./components/property-name.mjs";
|
|
8
11
|
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./components/record-expression.mjs";
|
|
9
12
|
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./components/tsdoc-reflection.mjs";
|
|
10
|
-
import { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps } from "./components/typescript-interface.mjs";
|
|
11
|
-
import { ComputedRef, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩComputedRef, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./components/typescript-object.mjs";
|
|
12
|
-
import { TypescriptPropertyName, TypescriptPropertyNameProps, __ΩTypescriptPropertyNameProps } from "./components/typescript-property-name.mjs";
|
|
13
13
|
import "./components/index.mjs";
|
|
14
14
|
import { LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue } from "./contexts/lexical-scope.mjs";
|
|
15
15
|
import "./contexts/index.mjs";
|
|
16
16
|
import { getCallSignatureProps } from "./helpers/get-call-signature-props.mjs";
|
|
17
17
|
import { isValidJSIdentifier } from "./helpers/utilities.mjs";
|
|
18
18
|
import "./helpers/index.mjs";
|
|
19
|
-
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeParameters, TypeParametersProps,
|
|
19
|
+
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ClassPropertyGet, ClassPropertyProps, ClassPropertySet, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, LexicalScope, LexicalScopeProps, LexicalScopePropsWithScopeInfo, LexicalScopePropsWithScopeValue, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, PropertyName, PropertyNameProps, RecordExpression, RecordExpressionProps, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocAttributesTagsProps, TSDocDefaultValue, TSDocDefaultValueProps, TSDocDomain, TSDocExample, TSDocExampleProps, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocModuleProps, TSDocParam, TSDocParamProps, TSDocParams, TSDocParamsProps, TSDocPermission, TSDocProps, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocTagProps, TSDocThrows, TSDocTitle, TypeParameters, TypeParametersProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩClassPropertyProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps, __ΩLexicalScopeProps, __ΩLexicalScopePropsWithScopeInfo, __ΩLexicalScopePropsWithScopeValue, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, getCallSignatureProps, isValidJSIdentifier };
|
|
@@ -6,15 +6,15 @@ import "./contexts/index.mjs";
|
|
|
6
6
|
import { getCallSignatureProps } from "./helpers/get-call-signature-props.mjs";
|
|
7
7
|
import { isValidJSIdentifier } from "./helpers/utilities.mjs";
|
|
8
8
|
import "./helpers/index.mjs";
|
|
9
|
+
import { PropertyName } from "./components/property-name.mjs";
|
|
9
10
|
import { TypeParameters } from "./components/type-parameters.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { ClassDeclaration, ClassField, ClassMember, ClassMethod } from "./components/class-declaration.mjs";
|
|
11
|
+
import { ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet } from "./components/class-declaration.mjs";
|
|
12
12
|
import { DynamicImportStatement } from "./components/dynamic-import-statement.mjs";
|
|
13
13
|
import { EntryFile } from "./components/entry-file.mjs";
|
|
14
|
-
import { RecordExpression } from "./components/record-expression.mjs";
|
|
15
14
|
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./components/tsdoc-reflection.mjs";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
15
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember } from "./components/interface-declaration.mjs";
|
|
16
|
+
import { ObjectDeclaration, ObjectDeclarationProperty } from "./components/object-declaration.mjs";
|
|
17
|
+
import { RecordExpression } from "./components/record-expression.mjs";
|
|
18
18
|
import "./components/index.mjs";
|
|
19
19
|
|
|
20
|
-
export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, DynamicImportStatement, EntryFile, LexicalScope, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeParameters,
|
|
20
|
+
export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, ClassPropertyGet, ClassPropertySet, DynamicImportStatement, EntryFile, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember, LexicalScope, ObjectDeclaration, ObjectDeclarationProperty, PropertyName, RecordExpression, TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle, TypeParameters, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, getCallSignatureProps, isValidJSIdentifier };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-alloy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various Alloy framework components and helper utilities.",
|
|
6
6
|
"repository": {
|
|
@@ -490,6 +490,48 @@
|
|
|
490
490
|
"default": "./dist/typescript/components/entry-file.mjs"
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
|
+
"./typescript/components/interface-declaration": {
|
|
494
|
+
"require": {
|
|
495
|
+
"types": "./dist/typescript/components/interface-declaration.d.cts",
|
|
496
|
+
"default": "./dist/typescript/components/interface-declaration.cjs"
|
|
497
|
+
},
|
|
498
|
+
"import": {
|
|
499
|
+
"types": "./dist/typescript/components/interface-declaration.d.mts",
|
|
500
|
+
"default": "./dist/typescript/components/interface-declaration.mjs"
|
|
501
|
+
},
|
|
502
|
+
"default": {
|
|
503
|
+
"types": "./dist/typescript/components/interface-declaration.d.mts",
|
|
504
|
+
"default": "./dist/typescript/components/interface-declaration.mjs"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"./typescript/components/object-declaration": {
|
|
508
|
+
"require": {
|
|
509
|
+
"types": "./dist/typescript/components/object-declaration.d.cts",
|
|
510
|
+
"default": "./dist/typescript/components/object-declaration.cjs"
|
|
511
|
+
},
|
|
512
|
+
"import": {
|
|
513
|
+
"types": "./dist/typescript/components/object-declaration.d.mts",
|
|
514
|
+
"default": "./dist/typescript/components/object-declaration.mjs"
|
|
515
|
+
},
|
|
516
|
+
"default": {
|
|
517
|
+
"types": "./dist/typescript/components/object-declaration.d.mts",
|
|
518
|
+
"default": "./dist/typescript/components/object-declaration.mjs"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"./typescript/components/property-name": {
|
|
522
|
+
"require": {
|
|
523
|
+
"types": "./dist/typescript/components/property-name.d.cts",
|
|
524
|
+
"default": "./dist/typescript/components/property-name.cjs"
|
|
525
|
+
},
|
|
526
|
+
"import": {
|
|
527
|
+
"types": "./dist/typescript/components/property-name.d.mts",
|
|
528
|
+
"default": "./dist/typescript/components/property-name.mjs"
|
|
529
|
+
},
|
|
530
|
+
"default": {
|
|
531
|
+
"types": "./dist/typescript/components/property-name.d.mts",
|
|
532
|
+
"default": "./dist/typescript/components/property-name.mjs"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
493
535
|
"./typescript/components/record-expression": {
|
|
494
536
|
"require": {
|
|
495
537
|
"types": "./dist/typescript/components/record-expression.d.cts",
|
|
@@ -560,48 +602,6 @@
|
|
|
560
602
|
"default": "./dist/typescript/components/typescript-file.mjs"
|
|
561
603
|
}
|
|
562
604
|
},
|
|
563
|
-
"./typescript/components/typescript-interface": {
|
|
564
|
-
"require": {
|
|
565
|
-
"types": "./dist/typescript/components/typescript-interface.d.cts",
|
|
566
|
-
"default": "./dist/typescript/components/typescript-interface.cjs"
|
|
567
|
-
},
|
|
568
|
-
"import": {
|
|
569
|
-
"types": "./dist/typescript/components/typescript-interface.d.mts",
|
|
570
|
-
"default": "./dist/typescript/components/typescript-interface.mjs"
|
|
571
|
-
},
|
|
572
|
-
"default": {
|
|
573
|
-
"types": "./dist/typescript/components/typescript-interface.d.mts",
|
|
574
|
-
"default": "./dist/typescript/components/typescript-interface.mjs"
|
|
575
|
-
}
|
|
576
|
-
},
|
|
577
|
-
"./typescript/components/typescript-object": {
|
|
578
|
-
"require": {
|
|
579
|
-
"types": "./dist/typescript/components/typescript-object.d.cts",
|
|
580
|
-
"default": "./dist/typescript/components/typescript-object.cjs"
|
|
581
|
-
},
|
|
582
|
-
"import": {
|
|
583
|
-
"types": "./dist/typescript/components/typescript-object.d.mts",
|
|
584
|
-
"default": "./dist/typescript/components/typescript-object.mjs"
|
|
585
|
-
},
|
|
586
|
-
"default": {
|
|
587
|
-
"types": "./dist/typescript/components/typescript-object.d.mts",
|
|
588
|
-
"default": "./dist/typescript/components/typescript-object.mjs"
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
"./typescript/components/typescript-property-name": {
|
|
592
|
-
"require": {
|
|
593
|
-
"types": "./dist/typescript/components/typescript-property-name.d.cts",
|
|
594
|
-
"default": "./dist/typescript/components/typescript-property-name.cjs"
|
|
595
|
-
},
|
|
596
|
-
"import": {
|
|
597
|
-
"types": "./dist/typescript/components/typescript-property-name.d.mts",
|
|
598
|
-
"default": "./dist/typescript/components/typescript-property-name.mjs"
|
|
599
|
-
},
|
|
600
|
-
"default": {
|
|
601
|
-
"types": "./dist/typescript/components/typescript-property-name.d.mts",
|
|
602
|
-
"default": "./dist/typescript/components/typescript-property-name.mjs"
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
605
|
"./typescript/contexts": {
|
|
606
606
|
"require": {
|
|
607
607
|
"types": "./dist/typescript/contexts/index.d.cts",
|
|
@@ -698,8 +698,8 @@
|
|
|
698
698
|
"@alloy-js/markdown": "0.23.0-dev.1",
|
|
699
699
|
"@alloy-js/rollup-plugin": "^0.1.0",
|
|
700
700
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
701
|
-
"@powerlines/deepkit": "^0.6.
|
|
702
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
701
|
+
"@powerlines/deepkit": "^0.6.56",
|
|
702
|
+
"@powerlines/plugin-babel": "^0.12.285",
|
|
703
703
|
"@storm-software/config-tools": "^1.189.0",
|
|
704
704
|
"@stryke/capnp": "^0.12.68",
|
|
705
705
|
"@stryke/convert": "^0.6.40",
|
|
@@ -712,14 +712,14 @@
|
|
|
712
712
|
"@stryke/types": "^0.10.39",
|
|
713
713
|
"@stryke/unique-id": "^0.3.54",
|
|
714
714
|
"defu": "^6.1.4",
|
|
715
|
-
"powerlines": "^0.38.
|
|
715
|
+
"powerlines": "^0.38.43",
|
|
716
716
|
"prettier": "^3.8.1",
|
|
717
717
|
"unctx": "^2.5.0"
|
|
718
718
|
},
|
|
719
719
|
"devDependencies": {
|
|
720
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
720
|
+
"@powerlines/plugin-plugin": "^0.12.227",
|
|
721
721
|
"@types/node": "^24.10.13"
|
|
722
722
|
},
|
|
723
723
|
"publishConfig": { "access": "public" },
|
|
724
|
-
"gitHead": "
|
|
724
|
+
"gitHead": "6f39425704a5c183b0a6ded8a96a7ce8f9b06725"
|
|
725
725
|
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_core_contexts_reflection = require('../../core/contexts/reflection.cjs');
|
|
3
|
-
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
4
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
-
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
7
|
-
let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
|
|
8
|
-
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
9
|
-
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
10
|
-
|
|
11
|
-
//#region src/typescript/components/typescript-interface.tsx
|
|
12
|
-
/**
|
|
13
|
-
* Generates a TypeScript interface for the given reflection class.
|
|
14
|
-
*/
|
|
15
|
-
function TypeScriptInterface(props) {
|
|
16
|
-
const [{ name, reflection, doc }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
17
|
-
"name",
|
|
18
|
-
"reflection",
|
|
19
|
-
"doc"
|
|
20
|
-
]);
|
|
21
|
-
const interfaceName = (0, __alloy_js_core.computed)(() => (0, __stryke_string_format_pascal_case.pascalCase)(((0, __stryke_type_checks_is_string.isString)(name) ? name : name.toString()) || reflection.getName()));
|
|
22
|
-
const properties = reflection.getProperties().filter((item) => !item.isIgnored()).sort((a, b) => a.isReadonly() && b.isReadonly() || !a.isReadonly() && !b.isReadonly() ? a.getNameAsString().localeCompare(b.getNameAsString()) : a.isReadonly() ? 1 : -1);
|
|
23
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionClassContext.Provider, {
|
|
24
|
-
value: { reflection },
|
|
25
|
-
get children() {
|
|
26
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionClass, { heading: doc }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.InterfaceDeclaration, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
27
|
-
"export": true,
|
|
28
|
-
get name() {
|
|
29
|
-
return interfaceName.value;
|
|
30
|
-
}
|
|
31
|
-
}, rest, { get children() {
|
|
32
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
|
|
33
|
-
each: properties,
|
|
34
|
-
doubleHardline: true,
|
|
35
|
-
semicolon: true,
|
|
36
|
-
children: (prop) => (0, __alloy_js_core_jsx_runtime.createComponent)(TypescriptInterfaceProperty, { property: prop })
|
|
37
|
-
});
|
|
38
|
-
} }))];
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Generates a TypeScript interface property for the given reflection class.
|
|
44
|
-
*/
|
|
45
|
-
function TypescriptInterfaceProperty(props) {
|
|
46
|
-
const [{ property }, rest] = (0, __alloy_js_core.splitProps)(props, ["property"]);
|
|
47
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_reflection.ReflectionPropertyContext.Provider, {
|
|
48
|
-
value: property,
|
|
49
|
-
get children() {
|
|
50
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_tsdoc_reflection.TSDocReflectionProperty, {}), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.InterfaceMember, (0, __alloy_js_core_jsx_runtime.mergeProps)({
|
|
51
|
-
get name() {
|
|
52
|
-
return property.getNameAsString();
|
|
53
|
-
},
|
|
54
|
-
get readonly() {
|
|
55
|
-
return property.isReadonly();
|
|
56
|
-
},
|
|
57
|
-
get optional() {
|
|
58
|
-
return property.isOptional();
|
|
59
|
-
},
|
|
60
|
-
get nullish() {
|
|
61
|
-
return property.isNullable();
|
|
62
|
-
},
|
|
63
|
-
get type() {
|
|
64
|
-
return (0, __powerlines_deepkit_vendor_type.stringifyType)(property.getType());
|
|
65
|
-
}
|
|
66
|
-
}, rest))];
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
//#endregion
|
|
72
|
-
exports.TypeScriptInterface = TypeScriptInterface;
|
|
73
|
-
exports.TypescriptInterfaceProperty = TypescriptInterfaceProperty;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
3
|
-
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
-
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/typescript-interface.d.ts
|
|
7
|
-
interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
|
|
8
|
-
reflection: ReflectionClass<T>;
|
|
9
|
-
defaultValue?: Partial<T>;
|
|
10
|
-
}
|
|
11
|
-
interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
|
|
12
|
-
property: ReflectionProperty;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Generates a TypeScript interface for the given reflection class.
|
|
16
|
-
*/
|
|
17
|
-
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core4.Children;
|
|
18
|
-
/**
|
|
19
|
-
* Generates a TypeScript interface property for the given reflection class.
|
|
20
|
-
*/
|
|
21
|
-
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core4.Children;
|
|
22
|
-
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
|
-
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
|
-
//#endregion
|
|
25
|
-
export { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps };
|
|
26
|
-
//# sourceMappingURL=typescript-interface.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-interface.d.cts","names":[],"sources":["../../../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,eAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,eAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as _alloy_js_core13 from "@alloy-js/core";
|
|
3
|
-
import { ReflectionClass, ReflectionProperty } from "@powerlines/deepkit/vendor/type";
|
|
4
|
-
import { InterfaceDeclarationProps, InterfaceMemberProps } from "@alloy-js/typescript";
|
|
5
|
-
|
|
6
|
-
//#region src/typescript/components/typescript-interface.d.ts
|
|
7
|
-
interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
|
|
8
|
-
reflection: ReflectionClass<T>;
|
|
9
|
-
defaultValue?: Partial<T>;
|
|
10
|
-
}
|
|
11
|
-
interface TypescriptInterfacePropertyProps extends Omit<InterfaceMemberProps, "name">, ComponentProps {
|
|
12
|
-
property: ReflectionProperty;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Generates a TypeScript interface for the given reflection class.
|
|
16
|
-
*/
|
|
17
|
-
declare function TypeScriptInterface<T extends Record<string, any> = Record<string, any>>(props: TypeScriptInterfaceProps<T>): _alloy_js_core13.Children;
|
|
18
|
-
/**
|
|
19
|
-
* Generates a TypeScript interface property for the given reflection class.
|
|
20
|
-
*/
|
|
21
|
-
declare function TypescriptInterfaceProperty(props: TypescriptInterfacePropertyProps): _alloy_js_core13.Children;
|
|
22
|
-
declare type __ΩTypeScriptInterfaceProps = any[];
|
|
23
|
-
declare type __ΩTypescriptInterfacePropertyProps = any[];
|
|
24
|
-
//#endregion
|
|
25
|
-
export { TypeScriptInterface, TypeScriptInterfaceProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptInterfacePropertyProps };
|
|
26
|
-
//# sourceMappingURL=typescript-interface.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-interface.d.mts","names":[],"sources":["../../../src/typescript/components/typescript-interface.tsx"],"sourcesContent":[],"mappings":";;;;;;UA0CiB,mCACL,sBAAsB,6BAExB,2BAA2B;cACvB,gBAAgB;iBACb,QAAQ;AALzB;AACY,UAOK,gCAAA,SACP,IARE,CAQG,oBARH,EAAA,MAAA,CAAA,EAQkC,cARlC,CAAA;EAAsB,QAAA,EAStB,kBATsB;;;;;AAExB,iBAaM,mBAbN,CAAA,UAcE,MAdF,CAAA,MAAA,EAAA,GAAA,CAAA,GAcwB,MAdxB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAeD,wBAfC,CAewB,CAfxB,CAAA,CAAA,EAeuB,gBAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,gBAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
|