Commit f69f073
committed
feat(types): add type definitions for svelte-virtual-list module
- Declare module "@sveltejs/svelte-virtual-list" with types
- Define VirtualListProps interface with items, height, itemHeight, start, and end
- Export VirtualList class extending SvelteComponent with typed props
- Define default slot with item parameter typed as any
- Provide type safety for usage of svelte-virtual-list in projects1 parent 5871ab1 commit f69f073
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments