Closed
Description
Vue version
3.5.10
Link to minimal reproduction
Steps to reproduce
Have code like this:
<script setup lang="ts">
const { value } = defineProps<{ value: number }>()
const action = {
handler: () => {
console.log('Value is:', value)
}
} satisfies { handler: () => void }
</script>
<template>
<button @click="action.handler">
Click
</button>
</template>
Click button. See error.
What is expected?
Value prop should be accessible even when used with satisfies { handler: () => void }
What is actually happening?
Errro
System Info
n/a
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels