vue3-core/packages/runtime-core/src/index.ts

52 lines
1.6 KiB
TypeScript
Raw Normal View History

2019-08-23 09:38:00 +08:00
// Public API ------------------------------------------------------------------
2019-08-22 23:12:37 +08:00
2019-08-23 09:38:00 +08:00
export { createComponent } from './component'
export { nextTick } from './scheduler'
2019-08-20 21:38:00 +08:00
export * from './apiReactivity'
export * from './apiWatch'
export * from './apiLifecycle'
2019-06-19 17:31:49 +08:00
export * from './apiInject'
2019-08-22 23:12:37 +08:00
2019-08-23 09:38:00 +08:00
// Advanced API ----------------------------------------------------------------
// For raw render function users
2019-08-24 03:27:17 +08:00
export { h } from './h'
2019-08-23 09:38:00 +08:00
export {
createVNode,
cloneVNode,
mergeProps,
openBlock,
createBlock
} from './vnode'
2019-08-23 05:12:39 +08:00
// VNode type symbols
export { Text, Empty, Fragment, Portal } from './vnode'
// VNode flags
2019-08-22 23:12:37 +08:00
export { PublicPatchFlags as PatchFlags } from './patchFlags'
export { PublicShapeFlags as ShapeFlags } from './shapeFlags'
2019-08-23 09:38:00 +08:00
// For advanced plugins
export { getCurrentInstance } from './component'
// For custom renderers
2019-09-03 04:09:34 +08:00
export { createAppAPI } from './apiCreateApp'
2019-08-23 09:38:00 +08:00
export { createRenderer } from './createRenderer'
export {
handleError,
callWithErrorHandling,
callWithAsyncErrorHandling
} from './errorHandling'
2019-08-23 09:38:00 +08:00
2019-09-01 04:36:36 +08:00
// For the compiler
2019-09-03 04:43:26 +08:00
export { resolveComponent } from './component'
2019-09-01 04:36:36 +08:00
export { applyDirectives, resolveDirective } from './directives'
2019-08-23 09:38:00 +08:00
// Types -----------------------------------------------------------------------
export { App } from './apiCreateApp'
2019-08-23 09:38:00 +08:00
export { VNode } from './vnode'
export { FunctionalComponent, ComponentInstance } from './component'
2019-08-23 09:38:00 +08:00
export { RendererOptions } from './createRenderer'
export { Slot, Slots } from './componentSlots'
export { PropType, ComponentPropsOptions } from './componentProps'
2019-09-03 00:09:29 +08:00
export { Directive, DirectiveBinding, DirectiveHook } from './directives'