fix: corrected my interface to be unified and std
This commit is contained in:
@@ -6,17 +6,14 @@
|
||||
*/
|
||||
|
||||
export interface AdapterAPI {
|
||||
load?: () => void;
|
||||
play?: () => void;
|
||||
pause?: () => void;
|
||||
destroy?: () => void;
|
||||
seek?: (time: number) => void;
|
||||
currentTime?: () => number;
|
||||
duration?: () => number;
|
||||
volume?: (volume: number) => void;
|
||||
currentVolume?: () => number;
|
||||
muted?: () => boolean;
|
||||
mute?: (muted?: boolean) => void;
|
||||
load: () => void;
|
||||
play: () => void;
|
||||
pause: () => void;
|
||||
destroy: () => void;
|
||||
time: number;
|
||||
volume: number;
|
||||
muted: boolean;
|
||||
readonly duration: () => number;
|
||||
}
|
||||
|
||||
export interface PlayerConfig {
|
||||
|
||||
Reference in New Issue
Block a user