lofi-app/frontend/src/types.ts
2026-05-10 16:02:58 +00:00

31 lines
545 B
TypeScript

export interface Channel {
id: string
name: string
handle: string
description: string
isLive: boolean
videoId: string | null
thumbnail: string | null
}
export interface StreamInfo {
videoId: string
url: string
streamType: "hls" | "direct"
title: string
channel: string
duration: number | null
isLive: boolean
thumbnail?: string | null
}
export interface NowPlaying {
channel: {
id: string
name: string
handle: string
description: string
} | null
videoId: string | null
url: string | null
}