types: improve type exports

This commit is contained in:
Evan You
2019-09-06 12:58:31 -04:00
parent d87bed0138
commit 360f3b4f37
25 changed files with 253 additions and 204 deletions

View File

@@ -6,11 +6,10 @@ import {
nodeOps,
DirectiveHook,
VNode,
ComponentInstance,
DirectiveBinding,
nextTick
} from '@vue/runtime-test'
import { currentInstance } from '../src/component'
import { currentInstance, ComponentInternalInstance } from '../src/component'
describe('directives', () => {
it('should work', async () => {
@@ -99,7 +98,7 @@ describe('directives', () => {
expect(prevVNode).toBe(null)
}) as DirectiveHook)
let _instance: ComponentInstance | null = null
let _instance: ComponentInternalInstance | null = null
let _vnode: VNode | null = null
let _prevVnode: VNode | null = null
const Comp = {