chore: cleanup ref (#4288)

* refactor: cleanup ref
* fix: video-ref type
* refactor: cleanup code
This commit is contained in:
Kamil Moskała
2024-11-15 21:17:56 +01:00
committed by GitHub
parent 681aed0aed
commit de81829d73
5 changed files with 11 additions and 30 deletions

View File

@@ -14,7 +14,7 @@ export interface VideoRef {
restoreUserInterfaceForPictureInPictureStopCompleted: (
restore: boolean,
) => void;
save: (options: object) => Promise<VideoSaveData>;
save: (options: object) => Promise<VideoSaveData> | void;
setVolume: (volume: number) => void;
getCurrentPosition: () => Promise<number>;
setFullScreen: (fullScreen: boolean) => void;