Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit 9cacf5f

Browse files
committed
fix: type issues
1 parent 4fe1629 commit 9cacf5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pipeline.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export function accumulateAllItems(
147147
allItems: unknown[],
148148
[{ pageNumber, items }, length]: [ItemsByPage, number]
149149
): unknown[] {
150-
return pipe(
150+
return pipe<unknown[], unknown[], unknown[], unknown[], unknown[]>(
151151
concat(
152152
__,
153153
new Array(Math.max(length - allItems.length, 0)).fill(undefined)
@@ -169,7 +169,7 @@ export function getVisibleItems(
169169
{ columns, itemWidthWithGap, itemHeightWithGap }: ResizeMeasurement,
170170
allItems: unknown[]
171171
): InternalItem[] {
172-
return pipe(
172+
return pipe<unknown[], unknown[], InternalItem[]>(
173173
slice(bufferedOffset, bufferedOffset + bufferedLength),
174174
addIndex(ramdaMap)((value, localIndex) => {
175175
const index = bufferedOffset + localIndex;

0 commit comments

Comments
 (0)