mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
feat: add more type-definitions for youtube-player
Co-authored-by: ArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com>
This commit is contained in:
15
types/player-api-events.ts
Normal file
15
types/player-api-events.ts
Normal file
@ -0,0 +1,15 @@
|
||||
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 ' })
|
||||
}
|
||||
Reference in New Issue
Block a user