diff --git a/packages/core/src/lib/pagination/lines.mts b/packages/core/src/lib/pagination/lines.mts index f72ab8d6a..16c077413 100644 --- a/packages/core/src/lib/pagination/lines.mts +++ b/packages/core/src/lib/pagination/lines.mts @@ -58,7 +58,7 @@ export function lines({ const renderItemAt = (index: number) => split(renderItem(layoutsInPage[index]!), width); // Create a blank array of lines for the page - const pageBuffer = Array.from({ length: pageSize }); + const pageBuffer: string[] = Array.from({ length: pageSize }); // Render the active item to decide the position const activeItem = renderItemAt(requested).slice(0, pageSize);