Lets say I have an element that wraps an input and takes all of its properties, in addition to a few more.
In react this would be typed as
interface ExtendedInputProps extends React.ComponentPropsWithoutRef<'input'> {
some: Type
}
And it's a pretty common use case. I'm aware that Vue 3 generates its prop types based on whatever is passed to the props: object in defineComponent.
I'm imaging doing something like:
props:{
...getComponentProps('input')
additionalProp: String
}
But I have no idea how to do that and can't find any docs on it. Is it possible?