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
I would love to have Typescript recognize the fields defined in props and data directly, as demoed in this starter project: https://github.com/Microsoft/TypeScript-Vue-Starter. This solves the headache of declaring an interface for every component, and changing the interface whenever I change something in the component.
However, it uses a fork of Vue that I cannot directly leverage in my production code because it's far behind the latest release. Can I have a timeline when is this feature going to be released?
What does the proposed API look like?
This looks like an experimental feature already implemented, and I'd like to know when it is going to be merged and released.
The text was updated successfully, but these errors were encountered:
Hi @laputa523 , I'm glad to hear Vue is used in Microsoft production! Thanks for reporting :)
Meanwhile, you can track the progress of improved typing in #5887.
The main blocker here is the blocking change in declaration. We need a transition plan to introduce the new change. Also microsoft/TypeScript#14400 can help the transition (by inferring optional generic type parameter, we can make a compatible API without losing precise inference.)
Let's first close this issue so we can concentrate discussion on the pull request. Thanks!
What problem does this feature solve?
I would love to have Typescript recognize the fields defined in props and data directly, as demoed in this starter project: https://github.com/Microsoft/TypeScript-Vue-Starter. This solves the headache of declaring an interface for every component, and changing the interface whenever I change something in the component.
However, it uses a fork of Vue that I cannot directly leverage in my production code because it's far behind the latest release. Can I have a timeline when is this feature going to be released?
What does the proposed API look like?
This looks like an experimental feature already implemented, and I'd like to know when it is going to be merged and released.
The text was updated successfully, but these errors were encountered: