fix(createVirtualizer): add correct type to offset array
All checks were successful
Workflow / build (pull_request) Successful in 49s
All checks were successful
Workflow / build (pull_request) Successful in 49s
This commit is contained in:
@@ -14,7 +14,7 @@ export function createVirtualizer(optionsGetter: () => VirtualizerOptions) {
|
|||||||
// Only recalculates when item count or measured sizes change.
|
// Only recalculates when item count or measured sizes change.
|
||||||
const offsets = $derived.by(() => {
|
const offsets = $derived.by(() => {
|
||||||
const count = options.count;
|
const count = options.count;
|
||||||
const result = Array.from({ length: count });
|
const result = Array.from<number>({ length: count });
|
||||||
let accumulated = 0;
|
let accumulated = 0;
|
||||||
|
|
||||||
for (let i = 0; i < count; i++) {
|
for (let i = 0; i < count; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user