From 2793bc0918c3e677f2a7aaa38d9f1149b20f11cf Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 29 Mar 2021 16:36:40 -0400 Subject: [PATCH] chore(sfc-playground): use type defineEmit --- packages/sfc-playground/src/codemirror/CodeMirror.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {