Skip to content

Commit

Permalink
feat(types): add slots types for Suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed May 30, 2022
1 parent 3538f17 commit 7254c35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/runtime-core/src/components/Suspense.ts
Expand Up @@ -91,7 +91,13 @@ export const SuspenseImpl = {
// Force-casted public typing for h and TSX props inference
export const Suspense = (__FEATURE_SUSPENSE__ ? SuspenseImpl : null) as any as {
__isSuspense: true
new (): { $props: VNodeProps & SuspenseProps }
new (): {
$props: VNodeProps & SuspenseProps
$slots: {
default(): VNode[]
fallback(): VNode[]
}
}
}

function triggerEvent(
Expand Down

0 comments on commit 7254c35

Please sign in to comment.