@powerlines/plugin-alloy 0.21.2 → 0.21.4
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/output.d.mts +2 -2
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/source-file.d.cts +2 -2
- 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.mts +2 -2
- 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.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 +43 -18
- package/dist/typescript/components/class-declaration.d.cts +33 -3
- package/dist/typescript/components/class-declaration.d.cts.map +1 -1
- package/dist/typescript/components/class-declaration.d.mts +33 -3
- package/dist/typescript/components/class-declaration.d.mts.map +1 -1
- package/dist/typescript/components/class-declaration.mjs +45 -20
- 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.cts +2 -2
- package/dist/typescript/components/entry-file.d.cts.map +1 -1
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/index.cjs +12 -10
- package/dist/typescript/components/index.d.cts +4 -4
- package/dist/typescript/components/index.d.mts +4 -4
- package/dist/typescript/components/index.mjs +5 -5
- 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} +6 -6
- 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 +1 -1
- package/dist/typescript/components/tsdoc.mjs +1 -1
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/components/type-parameters.cjs +42 -67
- package/dist/typescript/components/type-parameters.d.cts +1 -2
- package/dist/typescript/components/type-parameters.d.cts.map +1 -1
- package/dist/typescript/components/type-parameters.d.mts +1 -2
- package/dist/typescript/components/type-parameters.d.mts.map +1 -1
- package/dist/typescript/components/type-parameters.mjs +44 -69
- package/dist/typescript/components/type-parameters.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/contexts/lexical-scope.d.mts +2 -2
- package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -1
- package/dist/typescript/index.cjs +11 -9
- package/dist/typescript/index.d.cts +4 -4
- package/dist/typescript/index.d.mts +4 -4
- package/dist/typescript/index.mjs +5 -5
- 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,4 +1,3 @@
|
|
|
1
|
-
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
2
1
|
import { Children } from "@alloy-js/core";
|
|
3
2
|
import { TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
4
3
|
|
|
@@ -18,7 +17,7 @@ interface TypeParametersProps {
|
|
|
18
17
|
* <A, B extends string>
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
21
|
-
declare
|
|
20
|
+
declare function TypeParameters(props: TypeParametersProps): Children;
|
|
22
21
|
declare type __ΩTypeParametersProps = any[];
|
|
23
22
|
//#endregion
|
|
24
23
|
export { TypeParameters, TypeParametersProps, __ΩTypeParametersProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-parameters.d.mts","names":[],"sources":["../../../src/typescript/components/type-parameters.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"type-parameters.d.mts","names":[],"sources":["../../../src/typescript/components/type-parameters.tsx"],"sourcesContent":[],"mappings":";;;;;UAsBiB,mBAAA;EAAA;EAyCD,UAAA,CAAA,EAvCD,uBAuCuB,EAAA,GAAA,MAAA,EAAA;;aArCzB;;;;;;;;;;iBAqCG,cAAA,QAAsB,sBAAmB"}
|
|
@@ -1,42 +1,49 @@
|
|
|
1
1
|
import { createComponent, createIntrinsic, memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { For, Indent, Show
|
|
3
|
-
import {
|
|
2
|
+
import { For, Indent, Show } from "@alloy-js/core";
|
|
3
|
+
import { TypeRefContext } from "@alloy-js/typescript";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/type-parameters.tsx
|
|
6
6
|
/** Props for type parameters */
|
|
7
|
-
const typeParametersTag = Symbol("type-parameters");
|
|
8
7
|
function typeParameter(param) {
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
return createComponent(Show, {
|
|
9
|
+
when: typeof param === "object",
|
|
10
|
+
get fallback() {
|
|
11
|
+
return [param];
|
|
12
|
+
},
|
|
13
|
+
get children() {
|
|
14
|
+
return [createIntrinsic("group", { get children() {
|
|
15
|
+
return [
|
|
16
|
+
memo(() => param.name),
|
|
17
|
+
createComponent(Show, {
|
|
18
|
+
get when() {
|
|
19
|
+
return !!param.extends;
|
|
20
|
+
},
|
|
21
|
+
get children() {
|
|
22
|
+
return [
|
|
23
|
+
" ",
|
|
24
|
+
"extends",
|
|
25
|
+
createIntrinsic("indent", { get children() {
|
|
26
|
+
return [" ", createComponent(TypeRefContext, { get children() {
|
|
27
|
+
return param.extends;
|
|
28
|
+
} })];
|
|
29
|
+
} })
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
}),
|
|
33
|
+
createComponent(Show, {
|
|
34
|
+
get when() {
|
|
35
|
+
return !!param.default;
|
|
36
|
+
},
|
|
37
|
+
get children() {
|
|
38
|
+
return [" = ", createComponent(TypeRefContext, { get children() {
|
|
39
|
+
return param.default;
|
|
23
40
|
} })];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return !!param.default;
|
|
31
|
-
},
|
|
32
|
-
get children() {
|
|
33
|
-
return [" = ", createComponent(TypeRefContext, { get children() {
|
|
34
|
-
return param.default;
|
|
35
|
-
} })];
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
];
|
|
39
|
-
} });
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
];
|
|
44
|
+
} }), " "];
|
|
45
|
+
}
|
|
46
|
+
});
|
|
40
47
|
}
|
|
41
48
|
/**
|
|
42
49
|
* Represent type parameters
|
|
@@ -46,13 +53,9 @@ function typeParameter(param) {
|
|
|
46
53
|
* <A, B extends string>
|
|
47
54
|
* ```
|
|
48
55
|
*/
|
|
49
|
-
|
|
56
|
+
function TypeParameters(props) {
|
|
50
57
|
if (props.children) return props.children;
|
|
51
58
|
if (!props.parameters) return;
|
|
52
|
-
const typeParameters = normalizeAndDeclareParameters(props.parameters);
|
|
53
|
-
onCleanup(() => {
|
|
54
|
-
for (const param of typeParameters) param.symbol.delete();
|
|
55
|
-
});
|
|
56
59
|
return [
|
|
57
60
|
"<",
|
|
58
61
|
createIntrinsic("group", { get children() {
|
|
@@ -60,7 +63,9 @@ const TypeParameters = taggedComponent(typeParametersTag, function TypeParameter
|
|
|
60
63
|
softline: true,
|
|
61
64
|
get children() {
|
|
62
65
|
return [createComponent(For, {
|
|
63
|
-
each
|
|
66
|
+
get each() {
|
|
67
|
+
return props.parameters;
|
|
68
|
+
},
|
|
64
69
|
comma: true,
|
|
65
70
|
line: true,
|
|
66
71
|
children: (param) => typeParameter(param)
|
|
@@ -70,36 +75,6 @@ const TypeParameters = taggedComponent(typeParametersTag, function TypeParameter
|
|
|
70
75
|
} }),
|
|
71
76
|
">"
|
|
72
77
|
];
|
|
73
|
-
});
|
|
74
|
-
function normalizeAndDeclareParameters(parameters, flags = TSSymbolFlags.ParameterSymbol) {
|
|
75
|
-
const namePolicy = useTSNamePolicy();
|
|
76
|
-
if (parameters.length === 0) return [];
|
|
77
|
-
if (typeof parameters[0] === "string") return parameters.map((paramName) => {
|
|
78
|
-
const name = namePolicy.getName(paramName, "parameter");
|
|
79
|
-
const TypeSlot = createSymbolSlot();
|
|
80
|
-
const symbol = createValueSymbol(name, { type: TypeSlot.firstSymbol });
|
|
81
|
-
return {
|
|
82
|
-
refkeys: symbol.refkeys,
|
|
83
|
-
symbol,
|
|
84
|
-
TypeSlot
|
|
85
|
-
};
|
|
86
|
-
});
|
|
87
|
-
else return parameters.map((param) => {
|
|
88
|
-
const nullishFlag = param.nullish ?? param.optional ? TSSymbolFlags.Nullish : TSSymbolFlags.None;
|
|
89
|
-
const TypeSlot = createSymbolSlot();
|
|
90
|
-
const symbol = createValueSymbol(param.name, {
|
|
91
|
-
refkeys: param.refkey,
|
|
92
|
-
tsFlags: flags | nullishFlag,
|
|
93
|
-
metadata: param.metadata,
|
|
94
|
-
type: TypeSlot.firstSymbol,
|
|
95
|
-
namePolicy: namePolicy.for("parameter")
|
|
96
|
-
});
|
|
97
|
-
return {
|
|
98
|
-
...param,
|
|
99
|
-
symbol,
|
|
100
|
-
TypeSlot
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
78
|
}
|
|
104
79
|
|
|
105
80
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-parameters.mjs","names":["
|
|
1
|
+
{"version":3,"file":"type-parameters.mjs","names":["For","Indent","Show","TypeRefContext","typeParameter","param","_$createComponent","when","fallback","children","_$createIntrinsic","_$memo","name","extends","default","TypeParameters","props","parameters","undefined","softline","each","comma","line"],"sources":["../../../src/typescript/components/type-parameters.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 { Children, For, Indent, Show } from \"@alloy-js/core\";\nimport { TypeParameterDescriptor, TypeRefContext } from \"@alloy-js/typescript\";\n\n/** Props for type parameters */\nexport interface TypeParametersProps {\n /** Parameters */\n parameters?: TypeParameterDescriptor[] | string[];\n /** Jsx Children */\n children?: Children;\n}\n\nfunction typeParameter(param: TypeParameterDescriptor | string) {\n return (\n <Show when={typeof param === \"object\"} fallback={<>{param}</>}>\n <group>\n {(param as TypeParameterDescriptor).name}\n <Show when={!!(param as TypeParameterDescriptor).extends}>\n {\" \"}\n extends\n <indent>\n {\" \"}\n <TypeRefContext>\n {(param as TypeParameterDescriptor).extends}\n </TypeRefContext>\n </indent>\n </Show>\n <Show when={!!(param as TypeParameterDescriptor).default}>\n {\" = \"}\n <TypeRefContext>\n {(param as TypeParameterDescriptor).default}\n </TypeRefContext>\n </Show>\n </group>{\" \"}\n </Show>\n );\n}\n\n/**\n * Represent type parameters\n *\n * @example\n * ```ts\n * <A, B extends string>\n * ```\n */\nexport function TypeParameters(props: TypeParametersProps) {\n if (props.children) {\n return props.children;\n }\n\n if (!props.parameters) {\n return undefined;\n }\n\n return (\n <>\n {\"<\"}\n <group>\n <Indent softline>\n <For each={props.parameters} comma line>\n {param => typeParameter(param)}\n </For>\n <ifBreak>,</ifBreak>\n </Indent>\n </group>\n {\">\"}\n </>\n );\n}\n"],"mappings":";;;;;;SA+B6D,cAAA,OAAA;8BAAA;EAAA,MAAA,OAAA,UAAA;EAAA,IAAA,WAAA;AAAA,UAAA,CAAA,MAAA;;EAAA,IAAA,WAAA;AAAA,UAAA,CAAA,gBAAA,SAAA,EAAA,IAAA,WAAA;AAAA,WAAA;KAAA,WAAA,MAEbM,KAAAA;KAAAA,sBACnC;MAAA,IAAA,OAAA;AAAA,cAAA,CAAA,CAAA,MAAA;;MAAA,IAAA,WAAA;AAAA,cAAA;;QAAA;QAAA,gBAAA,UAAA,EAAA,IAAA,WAAA;AAAA,gBAAA,MAAA,gCAAA,EAAA,IAAA,WAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKAH;EAAAA,gBAAAA,SAAAA,EAAAA,IAAAA,WAAAA;AAAAA,UAAAA;;;;;;;;;;;;;;EAC4C;EAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core5 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_core5.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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core8 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_core8.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.mts","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.mts","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;
|
|
@@ -24,7 +24,14 @@ exports.ClassMember = require_typescript_components_class_declaration.ClassMembe
|
|
|
24
24
|
exports.ClassMethod = require_typescript_components_class_declaration.ClassMethod;
|
|
25
25
|
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
26
26
|
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
27
|
+
exports.InterfaceDeclaration = require_typescript_components_interface_declaration.InterfaceDeclaration;
|
|
28
|
+
exports.InterfaceDeclarationProperty = require_typescript_components_interface_declaration.InterfaceDeclarationProperty;
|
|
29
|
+
exports.InterfaceExpression = require_typescript_components_interface_declaration.InterfaceExpression;
|
|
30
|
+
exports.InterfaceMember = require_typescript_components_interface_declaration.InterfaceMember;
|
|
27
31
|
exports.LexicalScope = require_typescript_contexts_lexical_scope.LexicalScope;
|
|
32
|
+
exports.ObjectDeclaration = require_typescript_components_object_declaration.ObjectDeclaration;
|
|
33
|
+
exports.ObjectDeclarationProperty = require_typescript_components_object_declaration.ObjectDeclarationProperty;
|
|
34
|
+
exports.PropertyName = require_typescript_components_property_name.PropertyName;
|
|
28
35
|
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
29
36
|
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
30
37
|
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
@@ -50,13 +57,8 @@ exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
|
50
57
|
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
51
58
|
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
52
59
|
exports.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
|
|
53
|
-
exports.TypeScriptInterface = require_typescript_components_typescript_interface.TypeScriptInterface;
|
|
54
60
|
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
55
61
|
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
56
62
|
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
63
|
exports.getCallSignatureProps = require_typescript_helpers_get_call_signature_props.getCallSignatureProps;
|
|
62
64
|
exports.isValidJSIdentifier = require_typescript_helpers_utilities.isValidJSIdentifier;
|
|
@@ -5,15 +5,15 @@ import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./
|
|
|
5
5
|
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps } 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, 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, __Ω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 };
|
|
@@ -5,15 +5,15 @@ import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./
|
|
|
5
5
|
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps } 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, 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, __Ω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 { TypescriptPropertyName } from "./components/typescript-property-name.mjs";
|
|
11
11
|
import { ClassDeclaration, ClassField, ClassMember, ClassMethod } 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, 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.21.
|
|
3
|
+
"version": "0.21.4",
|
|
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.55",
|
|
702
|
+
"@powerlines/plugin-babel": "^0.12.284",
|
|
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.42",
|
|
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.226",
|
|
721
721
|
"@types/node": "^24.10.13"
|
|
722
722
|
},
|
|
723
723
|
"publishConfig": { "access": "public" },
|
|
724
|
-
"gitHead": "
|
|
724
|
+
"gitHead": "a202e4de4e954ccb40b74b0666b8e08b5aeb1de8"
|
|
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_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.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,gBAAA,CAAG,QAf1B;;;AAKV;AACe,iBAmDC,2BAAA,CAnDD,KAAA,EAoDN,gCApDM,CAAA,EAoD0B,gBAAA,CAAA,QApD1B;AACH,2CAAA,GAAA,EAAA;AADF,mDAAA,GAAA,EAAA"}
|