fix: fix h signature for suspense
This commit is contained in:
@@ -5,7 +5,8 @@ import {
|
||||
VNodeChildren,
|
||||
Fragment,
|
||||
Portal,
|
||||
isVNode
|
||||
isVNode,
|
||||
Suspense
|
||||
} from './vnode'
|
||||
import { isObject, isArray } from '@vue/shared'
|
||||
import { Ref } from '@vue/reactivity'
|
||||
@@ -102,6 +103,19 @@ export function h(
|
||||
children?: RawChildren
|
||||
): VNode
|
||||
|
||||
// suspense
|
||||
export function h(type: typeof Suspense, children?: RawChildren): VNode
|
||||
export function h(
|
||||
type: typeof Suspense,
|
||||
props?:
|
||||
| (RawProps & {
|
||||
onResolve?: () => void
|
||||
onRecede?: () => void
|
||||
})
|
||||
| null,
|
||||
children?: RawChildren | RawSlots
|
||||
): VNode
|
||||
|
||||
// functional component
|
||||
export function h(type: FunctionalComponent, children?: RawChildren): VNode
|
||||
export function h<P>(
|
||||
|
||||
Reference in New Issue
Block a user