We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f82c43 commit 59dcb2bCopy full SHA for 59dcb2b
packages/runtime-core/src/apiSetupHelpers.ts
@@ -31,6 +31,7 @@ import type {
31
import { warn } from './warning'
32
import type { SlotsType, StrictUnwrapSlotsType } from './componentSlots'
33
import type { Ref } from '@vue/reactivity'
34
+import type { VNode } from './vnode'
35
36
// dev only
37
const warnRuntimeUsage = (method: string) =>
@@ -330,7 +331,7 @@ type PropsWithDefaults<
330
331
* defineRender(() => h('div', 'hello'))
332
* ```
333
*/
-export function defineRender(renderFn: JSX.Element | RenderFunction): void {
334
+export function defineRender(renderFn: VNode | RenderFunction): void {
335
if (__DEV__) {
336
warnRuntimeUsage('defineRender')
337
}
0 commit comments