update to current api

This commit is contained in:
Moshe Atlow
2016-10-13 21:30:12 +03:00
committed by GitHub
parent ae44092bd5
commit c95ee63a56
+2 -4
View File
@@ -4,8 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare class HowlerGlobal {
mute(): HowlerGlobal;
unmute(): HowlerGlobal;
mute(muted: boolean): HowlerGlobal;
volume(): number;
volume(volume: number): HowlerGlobal;
codecs(extension: string): boolean;
@@ -56,8 +55,7 @@ interface Howl {
play(callback?: (soundId: string) => void): Howl;
pause(soundId?: string): Howl;
stop(soundId?: string): Howl;
mute(soundId?: string): Howl;
unmute(soundId?: string): Howl;
mute(muted?: boolean, soundId?: string): Howl;
fade(from: number, to: number, duration: number, callback?: Function, soundId?: string): Howl;
loop(): boolean;
loop(loop: boolean): Howl;