mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
33 lines
958 B
TypeScript
33 lines
958 B
TypeScript
// Type definitions for react-sound 1.2
|
|
// Project: https://github.com/leoasis/react-sound
|
|
// Definitions by: Konstantin Lebedev <https://github.com/koss-lebedev>
|
|
// Paito Anderson <https://github.com/PaitoAnderson>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from "react";
|
|
|
|
export interface ReactSoundProps {
|
|
url: string;
|
|
playStatus: 'PLAYING' | 'STOPPED' | 'PAUSED';
|
|
playFromPosition?: number;
|
|
position?: number;
|
|
volume?: number;
|
|
playbackRate?: number;
|
|
autoLoad?: boolean;
|
|
loop?: boolean;
|
|
onError?: () => void;
|
|
onLoading?: () => void;
|
|
onLoad?: () => void;
|
|
onPlaying?: () => void;
|
|
onPause?: () => void;
|
|
onResume?: () => void;
|
|
onStop?: () => void;
|
|
onFinishedPlaying?: () => void;
|
|
onBufferChange?: () => void;
|
|
}
|
|
|
|
declare const ReactSound: React.ComponentClass<ReactSoundProps>;
|
|
|
|
export default ReactSound;
|