@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,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as _alloy_js_core20 from "@alloy-js/core";
|
|
1
|
+
import { TypeParameters } from "./type-parameters.cjs";
|
|
3
2
|
import { Children, Namekey, Refkey } from "@alloy-js/core";
|
|
4
3
|
import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
5
4
|
|
|
6
5
|
//#region src/typescript/components/class-declaration.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Props for the ClassDeclaration component, which represents a TypeScript class declaration
|
|
8
|
+
*/
|
|
7
9
|
interface ClassDeclarationProps extends CommonDeclarationProps {
|
|
8
10
|
/**
|
|
9
11
|
* An indication of whether this class is abstract
|
|
@@ -54,8 +56,11 @@ interface ClassDeclarationProps extends CommonDeclarationProps {
|
|
|
54
56
|
*/
|
|
55
57
|
declare function ClassDeclaration(props: ClassDeclarationProps): Children;
|
|
56
58
|
declare namespace ClassDeclaration {
|
|
57
|
-
var TypeParameters:
|
|
59
|
+
var TypeParameters: typeof TypeParameters;
|
|
58
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Generates a TypeScript class member declaration for the given reflection class.
|
|
63
|
+
*/
|
|
59
64
|
interface ClassMemberProps {
|
|
60
65
|
name: string | Namekey;
|
|
61
66
|
refkey?: Refkey;
|
|
@@ -64,21 +69,46 @@ interface ClassMemberProps {
|
|
|
64
69
|
protected?: boolean;
|
|
65
70
|
jsPrivate?: boolean;
|
|
66
71
|
static?: boolean;
|
|
72
|
+
abstract?: boolean;
|
|
67
73
|
children?: Children;
|
|
68
74
|
doc?: Children;
|
|
69
75
|
nullish?: boolean;
|
|
70
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Generates a TypeScript class member declaration for the given reflection class.
|
|
79
|
+
*
|
|
80
|
+
* @param props - The properties of the class member, including its name, visibility, and other modifiers.
|
|
81
|
+
* @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
|
|
82
|
+
*/
|
|
71
83
|
declare function ClassMember(props: ClassMemberProps): Children;
|
|
84
|
+
/**
|
|
85
|
+
* Props for a class field, which is a specific type of class member that represents a property of the class.
|
|
86
|
+
*/
|
|
72
87
|
interface ClassFieldProps extends ClassMemberProps {
|
|
73
88
|
type?: Children;
|
|
74
89
|
optional?: boolean;
|
|
75
90
|
children?: Children;
|
|
76
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Generates a TypeScript class field declaration for the given reflection class.
|
|
94
|
+
*
|
|
95
|
+
* @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
|
|
96
|
+
* @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
|
|
97
|
+
*/
|
|
77
98
|
declare function ClassField(props: ClassFieldProps): Children;
|
|
99
|
+
/**
|
|
100
|
+
* Props for a class method, which is a specific type of class member that represents a function defined within the class.
|
|
101
|
+
*/
|
|
78
102
|
interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {
|
|
79
103
|
async?: boolean;
|
|
80
104
|
children?: Children;
|
|
81
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Generates a TypeScript class method declaration for the given reflection class.
|
|
108
|
+
*
|
|
109
|
+
* @param props - The properties of the class method, including its name, visibility, and other modifiers.
|
|
110
|
+
* @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
|
|
111
|
+
*/
|
|
82
112
|
declare function ClassMethod(props: ClassMethodProps): Children;
|
|
83
113
|
declare type __ΩClassDeclarationProps = any[];
|
|
84
114
|
declare type __ΩClassMemberProps = any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"class-declaration.d.cts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAqDiB,UAAA,qBAAA,SAA8B,sBAAR,CAAA;EAS3B;;;EATmC,QAAA,CAAA,EAAA,OAAA;EAAsB;AAoDrE;;EA4CiB,OAAA,CAAA,EAvFL,QAuFK;EACA;;;EAST,UAAA,CAAA,EA5FO,QA4FP,EAAA;EAAQ;AAUhB;AAgCA;EACS,cAAA,CAAA,EAlIU,uBAkIV,EAAA,GAAA,MAAA,EAAA;;;;AAWT;AAsBA;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;iBA7IgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;6BAAgB;;;;;UA4Cf,gBAAA;iBACA;WACN;;;;;;;aAOE;QACL;;;;;;;;;iBAUQ,WAAA,QAAmB,mBAAgB;;;;UAgClC,eAAA,SAAwB;SAChC;;aAEI;;;;;;;;iBASG,UAAA,QAAkB,kBAAe;;;;UAsBhC,gBAAA,SAAyB,kBAAkB;;aAE/C;;;;;;;;iBASG,WAAA,QAAmB,mBAAgB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as _alloy_js_core21 from "@alloy-js/core";
|
|
1
|
+
import { TypeParameters } from "./type-parameters.mjs";
|
|
3
2
|
import { Children, Namekey, Refkey } from "@alloy-js/core";
|
|
4
3
|
import { CallSignatureProps, CommonDeclarationProps, TypeParameterDescriptor } from "@alloy-js/typescript";
|
|
5
4
|
|
|
6
5
|
//#region src/typescript/components/class-declaration.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Props for the ClassDeclaration component, which represents a TypeScript class declaration
|
|
8
|
+
*/
|
|
7
9
|
interface ClassDeclarationProps extends CommonDeclarationProps {
|
|
8
10
|
/**
|
|
9
11
|
* An indication of whether this class is abstract
|
|
@@ -54,8 +56,11 @@ interface ClassDeclarationProps extends CommonDeclarationProps {
|
|
|
54
56
|
*/
|
|
55
57
|
declare function ClassDeclaration(props: ClassDeclarationProps): Children;
|
|
56
58
|
declare namespace ClassDeclaration {
|
|
57
|
-
var TypeParameters:
|
|
59
|
+
var TypeParameters: typeof TypeParameters;
|
|
58
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Generates a TypeScript class member declaration for the given reflection class.
|
|
63
|
+
*/
|
|
59
64
|
interface ClassMemberProps {
|
|
60
65
|
name: string | Namekey;
|
|
61
66
|
refkey?: Refkey;
|
|
@@ -64,21 +69,46 @@ interface ClassMemberProps {
|
|
|
64
69
|
protected?: boolean;
|
|
65
70
|
jsPrivate?: boolean;
|
|
66
71
|
static?: boolean;
|
|
72
|
+
abstract?: boolean;
|
|
67
73
|
children?: Children;
|
|
68
74
|
doc?: Children;
|
|
69
75
|
nullish?: boolean;
|
|
70
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Generates a TypeScript class member declaration for the given reflection class.
|
|
79
|
+
*
|
|
80
|
+
* @param props - The properties of the class member, including its name, visibility, and other modifiers.
|
|
81
|
+
* @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
|
|
82
|
+
*/
|
|
71
83
|
declare function ClassMember(props: ClassMemberProps): Children;
|
|
84
|
+
/**
|
|
85
|
+
* Props for a class field, which is a specific type of class member that represents a property of the class.
|
|
86
|
+
*/
|
|
72
87
|
interface ClassFieldProps extends ClassMemberProps {
|
|
73
88
|
type?: Children;
|
|
74
89
|
optional?: boolean;
|
|
75
90
|
children?: Children;
|
|
76
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Generates a TypeScript class field declaration for the given reflection class.
|
|
94
|
+
*
|
|
95
|
+
* @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
|
|
96
|
+
* @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
|
|
97
|
+
*/
|
|
77
98
|
declare function ClassField(props: ClassFieldProps): Children;
|
|
99
|
+
/**
|
|
100
|
+
* Props for a class method, which is a specific type of class member that represents a function defined within the class.
|
|
101
|
+
*/
|
|
78
102
|
interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {
|
|
79
103
|
async?: boolean;
|
|
80
104
|
children?: Children;
|
|
81
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Generates a TypeScript class method declaration for the given reflection class.
|
|
108
|
+
*
|
|
109
|
+
* @param props - The properties of the class method, including its name, visibility, and other modifiers.
|
|
110
|
+
* @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
|
|
111
|
+
*/
|
|
82
112
|
declare function ClassMethod(props: ClassMethodProps): Children;
|
|
83
113
|
declare type __ΩClassDeclarationProps = any[];
|
|
84
114
|
declare type __ΩClassMemberProps = any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"class-declaration.d.mts","names":[],"sources":["../../../src/typescript/components/class-declaration.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAqDiB,UAAA,qBAAA,SAA8B,sBAAR,CAAA;EAS3B;;;EATmC,QAAA,CAAA,EAAA,OAAA;EAAsB;AAoDrE;;EA4CiB,OAAA,CAAA,EAvFL,QAuFK;EACA;;;EAST,UAAA,CAAA,EA5FO,QA4FP,EAAA;EAAQ;AAUhB;AAgCA;EACS,cAAA,CAAA,EAlIU,uBAkIV,EAAA,GAAA,MAAA,EAAA;;;;AAWT;AAsBA;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;iBA7IgB,gBAAA,QAAwB,wBAAqB;kBAA7C,gBAAA;6BAAgB;;;;;UA4Cf,gBAAA;iBACA;WACN;;;;;;;aAOE;QACL;;;;;;;;;iBAUQ,WAAA,QAAmB,mBAAgB;;;;UAgClC,eAAA,SAAwB;SAChC;;aAEI;;;;;;;;iBASG,UAAA,QAAkB,kBAAe;;;;UAsBhC,gBAAA,SAAyB,kBAAkB;;aAE/C;;;;;;;;iBASG,WAAA,QAAmB,mBAAgB"}
|
|
@@ -4,14 +4,17 @@ import "../contexts/index.mjs";
|
|
|
4
4
|
import { MemberScope as MemberScope$1 } from "../contexts/member-scope.mjs";
|
|
5
5
|
import { getCallSignatureProps } from "../helpers/get-call-signature-props.mjs";
|
|
6
6
|
import "../helpers/index.mjs";
|
|
7
|
+
import { PropertyName } from "./property-name.mjs";
|
|
7
8
|
import { TypeParameters } from "./type-parameters.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { Block, For, MemberDeclaration, Name, Prose, Show, code, findKeyedChild, splitProps } from "@alloy-js/core";
|
|
9
|
+
import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
10
|
+
import { Block, For, MemberDeclaration, Name, Prose, Show, code, splitProps } from "@alloy-js/core";
|
|
11
11
|
import { CallSignature, Declaration as Declaration$1, TSSymbolFlags, TypeRefContext, createMemberSymbol, createTypeAndValueSymbol, useTSNamePolicy } from "@alloy-js/typescript";
|
|
12
12
|
|
|
13
13
|
//#region src/typescript/components/class-declaration.tsx
|
|
14
14
|
/**
|
|
15
|
+
* Props for the ClassDeclaration component, which represents a TypeScript class declaration
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
15
18
|
* Create a TypeScript class declaration.
|
|
16
19
|
*
|
|
17
20
|
* @example
|
|
@@ -64,22 +67,14 @@ function ClassDeclaration(props) {
|
|
|
64
67
|
hasInstanceMembers: true,
|
|
65
68
|
namePolicy: useTSNamePolicy().for("class")
|
|
66
69
|
});
|
|
67
|
-
const typeParametersChildren = props.children ? findKeyedChild(props.children, TypeParameters.tag) : void 0;
|
|
68
|
-
const sTypeParameters = typeParametersChildren ? [
|
|
69
|
-
"<",
|
|
70
|
-
typeParametersChildren,
|
|
71
|
-
">"
|
|
72
|
-
] : createComponent(TypeParameters, { get parameters() {
|
|
73
|
-
return props.typeParameters;
|
|
74
|
-
} });
|
|
75
70
|
return [createComponent(Show, {
|
|
76
71
|
get when() {
|
|
77
72
|
return Boolean(props.doc);
|
|
78
73
|
},
|
|
79
74
|
get children() {
|
|
80
|
-
return
|
|
75
|
+
return createComponent(TSDoc, { get heading() {
|
|
81
76
|
return props.doc;
|
|
82
|
-
} })
|
|
77
|
+
} });
|
|
83
78
|
}
|
|
84
79
|
}), createComponent(Declaration$1, {
|
|
85
80
|
symbol: sym,
|
|
@@ -97,7 +92,9 @@ function ClassDeclaration(props) {
|
|
|
97
92
|
memo(() => props.abstract && code`abstract `),
|
|
98
93
|
" class ",
|
|
99
94
|
createComponent(Name, {}),
|
|
100
|
-
|
|
95
|
+
memo(() => memo(() => !!props.typeParameters)() && createComponent(TypeParameters, { get parameters() {
|
|
96
|
+
return props.typeParameters;
|
|
97
|
+
} })),
|
|
101
98
|
extendsPart,
|
|
102
99
|
implementsPart,
|
|
103
100
|
" ",
|
|
@@ -111,6 +108,15 @@ function ClassDeclaration(props) {
|
|
|
111
108
|
})];
|
|
112
109
|
}
|
|
113
110
|
ClassDeclaration.TypeParameters = TypeParameters;
|
|
111
|
+
/**
|
|
112
|
+
* Generates a TypeScript class member declaration for the given reflection class.
|
|
113
|
+
*/
|
|
114
|
+
/**
|
|
115
|
+
* Generates a TypeScript class member declaration for the given reflection class.
|
|
116
|
+
*
|
|
117
|
+
* @param props - The properties of the class member, including its name, visibility, and other modifiers.
|
|
118
|
+
* @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.
|
|
119
|
+
*/
|
|
114
120
|
function ClassMember(props) {
|
|
115
121
|
let tsFlags = TSSymbolFlags.None;
|
|
116
122
|
if (props.nullish) tsFlags |= TSSymbolFlags.Nullish;
|
|
@@ -124,9 +130,9 @@ function ClassMember(props) {
|
|
|
124
130
|
return Boolean(props.doc);
|
|
125
131
|
},
|
|
126
132
|
get children() {
|
|
127
|
-
return
|
|
133
|
+
return createComponent(TSDoc, { get heading() {
|
|
128
134
|
return props.doc;
|
|
129
|
-
} })
|
|
135
|
+
} });
|
|
130
136
|
}
|
|
131
137
|
}), createComponent(MemberDeclaration, {
|
|
132
138
|
symbol: sym,
|
|
@@ -135,12 +141,22 @@ function ClassMember(props) {
|
|
|
135
141
|
memo(() => props.public && "public "),
|
|
136
142
|
memo(() => props.private && "private "),
|
|
137
143
|
memo(() => props.protected && "protected "),
|
|
144
|
+
memo(() => props.abstract && "abstract "),
|
|
138
145
|
memo(() => props.static && "static "),
|
|
139
146
|
memo(() => props.children)
|
|
140
147
|
];
|
|
141
148
|
}
|
|
142
149
|
})];
|
|
143
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Props for a class field, which is a specific type of class member that represents a property of the class.
|
|
153
|
+
*/
|
|
154
|
+
/**
|
|
155
|
+
* Generates a TypeScript class field declaration for the given reflection class.
|
|
156
|
+
*
|
|
157
|
+
* @param props - The properties of the class field, including its name, type, optionality, and other modifiers.
|
|
158
|
+
* @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.
|
|
159
|
+
*/
|
|
144
160
|
function ClassField(props) {
|
|
145
161
|
const optionality = props.optional ? "?" : "";
|
|
146
162
|
const typeSection = props.type && [
|
|
@@ -155,13 +171,22 @@ function ClassField(props) {
|
|
|
155
171
|
nullish: props.nullish ?? props.optional,
|
|
156
172
|
get children() {
|
|
157
173
|
return [
|
|
158
|
-
createComponent(
|
|
174
|
+
createComponent(PropertyName, {}),
|
|
159
175
|
typeSection,
|
|
160
176
|
initializerSection
|
|
161
177
|
];
|
|
162
178
|
}
|
|
163
179
|
}));
|
|
164
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Props for a class method, which is a specific type of class member that represents a function defined within the class.
|
|
183
|
+
*/
|
|
184
|
+
/**
|
|
185
|
+
* Generates a TypeScript class method declaration for the given reflection class.
|
|
186
|
+
*
|
|
187
|
+
* @param props - The properties of the class method, including its name, visibility, and other modifiers.
|
|
188
|
+
* @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.
|
|
189
|
+
*/
|
|
165
190
|
function ClassMethod(props) {
|
|
166
191
|
const callProps = getCallSignatureProps(props);
|
|
167
192
|
const [_, rest] = splitProps(props, ["doc"]);
|
|
@@ -170,18 +195,18 @@ function ClassMethod(props) {
|
|
|
170
195
|
return Boolean(props.doc);
|
|
171
196
|
},
|
|
172
197
|
get children() {
|
|
173
|
-
return
|
|
198
|
+
return createComponent(TSDoc, { get children() {
|
|
174
199
|
return [memo(() => memo(() => !!props.doc)() && createComponent(Prose, { get children() {
|
|
175
200
|
return props.doc;
|
|
176
201
|
} })), memo(() => memo(() => !!Array.isArray(rest.parameters))() && createComponent(TSDocParams, { get parameters() {
|
|
177
202
|
return rest.parameters;
|
|
178
203
|
} }))];
|
|
179
|
-
} })
|
|
204
|
+
} });
|
|
180
205
|
}
|
|
181
206
|
}), createComponent(ClassMember, mergeProps(rest, { get children() {
|
|
182
207
|
return [
|
|
183
208
|
memo(() => props.async && "async "),
|
|
184
|
-
createComponent(
|
|
209
|
+
createComponent(PropertyName, {}),
|
|
185
210
|
createComponent(LexicalScope, { get children() {
|
|
186
211
|
return [
|
|
187
212
|
createComponent(CallSignature, callProps),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-declaration.mjs","names":["Block","code","
|
|
1
|
+
{"version":3,"file":"class-declaration.mjs","names":["Block","code","For","MemberDeclaration","Name","Prose","Show","splitProps","CallSignature","createMemberSymbol","createTypeAndValueSymbol","Declaration","TSSymbolFlags","TypeRefContext","useTSNamePolicy","LexicalScope","MemberScope","getCallSignatureProps","PropertyName","TSDoc","TSDocParams","TypeParameters","ClassDeclaration","props","extendsPart","extends","_$memo","implementsPart","implements","length","_$createComponent","each","comma","space","children","implement","sym","name","refkeys","refkey","export","default","metadata","hasInstanceMembers","namePolicy","for","when","Boolean","doc","heading","symbol","ownerSymbol","abstract","typeParameters","parameters","ClassMember","tsFlags","None","nullish","Nullish","public","private","protected","static","ClassField","optionality","optional","typeSection","type","initializerSection","_$mergeProps","ClassMethod","callProps","_","rest","Array","isArray","async"],"sources":["../../../src/typescript/components/class-declaration.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 Block,\n Children,\n code,\n For,\n MemberDeclaration,\n Name,\n Namekey,\n Prose,\n Refkey,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n CallSignature,\n CallSignatureProps,\n CommonDeclarationProps,\n createMemberSymbol,\n createTypeAndValueSymbol,\n Declaration,\n TSSymbolFlags,\n TypeParameterDescriptor,\n TypeRefContext,\n useTSNamePolicy\n} from \"@alloy-js/typescript\";\nimport { LexicalScope } from \"../contexts\";\nimport { MemberScope } from \"../contexts/member-scope\";\nimport { getCallSignatureProps } from \"../helpers\";\nimport { PropertyName } from \"./property-name\";\nimport { TSDoc, TSDocParams } from \"./tsdoc\";\nimport { TypeParameters } from \"./type-parameters\";\n\n/**\n * Props for the ClassDeclaration component, which represents a TypeScript class declaration\n */\nexport interface ClassDeclarationProps extends CommonDeclarationProps {\n /**\n * An indication of whether this class is abstract\n */\n abstract?: boolean;\n\n /**\n * An optional class that this class extends. This will be rendered as an `extends` clause in the class declaration\n */\n extends?: Children;\n\n /**\n * Optional interfaces that this class implements. This will be rendered as an `implements` clause in the class declaration\n */\n implements?: Children[];\n\n /**\n * The generic type parameters of the class.\n */\n typeParameters?: TypeParameterDescriptor[] | string[];\n}\n\n/**\n * Create a TypeScript class declaration.\n *\n * @example\n * ```tsx\n * const myPetRefkey = refkey();\n * const Animal = refkey();\n * const staticMember = refkey();\n * const instanceMember = refkey();\n *\n * <ClassDeclaration name=\"Animal\" refkey={Animal}>\n * <ClassMember public static name=\"something\" type=\"string\" refkey={staticMember}>\n * \"hello\"\n * </ClassMember>\n * <ClassMember public name=\"kind\" type=\"string\" />\n * <ClassMember public name=\"name\" type=\"string\" refkey={instanceMember} />\n * <ClassConstructor parameters=\"name: string\">\n * this.name = name;\n * </ClassConstructor>\n * </ClassDeclaration>\n *\n * <VarDeclaration const name=\"myPet\" refkey={myPetRefkey}>\n * new {Animal}();\n * </VarDeclaration>\n *\n * {staticMember}; // Animal.something\n * <MemberReference path={[myPetRefkey, instanceMember]} /> // myPet.name\n * {memberRefkey(myPetRefkey, instanceMember)}\n * ```\n */\nexport function ClassDeclaration(props: ClassDeclarationProps) {\n const extendsPart = props.extends && <> extends {props.extends}</>;\n const implementsPart = props.implements && props.implements.length > 0 && (\n <>\n {\" \"}\n implements{\" \"}\n <For each={props.implements} comma space>\n {implement => implement}\n </For>\n </>\n );\n const sym = createTypeAndValueSymbol(props.name, {\n refkeys: props.refkey,\n export: props.export,\n default: props.default,\n metadata: props.metadata,\n hasInstanceMembers: true,\n namePolicy: useTSNamePolicy().for(\"class\")\n });\n\n return (\n <>\n <Show when={Boolean(props.doc)}>\n <TSDoc heading={props.doc} />\n </Show>\n <Declaration symbol={sym} export={props.export} default={props.default}>\n <MemberScope ownerSymbol={sym}>\n {props.abstract && code`abstract `} class <Name />\n {props.typeParameters && (\n <TypeParameters parameters={props.typeParameters} />\n )}\n {extendsPart}\n {implementsPart} <Block>{props.children}</Block>\n </MemberScope>\n </Declaration>\n </>\n );\n}\n\nClassDeclaration.TypeParameters = TypeParameters;\n\n/**\n * Generates a TypeScript class member declaration for the given reflection class.\n */\nexport interface ClassMemberProps {\n name: string | Namekey;\n refkey?: Refkey;\n public?: boolean;\n private?: boolean;\n protected?: boolean;\n jsPrivate?: boolean;\n static?: boolean;\n abstract?: boolean;\n children?: Children;\n doc?: Children;\n nullish?: boolean;\n}\n\n/**\n * Generates a TypeScript class member declaration for the given reflection class.\n *\n * @param props - The properties of the class member, including its name, visibility, and other modifiers.\n * @returns A JSX element representing the class member declaration, which can be used within a ClassDeclaration component.\n */\nexport function ClassMember(props: ClassMemberProps) {\n let tsFlags = TSSymbolFlags.None;\n if (props.nullish) {\n tsFlags |= TSSymbolFlags.Nullish;\n }\n\n const sym = createMemberSymbol(props.name, props, {\n refkeys: props.refkey,\n tsFlags,\n namePolicy: useTSNamePolicy().for(\"class-member-data\")\n });\n\n return (\n <>\n <Show when={Boolean(props.doc)}>\n <TSDoc heading={props.doc} />\n </Show>\n <MemberDeclaration symbol={sym}>\n {props.public && \"public \"}\n {props.private && \"private \"}\n {props.protected && \"protected \"}\n {props.abstract && \"abstract \"}\n {props.static && \"static \"}\n {props.children}\n </MemberDeclaration>\n </>\n );\n}\n\n/**\n * Props for a class field, which is a specific type of class member that represents a property of the class.\n */\nexport interface ClassFieldProps extends ClassMemberProps {\n type?: Children;\n optional?: boolean;\n children?: Children;\n}\n\n/**\n * Generates a TypeScript class field declaration for the given reflection class.\n *\n * @param props - The properties of the class field, including its name, type, optionality, and other modifiers.\n * @returns A JSX element representing the class field declaration, which can be used within a ClassDeclaration component.\n */\nexport function ClassField(props: ClassFieldProps) {\n const optionality = props.optional ? \"?\" : \"\";\n const typeSection = props.type && (\n <>\n {optionality}: <TypeRefContext>{props.type}</TypeRefContext>\n </>\n );\n const initializerSection = props.children && <> = {props.children}</>;\n const nullish = props.nullish ?? props.optional;\n\n return (\n <ClassMember {...props} nullish={nullish}>\n <PropertyName />\n {typeSection}\n {initializerSection}\n </ClassMember>\n );\n}\n\n/**\n * Props for a class method, which is a specific type of class member that represents a function defined within the class.\n */\nexport interface ClassMethodProps extends ClassMemberProps, CallSignatureProps {\n async?: boolean;\n children?: Children;\n}\n\n/**\n * Generates a TypeScript class method declaration for the given reflection class.\n *\n * @param props - The properties of the class method, including its name, visibility, and other modifiers.\n * @returns A JSX element representing the class method declaration, which can be used within a ClassDeclaration component.\n */\nexport function ClassMethod(props: ClassMethodProps) {\n const callProps = getCallSignatureProps(props);\n const [_, rest] = splitProps(props, [\"doc\"]);\n\n return (\n <>\n <Show when={Boolean(props.doc)}>\n <TSDoc>\n {props.doc && <Prose children={props.doc} />}\n {Array.isArray(rest.parameters) && (\n <TSDocParams parameters={rest.parameters} />\n )}\n </TSDoc>\n </Show>\n <ClassMember {...rest}>\n {props.async && \"async \"}\n <PropertyName />\n <LexicalScope>\n <CallSignature {...callProps} /> <Block>{props.children}</Block>\n </LexicalScope>\n </ClassMember>\n </>\n );\n}\n"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core12 from "@alloy-js/core";
|
|
2
2
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
|
|
|
26
26
|
* @param props - The properties for the dynamic import statement.
|
|
27
27
|
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
28
|
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps):
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core12.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alloy_js_core16 from "@alloy-js/core";
|
|
2
2
|
import { VarDeclarationProps } from "@alloy-js/typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/typescript/components/dynamic-import-statement.d.ts
|
|
@@ -26,7 +26,7 @@ interface DynamicImportStatementProps extends Omit<VarDeclarationProps, "initial
|
|
|
26
26
|
* @param props - The properties for the dynamic import statement.
|
|
27
27
|
* @returns A `VarDeclaration` component representing the dynamic import statement.
|
|
28
28
|
*/
|
|
29
|
-
declare function DynamicImportStatement(props: DynamicImportStatementProps):
|
|
29
|
+
declare function DynamicImportStatement(props: DynamicImportStatementProps): _alloy_js_core16.Children;
|
|
30
30
|
declare type __ΩDynamicImportStatementProps = any[];
|
|
31
31
|
//#endregion
|
|
32
32
|
export { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/entry-file.d.ts
|
|
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
|
|
|
21
21
|
* @param props - The properties for the source file.
|
|
22
22
|
* @returns The rendered source file component.
|
|
23
23
|
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps):
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core14.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,
|
|
1
|
+
{"version":3,"file":"entry-file.d.cts","names":[],"sources":["../../../src/typescript/components/entry-file.tsx"],"sourcesContent":[],"mappings":";;;;;KA4BY,cAAA,GAAiB;;;AAA7B;AAoBA;;;;;;mBATmB;;;;;;;;iBASH,SAAA,QAAiB,iBAAc,gBAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core17 from "@alloy-js/core";
|
|
3
3
|
import { ResolvedEntryTypeDefinition } from "powerlines/types/resolved";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/entry-file.d.ts
|
|
@@ -21,7 +21,7 @@ type EntryFileProps = TypescriptFileProps & {
|
|
|
21
21
|
* @param props - The properties for the source file.
|
|
22
22
|
* @returns The rendered source file component.
|
|
23
23
|
*/
|
|
24
|
-
declare function EntryFile(props: EntryFileProps):
|
|
24
|
+
declare function EntryFile(props: EntryFileProps): _alloy_js_core17.Children;
|
|
25
25
|
declare type __ΩEntryFileProps = any[];
|
|
26
26
|
//#endregion
|
|
27
27
|
export { EntryFile, EntryFileProps, __ΩEntryFileProps };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const require_typescript_components_tsdoc = require('./tsdoc.cjs');
|
|
2
2
|
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
3
3
|
const require_typescript_components_builtin_file = require('./builtin-file.cjs');
|
|
4
|
+
const require_typescript_components_property_name = require('./property-name.cjs');
|
|
4
5
|
const require_typescript_components_type_parameters = require('./type-parameters.cjs');
|
|
5
|
-
const require_typescript_components_typescript_property_name = require('./typescript-property-name.cjs');
|
|
6
6
|
const require_typescript_components_class_declaration = require('./class-declaration.cjs');
|
|
7
7
|
const require_typescript_components_dynamic_import_statement = require('./dynamic-import-statement.cjs');
|
|
8
8
|
const require_typescript_components_entry_file = require('./entry-file.cjs');
|
|
9
|
-
const require_typescript_components_record_expression = require('./record-expression.cjs');
|
|
10
9
|
const require_typescript_components_tsdoc_reflection = require('./tsdoc-reflection.cjs');
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
const require_typescript_components_interface_declaration = require('./interface-declaration.cjs');
|
|
11
|
+
const require_typescript_components_object_declaration = require('./object-declaration.cjs');
|
|
12
|
+
const require_typescript_components_record_expression = require('./record-expression.cjs');
|
|
13
13
|
|
|
14
14
|
exports.BuiltinFile = require_typescript_components_builtin_file.BuiltinFile;
|
|
15
15
|
exports.ClassDeclaration = require_typescript_components_class_declaration.ClassDeclaration;
|
|
@@ -18,6 +18,13 @@ exports.ClassMember = require_typescript_components_class_declaration.ClassMembe
|
|
|
18
18
|
exports.ClassMethod = require_typescript_components_class_declaration.ClassMethod;
|
|
19
19
|
exports.DynamicImportStatement = require_typescript_components_dynamic_import_statement.DynamicImportStatement;
|
|
20
20
|
exports.EntryFile = require_typescript_components_entry_file.EntryFile;
|
|
21
|
+
exports.InterfaceDeclaration = require_typescript_components_interface_declaration.InterfaceDeclaration;
|
|
22
|
+
exports.InterfaceDeclarationProperty = require_typescript_components_interface_declaration.InterfaceDeclarationProperty;
|
|
23
|
+
exports.InterfaceExpression = require_typescript_components_interface_declaration.InterfaceExpression;
|
|
24
|
+
exports.InterfaceMember = require_typescript_components_interface_declaration.InterfaceMember;
|
|
25
|
+
exports.ObjectDeclaration = require_typescript_components_object_declaration.ObjectDeclaration;
|
|
26
|
+
exports.ObjectDeclarationProperty = require_typescript_components_object_declaration.ObjectDeclarationProperty;
|
|
27
|
+
exports.PropertyName = require_typescript_components_property_name.PropertyName;
|
|
21
28
|
exports.RecordExpression = require_typescript_components_record_expression.RecordExpression;
|
|
22
29
|
exports.TSDoc = require_typescript_components_tsdoc.TSDoc;
|
|
23
30
|
exports.TSDocAlias = require_typescript_components_tsdoc.TSDocAlias;
|
|
@@ -43,11 +50,6 @@ exports.TSDocTag = require_typescript_components_tsdoc.TSDocTag;
|
|
|
43
50
|
exports.TSDocThrows = require_typescript_components_tsdoc.TSDocThrows;
|
|
44
51
|
exports.TSDocTitle = require_typescript_components_tsdoc.TSDocTitle;
|
|
45
52
|
exports.TypeParameters = require_typescript_components_type_parameters.TypeParameters;
|
|
46
|
-
exports.TypeScriptInterface = require_typescript_components_typescript_interface.TypeScriptInterface;
|
|
47
53
|
exports.TypescriptFile = require_typescript_components_typescript_file.TypescriptFile;
|
|
48
54
|
exports.TypescriptFileHeader = require_typescript_components_typescript_file.TypescriptFileHeader;
|
|
49
|
-
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
50
|
-
exports.TypescriptInterfaceProperty = require_typescript_components_typescript_interface.TypescriptInterfaceProperty;
|
|
51
|
-
exports.TypescriptObject = require_typescript_components_typescript_object.TypescriptObject;
|
|
52
|
-
exports.TypescriptObjectProperty = require_typescript_components_typescript_object.TypescriptObjectProperty;
|
|
53
|
-
exports.TypescriptPropertyName = require_typescript_components_typescript_property_name.TypescriptPropertyName;
|
|
55
|
+
exports.TypescriptFileHeaderImports = require_typescript_components_typescript_file.TypescriptFileHeaderImports;
|
|
@@ -5,9 +5,9 @@ import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./
|
|
|
5
5
|
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps } from "./class-declaration.cjs";
|
|
6
6
|
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.cjs";
|
|
7
7
|
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.cjs";
|
|
8
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./interface-declaration.cjs";
|
|
9
|
+
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./object-declaration.cjs";
|
|
10
|
+
import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./property-name.cjs";
|
|
8
11
|
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.cjs";
|
|
9
12
|
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.cjs";
|
|
10
|
-
|
|
11
|
-
import { ComputedRef, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩComputedRef, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./typescript-object.cjs";
|
|
12
|
-
import { TypescriptPropertyName, TypescriptPropertyNameProps, __ΩTypescriptPropertyNameProps } from "./typescript-property-name.cjs";
|
|
13
|
-
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, 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, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, TypescriptPropertyName, TypescriptPropertyNameProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeParametersProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps, __ΩTypescriptPropertyNameProps };
|
|
13
|
+
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, 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, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
|
|
@@ -5,9 +5,9 @@ import { TypeParameters, TypeParametersProps, __ΩTypeParametersProps } from "./
|
|
|
5
5
|
import { ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps } from "./class-declaration.mjs";
|
|
6
6
|
import { DynamicImportStatement, DynamicImportStatementProps, __ΩDynamicImportStatementProps } from "./dynamic-import-statement.mjs";
|
|
7
7
|
import { EntryFile, EntryFileProps, __ΩEntryFileProps } from "./entry-file.mjs";
|
|
8
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceDeclarationPropertyProps, InterfaceDeclarationProps, InterfaceExpression, InterfaceExpressionProps, InterfaceIndexerMemberProps, InterfaceMember, InterfaceMemberProps, InterfaceMemberPropsBase, InterfacePropertyMemberProps, __ΩInterfaceDeclarationPropertyProps, __ΩInterfaceDeclarationProps, __ΩInterfaceExpressionProps, __ΩInterfaceIndexerMemberProps, __ΩInterfaceMemberProps, __ΩInterfaceMemberPropsBase, __ΩInterfacePropertyMemberProps } from "./interface-declaration.mjs";
|
|
9
|
+
import { ComputedRef, ObjectDeclaration, ObjectDeclarationProperty, ObjectDeclarationPropertyProps, ObjectDeclarationProps, __ΩComputedRef, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps } from "./object-declaration.mjs";
|
|
10
|
+
import { PropertyName, PropertyNameProps, __ΩPropertyNameProps } from "./property-name.mjs";
|
|
8
11
|
import { RecordExpression, RecordExpressionProps, __ΩRecordExpressionProps } from "./record-expression.mjs";
|
|
9
12
|
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
10
|
-
|
|
11
|
-
import { ComputedRef, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, __ΩComputedRef, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps } from "./typescript-object.mjs";
|
|
12
|
-
import { TypescriptPropertyName, TypescriptPropertyNameProps, __ΩTypescriptPropertyNameProps } from "./typescript-property-name.mjs";
|
|
13
|
-
export { BuiltinFile, BuiltinFileProps, ClassDeclaration, ClassDeclarationProps, ClassField, ClassFieldProps, ClassMember, ClassMemberProps, ClassMethod, ClassMethodProps, ComputedRef, DynamicImportStatement, DynamicImportStatementProps, EntryFile, EntryFileProps, 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, TypeScriptInterface, TypeScriptInterfaceProps, TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports, TypescriptFileHeaderImportsProps, TypescriptFileHeaderProps, TypescriptFileProps, TypescriptInterfaceProperty, TypescriptInterfacePropertyProps, TypescriptObject, TypescriptObjectProperty, TypescriptObjectPropertyProps, TypescriptObjectProps, TypescriptPropertyName, TypescriptPropertyNameProps, __ΩBuiltinFileProps, __ΩClassDeclarationProps, __ΩClassFieldProps, __ΩClassMemberProps, __ΩClassMethodProps, __ΩComputedRef, __ΩDynamicImportStatementProps, __ΩEntryFileProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeParametersProps, __ΩTypeScriptInterfaceProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps, __ΩTypescriptInterfacePropertyProps, __ΩTypescriptObjectPropertyProps, __ΩTypescriptObjectProps, __ΩTypescriptPropertyNameProps };
|
|
13
|
+
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, 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, __ΩObjectDeclarationPropertyProps, __ΩObjectDeclarationProps, __ΩPropertyNameProps, __ΩRecordExpressionProps, __ΩTSDocAttributesTagsProps, __ΩTSDocDefaultValueProps, __ΩTSDocExampleProps, __ΩTSDocModuleProps, __ΩTSDocParamProps, __ΩTSDocParamsProps, __ΩTSDocProps, __ΩTSDocTagProps, __ΩTypeParametersProps, __ΩTypescriptFileHeaderImportsProps, __ΩTypescriptFileHeaderProps, __ΩTypescriptFileProps };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { TSDoc, TSDocAlias, TSDocAttributesTags, TSDocDefaultValue, TSDocDomain, TSDocExample, TSDocHidden, TSDocIgnore, TSDocInternal, TSDocLink, TSDocModule, TSDocParam, TSDocParams, TSDocPermission, TSDocReadonly, TSDocRemarks, TSDocReturns, TSDocTag, TSDocThrows, TSDocTitle } from "./tsdoc.mjs";
|
|
2
2
|
import { TypescriptFile, TypescriptFileHeader, TypescriptFileHeaderImports } from "./typescript-file.mjs";
|
|
3
3
|
import { BuiltinFile } from "./builtin-file.mjs";
|
|
4
|
+
import { PropertyName } from "./property-name.mjs";
|
|
4
5
|
import { TypeParameters } from "./type-parameters.mjs";
|
|
5
|
-
import { TypescriptPropertyName } from "./typescript-property-name.mjs";
|
|
6
6
|
import { ClassDeclaration, ClassField, ClassMember, ClassMethod } from "./class-declaration.mjs";
|
|
7
7
|
import { DynamicImportStatement } from "./dynamic-import-statement.mjs";
|
|
8
8
|
import { EntryFile } from "./entry-file.mjs";
|
|
9
|
-
import { RecordExpression } from "./record-expression.mjs";
|
|
10
9
|
import { TSDocReflectionClass, TSDocReflectionMethod, TSDocReflectionProperty } from "./tsdoc-reflection.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember } from "./interface-declaration.mjs";
|
|
11
|
+
import { ObjectDeclaration, ObjectDeclarationProperty } from "./object-declaration.mjs";
|
|
12
|
+
import { RecordExpression } from "./record-expression.mjs";
|
|
13
13
|
|
|
14
|
-
export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, DynamicImportStatement, EntryFile, 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,
|
|
14
|
+
export { BuiltinFile, ClassDeclaration, ClassField, ClassMember, ClassMethod, DynamicImportStatement, EntryFile, InterfaceDeclaration, InterfaceDeclarationProperty, InterfaceExpression, InterfaceMember, 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 };
|