diff --git a/packages/sfc-playground/src/codemirror/CodeMirror.vue b/packages/sfc-playground/src/codemirror/CodeMirror.vue index 2140922a..9631182d 100644 --- a/packages/sfc-playground/src/codemirror/CodeMirror.vue +++ b/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 = {