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

27 lines
875 B
TypeScript
Raw Normal View History

2018-09-26 05:55:47 +08:00
// Core API
2018-09-19 23:35:38 +08:00
export { h, Fragment, Portal } from './h'
2018-09-26 05:55:47 +08:00
export { Component } from './component'
2018-09-19 23:35:38 +08:00
export { cloneVNode, createPortal, createFragment } from './vdom'
export { createRenderer } from './createRenderer'
2018-09-26 05:55:47 +08:00
// Observer API
export * from '@vue/observer'
2018-09-19 23:35:38 +08:00
2018-09-26 05:55:47 +08:00
// Scheduler API
export { nextTick } from '@vue/scheduler'
2018-09-26 05:55:47 +08:00
// Internal API
2018-09-20 11:19:25 +08:00
export { createComponentInstance } from './componentUtils'
2018-09-26 05:49:47 +08:00
2018-09-26 05:55:47 +08:00
// Optional APIs
// these are imported on-demand and can be tree-shaken
export * from './optional/directive'
export * from './optional/context'
2018-09-26 09:28:52 +08:00
export * from './optional/asyncComponent'
2018-09-20 11:19:25 +08:00
2018-09-19 23:35:38 +08:00
// flags & types
2018-09-26 09:28:52 +08:00
export { ComponentType, ComponentClass, FunctionalComponent } from './component'
2018-09-19 23:35:38 +08:00
export { ComponentOptions, PropType } from './componentOptions'
export { VNodeFlags, ChildrenFlags } from './flags'
export { VNode, VNodeData, VNodeChildren, Key, Ref, Slots, Slot } from './vdom'