'Is there an equivalent of "extends" in Vue 3 composition API?

It is possible to extend component when using Options API:

export default defineComponent({
  name: "my-comp",
  extends: AnotherComp

Is there composition API equivalent?


Comment:

I need if for a specific purpose.

Consider extending quasar's Knob component. Original quasar component has props auto-completion:
auto-completion

However, if I write a wrapper component it will loose auto-completion.

"Extends" allows to preserve auto-completion for parent component's props, but it is a part of Options API.

So, I am looking for a standard way to preserve auto-completion when I use composition API.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source