Browse Source

chore(sfc-playground): use type defineEmit

Evan You 5 years ago
parent
commit
2793bc0918
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/sfc-playground/src/codemirror/CodeMirror.vue

+ 1 - 1
packages/sfc-playground/src/codemirror/CodeMirror.vue

@@ -24,7 +24,7 @@ const props = defineProps({
   }
 })
 
-const emit = defineEmit(['change'])
+const emit = defineEmit<(e: 'change', value: string) => void>()
 
 onMounted(() => {
   const addonOptions = {