]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(sfc-playground): use type defineEmit
authorEvan You <yyx990803@gmail.com>
Mon, 29 Mar 2021 20:36:40 +0000 (16:36 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 29 Mar 2021 20:36:40 +0000 (16:36 -0400)
packages/sfc-playground/src/codemirror/CodeMirror.vue

index 2140922afa49571a4a726bae2f3c3a747cf11c6e..9631182d1282b9792eca3df51907b0953fe66b38 100644 (file)
@@ -24,7 +24,7 @@ const props = defineProps({
   }
 })
 
-const emit = defineEmit(['change'])
+const emit = defineEmit<(e: 'change', value: string) => void>()
 
 onMounted(() => {
   const addonOptions = {