fix(song-info-front): fix nullable issue

This commit is contained in:
JellyBrick
2024-09-17 20:27:11 +09:00
parent d5a5ed35b6
commit 11a0d39064
3 changed files with 26 additions and 21 deletions

View File

@ -1,3 +1,5 @@
import type { WatchNextResponse } from '@/types/youtube-music-desktop-internal';
export interface AlbumDetails {
responseContext: ResponseContext;
contents: Contents;
@ -252,6 +254,11 @@ export type VideoDataChangeValue = Record<string, unknown> & {
loading: boolean;
lengthSeconds: number;
/**
* YouTube Music Desktop internal variable (for album data)
**/
ytmdWatchNextResponse?: WatchNextResponse;
};
export interface PlayerAPIEvents {

View File

@ -1,4 +1,5 @@
import type { QueueItem } from '@/types/datahost-get-state';
import type { PlayerOverlays } from '@/types/player-api-events';
export interface QueueResponse {
items?: QueueItem[];
@ -7,15 +8,5 @@ export interface QueueResponse {
}
export interface WatchNextResponse {
playerOverlays: {
playerOverlayRenderer: {
browserMediaSession: {
browserMediaSessionRenderer: {
album: {
runs: { text: string; }[]
}
}
}
}
};
playerOverlays?: PlayerOverlays;
}