refactor: add type definition for emits
This commit is contained in:
parent
f1961f5cef
commit
1553825719
1 changed files with 5 additions and 1 deletions
|
@ -15,8 +15,12 @@ interface Props {
|
|||
locales: LocaleOption[]
|
||||
}
|
||||
|
||||
interface Emits {
|
||||
(e: 'update:modelValue', value: string): void
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const emit = defineEmits<Emits>()
|
||||
|
||||
const selectModel = computed({
|
||||
get() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue