-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Labels
can't reproducehas workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: types
Description
Vue version
3.4.38
Link to minimal reproduction
Steps to reproduce
use Partial<> and without use toRefs.
<script setup lang="ts">
import { ref, toRefs } from 'vue'
interface IGroupDetail {
created_at: string;
}
const props = defineProps<{
groupDetail: Partial<IGroupDetail>
}>()
// const { groupDetail } = toRefs(props) // Comment this code,groupDetail in template will unknown
</script>
<template>
<div> {{ groupDetail?.created_at }}</div>
</template>
What is expected?
groupDetail type should be Partial
What is actually happening?
groupDetail type is unknown
System Info
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
can't reproducehas workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: types