1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix remaining any type warnings

This commit is contained in:
Bill Thornton 2022-02-28 09:58:52 -05:00
parent 76b633b62d
commit b31060bbeb
3 changed files with 30 additions and 7 deletions

View file

@ -16,10 +16,31 @@ const createScroller = ({ title = '' }) => ({
</div>`
});
type CardOptions = {
itemsContainer?: HTMLElement,
parentContainer?: HTMLElement,
allowBottomPadding?: boolean,
centerText?: boolean,
coverImage?: boolean,
inheritThumb?: boolean,
overlayMoreButton?: boolean,
overlayText?: boolean,
preferThumb?: boolean,
scalable?: boolean,
shape?: string,
showParentTitle?: boolean,
showParentTitleOrTitle?: boolean,
showAirTime?: boolean,
showAirDateTime?: boolean,
showChannelName?: boolean,
showTitle?: boolean,
showYear?: boolean
}
type SearchResultsRowProps = {
title?: string;
items?: BaseItemDto[];
cardOptions?: Record<string, any>;
cardOptions?: CardOptions;
}
const SearchResultsRow: FunctionComponent<SearchResultsRowProps> = ({ title, items = [], cardOptions = {} }: SearchResultsRowProps) => {