feat: createApp / appContext

This commit is contained in:
Evan You
2019-09-02 16:09:34 -04:00
parent aac807bc63
commit 32713f8fce
8 changed files with 226 additions and 9 deletions

View File

@@ -21,6 +21,7 @@ import {
ComponentRenderProxy
} from './component'
import { callWithAsyncErrorHandling, ErrorTypes } from './errorHandling'
import { HostNode } from './createRenderer'
export interface DirectiveBinding {
instance: ComponentRenderProxy | null
@@ -31,7 +32,7 @@ export interface DirectiveBinding {
}
export type DirectiveHook = (
el: any,
el: HostNode,
binding: DirectiveBinding,
vnode: VNode,
prevVNode: VNode | null