Skip to content

Commit a69aa26

Browse files
committed
fix: types
1 parent 4a2823c commit a69aa26

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
@@ -33,6 +33,7 @@ import { warn } from './warning'
3333
import { SlotsType, StrictUnwrapSlotsType } from './componentSlots'
3434
import { Ref, ref } from '@vue/reactivity'
3535
import { watch } from './apiWatch'
36+
import { VNode } from './vnode'
3637

3738
// dev only
3839
const warnRuntimeUsage = (method: string) =>
@@ -329,7 +330,7 @@ type PropsWithDefaults<
329330
* defineRender(() => h('div', 'hello'))
330331
* ```
331332
*/
332-
export function defineRender(renderFn: JSX.Element | RenderFunction): void {
333+
export function defineRender(renderFn: VNode | RenderFunction): void {
333334
if (__DEV__) {
334335
warnRuntimeUsage('defineRender')
335336
}

0 commit comments

Comments
 (0)