fix: add types to playlist

This commit is contained in:
Artemy 2023-08-10 12:05:59 +03:00
parent 5465963650
commit 963be51741
3 changed files with 12 additions and 6 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "piped-api",
"version": "1.2.0",
"version": "1.2.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "piped-api",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",
"dependencies": {
"axios": "^1.4.0"

View file

@ -1,6 +1,6 @@
{
"name": "piped-api",
"version": "1.2.0",
"version": "1.2.1",
"description": "",
"main": "dist/index.js",
"type": "module",
@ -14,7 +14,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc",
"docs": "typedoc src/index.ts src/types.ts",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm i && npm run build"
},
"keywords": [
"api",

View file

@ -128,16 +128,22 @@ export interface NextPageChannel {
}
export interface Playlist {
url: string;
bannerUrl: string;
name: string;
nextpage: string;
relatedStreams: Video[];
thumbnailUrl: string;
uploader: string;
thumbnailUrl?: string;
uploader?: string;
uploaderAvatar: string;
uploaderUrl: string;
videos: number;
type?: string;
thumbnail?: string;
uploaderName?: string;
uploaderVerified?: boolean;
playlistType?: string;
}
export interface NextPagePlaylist {