refactor(types): mark more internal APIs

This commit is contained in:
Evan You
2020-05-01 10:37:40 -04:00
parent 22717772dd
commit 68e1ce8b66
7 changed files with 232 additions and 71 deletions

View File

@@ -1,4 +1,4 @@
// Public API ------------------------------------------------------------------
// Core API ------------------------------------------------------------------
export const version = __VERSION__
export {
@@ -51,15 +51,11 @@ export { getCurrentInstance } from './component'
// For raw render function users
export { h } from './h'
export {
createVNode,
cloneVNode,
mergeProps,
openBlock,
createBlock
} from './vnode'
// Internal Components
export { Text, Comment, Fragment } from './vnode'
// Advanced render function utilities
export { createVNode, cloneVNode, mergeProps } from './vnode'
// VNode types
export { Fragment, Text, Comment, Static } from './vnode'
// Built-in components
export { Teleport, TeleportProps } from './components/Teleport'
export { Suspense, SuspenseProps } from './components/Suspense'
export { KeepAlive, KeepAliveProps } from './components/KeepAlive'
@@ -67,10 +63,8 @@ export {
BaseTransition,
BaseTransitionProps
} from './components/BaseTransition'
// SFC CSS Modules
export { useCSSModule } from './helpers/useCssModule'
// SSR context
export { useSSRContext, ssrContextKey } from './helpers/useSsrContext'
@@ -125,6 +119,7 @@ export {
} from './apiCreateApp'
export {
VNode,
VNodeChild,
VNodeTypes,
VNodeProps,
VNodeArrayChildren,
@@ -134,7 +129,6 @@ export {
Component,
FunctionalComponent,
ComponentInternalInstance,
RenderFunction,
SetupContext
} from './component'
export {
@@ -143,7 +137,8 @@ export {
ComponentOptionsWithObjectProps,
ComponentOptionsWithArrayProps,
ComponentCustomOptions,
ComponentOptionsBase
ComponentOptionsBase,
RenderFunction
} from './componentOptions'
export {
ComponentPublicInstance,
@@ -202,6 +197,8 @@ export { renderSlot } from './helpers/renderSlot'
export { createSlots } from './helpers/createSlots'
export { pushScopeId, popScopeId, withScopeId } from './helpers/scopeId'
export {
openBlock,
createBlock,
setBlockTracking,
createTextVNode,
createCommentVNode,