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 see typescript errors when trying to use the injected props in my child component. Typescript is unable to find these injections. The code renders locally, but these typescript errors break the build of my application.
Things I've tried
This works as expected, but I get this breaking typescript error
This does not work, and gives me this typescript error. I thought this might work because this was shown in the documentation.
The Solution I'd Like
I would like to be able to access my props directly this.myProp or through some const to make it clear that it's injected like this.ProxiInjection.myProp without any typescript errors
I see typescript errors when trying to use the injected props in my child component. Typescript is unable to find these injections. The code renders locally, but these typescript errors break the build of my application.
Things I've tried
The Solution I'd Like
I would like to be able to access my props directly
this.myProp
or through some const to make it clear that it's injected likethis.ProxiInjection.myProp
without any typescript errorsReproduction
You can explore a reproduction of this error here: https://codesandbox.io/s/vue-typescript-example-forked-x4h98x?file=/src/App.vue
The text was updated successfully, but these errors were encountered: