@@ -108,7 +108,7 @@ export function h(
export function h(
type: typeof Teleport,
props: RawProps & TeleportProps,
- children: RawChildren
+ children: RawChildren | RawSlots
): VNode
// suspense
@@ -47,6 +47,7 @@ describe('h inference w/ Fragment', () => {
describe('h inference w/ Teleport', () => {
h(Teleport, { to: '#foo' }, 'hello')
+ h(Teleport, { to: '#foo' }, { default() {} })
// @ts-expect-error
expectError(h(Teleport))