Skip to content

Commit

Permalink
Correct return type for getMetadata function
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex authored Nov 30, 2024
1 parent e61e92f commit 862e68f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 = '';
Expand Down

0 comments on commit 862e68f

Please sign in to comment.