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
Currently the items do not use generics to keep the typings available. e.g.
<script lang="ts">
let data = [ { id: 123, text: "item text" } ]
</script>
<VirtualScroll {data} let:data>
<div>
<!-- data is "any", no typings info -->
{data.text}
</div>
</VirtualScroll>
My proposal is to configure tighter typings for data, slot data and key:
data: T[]
key: keyof T
slot data: T
The text was updated successfully, but these errors were encountered:
Currently the
items
do not use generics to keep the typings available. e.g.My proposal is to configure tighter typings for
data
,slot data
andkey
:The text was updated successfully, but these errors were encountered: