Skip to content

Commit 59dcb2b

Browse files
committed
fix: types
1 parent 2f82c43 commit 59dcb2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime-core/src/apiSetupHelpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import type {
3131
import { warn } from './warning'
3232
import type { SlotsType, StrictUnwrapSlotsType } from './componentSlots'
3333
import type { Ref } from '@vue/reactivity'
34+
import type { VNode } from './vnode'
3435

3536
// dev only
3637
const warnRuntimeUsage = (method: string) =>
@@ -330,7 +331,7 @@ type PropsWithDefaults<
330331
* defineRender(() => h('div', 'hello'))
331332
* ```
332333
*/
333-
export function defineRender(renderFn: JSX.Element | RenderFunction): void {
334+
export function defineRender(renderFn: VNode | RenderFunction): void {
334335
if (__DEV__) {
335336
warnRuntimeUsage('defineRender')
336337
}

0 commit comments

Comments
 (0)