We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c40e0e commit 76b7c14Copy full SHA for 76b7c14
src/createVirtualizedList.ts
@@ -9,7 +9,7 @@ type ObjectWithKey = { [key: string]: any };
9
export type KeyFunction<T> = (item: T, index?: number) => string | number;
10
11
12
-export interface VirtualizedListArgs<T> extends VirtualizerOptions<Element, Element> {
+export interface VirtualizedListArgs<T, ScrollElement extends Element = Element, ItemElement extends Element = Element> extends Partial<VirtualizerOptions<ScrollElement, ItemElement>> {
13
id?: string;
14
data: () => T[];
15
determineKey?: KeyFunction<T>;
0 commit comments