-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Closed
Copy link
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/aAny additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels