refactor(Player): format type declaration

This commit is contained in:
Tim 2024-11-28 09:23:10 +01:00
parent 9fc13d2c55
commit 96a15dfbf6

View file

@ -1,2 +1,11 @@
declare const usePlayer: (urlParams: UrlParams) => [Player, (videoParams: { hash: string | null, size: number | null, filename: string | null }) => void, (time: number, duration: number, device: string) => void, (time: number, duration: number, device: string) => void, (paused: boolean) => void, () => void, () => void,];
declare const usePlayer: (urlParams: UrlParams) => [
Player,
videoParamsChanged: (videoParams: { hash: string | null, size: number | null, filename: string | null }) => void,
timeChanged: (time: number, duration: number, device: string) => void,
seek: (time: number, duration: number, device: string) => void,
pausedChanged: (paused: boolean) => void, () => void, () => void,
ended: () => void,
nextVideo: () => void,
];
export = usePlayer;