|
@@ -4,6 +4,8 @@ import {
|
|
|
createVNode,
|
|
createVNode,
|
|
|
VNodeArrayChildren,
|
|
VNodeArrayChildren,
|
|
|
Fragment,
|
|
Fragment,
|
|
|
|
|
+ Text,
|
|
|
|
|
+ Comment,
|
|
|
isVNode
|
|
isVNode
|
|
|
} from './vnode'
|
|
} from './vnode'
|
|
|
import { Teleport, TeleportProps } from './components/Teleport'
|
|
import { Teleport, TeleportProps } from './components/Teleport'
|
|
@@ -84,6 +86,16 @@ export function h(
|
|
|
children?: RawChildren | RawSlots
|
|
children?: RawChildren | RawSlots
|
|
|
): VNode
|
|
): VNode
|
|
|
|
|
|
|
|
|
|
+// text/comment
|
|
|
|
|
+export function h(
|
|
|
|
|
+ type: typeof Text | typeof Comment,
|
|
|
|
|
+ children?: string | number | boolean
|
|
|
|
|
+): VNode
|
|
|
|
|
+export function h(
|
|
|
|
|
+ type: typeof Text | typeof Comment,
|
|
|
|
|
+ props?: null,
|
|
|
|
|
+ children?: string | number | boolean
|
|
|
|
|
+): VNode
|
|
|
// fragment
|
|
// fragment
|
|
|
export function h(type: typeof Fragment, children?: VNodeArrayChildren): VNode
|
|
export function h(type: typeof Fragment, children?: VNodeArrayChildren): VNode
|
|
|
export function h(
|
|
export function h(
|