mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use interface over type
This commit is contained in:
parent
9d88af3dfe
commit
de4a359c98
21 changed files with 100 additions and 106 deletions
49
src/view/components/interface.ts
Normal file
49
src/view/components/interface.ts
Normal file
|
@ -0,0 +1,49 @@
|
|||
export type QueryI = {
|
||||
SortBy?: string;
|
||||
SortOrder?: string;
|
||||
IncludeItemTypes?: string;
|
||||
Recursive?: boolean;
|
||||
Fields?: string;
|
||||
ImageTypeLimit?: number;
|
||||
EnableTotalRecordCount?: boolean;
|
||||
EnableImageTypes?: string;
|
||||
StartIndex: number;
|
||||
ParentId?: string | null;
|
||||
IsFavorite?: boolean;
|
||||
IsMissing?: boolean;
|
||||
Limit:number;
|
||||
NameLessThan?: string;
|
||||
NameStartsWith?: string;
|
||||
}
|
||||
|
||||
export type CardOptionsI = {
|
||||
itemsContainer?: HTMLElement;
|
||||
parentContainer?: HTMLElement;
|
||||
allowBottomPadding?: boolean;
|
||||
centerText?: boolean;
|
||||
coverImage?: boolean;
|
||||
inheritThumb?: boolean;
|
||||
overlayMoreButton?: boolean;
|
||||
overlayPlayButton?: boolean;
|
||||
overlayText?: boolean;
|
||||
preferThumb?: boolean;
|
||||
scalable?: boolean;
|
||||
shape?: string;
|
||||
lazy?: boolean;
|
||||
cardLayout?: boolean;
|
||||
showParentTitle?: boolean;
|
||||
showParentTitleOrTitle?: boolean;
|
||||
showAirTime?: boolean;
|
||||
showAirDateTime?: boolean;
|
||||
showChannelName?: boolean;
|
||||
showTitle?: boolean;
|
||||
showYear?: boolean;
|
||||
showDetailsMenu?: boolean;
|
||||
missingIndicator?: boolean;
|
||||
showLocationTypeIndicator?: boolean;
|
||||
showSeriesYear?: boolean;
|
||||
showUnplayedIndicator?: boolean;
|
||||
showChildCountIndicator?: boolean;
|
||||
lines?: number;
|
||||
context?: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue