index.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Public API ------------------------------------------------------------------
  2. export { createComponent } from './apiCreateComponent'
  3. export { nextTick } from './scheduler'
  4. export * from './apiReactivity'
  5. export * from './apiWatch'
  6. export * from './apiLifecycle'
  7. export * from './apiInject'
  8. // Advanced API ----------------------------------------------------------------
  9. // For raw render function users
  10. export { h } from './h'
  11. export {
  12. createVNode,
  13. cloneVNode,
  14. mergeProps,
  15. openBlock,
  16. createBlock
  17. } from './vnode'
  18. // VNode type symbols
  19. export { Text, Comment, Fragment, Portal, Suspense } from './vnode'
  20. // VNode flags
  21. export { PublicShapeFlags as ShapeFlags } from './shapeFlags'
  22. export { PublicPatchFlags as PatchFlags } from '@vue/shared'
  23. // For advanced plugins
  24. export { getCurrentInstance } from './component'
  25. // For custom renderers
  26. export { createRenderer } from './createRenderer'
  27. export {
  28. handleError,
  29. callWithErrorHandling,
  30. callWithAsyncErrorHandling
  31. } from './errorHandling'
  32. // Internal, for compiler generated code
  33. // should sync with '@vue/compiler-core/src/runtimeConstants.ts'
  34. export { applyDirectives } from './directives'
  35. export { resolveComponent, resolveDirective } from './helpers/resolveAssets'
  36. export { renderList } from './helpers/renderList'
  37. export { toString } from './helpers/toString'
  38. export { toHandlers } from './helpers/toHandlers'
  39. export { renderSlot } from './helpers/renderSlot'
  40. export { createSlots } from './helpers/createSlots'
  41. export { capitalize, camelize } from '@vue/shared'
  42. // Internal, for integration with runtime compiler
  43. export { registerRuntimeCompiler } from './component'
  44. // Types -----------------------------------------------------------------------
  45. export { App, AppConfig, AppContext, Plugin } from './apiApp'
  46. export { RawProps, RawChildren, RawSlots } from './h'
  47. export { VNode, VNodeTypes } from './vnode'
  48. export {
  49. Component,
  50. FunctionalComponent,
  51. ComponentInternalInstance,
  52. RenderFunction
  53. } from './component'
  54. export {
  55. ComponentOptions,
  56. ComponentOptionsWithoutProps,
  57. ComponentOptionsWithProps,
  58. ComponentOptionsWithArrayProps
  59. } from './apiOptions'
  60. export { ComponentPublicInstance } from './componentProxy'
  61. export { RendererOptions } from './createRenderer'
  62. export { Slot, Slots } from './componentSlots'
  63. export { Prop, PropType, ComponentPropsOptions } from './componentProps'
  64. export {
  65. Directive,
  66. DirectiveBinding,
  67. DirectiveHook,
  68. DirectiveArguments
  69. } from './directives'
  70. export { SuspenseBoundary } from './suspense'