Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Using factory function and type assertion with props causes type error #9861
Steps to reproduce
What is expected?
Type errors does not occur.
What is actually happening?
Property 'test' does not exist on type 'ComponentOptions<Vue, DefaultData, DefaultMethods, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>'.
It did not occur version 2.5.17.
Thank you for advice
In this state, even I try to add data, computed and method and try to access these, the same error occurs for each of these properties. And I founded the following pattern also occors the same error
I see. It works with follow code.