@@ -10,6 +10,9 @@ import '@stencil/router';
1010import '@stencil/state-tunnel' ;
1111
1212
13+ import {
14+ EventEmitter ,
15+ } from '@stencil/core' ;
1316import {
1417 MatchResults ,
1518 RouterHistory ,
@@ -50,6 +53,12 @@ declare global {
5053 'src' : string ;
5154 }
5255
56+ interface LazyImg {
57+ 'alt' : string ;
58+ 'src' : string ;
59+ 'width' : number ;
60+ }
61+
5362 interface AppInput {
5463 'id' : string ;
5564 'label' : string ;
@@ -193,6 +202,14 @@ declare global {
193202 } ;
194203
195204
205+ interface HTMLLazyImgElement extends StencilComponents . LazyImg , HTMLStencilElement { }
206+
207+ var HTMLLazyImgElement : {
208+ prototype : HTMLLazyImgElement ;
209+ new ( ) : HTMLLazyImgElement ;
210+ } ;
211+
212+
196213 interface HTMLAppInputElement extends StencilComponents . AppInput , HTMLStencilElement { }
197214
198215 var HTMLAppInputElement : {
@@ -368,6 +385,7 @@ declare global {
368385 'app-cta' : JSXElements . AppCtaAttributes ;
369386 'app-footer' : JSXElements . AppFooterAttributes ;
370387 'app-img' : JSXElements . AppImgAttributes ;
388+ 'lazy-img' : JSXElements . LazyImgAttributes ;
371389 'app-input' : JSXElements . AppInputAttributes ;
372390 'app-members' : JSXElements . AppMembersAttributes ;
373391 'app-nav-header' : JSXElements . AppNavHeaderAttributes ;
@@ -413,6 +431,13 @@ declare global {
413431 'src' ?: string ;
414432 }
415433
434+ export interface LazyImgAttributes extends HTMLAttributes {
435+ 'alt' ?: string ;
436+ 'onLazyImgloaded' ?: ( event : CustomEvent < HTMLImageElement > ) => void ;
437+ 'src' ?: string ;
438+ 'width' ?: number ;
439+ }
440+
416441 export interface AppInputAttributes extends HTMLAttributes {
417442 'id' ?: string ;
418443 'label' ?: string ;
@@ -532,6 +557,7 @@ declare global {
532557 'app-cta' : HTMLAppCtaElement
533558 'app-footer' : HTMLAppFooterElement
534559 'app-img' : HTMLAppImgElement
560+ 'lazy-img' : HTMLLazyImgElement
535561 'app-input' : HTMLAppInputElement
536562 'app-members' : HTMLAppMembersElement
537563 'app-nav-header' : HTMLAppNavHeaderElement
@@ -560,6 +586,7 @@ declare global {
560586 'app-cta' : HTMLAppCtaElement ;
561587 'app-footer' : HTMLAppFooterElement ;
562588 'app-img' : HTMLAppImgElement ;
589+ 'lazy-img' : HTMLLazyImgElement ;
563590 'app-input' : HTMLAppInputElement ;
564591 'app-members' : HTMLAppMembersElement ;
565592 'app-nav-header' : HTMLAppNavHeaderElement ;
0 commit comments