jellyfish-web/src/components/homesections/sections/section.d.ts

13 lines
478 B
TypeScript
Raw Normal View History

2023-10-02 12:22:36 -04:00
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client/models/base-item-dto';
2023-10-02 13:43:06 -04:00
import type { BaseItemDtoQueryResult } from '@jellyfin/sdk/lib/generated-client/models/base-item-dto-query-result';
2023-10-02 12:22:36 -04:00
export interface SectionOptions {
enableOverflow: boolean
}
export type SectionContainerElement = {
2023-10-02 13:43:06 -04:00
fetchData: () => Promise<BaseItemDtoQueryResult | BaseItemDto[]>
2023-10-02 12:22:36 -04:00
getItemsHtml: (items: BaseItemDto[]) => void
parentContainer: HTMLElement
} & Element;