types: fix failed typings?

This commit is contained in:
pikax
2020-01-04 14:22:09 +00:00
parent 07ff08956f
commit 9edc4fa1fe
2 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,6 @@ import {
h,
render,
nextTick,
Ref,
createComponent
} from '@vue/runtime-test'
@@ -142,7 +141,7 @@ describe('api: template refs', () => {
foo: ref(null),
bar: ref(null)
}
const refKey: Ref<keyof typeof refs> = ref('foo')
const refKey = ref<keyof typeof refs>('foo')
const Comp = {
setup() {