Skip to content

Commit 2793bc0

Browse files
committed
chore(sfc-playground): use type defineEmit
1 parent f5827fd commit 2793bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sfc-playground/src/codemirror/CodeMirror.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const props = defineProps({
2424
}
2525
})
2626
27-
const emit = defineEmit(['change'])
27+
const emit = defineEmit<(e: 'change', value: string) => void>()
2828
2929
onMounted(() => {
3030
const addonOptions = {

0 commit comments

Comments
 (0)