youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
34 lines (33 loc) • 1.08 kB
TypeScript
import { Shelf, Thumbnails, YoutubeRawData } from "../../common";
import { BaseChannel, BaseChannelProperties } from "../BaseChannel";
import { PlaylistCompact } from "../PlaylistCompact";
import { VideoCompact } from "../VideoCompact";
export declare type ChannelShelf = Shelf<BaseChannel[] | VideoCompact[] | PlaylistCompact[]> & {
subtitle?: string;
};
/** @hidden */
interface ChannelProperties extends BaseChannelProperties {
videoCount?: string;
banner?: Thumbnails;
tvBanner?: Thumbnails;
mobileBanner?: Thumbnails;
shelves?: ChannelShelf[];
}
/** Represents a Youtube Channel */
export declare class Channel extends BaseChannel implements ChannelProperties {
/** How many video does this channel have */
videoCount?: string;
banner: Thumbnails;
mobileBanner: Thumbnails;
tvBanner: Thumbnails;
shelves: ChannelShelf[];
/** @hidden */
constructor(attr: ChannelProperties);
/**
* Load this instance with raw data from Youtube
*
* @hidden
*/
load(data: YoutubeRawData): Channel;
}
export {};