We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e3fa4 commit 8241749Copy full SHA for 8241749
packages/runtime-core/src/h.ts
@@ -108,7 +108,7 @@ export function h(
108
export function h(
109
type: typeof Teleport,
110
props: RawProps & TeleportProps,
111
- children: RawChildren
+ children: RawChildren | RawSlots
112
): VNode
113
114
// suspense
test-dts/h.test-d.ts
@@ -47,6 +47,7 @@ describe('h inference w/ Fragment', () => {
47
48
describe('h inference w/ Teleport', () => {
49
h(Teleport, { to: '#foo' }, 'hello')
50
+ h(Teleport, { to: '#foo' }, { default() {} })
51
// @ts-expect-error
52
expectError(h(Teleport))
53
0 commit comments