Currently, I am manually triggering an event:
const emit = defineEmits<{
(e: 'update:modelValue', value: string | number): void
}>()
// [..]
<input
type="text"
:value="modelValue"
@input="emit('update:modelValue', ($event.target as // manually
HTMLInputElement).value)" // casted
/>
Is there a more efficient approach to handle this? Any alternative to avoid the manual casting?
Hint: The absence of v-model
is intentional in this scenario since it will be utilized on the component level.