Closed
Description
Version
2.5.2
Reproduction link
https://github.com/jiayexie/vue-typescript-declaration-repro
Steps to reproduce
-
Uncomment the render function in error.ts and build again. Build fails because component type has changed and only has a 'message' prop on it.
What is expected?
Component type should be inferred from data, props, computed, methods, and be accessible in methods and render functions.
What is actually happening?
As soon as I add a render function, the type inference loses everything except props.