Skip to content

Commit 815250f

Browse files
committed
Format
1 parent 60c9590 commit 815250f

File tree

1 file changed

+35
-23
lines changed

1 file changed

+35
-23
lines changed

schema.d.ts

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface Package {
4545
* Whether the package is deprecated.
4646
* If the value is a string, it's the reason for the deprecation.
4747
*/
48-
deprecated?: boolean|string;
48+
deprecated?: boolean | string;
4949
}
5050

5151
// This type may expand in the future to include JSON, CSS, or HTML
@@ -81,12 +81,12 @@ export interface JavaScriptModule {
8181
* custom element definitions.
8282
*/
8383
exports?: Array<Export>;
84-
84+
8585
/**
8686
* Whether the module is deprecated.
8787
* If the value is a string, it's the reason for the deprecation.
8888
*/
89-
deprecated?: boolean|string;
89+
deprecated?: boolean | string;
9090
}
9191

9292
export type Export = JavaScriptExport | CustomElementExport;
@@ -114,12 +114,12 @@ export interface JavaScriptExport {
114114
* defined and the `name` field must be `"*"`.
115115
*/
116116
declaration: Reference;
117-
117+
118118
/**
119119
* Whether the export is deprecated. For example, the name of the export was changed.
120120
* If the value is a string, it's the reason for the deprecation.
121121
*/
122-
deprecated?: boolean|string;
122+
deprecated?: boolean | string;
123123
}
124124

125125
/**
@@ -142,13 +142,13 @@ export interface CustomElementExport {
142142
* custom element.
143143
*/
144144
declaration: Reference;
145-
145+
146146
/**
147147
* Whether the custom-element export is deprecated.
148148
* For example, a future version will not register the custom element in this file.
149149
* If the value is a string, it's the reason for the deprecation.
150150
*/
151-
deprecated?: boolean|string;
151+
deprecated?: boolean | string;
152152
}
153153

154154
export type Declaration =
@@ -210,7 +210,9 @@ export interface SourceReference {
210210
*/
211211
// Note: this needs to be an interface to be included in the generated JSON
212212
// Schema output.
213-
export interface CustomElementDeclaration extends ClassDeclaration, CustomElement {}
213+
export interface CustomElementDeclaration
214+
extends ClassDeclaration,
215+
CustomElement {}
214216

215217
/**
216218
* The additional fields that a custom element adds to classes and mixins.
@@ -251,6 +253,14 @@ export interface CustomElement extends ClassLike {
251253
* custom element class
252254
*/
253255
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;
254264
}
255265

256266
export interface Attribute {
@@ -285,12 +295,12 @@ export interface Attribute {
285295
* The name of the field this attribute is associated with, if any.
286296
*/
287297
fieldName?: string;
288-
298+
289299
/**
290300
* Whether the attribute is deprecated.
291301
* If the value is a string, it's the reason for the deprecation.
292302
*/
293-
deprecated?: boolean|string;
303+
deprecated?: boolean | string;
294304
}
295305

296306
export interface Event {
@@ -312,12 +322,12 @@ export interface Event {
312322
type: Type;
313323

314324
inheritedFrom?: Reference;
315-
325+
316326
/**
317327
* Whether the event is deprecated.
318328
* If the value is a string, it's the reason for the deprecation.
319329
*/
320-
deprecated?: boolean|string;
330+
deprecated?: boolean | string;
321331
}
322332

323333
export interface Slot {
@@ -335,12 +345,12 @@ export interface Slot {
335345
* A markdown description.
336346
*/
337347
description?: string;
338-
348+
339349
/**
340350
* Whether the slot is deprecated.
341351
* If the value is a string, it's the reason for the deprecation.
342352
*/
343-
deprecated?: boolean|string;
353+
deprecated?: boolean | string;
344354
}
345355

346356
/**
@@ -358,12 +368,12 @@ export interface CssPart {
358368
* A markdown description.
359369
*/
360370
description?: string;
361-
371+
362372
/**
363373
* Whether the CSS shadow part is deprecated.
364374
* If the value is a string, it's the reason for the deprecation.
365375
*/
366-
deprecated?: boolean|string;
376+
deprecated?: boolean | string;
367377
}
368378

369379
export interface CssCustomProperty {
@@ -398,12 +408,12 @@ export interface CssCustomProperty {
398408
* A markdown description.
399409
*/
400410
description?: string;
401-
411+
402412
/**
403413
* Whether the CSS custom property is deprecated.
404414
* If the value is a string, it's the reason for the deprecation.
405415
*/
406-
deprecated?: boolean|string;
416+
deprecated?: boolean | string;
407417
}
408418

409419
export interface Type {
@@ -506,12 +516,12 @@ export interface ClassLike {
506516
members?: Array<ClassMember>;
507517

508518
source?: SourceReference;
509-
519+
510520
/**
511521
* Whether the class or mixin is deprecated.
512522
* If the value is a string, it's the reason for the deprecation.
513523
*/
514-
deprecated?: boolean|string;
524+
deprecated?: boolean | string;
515525
}
516526

517527
export interface ClassDeclaration extends ClassLike {
@@ -540,12 +550,12 @@ export interface PropertyLike {
540550
type?: Type;
541551

542552
default?: string;
543-
553+
544554
/**
545555
* Whether the property is deprecated.
546556
* If the value is a string, it's the reason for the deprecation.
547557
*/
548-
deprecated?: boolean|string;
558+
deprecated?: boolean | string;
549559
}
550560

551561
export interface ClassField extends PropertyLike {
@@ -642,7 +652,9 @@ export interface MixinDeclaration extends ClassLike, FunctionLike {
642652
*/
643653
// Note: this needs to be an interface to be included in the generated JSON
644654
// Schema output.
645-
export interface CustomElementMixinDeclaration extends MixinDeclaration, CustomElement {}
655+
export interface CustomElementMixinDeclaration
656+
extends MixinDeclaration,
657+
CustomElement {}
646658

647659
export interface VariableDeclaration extends PropertyLike {
648660
kind: 'variable';

0 commit comments

Comments
 (0)