wip: adjust index exports

This commit is contained in:
Evan You 2019-08-22 21:38:00 -04:00
parent 5b38e631e7
commit 7fae3ebaf3

View File

@ -1,29 +1,38 @@
// Types // Public API ------------------------------------------------------------------
export { VNode } from './vnode'
export { FunctionalComponent } from './component'
export { RendererOptions } from './createRenderer'
export { Slot, Slots } from './componentSlots'
export { PropType, ComponentPropsOptions } from './componentProps'
// API export { createComponent } from './component'
export {
openBlock,
createBlock,
createVNode,
cloneVNode,
mergeProps
} from './vnode'
export { createComponent, getCurrentInstance } from './component'
export { createRenderer } from './createRenderer'
export { nextTick } from './scheduler' export { nextTick } from './scheduler'
export * from './apiReactivity' export * from './apiReactivity'
export * from './apiWatch' export * from './apiWatch'
export * from './apiLifecycle' export * from './apiLifecycle'
export * from './apiInject' export * from './apiInject'
// Advanced API ----------------------------------------------------------------
// For raw render function users
export {
createVNode,
cloneVNode,
mergeProps,
openBlock,
createBlock
} from './vnode'
// VNode type symbols // VNode type symbols
export { Text, Empty, Fragment, Portal } from './vnode' export { Text, Empty, Fragment, Portal } from './vnode'
// VNode flags // VNode flags
export { PublicPatchFlags as PatchFlags } from './patchFlags' export { PublicPatchFlags as PatchFlags } from './patchFlags'
export { PublicShapeFlags as ShapeFlags } from './shapeFlags' export { PublicShapeFlags as ShapeFlags } from './shapeFlags'
// For advanced plugins
export { getCurrentInstance } from './component'
// For custom renderers
export { createRenderer } from './createRenderer'
// Types -----------------------------------------------------------------------
export { VNode } from './vnode'
export { FunctionalComponent } from './component'
export { RendererOptions } from './createRenderer'
export { Slot, Slots } from './componentSlots'
export { PropType, ComponentPropsOptions } from './componentProps'