@types/react-sound
TypeScript icon, indicating that this package has built-in type declarations

1.2.6 • Public • Published

Installation

npm install --save @types/react-sound

Summary

This package contains type definitions for react-sound (https://github.com/leoasis/react-sound).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-sound.

index.d.ts

import * as React from "react";

export interface ReactSoundProps {
    url: string;
    playStatus: "PLAYING" | "STOPPED" | "PAUSED";
    playFromPosition?: number | undefined;
    position?: number | undefined;
    volume?: number | undefined;
    playbackRate?: number | undefined;
    autoLoad?: boolean | undefined;
    loop?: boolean | undefined;
    onError?: (() => void) | undefined;
    onLoading?: (() => void) | undefined;
    onLoad?: (() => void) | undefined;
    onPlaying?: (() => void) | undefined;
    onPause?: (() => void) | undefined;
    onResume?: (() => void) | undefined;
    onStop?: (() => void) | undefined;
    onFinishedPlaying?: (() => void) | undefined;
    onBufferChange?: (() => void) | undefined;
}

declare const ReactSound: React.ComponentClass<ReactSoundProps>;

export default ReactSound;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Konstantin Lebedev, and Paito Anderson.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-sound

Weekly Downloads

1,743

Version

1.2.6

License

MIT

Unpacked Size

4.53 kB

Total Files

5

Last publish

Collaborators

  • types