refactor(types): move shapeFlags to shared

This commit is contained in:
Evan You
2020-02-14 01:36:42 -05:00
parent 167f8241bd
commit 6df2aca070
16 changed files with 30 additions and 25 deletions

View File

@@ -30,6 +30,7 @@ import {
isReservedProp,
isFunction,
PatchFlags,
ShapeFlags,
NOOP
} from '@vue/shared'
import {
@@ -49,11 +50,10 @@ import {
} from '@vue/reactivity'
import { resolveProps } from './componentProps'
import { resolveSlots } from './componentSlots'
import { ShapeFlags } from './shapeFlags'
import { pushWarningContext, popWarningContext, warn } from './warning'
import { invokeDirectiveHook } from './directives'
import { ComponentPublicInstance } from './componentProxy'
import { createAppAPI } from './apiCreateApp'
import { createAppAPI, CreateAppFunction } from './apiCreateApp'
import {
SuspenseBoundary,
queueEffectWithSuspense,
@@ -1858,7 +1858,7 @@ function baseCreateRenderer<
return {
render,
hydrate,
createApp: createAppAPI<HostNode, HostElement>(render, hydrate)
createApp: createAppAPI(render, hydrate) as CreateAppFunction<HostElement>
}
}