language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Vue-tsc: missing type inference with v-bind="onEvent" syntax

Open mruthh opened this issue 3 months ago • 2 comments

When I use v-bind="onEvent" syntax to add an event handler to a Vue component in the template, the $event parameter's type is not inferred correctly. I can work around this by using @event syntax, but there are cases where I would prefer not to have to.

Is this a known limitation, or is it being addressed somewhere?

Vue SFC playground example here

mruthh avatar Apr 02 '24 21:04 mruthh

image

Works on my machine?

so1ve avatar Apr 08 '24 03:04 so1ve

Maybe a config issue then. Is there anything different between your setup and the Vue SFC Playground?

mruthh avatar Apr 10 '24 13:04 mruthh