File tree Expand file tree Collapse file tree 5 files changed +8
-262
lines changed Expand file tree Collapse file tree 5 files changed +8
-262
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -61,10 +61,13 @@ export interface ComponentDidUnload {
6161 componentDidUnload : ( ) => void ;
6262}
6363
64- export interface ComponentInstance {
64+ export interface ComponentInterface {
6565 connectedCallback ?: ( ) => void ;
6666 disconnectedCallback ?: ( ) => void ;
6767
68+ componentWillRender ?: ( ) => Promise < void > | void ;
69+ componentDidRender ?: ( ) => void ;
70+
6871 /**
6972 * The component is about to load and it has not
7073 * rendered yet.
@@ -107,24 +110,8 @@ export interface ComponentInstance {
107110 */
108111 componentDidUpdate ?: ( ) => void ;
109112
110- /**
111- * The component did unload and the element
112- * will be destroyed.
113- */
114- componentDidUnload ?: ( ) => void ;
115-
116113 render ?: ( ) => any ;
117114
118- /**
119- * Used to dynamically set host element attributes.
120- * Should be placed directly above render()
121- */
122- hostData ?: ( ) => {
123- class ?: { [ className : string ] : boolean } ;
124- style ?: any ;
125- [ attrName : string ] : any ;
126- } ;
127-
128115 [ memberName : string ] : any ;
129116}
130117
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export interface HostRef {
8888 $flags$ : number ;
8989 $hostElement$ ?: d . HostElement ;
9090 $instanceValues$ ?: Map < string , any > ;
91- $lazyInstance$ ?: d . ComponentInstance ;
91+ $lazyInstance$ ?: d . ComponentInterface ;
9292 $onReadyPromise$ ?: Promise < any > ;
9393 $onReadyResolve$ ?: ( elm : any ) => void ;
9494 $vnode$ ?: d . VNode ;
Original file line number Diff line number Diff line change 66 ComponentDidUpdate ,
77 ComponentWillLoad ,
88 ComponentWillUpdate ,
9- ComponentInstance as ComponentInterface ,
9+ ComponentInterface ,
1010 StencilConfig as Config ,
1111 EventEmitter ,
1212 FunctionalComponent ,
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ export {
77 ComponentDidUpdate ,
88 ComponentWillLoad ,
99 ComponentWillUpdate ,
10- ComponentInstance as ComponentInterface ,
10+ ComponentInterface ,
1111 StencilConfig as Config ,
1212 EventEmitter ,
1313 FunctionalComponent ,
1414 QueueApi ,
15- JSXBase ,
15+ JSX
1616} from '../declarations' ;
1717
1818/**
You can’t perform that action at this time.
0 commit comments