fix: apply fix from eslint

This commit is contained in:
JellyBrick
2024-10-13 22:45:11 +09:00
parent f42f20f770
commit cb1381bbb3
85 changed files with 1858 additions and 1042 deletions

View File

@ -297,10 +297,28 @@ export interface YoutubePlayer {
handleGlobalKeyDown: () => void;
handleGlobalKeyUp: () => void;
wakeUpControls: () => void;
cueVideoById: (videoId: string, startSeconds: number, suggestedQuality: string) => void;
loadVideoById: (videoId: string, startSeconds: number, suggestedQuality: string) => void;
cueVideoByUrl: (mediaContentUrl: string, startSeconds: number, suggestedQuality: string, playerType: string) => void;
loadVideoByUrl: (mediaContentUrl: string, startSeconds: number, suggestedQuality: string, playerType: string) => void;
cueVideoById: (
videoId: string,
startSeconds: number,
suggestedQuality: string,
) => void;
loadVideoById: (
videoId: string,
startSeconds: number,
suggestedQuality: string,
) => void;
cueVideoByUrl: (
mediaContentUrl: string,
startSeconds: number,
suggestedQuality: string,
playerType: string,
) => void;
loadVideoByUrl: (
mediaContentUrl: string,
startSeconds: number,
suggestedQuality: string,
playerType: string,
) => void;
/**
* Note: This doesn't resume playback, it plays from the start.
*/
@ -361,7 +379,7 @@ export interface YoutubePlayer {
name: K extends 'videodatachange' ? PlayerAPIEvents[K]['name'] : never,
data: K extends 'videodatachange' ? PlayerAPIEvents[K]['value'] : never,
) => void,
options?: boolean | AddEventListenerOptions | undefined,
options?: boolean | AddEventListenerOptions,
) => void;
removeEventListener: <K extends keyof PlayerAPIEvents>(
type: K,
@ -370,7 +388,7 @@ export interface YoutubePlayer {
name: K extends 'videodatachange' ? PlayerAPIEvents[K]['name'] : never,
data: K extends 'videodatachange' ? PlayerAPIEvents[K]['value'] : never,
) => void,
options?: boolean | EventListenerOptions | undefined,
options?: boolean | EventListenerOptions,
) => void;
getDebugText: () => string;
addCueRange: <Parameters extends unknown[], Return>(
@ -395,7 +413,11 @@ export interface YoutubePlayer {
getMediaReferenceTime: () => number;
getSize: () => { width: number; height: number };
logImaAdEvent: (eventType: unknown, breakType: unknown) => void;
preloadVideoById: (videoId: string, startSeconds: number, suggestedQuality: string) => void;
preloadVideoById: (
videoId: string,
startSeconds: number,
suggestedQuality: string,
) => void;
setAccountLinkState: <Parameters extends unknown[], Return>(
...params: Parameters
) => Return;