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:
parent
76b633b62d
commit
b31060bbeb
3 changed files with 30 additions and 7 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue