Open
Description
Vue version
3.4.31
Link to minimal reproduction
Steps to reproduce
use defineComponent
in function sgnature to define a genric component with an optional prop

use the component somewhere else.

In my minimal reproduction, just simply remove one of child component`s prop and add it again can repoduce the error.
What is expected?
Optional prop should not throw required type error.
What is actually happening?
Optional prop still throws required type error.
System Info
No response
Any additional comments?
No response