diff --git a/src/types/search.ts b/src/types/search.ts index 7ca4037..ae885f6 100644 --- a/src/types/search.ts +++ b/src/types/search.ts @@ -5,6 +5,7 @@ import type {trackType} from './tracks'; import type {profileTypeMinimal} from './profile'; import type {channelSearchType} from './channel'; import type {radioType} from './radio'; +import type {showEpisodeType} from './show'; interface searchTypeCommon { count: number; @@ -43,7 +44,7 @@ interface liveSearchType extends searchTypeCommon { } interface showSearchType extends searchTypeCommon { - data: unknown[]; + data: showEpisodeType[]; } export interface discographyType { diff --git a/src/types/show.ts b/src/types/show.ts index f7c65c6..af4736b 100644 --- a/src/types/show.ts +++ b/src/types/show.ts @@ -3,7 +3,7 @@ interface generesType { GENRE_NAME: string; // 'Technology'; } -interface episodeType { +export interface showEpisodeType { EPISODE_ID: string; // '294961882'; EPISODE_STATUS: string; // '1'; AVAILABLE: boolean; @@ -54,7 +54,7 @@ export interface showType { }; FAVORITE_STATUS: boolean; // false; EPISODES: { - data: episodeType[]; + data: showEpisodeType[]; count: number; // 1; total: number; // 174; filtered_count: number; // 0;