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 {
61
61
componentDidUnload : ( ) => void ;
62
62
}
63
63
64
- export interface ComponentInstance {
64
+ export interface ComponentInterface {
65
65
connectedCallback ?: ( ) => void ;
66
66
disconnectedCallback ?: ( ) => void ;
67
67
68
+ componentWillRender ?: ( ) => Promise < void > | void ;
69
+ componentDidRender ?: ( ) => void ;
70
+
68
71
/**
69
72
* The component is about to load and it has not
70
73
* rendered yet.
@@ -107,24 +110,8 @@ export interface ComponentInstance {
107
110
*/
108
111
componentDidUpdate ?: ( ) => void ;
109
112
110
- /**
111
- * The component did unload and the element
112
- * will be destroyed.
113
- */
114
- componentDidUnload ?: ( ) => void ;
115
-
116
113
render ?: ( ) => any ;
117
114
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
-
128
115
[ memberName : string ] : any ;
129
116
}
130
117
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export interface HostRef {
88
88
$flags$ : number ;
89
89
$hostElement$ ?: d . HostElement ;
90
90
$instanceValues$ ?: Map < string , any > ;
91
- $lazyInstance$ ?: d . ComponentInstance ;
91
+ $lazyInstance$ ?: d . ComponentInterface ;
92
92
$onReadyPromise$ ?: Promise < any > ;
93
93
$onReadyResolve$ ?: ( elm : any ) => void ;
94
94
$vnode$ ?: d . VNode ;
Original file line number Diff line number Diff line change 6
6
ComponentDidUpdate ,
7
7
ComponentWillLoad ,
8
8
ComponentWillUpdate ,
9
- ComponentInstance as ComponentInterface ,
9
+ ComponentInterface ,
10
10
StencilConfig as Config ,
11
11
EventEmitter ,
12
12
FunctionalComponent ,
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ export {
7
7
ComponentDidUpdate ,
8
8
ComponentWillLoad ,
9
9
ComponentWillUpdate ,
10
- ComponentInstance as ComponentInterface ,
10
+ ComponentInterface ,
11
11
StencilConfig as Config ,
12
12
EventEmitter ,
13
13
FunctionalComponent ,
14
14
QueueApi ,
15
- JSXBase ,
15
+ JSX
16
16
} from '../declarations' ;
17
17
18
18
/**
You can’t perform that action at this time.
0 commit comments