types: fix tsx dts tests

This commit is contained in:
Evan You
2020-02-15 21:48:45 -05:00
parent 57ee5df364
commit 77103e1fd7
6 changed files with 12 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ import {
LifecycleHooks,
currentInstance
} from '../component'
import { VNode, cloneVNode, isVNode } from '../vnode'
import { VNode, cloneVNode, isVNode, VNodeProps } from '../vnode'
import { warn } from '../warning'
import { onBeforeUnmount, injectHook, onUnmounted } from '../apiLifecycle'
import { isString, isArray, ShapeFlags } from '@vue/shared'
@@ -218,7 +218,7 @@ const KeepAliveImpl = {
// also to avoid inline import() in generated d.ts files
export const KeepAlive = (KeepAliveImpl as any) as {
new (): {
$props: KeepAliveProps
$props: VNodeProps & KeepAliveProps
}
}

View File

@@ -1,7 +1,7 @@
import { ComponentInternalInstance } from '../component'
import { SuspenseBoundary } from './Suspense'
import { RendererInternals, MoveType } from '../renderer'
import { VNode, VNodeArrayChildren } from '../vnode'
import { VNode, VNodeArrayChildren, VNodeProps } from '../vnode'
import { isString, ShapeFlags, PatchFlags } from '@vue/shared'
import { warn } from '../warning'
@@ -114,5 +114,5 @@ export const PortalImpl = {
// Force-casted public typing for h and TSX props inference
export const Portal = (PortalImpl as any) as {
__isPortal: true
new (): { $props: PortalProps }
new (): { $props: VNodeProps & PortalProps }
}

View File

@@ -1,4 +1,4 @@
import { VNode, normalizeVNode, VNodeChild } from '../vnode'
import { VNode, normalizeVNode, VNodeChild, VNodeProps } from '../vnode'
import { isFunction, isArray, ShapeFlags } from '@vue/shared'
import { ComponentInternalInstance, handleSetupResult } from '../component'
import { Slots } from '../componentSlots'
@@ -67,7 +67,7 @@ export const Suspense = ((__FEATURE_SUSPENSE__
? SuspenseImpl
: null) as any) as {
__isSuspense: true
new (): { $props: SuspenseProps }
new (): { $props: VNodeProps & SuspenseProps }
}
function mountSuspense(