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
This repo has already some typescript definitions, but one I'm particularly missing is the typing of variables passed to a slot.
<draggablev-model="myArray" item-key="id"><template#item="{element}"><!-- "element" in here is of type "any", even though myArray has defined type in my case --><div>{{element.name}}</div></template></draggable>
Having types is really important for us as it prevents a lot of bugs.
Avoiding using properties passed in as parameters on the slot would work around this issue already - keeping it as it was on the previous implementation, where I had to use v-for inside the slot...
The text was updated successfully, but these errors were encountered:
This repo has already some typescript definitions, but one I'm particularly missing is the typing of variables passed to a slot.
Having types is really important for us as it prevents a lot of bugs.
Avoiding using properties passed in as parameters on the slot would work around this issue already - keeping it as it was on the previous implementation, where I had to use
v-for
inside the slot...The text was updated successfully, but these errors were encountered: