feat: add more type-definitions for youtube-player

Co-authored-by: ArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com>
This commit is contained in:
JellyBrick
2023-09-04 12:25:43 +09:00
parent d811ebadb4
commit 2eaa660a6d
3 changed files with 147 additions and 71 deletions

View 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 ' })
}