1.2.6 • Published 6 months ago

@types/react-sound v1.2.6

Weekly downloads
1,139
License
MIT
Repository
github
Last release
6 months ago

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

// 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 | 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: Thu, 08 Jul 2021 22:41:33 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

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

1.2.6

6 months ago

1.2.5

7 months ago

1.2.4

8 months ago

1.2.3

3 years ago

1.2.2

4 years ago

1.2.1

6 years ago

1.2.0

6 years ago