diff --git a/test-dts/h.test-d.ts b/test-dts/h.test-d.ts index 99af6ba5..e85bee45 100644 --- a/test-dts/h.test-d.ts +++ b/test-dts/h.test-d.ts @@ -5,7 +5,7 @@ import { defineComponent, ref, Fragment, - Portal, + Teleport, Suspense } from './index' @@ -32,11 +32,11 @@ describe('h inference w/ Fragment', () => { expectError(h(Fragment, { key: 123 }, 'bar')) }) -describe('h inference w/ Portal', () => { - h(Portal, { target: '#foo' }, 'hello') - expectError(h(Portal)) - expectError(h(Portal, {})) - expectError(h(Portal, { target: '#foo' })) +describe('h inference w/ Teleport', () => { + h(Teleport, { to: '#foo' }, 'hello') + expectError(h(Teleport)) + expectError(h(Teleport, {})) + expectError(h(Teleport, { to: '#foo' })) }) describe('h inference w/ Suspense', () => { diff --git a/test-dts/tsx.test-d.tsx b/test-dts/tsx.test-d.tsx index 8c63070e..c79c1fd4 100644 --- a/test-dts/tsx.test-d.tsx +++ b/test-dts/tsx.test-d.tsx @@ -1,7 +1,7 @@ // TSX w/ defineComponent is tested in defineComponent.test-d.tsx import { expectError, expectType } from 'tsd' -import { KeepAlive, Suspense, Fragment, Portal } from '@vue/runtime-dom' +import { KeepAlive, Suspense, Fragment, Teleport } from '@vue/runtime-dom' expectType(
) expectType(
) @@ -27,10 +27,10 @@ expectType( expectType() expectType() -expectType() -expectType() -expectError() -expectError() +expectType() +expectType() +expectError() +expectError() // KeepAlive expectType()