Skip to content

Commit f103f8f

Browse files
committed
fix: types
1 parent 497e84e commit f103f8f

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

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

0 commit comments

Comments
 (0)