소스 검색

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 = {