Преглед на файлове

chore(sfc-playground): use type defineEmit

Evan You преди 5 години
родител
ревизия
2793bc0918
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 = {