@codesweetly/react-youtube-playlist
Version: 
A simple video gallery with a lightbox for displaying YouTube playlists in React apps.
22 lines (21 loc) • 402 B
TypeScript
export interface FetchedData {
    items: PlaylistDataItem[];
    nextPageToken: string;
    pageInfo: {
        totalResults: number;
    };
}
export interface PlaylistDataItem {
    id: string;
    snippet: {
        title: string;
        thumbnails: {
            high: {
                url: string;
            };
        };
        resourceId: {
            videoId: string;
        };
    };
}