@@ -45,7 +45,7 @@ export interface Package {
45
45
* Whether the package is deprecated.
46
46
* If the value is a string, it's the reason for the deprecation.
47
47
*/
48
- deprecated ?: boolean | string ;
48
+ deprecated ?: boolean | string ;
49
49
}
50
50
51
51
// This type may expand in the future to include JSON, CSS, or HTML
@@ -81,12 +81,12 @@ export interface JavaScriptModule {
81
81
* custom element definitions.
82
82
*/
83
83
exports ?: Array < Export > ;
84
-
84
+
85
85
/**
86
86
* Whether the module is deprecated.
87
87
* If the value is a string, it's the reason for the deprecation.
88
88
*/
89
- deprecated ?: boolean | string ;
89
+ deprecated ?: boolean | string ;
90
90
}
91
91
92
92
export type Export = JavaScriptExport | CustomElementExport ;
@@ -114,12 +114,12 @@ export interface JavaScriptExport {
114
114
* defined and the `name` field must be `"*"`.
115
115
*/
116
116
declaration : Reference ;
117
-
117
+
118
118
/**
119
119
* Whether the export is deprecated. For example, the name of the export was changed.
120
120
* If the value is a string, it's the reason for the deprecation.
121
121
*/
122
- deprecated ?: boolean | string ;
122
+ deprecated ?: boolean | string ;
123
123
}
124
124
125
125
/**
@@ -142,13 +142,13 @@ export interface CustomElementExport {
142
142
* custom element.
143
143
*/
144
144
declaration : Reference ;
145
-
145
+
146
146
/**
147
147
* Whether the custom-element export is deprecated.
148
148
* For example, a future version will not register the custom element in this file.
149
149
* If the value is a string, it's the reason for the deprecation.
150
150
*/
151
- deprecated ?: boolean | string ;
151
+ deprecated ?: boolean | string ;
152
152
}
153
153
154
154
export type Declaration =
@@ -210,7 +210,9 @@ export interface SourceReference {
210
210
*/
211
211
// Note: this needs to be an interface to be included in the generated JSON
212
212
// Schema output.
213
- export interface CustomElementDeclaration extends ClassDeclaration , CustomElement { }
213
+ export interface CustomElementDeclaration
214
+ extends ClassDeclaration ,
215
+ CustomElement { }
214
216
215
217
/**
216
218
* The additional fields that a custom element adds to classes and mixins.
@@ -251,6 +253,14 @@ export interface CustomElement extends ClassLike {
251
253
* custom element class
252
254
*/
253
255
customElement : true ;
256
+
257
+ // members?: Array<CustomElementMember>;
258
+
259
+ /**
260
+ * Whether the custom element is deprecated.
261
+ * If the value is a string, it's the reason for the deprecation.
262
+ */
263
+ deprecated ?: boolean | string ;
254
264
}
255
265
256
266
export interface Attribute {
@@ -285,12 +295,12 @@ export interface Attribute {
285
295
* The name of the field this attribute is associated with, if any.
286
296
*/
287
297
fieldName ?: string ;
288
-
298
+
289
299
/**
290
300
* Whether the attribute is deprecated.
291
301
* If the value is a string, it's the reason for the deprecation.
292
302
*/
293
- deprecated ?: boolean | string ;
303
+ deprecated ?: boolean | string ;
294
304
}
295
305
296
306
export interface Event {
@@ -312,12 +322,12 @@ export interface Event {
312
322
type : Type ;
313
323
314
324
inheritedFrom ?: Reference ;
315
-
325
+
316
326
/**
317
327
* Whether the event is deprecated.
318
328
* If the value is a string, it's the reason for the deprecation.
319
329
*/
320
- deprecated ?: boolean | string ;
330
+ deprecated ?: boolean | string ;
321
331
}
322
332
323
333
export interface Slot {
@@ -335,12 +345,12 @@ export interface Slot {
335
345
* A markdown description.
336
346
*/
337
347
description ?: string ;
338
-
348
+
339
349
/**
340
350
* Whether the slot is deprecated.
341
351
* If the value is a string, it's the reason for the deprecation.
342
352
*/
343
- deprecated ?: boolean | string ;
353
+ deprecated ?: boolean | string ;
344
354
}
345
355
346
356
/**
@@ -358,12 +368,12 @@ export interface CssPart {
358
368
* A markdown description.
359
369
*/
360
370
description ?: string ;
361
-
371
+
362
372
/**
363
373
* Whether the CSS shadow part is deprecated.
364
374
* If the value is a string, it's the reason for the deprecation.
365
375
*/
366
- deprecated ?: boolean | string ;
376
+ deprecated ?: boolean | string ;
367
377
}
368
378
369
379
export interface CssCustomProperty {
@@ -398,12 +408,12 @@ export interface CssCustomProperty {
398
408
* A markdown description.
399
409
*/
400
410
description ?: string ;
401
-
411
+
402
412
/**
403
413
* Whether the CSS custom property is deprecated.
404
414
* If the value is a string, it's the reason for the deprecation.
405
415
*/
406
- deprecated ?: boolean | string ;
416
+ deprecated ?: boolean | string ;
407
417
}
408
418
409
419
export interface Type {
@@ -506,12 +516,12 @@ export interface ClassLike {
506
516
members ?: Array < ClassMember > ;
507
517
508
518
source ?: SourceReference ;
509
-
519
+
510
520
/**
511
521
* Whether the class or mixin is deprecated.
512
522
* If the value is a string, it's the reason for the deprecation.
513
523
*/
514
- deprecated ?: boolean | string ;
524
+ deprecated ?: boolean | string ;
515
525
}
516
526
517
527
export interface ClassDeclaration extends ClassLike {
@@ -540,12 +550,12 @@ export interface PropertyLike {
540
550
type ?: Type ;
541
551
542
552
default ?: string ;
543
-
553
+
544
554
/**
545
555
* Whether the property is deprecated.
546
556
* If the value is a string, it's the reason for the deprecation.
547
557
*/
548
- deprecated ?: boolean | string ;
558
+ deprecated ?: boolean | string ;
549
559
}
550
560
551
561
export interface ClassField extends PropertyLike {
@@ -642,7 +652,9 @@ export interface MixinDeclaration extends ClassLike, FunctionLike {
642
652
*/
643
653
// Note: this needs to be an interface to be included in the generated JSON
644
654
// Schema output.
645
- export interface CustomElementMixinDeclaration extends MixinDeclaration , CustomElement { }
655
+ export interface CustomElementMixinDeclaration
656
+ extends MixinDeclaration ,
657
+ CustomElement { }
646
658
647
659
export interface VariableDeclaration extends PropertyLike {
648
660
kind : 'variable' ;
0 commit comments