@@ -108,6 +108,16 @@ export namespace Components {
108
108
*/
109
109
"mode" ?: any ;
110
110
}
111
+ interface ScopedCarDetail {
112
+ "car" : CarData ;
113
+ }
114
+ /**
115
+ * Component that helps display a list of cars
116
+ */
117
+ interface ScopedCarList {
118
+ "cars" : CarData [ ] ;
119
+ "selected" : CarData ;
120
+ }
111
121
interface SlotCmp {
112
122
}
113
123
interface SlotCmpContainer {
@@ -130,6 +140,10 @@ export interface EventCmpCustomEvent<T> extends CustomEvent<T> {
130
140
detail : T ;
131
141
target : HTMLEventCmpElement ;
132
142
}
143
+ export interface ScopedCarListCustomEvent < T > extends CustomEvent < T > {
144
+ detail : T ;
145
+ target : HTMLScopedCarListElement ;
146
+ }
133
147
declare global {
134
148
interface HTMLAnotherCarDetailElement extends Components . AnotherCarDetail , HTMLStencilElement {
135
149
}
@@ -322,6 +336,32 @@ declare global {
322
336
prototype : HTMLPropCmpElement ;
323
337
new ( ) : HTMLPropCmpElement ;
324
338
} ;
339
+ interface HTMLScopedCarDetailElement extends Components . ScopedCarDetail , HTMLStencilElement {
340
+ }
341
+ var HTMLScopedCarDetailElement : {
342
+ prototype : HTMLScopedCarDetailElement ;
343
+ new ( ) : HTMLScopedCarDetailElement ;
344
+ } ;
345
+ interface HTMLScopedCarListElementEventMap {
346
+ "carSelected" : CarData ;
347
+ }
348
+ /**
349
+ * Component that helps display a list of cars
350
+ */
351
+ interface HTMLScopedCarListElement extends Components . ScopedCarList , HTMLStencilElement {
352
+ addEventListener < K extends keyof HTMLScopedCarListElementEventMap > ( type : K , listener : ( this : HTMLScopedCarListElement , ev : ScopedCarListCustomEvent < HTMLScopedCarListElementEventMap [ K ] > ) => any , options ?: boolean | AddEventListenerOptions ) : void ;
353
+ addEventListener < K extends keyof DocumentEventMap > ( type : K , listener : ( this : Document , ev : DocumentEventMap [ K ] ) => any , options ?: boolean | AddEventListenerOptions ) : void ;
354
+ addEventListener < K extends keyof HTMLElementEventMap > ( type : K , listener : ( this : HTMLElement , ev : HTMLElementEventMap [ K ] ) => any , options ?: boolean | AddEventListenerOptions ) : void ;
355
+ addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | AddEventListenerOptions ) : void ;
356
+ removeEventListener < K extends keyof HTMLScopedCarListElementEventMap > ( type : K , listener : ( this : HTMLScopedCarListElement , ev : ScopedCarListCustomEvent < HTMLScopedCarListElementEventMap [ K ] > ) => any , options ?: boolean | EventListenerOptions ) : void ;
357
+ removeEventListener < K extends keyof DocumentEventMap > ( type : K , listener : ( this : Document , ev : DocumentEventMap [ K ] ) => any , options ?: boolean | EventListenerOptions ) : void ;
358
+ removeEventListener < K extends keyof HTMLElementEventMap > ( type : K , listener : ( this : HTMLElement , ev : HTMLElementEventMap [ K ] ) => any , options ?: boolean | EventListenerOptions ) : void ;
359
+ removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | EventListenerOptions ) : void ;
360
+ }
361
+ var HTMLScopedCarListElement : {
362
+ prototype : HTMLScopedCarListElement ;
363
+ new ( ) : HTMLScopedCarListElement ;
364
+ } ;
325
365
interface HTMLSlotCmpElement extends Components . SlotCmp , HTMLStencilElement {
326
366
}
327
367
var HTMLSlotCmpElement : {
@@ -372,6 +412,8 @@ declare global {
372
412
"path-alias-cmp" : HTMLPathAliasCmpElement ;
373
413
"prerender-cmp" : HTMLPrerenderCmpElement ;
374
414
"prop-cmp" : HTMLPropCmpElement ;
415
+ "scoped-car-detail" : HTMLScopedCarDetailElement ;
416
+ "scoped-car-list" : HTMLScopedCarListElement ;
375
417
"slot-cmp" : HTMLSlotCmpElement ;
376
418
"slot-cmp-container" : HTMLSlotCmpContainerElement ;
377
419
"slot-parent-cmp" : HTMLSlotParentCmpElement ;
@@ -455,6 +497,17 @@ declare namespace LocalJSX {
455
497
*/
456
498
"mode" ?: any ;
457
499
}
500
+ interface ScopedCarDetail {
501
+ "car" ?: CarData ;
502
+ }
503
+ /**
504
+ * Component that helps display a list of cars
505
+ */
506
+ interface ScopedCarList {
507
+ "cars" ?: CarData [ ] ;
508
+ "onCarSelected" ?: ( event : ScopedCarListCustomEvent < CarData > ) => void ;
509
+ "selected" ?: CarData ;
510
+ }
458
511
interface SlotCmp {
459
512
}
460
513
interface SlotCmpContainer {
@@ -490,6 +543,8 @@ declare namespace LocalJSX {
490
543
"path-alias-cmp" : PathAliasCmp ;
491
544
"prerender-cmp" : PrerenderCmp ;
492
545
"prop-cmp" : PropCmp ;
546
+ "scoped-car-detail" : ScopedCarDetail ;
547
+ "scoped-car-list" : ScopedCarList ;
493
548
"slot-cmp" : SlotCmp ;
494
549
"slot-cmp-container" : SlotCmpContainer ;
495
550
"slot-parent-cmp" : SlotParentCmp ;
@@ -531,6 +586,11 @@ declare module "@stencil/core" {
531
586
"path-alias-cmp" : LocalJSX . PathAliasCmp & JSXBase . HTMLAttributes < HTMLPathAliasCmpElement > ;
532
587
"prerender-cmp" : LocalJSX . PrerenderCmp & JSXBase . HTMLAttributes < HTMLPrerenderCmpElement > ;
533
588
"prop-cmp" : LocalJSX . PropCmp & JSXBase . HTMLAttributes < HTMLPropCmpElement > ;
589
+ "scoped-car-detail" : LocalJSX . ScopedCarDetail & JSXBase . HTMLAttributes < HTMLScopedCarDetailElement > ;
590
+ /**
591
+ * Component that helps display a list of cars
592
+ */
593
+ "scoped-car-list" : LocalJSX . ScopedCarList & JSXBase . HTMLAttributes < HTMLScopedCarListElement > ;
534
594
"slot-cmp" : LocalJSX . SlotCmp & JSXBase . HTMLAttributes < HTMLSlotCmpElement > ;
535
595
"slot-cmp-container" : LocalJSX . SlotCmpContainer & JSXBase . HTMLAttributes < HTMLSlotCmpContainerElement > ;
536
596
"slot-parent-cmp" : LocalJSX . SlotParentCmp & JSXBase . HTMLAttributes < HTMLSlotParentCmpElement > ;
0 commit comments