You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
The existing solution to get typing information is hard to write and gives suboptimal auto-completion support by the IDE.
Describe the solution you'd like
Add the following identity methods
Is your feature request related to a problem? Please describe
The existing solution to get typing information is hard to write and gives suboptimal auto-completion support by the IDE.
Describe the solution you'd like
Add the following identity methods
With these methods, one could define
instead of
Describe alternatives you've considered
Continue using existing explicit type annotations.
Are you able to assist to bring the feature to reality?
yes, I can provide a PR introducing these methods.
Additional context
This is similar to Vue's
defineComponent
function whose reason for existence is also only to enhance typescript support, see https://github.com/vuejs/rfcs/blob/master/active-rfcs/0009-global-api-change.md#global-api-mapping for a description why it has been added.See https://github.com/vuejs/core/blob/2a9e9a40963a852238adc4c61b86d0c48e7131fa/packages/runtime-core/src/apiDefineComponent.ts#L86-L89 for details.
The text was updated successfully, but these errors were encountered: