Injected prop does not exist on ComponentPublicInstance
in TypeScript
#5931
Labels
ComponentPublicInstance
in TypeScript
#5931
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-ycsdst?file=src%2Fcomponents%2FMyComponent.vue,src%2FApp.vue
Steps to reproduce
inject
optionWhat is expected?
The injected prop is available in other options, including
methods
andcomputed
.What is actually happening?
TypeScript shows this error:
System Info
Any additional comments?
Also happens with Vue CLI scaffolded project.
The text was updated successfully, but these errors were encountered: