3
3
import type { QRL } from '../shared/qrl/qrl.public' ;
4
4
import type { Container } from '../shared/types' ;
5
5
import type { VNodeJournal } from './vnode' ;
6
+ import type { ElementVNode , VirtualVNode } from './vnode-impl' ;
6
7
7
8
export type ClientAttrKey = string ;
8
9
export type ClientAttrValue = string | null ;
@@ -115,37 +116,37 @@ export const enum ElementVNodeProps {
115
116
}
116
117
117
118
/** @internal */
118
- export type ElementVNode = [
119
- /// COMMON: VNodeProps
120
- VNodeFlags . Element , ////////////// 0 - Flags
121
- VNode | null , /////////////// 1 - Parent
122
- VNode | null , /////////////// 2 - Previous sibling
123
- VNode | null , /////////////// 3 - Next sibling
124
- /// SPECIFIC: ElementVNodeProps
125
- VNode | null | undefined , /// 4 - First child - undefined if children need to be materialize
126
- VNode | null | undefined , /// 5 - Last child - undefined if children need to be materialize
127
- Element , //////////////////// 6 - Element
128
- string | undefined , ///////// 7 - tag
129
- /// Props
130
- ( string | null ) [ ] , /////// 8 - attrs
131
- ] & { __brand__ : 'ElementVNode' } ;
119
+ // export type ElementVNode = [
120
+ // /// COMMON: VNodeProps
121
+ // VNodeFlags.Element, ////////////// 0 - Flags
122
+ // VNode | null, /////////////// 1 - Parent
123
+ // VNode | null, /////////////// 2 - Previous sibling
124
+ // VNode | null, /////////////// 3 - Next sibling
125
+ // /// SPECIFIC: ElementVNodeProps
126
+ // VNode | null | undefined, /// 4 - First child - undefined if children need to be materialize
127
+ // VNode | null | undefined, /// 5 - Last child - undefined if children need to be materialize
128
+ // Element, //////////////////// 6 - Element
129
+ // string | undefined, ///////// 7 - tag
130
+ // /// Props
131
+ // (string | null)[], /////// 8 - attrs
132
+ // ] & { __brand__: 'ElementVNode' };
132
133
133
134
export const enum TextVNodeProps {
134
135
node = 4 ,
135
136
text = 5 ,
136
137
}
137
138
138
139
/** @internal */
139
- export type TextVNode = [
140
- /// COMMON: VNodeProps
141
- VNodeFlags . Text | VNodeFlags . Inflated , // 0 - Flags
142
- VNode | null , ///////////////// 1 - Parent
143
- VNode | null , ///////////////// 2 - Previous sibling
144
- VNode | null , ///////////////// 3 - Next sibling
145
- /// SPECIFIC: TextVNodeProps
146
- Text | null | undefined , ////// 4 - TextNode or SharedTextNode if Flags.SharedText
147
- string , /////////////////////// 5 - text content
148
- ] & { __brand__ : 'TextVNode' } ;
140
+ // export type TextVNode = [
141
+ // /// COMMON: VNodeProps
142
+ // VNodeFlags.Text | VNodeFlags.Inflated, // 0 - Flags
143
+ // VNode | null, ///////////////// 1 - Parent
144
+ // VNode | null, ///////////////// 2 - Previous sibling
145
+ // VNode | null, ///////////////// 3 - Next sibling
146
+ // /// SPECIFIC: TextVNodeProps
147
+ // Text | null | undefined, ////// 4 - TextNode or SharedTextNode if Flags.SharedText
148
+ // string, /////////////////////// 5 - text content
149
+ // ] & { __brand__: 'TextVNode' };
149
150
150
151
export const enum VirtualVNodeProps {
151
152
firstChild = ElementVNodeProps . firstChild ,
@@ -154,21 +155,21 @@ export const enum VirtualVNodeProps {
154
155
}
155
156
156
157
/** @internal */
157
- export type VirtualVNode = [
158
- /// COMMON: VNodeProps
159
- VNodeFlags . Virtual , ///////////// 0 - Flags
160
- VNode | null , /////////////// 1 - Parent
161
- VNode | null , /////////////// 2 - Previous sibling
162
- VNode | null , /////////////// 3 - Next sibling
163
- /// SPECIFIC: VirtualVNodeProps
164
- VNode | null , /////////////// 4 - First child
165
- VNode | null , /////////////// 5 - Last child
166
- /// Props
167
- ( string | null | boolean ) [ ] , /////// 6 - attrs
168
- ] & { __brand__ : 'FragmentNode' & 'HostElement' } ;
158
+ // export type VirtualVNode = [
159
+ // /// COMMON: VNodeProps
160
+ // VNodeFlags.Virtual, ///////////// 0 - Flags
161
+ // VNode | null, /////////////// 1 - Parent
162
+ // VNode | null, /////////////// 2 - Previous sibling
163
+ // VNode | null, /////////////// 3 - Next sibling
164
+ // /// SPECIFIC: VirtualVNodeProps
165
+ // VNode | null, /////////////// 4 - First child
166
+ // VNode | null, /////////////// 5 - Last child
167
+ // /// Props
168
+ // (string | null | boolean)[], /////// 6 - attrs
169
+ // ] & { __brand__: 'FragmentNode' & 'HostElement' };
169
170
170
171
/** @internal */
171
- export type VNode = ElementVNode | TextVNode | VirtualVNode ;
172
+ // export type VNode = ElementVNode | TextVNode | VirtualVNode;
172
173
173
174
/** @public */
174
175
export interface RenderOptions {
0 commit comments