diff --git a/packages/react-native/Libraries/Lists/FlatList.d.ts b/packages/react-native/Libraries/Lists/FlatList.d.ts index 5bbe2fa3b80c7a..cdf51e25ae2d0c 100644 --- a/packages/react-native/Libraries/Lists/FlatList.d.ts +++ b/packages/react-native/Libraries/Lists/FlatList.d.ts @@ -116,8 +116,8 @@ export interface FlatListProps extends VirtualizedListProps { */ onViewableItemsChanged?: | ((info: { - viewableItems: Array; - changed: Array; + viewableItems: Array>; + changed: Array>; }) => void) | null | undefined; diff --git a/packages/virtualized-lists/Lists/VirtualizedList.d.ts b/packages/virtualized-lists/Lists/VirtualizedList.d.ts index a2740604155767..a4c93f58a266b5 100644 --- a/packages/virtualized-lists/Lists/VirtualizedList.d.ts +++ b/packages/virtualized-lists/Lists/VirtualizedList.d.ts @@ -18,8 +18,8 @@ import type { ScrollView, } from 'react-native'; -export interface ViewToken { - item: any; +export interface ViewToken { + item: ItemT; key: string; index: number | null; isViewable: boolean; @@ -330,8 +330,8 @@ export interface VirtualizedListWithoutRenderItemProps */ onViewableItemsChanged?: | ((info: { - viewableItems: Array; - changed: Array; + viewableItems: Array>; + changed: Array>; }) => void) | null | undefined;