diff --git a/src/helpers.ts b/src/helpers.ts index dfd1dea9..e0a93640 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -20,6 +20,7 @@ import { getTvShowsApi, getUserApi } from '@jellyfin/sdk/lib/utils/api'; +import type { MediaInformation } from 'chromecast-caf-receiver/cast.framework.messages'; import { JellyfinApi } from './components/jellyfinApi'; import { PlaybackManager, @@ -188,8 +189,7 @@ export function getSenderReportingData( * @param item - item to look up * @returns one of the metadata classes in cast.framework.messages.*Metadata */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export function getMetadata(item: BaseItemDto): any { +export function getMetadata(item: BaseItemDto): MediaInformation { // eslint-disable-next-line @typescript-eslint/no-explicit-any let metadata: any; let posterUrl = '';