Browse Source

fix: types

三咲智子 Kevin Deng 2 years ago
parent
commit
59dcb2b984
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/runtime-core/src/apiSetupHelpers.ts

+ 2 - 1
packages/runtime-core/src/apiSetupHelpers.ts

@@ -31,6 +31,7 @@ import type {
 import { warn } from './warning'
 import type { SlotsType, StrictUnwrapSlotsType } from './componentSlots'
 import type { Ref } from '@vue/reactivity'
+import type { VNode } from './vnode'
 
 // dev only
 const warnRuntimeUsage = (method: string) =>
@@ -330,7 +331,7 @@ type PropsWithDefaults<
  * defineRender(() => h('div', 'hello'))
  * ```
  */
-export function defineRender(renderFn: JSX.Element | RenderFunction): void {
+export function defineRender(renderFn: VNode | RenderFunction): void {
   if (__DEV__) {
     warnRuntimeUsage('defineRender')
   }