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 4a2823c commit a69aa26Copy full SHA for a69aa26
packages/runtime-core/src/apiSetupHelpers.ts
@@ -33,6 +33,7 @@ import { warn } from './warning'
33
import { SlotsType, StrictUnwrapSlotsType } from './componentSlots'
34
import { Ref, ref } from '@vue/reactivity'
35
import { watch } from './apiWatch'
36
+import { VNode } from './vnode'
37
38
// dev only
39
const warnRuntimeUsage = (method: string) =>
@@ -329,7 +330,7 @@ type PropsWithDefaults<
329
330
* defineRender(() => h('div', 'hello'))
331
* ```
332
*/
-export function defineRender(renderFn: JSX.Element | RenderFunction): void {
333
+export function defineRender(renderFn: VNode | RenderFunction): void {
334
if (__DEV__) {
335
warnRuntimeUsage('defineRender')
336
}
0 commit comments