Files
youtube-music/types/player-api-events.ts
2023-09-04 12:25:43 +09:00

16 lines
328 B
TypeScript

export interface PlayerAPIEvents {
videodatachange: {
value: Record<string, unknown> & {
videoId: string
title: string
author: string
playlistId: string
isUpcoming: boolean
loading: boolean
lengthSeconds: number
}
} & ({ name: 'dataloaded' } | { name: 'dataupdated ' })
}