This repository was archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.d.ts
184 lines (161 loc) · 3.44 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
export interface Options {
/** Path to output directory */
outdir?: string;
/** Name of the file with you component's custom HTML data */
htmlFileName?: string | null;
/** Name of the file with you component's custom CSS data */
cssFileName?: string | null;
/** Class names of any components you would like to exclude from the custom data */
exclude?: string[];
/** The property name from the component object constructed by the CEM Analyzer */
descriptionSrc?: "description" | "summary";
/** Displays the slot section of the element description */
slotDocs?: boolean;
/** Displays the event section of the element description */
eventDocs?: boolean;
/** Displays the CSS custom properties section of the element description */
cssPropertiesDocs?: boolean;
/** Displays the CSS parts section of the element description */
cssPartsDocs?: boolean;
/** Displays the methods section of the element description */
methodDocs?: boolean;
/** Overrides the default section labels in the component description */
labels?: DescriptionLabels;
/** Creates reusable CSS values for consistency in components */
cssSets?: CssSet[];
}
interface DescriptionLabels {
slots?: string;
events?: string;
cssProperties?: string;
cssParts?: string;
methods?: string;
}
export interface CssSet {
name: string;
values: CssValue[] | string[];
}
export interface CssValue {
name: string;
description?: string;
}
export interface Tag {
name: string;
description?: string;
attributes?: TagAttribute[];
references?: Reference[];
}
export interface VsCssProperty {
name: string;
description?: string;
values?: Value[];
references?: Reference[];
}
interface TagAttribute {
name: string;
description?: string;
values?: Value[];
references?: Reference[];
}
interface Value {
name: string;
}
interface Reference {
name: string;
url: string;
}
/**
*
* CEM TYPES
*
*/
export interface Params {
customElementsManifest: CustomElementsManifest;
}
export interface CustomElementsManifest {
schemaVersion: string;
readme: string;
modules: Module[];
}
interface Module {
kind: string;
path: string;
declarations: Declaration[];
exports: Export[];
}
export interface Declaration {
kind: string;
description: string;
name: string;
cssProperties?: CssProperty[];
cssParts?: CssPart[];
slots: Slot[];
members?: Member[];
events?: Event[];
attributes: Attribute[];
superclass: SuperClass;
tagName?: string;
summary?: string;
customElement: boolean;
}
interface CssProperty {
description: string;
name: string;
default?: string;
type?: Type;
}
interface CssPart {
description: string;
name: string;
}
interface Slot {
description: string;
name: string;
}
interface Member {
kind: string;
name: string;
type?: Type;
default?: string;
description?: string;
attribute?: string;
reflects?: boolean;
privacy?: string;
parameters?: Parameter[];
return?: Return;
static?: boolean;
}
interface Type {
text: string;
}
interface Parameter {
name: string;
type: Type;
}
interface Return {
type: Type;
}
interface Event {
name: string;
type?: Type;
description: string;
}
interface Attribute {
name: string;
type: Type;
default?: string;
description: string;
fieldName?: string;
}
interface SuperClass {
name: string;
package?: string;
}
interface Export {
kind: string;
name: string;
declaration: {
name: string;
module: string;
};
}