fix(createVirtualizer): add correct type to offset array
Workflow / build (pull_request) Successful in 49s
Workflow / build (pull_request) Successful in 49s
This commit is contained in:
1 parent
824581551f
commit
56e6e450e8
1 file changed
+1
-1
@@ -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