mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-31 11:08:26 +01:00
fix(typescript): resolve 44 TypeScript errors in core components (#1004)
This commit is contained in:
@@ -7,7 +7,7 @@ import { Text } from "../common/Text";
|
||||
|
||||
type SearchItemWrapperProps<T> = {
|
||||
items?: T[];
|
||||
renderItem: (item: any) => React.ReactNode;
|
||||
renderItem: (item: any) => React.ReactElement | null;
|
||||
header?: string;
|
||||
onEndReached?: (() => void) | null | undefined;
|
||||
};
|
||||
@@ -35,11 +35,9 @@ export const SearchItemWrapper = <T,>({
|
||||
showsHorizontalScrollIndicator={false}
|
||||
keyExtractor={(_, index) => index.toString()}
|
||||
estimatedItemSize={250}
|
||||
/*@ts-expect-error */
|
||||
data={items}
|
||||
onEndReachedThreshold={1}
|
||||
onEndReached={onEndReached}
|
||||
//@ts-expect-error
|
||||
renderItem={({ item }) => (item ? renderItem(item) : null)}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user