types: use stricter HostNode typings
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
import { createRenderer, VNode, createAppAPI } from '@vue/runtime-core'
|
||||
import { createRenderer } from '@vue/runtime-core'
|
||||
import { nodeOps } from './nodeOps'
|
||||
import { patchProp } from './patchProp'
|
||||
|
||||
export const render = createRenderer({
|
||||
const { render, createApp } = createRenderer<Node, Element>({
|
||||
patchProp,
|
||||
...nodeOps
|
||||
}) as (vnode: VNode | null, container: HTMLElement) => void
|
||||
})
|
||||
|
||||
export const createApp = createAppAPI(render)
|
||||
export { render, createApp }
|
||||
|
||||
// re-export everything from core
|
||||
// h, Component, reactivity API, nextTick, flags & types
|
||||
export * from '@vue/runtime-core'
|
||||
|
||||
export interface ComponentPublicInstance {
|
||||
$el: Element
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user