From: Evan You Date: Mon, 29 Mar 2021 20:36:40 +0000 (-0400) Subject: chore(sfc-playground): use type defineEmit X-Git-Tag: v3.0.10~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2793bc0918c3e677f2a7aaa38d9f1149b20f11cf;p=thirdparty%2Fvuejs%2Fcore.git chore(sfc-playground): use type defineEmit --- diff --git a/packages/sfc-playground/src/codemirror/CodeMirror.vue b/packages/sfc-playground/src/codemirror/CodeMirror.vue index 2140922afa..9631182d12 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 = {