You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
569 B
34 lines
569 B
import { Video } from "./video";
|
|
|
|
export type VideoItem = Video & { type: "video" };
|
|
|
|
export interface ChannelItem {
|
|
type: "channel";
|
|
name: string;
|
|
id: string;
|
|
thumbnail: string;
|
|
subscribers: number;
|
|
videos: number;
|
|
description: string;
|
|
}
|
|
|
|
export interface PlaylistItem {
|
|
type: "playlist";
|
|
title: string;
|
|
id: string;
|
|
author: {
|
|
name: string;
|
|
id: string;
|
|
};
|
|
numberOfVideos: number;
|
|
thumbnail: string;
|
|
videos?: {
|
|
title: string;
|
|
id: string;
|
|
duration: number;
|
|
thumbnail: string;
|
|
}[];
|
|
}
|
|
|
|
export type Item = VideoItem | ChannelItem | PlaylistItem;
|