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
Solution: You should use ComponentExposed from the vue-component-type-helpers packages instead of TypeScript's built-in ReturnType or InstanceType utilities since volar defines generic components as functional components.
@so1ve Why not include the ComponentExposed type in vue? Since it already has some utility types, I don' think it would be a bad idea... https://vuejs.org/api/utility-types
There are 2 components.
One with generic and another one without generic.
Some parent component tries to take an instance type.
The one with generic throws an error
Reproduction
https://play.vuejs.org/#eNqdUk1P4zAQ/SsjX7oroaKKWzZUYlc9sAdAkBvmYCWTYEjGlu2URlX/O2MnLR/iQ+ISxfPeG7/xvK04s3a+7lFkIvel0zaAx9BbaBU1p1IEL8VSku6scQG24LCGHdTOdDBj2ezPAftnOjsB8+N4iG1nb+DFG3wxESSVhnwAzR9FJcJpvCU/n47FYDEP/DF1arJc/vr9XrL4RrMYRZLy43FIHkkc8XDcptbN/MEb4hfYSgKQomSFbtFd2qD5GikySEjEVNuap/+pFlyPR/t6eY/l4wf1B7+JNSmuHHp0a5TigAXlGgwjvLq5wA3/H8DOVH3L7C/Aa/Sm7aPHkfa3p4ptv+Ilt+dpAZqawq82Acnvh4pGI3OX+FLwOuJjfTb6i92T+UnSSdrxK+53/VWEoEFCp0s+FilQFdaa8MoZ6/PpBhVPGRTcNW1rpKw6HV4o3WqNFDK4tWpojaoyuEZVGWqHvFje7ZWHLU/uUtK+SXhMC5zF4HCWXjtCF4YMFA3cPUboc+dJ/UP3SfvRBLtnZ2c66w==
The text was updated successfully, but these errors were encountered: