4, partial 5
This commit is contained in:
40
src/types/podcast.ts
Normal file
40
src/types/podcast.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Podcast type definitions for PodTUI
|
||||
*/
|
||||
|
||||
/** Core podcast information */
|
||||
export interface Podcast {
|
||||
/** Unique identifier */
|
||||
id: string
|
||||
/** Podcast title */
|
||||
title: string
|
||||
/** Podcast description/summary */
|
||||
description: string
|
||||
/** Cover image URL */
|
||||
coverUrl?: string
|
||||
/** RSS feed URL */
|
||||
feedUrl: string
|
||||
/** Author/creator name */
|
||||
author?: string
|
||||
/** Podcast categories */
|
||||
categories?: string[]
|
||||
/** Language code (e.g., 'en', 'es') */
|
||||
language?: string
|
||||
/** Website URL */
|
||||
websiteUrl?: string
|
||||
/** Last updated timestamp */
|
||||
lastUpdated: Date
|
||||
/** Whether the podcast is currently subscribed */
|
||||
isSubscribed: boolean
|
||||
}
|
||||
|
||||
/** Podcast with episodes included */
|
||||
export interface PodcastWithEpisodes extends Podcast {
|
||||
/** List of episodes */
|
||||
episodes: Episode[]
|
||||
/** Total episode count */
|
||||
totalEpisodes: number
|
||||
}
|
||||
|
||||
/** Episode import - needed for PodcastWithEpisodes */
|
||||
import type { Episode } from "./episode"
|
||||
Reference in New Issue
Block a user