mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-31 03:28:49 +00:00
refactor(Player): format type declaration
This commit is contained in:
parent
9fc13d2c55
commit
96a15dfbf6
1 changed files with 10 additions and 1 deletions
11
src/routes/Player/usePlayer.d.ts
vendored
11
src/routes/Player/usePlayer.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue