Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Aug 11, 2024
1 parent 3728025 commit a17f460
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const VirtualizedList: VibeComponent<VirtualizedListProps> = forwardRef(
className,
id,
items = [],
itemRenderer = (item: VirtualizedListItem, _index: number, _style: CSSProperties) => item,
itemRenderer = (item: VirtualizedListItem, _index: number, _style: CSSProperties) => item as ReactElement,
getItemHeight = (item: VirtualizedListItem, _index: number) => item.height,
getItemSize = null, // must be null for backward compatibility
layout = "vertical",
Expand Down

0 comments on commit a17f460

Please sign in to comment.