twlite / youtube-sr

A dead-simple youtube metadata scraper
https://npmjs.com/package/youtube-sr
MIT License
113 stars 16 forks source link

Playlist typings #17

Closed mpirescarvalho closed 3 years ago

mpirescarvalho commented 3 years ago

Some typings for playlists are wrong, e.g. thumbnail.

These are the types defined in typescript:

id?: string;
title?: string;
videoCount: number;
lastUpdate?: string;
views?: number;
url?: string;
link?: string;
channel?: Channel;
thumbnail?: Thumbnail;
videos: Video[];

This is what I get when searching and using console.log

image

Notes: