@@ -40,6 +40,12 @@ export interface Package {
40
40
* An array of the modules this package contains.
41
41
*/
42
42
modules : Array < Module > ;
43
+
44
+ /**
45
+ * Whether the package is deprecated.
46
+ * If the value is a string, it's the reason for the deprecation.
47
+ */
48
+ deprecated ?: boolean | string ;
43
49
}
44
50
45
51
// This type may expand in the future to include JSON, CSS, or HTML
@@ -75,6 +81,12 @@ export interface JavaScriptModule {
75
81
* custom element definitions.
76
82
*/
77
83
exports ?: Array < Export > ;
84
+
85
+ /**
86
+ * Whether the module is deprecated.
87
+ * If the value is a string, it's the reason for the deprecation.
88
+ */
89
+ deprecated ?: boolean | string ;
78
90
}
79
91
80
92
export type Export = JavaScriptExport | CustomElementExport ;
@@ -102,6 +114,12 @@ export interface JavaScriptExport {
102
114
* defined and the `name` field must be `"*"`.
103
115
*/
104
116
declaration : Reference ;
117
+
118
+ /**
119
+ * Whether the export is deprecated. For example, the name of the export was changed.
120
+ * If the value is a string, it's the reason for the deprecation.
121
+ */
122
+ deprecated ?: boolean | string ;
105
123
}
106
124
107
125
/**
@@ -124,6 +142,13 @@ export interface CustomElementExport {
124
142
* custom element.
125
143
*/
126
144
declaration : Reference ;
145
+
146
+ /**
147
+ * Whether the custom-element export is deprecated.
148
+ * For example, a future version will not register the custom element in this file.
149
+ * If the value is a string, it's the reason for the deprecation.
150
+ */
151
+ deprecated ?: boolean | string ;
127
152
}
128
153
129
154
export type Declaration =
@@ -226,6 +251,12 @@ export interface CustomElement extends ClassLike {
226
251
customElement : true ;
227
252
228
253
members ?: Array < CustomElementMember > ;
254
+
255
+ /**
256
+ * Whether the custom element is deprecated.
257
+ * If the value is a string, it's the reason for the deprecation.
258
+ */
259
+ deprecated ?: boolean | string ;
229
260
}
230
261
231
262
export type CustomElementMember = CustomElementField | ClassMethod ;
@@ -262,6 +293,12 @@ export interface Attribute {
262
293
* The name of the field this attribute is associated with, if any.
263
294
*/
264
295
fieldName ?: string ;
296
+
297
+ /**
298
+ * Whether the attribute is deprecated.
299
+ * If the value is a string, it's the reason for the deprecation.
300
+ */
301
+ deprecated ?: boolean | string ;
265
302
}
266
303
267
304
export interface Event {
@@ -283,6 +320,12 @@ export interface Event {
283
320
type : Type ;
284
321
285
322
inheritedFrom ?: Reference ;
323
+
324
+ /**
325
+ * Whether the event is deprecated.
326
+ * If the value is a string, it's the reason for the deprecation.
327
+ */
328
+ deprecated ?: boolean | string ;
286
329
}
287
330
288
331
export interface Slot {
@@ -300,6 +343,12 @@ export interface Slot {
300
343
* A markdown description.
301
344
*/
302
345
description ?: string ;
346
+
347
+ /**
348
+ * Whether the slot is deprecated.
349
+ * If the value is a string, it's the reason for the deprecation.
350
+ */
351
+ deprecated ?: boolean | string ;
303
352
}
304
353
305
354
/**
@@ -317,6 +366,12 @@ export interface CssPart {
317
366
* A markdown description.
318
367
*/
319
368
description ?: string ;
369
+
370
+ /**
371
+ * Whether the CSS shadow part is deprecated.
372
+ * If the value is a string, it's the reason for the deprecation.
373
+ */
374
+ deprecated ?: boolean | string ;
320
375
}
321
376
322
377
export interface CssCustomProperty {
@@ -351,6 +406,12 @@ export interface CssCustomProperty {
351
406
* A markdown description.
352
407
*/
353
408
description ?: string ;
409
+
410
+ /**
411
+ * Whether the CSS custom property is deprecated.
412
+ * If the value is a string, it's the reason for the deprecation.
413
+ */
414
+ deprecated ?: boolean | string ;
354
415
}
355
416
356
417
export interface Type {
@@ -453,6 +514,12 @@ export interface ClassLike {
453
514
members ?: Array < ClassMember > ;
454
515
455
516
source ?: SourceReference ;
517
+
518
+ /**
519
+ * Whether the class or mixin is deprecated.
520
+ * If the value is a string, it's the reason for the deprecation.
521
+ */
522
+ deprecated ?: boolean | string ;
456
523
}
457
524
458
525
export interface ClassDeclaration extends ClassLike {
@@ -481,6 +548,12 @@ export interface PropertyLike {
481
548
type ?: Type ;
482
549
483
550
default ?: string ;
551
+
552
+ /**
553
+ * Whether the property is deprecated.
554
+ * If the value is a string, it's the reason for the deprecation.
555
+ */
556
+ deprecated ?: boolean | string ;
484
557
}
485
558
486
559
export interface ClassField extends PropertyLike {
0 commit comments