Skip to content

Commit 76b7c14

Browse files
committed
fix: 🐛 fixed types
made it so the og option properties types are optional
1 parent 7c40e0e commit 76b7c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createVirtualizedList.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type ObjectWithKey = { [key: string]: any };
99
export type KeyFunction<T> = (item: T, index?: number) => string | number;
1010

1111

12-
export interface VirtualizedListArgs<T> extends VirtualizerOptions<Element, Element> {
12+
export interface VirtualizedListArgs<T, ScrollElement extends Element = Element, ItemElement extends Element = Element> extends Partial<VirtualizerOptions<ScrollElement, ItemElement>> {
1313
id?: string;
1414
data: () => T[];
1515
determineKey?: KeyFunction<T>;

0 commit comments

Comments
 (0)