mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix(song-info-front): fix nullable issue
This commit is contained in:
@ -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 {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user