vue3-yuanma/packages/renderer-test/src/index.ts

19 lines
469 B
TypeScript
Raw Normal View History

2018-10-11 01:13:27 +08:00
import { createRenderer, VNode, ComponentInstance } from '@vue/core'
2018-10-02 01:15:07 +08:00
import { nodeOps, TestElement } from './nodeOps'
import { patchData } from './patchData'
2018-10-02 01:15:07 +08:00
const { render: _render } = createRenderer({
nodeOps,
patchData
})
2018-10-11 01:13:27 +08:00
type publicRender = (
node: VNode | null,
container: TestElement
) => ComponentInstance | null
2018-10-02 01:15:07 +08:00
export const render = _render as publicRender
2018-10-02 05:22:49 +08:00
export { serialize } from './serialize'
2018-10-02 01:15:07 +08:00
export * from './nodeOps'
export * from '@vue/core'