🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@types/react-howler

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-howler

TypeScript definitions for react-howler

Source
npmnpm
Version
5.2.2
Version published
Weekly downloads
4K
-25.38%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/react-howler

Summary

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

Details

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

index.d.ts

import { Howl, HowlCallback, HowlErrorCallback, HowlOptions } from "howler";
import * as React from "react";

declare enum HOWLER_STATE {
    UNLOADED = "unloaded",
    LOADING = "loading",
    LOADED = "loaded",
}

export { HowlCallback, HowlErrorCallback };

export interface PropTypes {
    src: HowlOptions["src"];
    preload?: boolean | undefined;
    playing?: boolean | undefined;
    loop?: HowlOptions["loop"];
    mute?: HowlOptions["mute"];
    volume?: HowlOptions["volume"];
    rate?: HowlOptions["rate"];
    html5?: HowlOptions["html5"];
    format?: HowlOptions["format"];
    xhr?: HowlOptions["xhr"] | undefined;
    onPlay?: HowlCallback | undefined;
    onPause?: HowlCallback | undefined;
    onVolume?: HowlCallback | undefined;
    onStop?: HowlCallback | undefined;
    onLoad?: HowlCallback | undefined;
    onLoadError?: HowlErrorCallback | undefined;
    onEnd?: HowlCallback | undefined;
    onSeek?: HowlCallback | undefined;
    onPlayError?: HowlErrorCallback | undefined;
}

declare class ReactHowler extends React.Component<PropTypes> {
    stop(id?: number): void;

    duration(id?: number): number;

    seek(time?: number): number;

    howlerState(): HOWLER_STATE;

    howler: Howl;
}

export default ReactHowler;

Additional Details

  • Last updated: Wed, 18 Oct 2023 11:45:05 GMT
  • Dependencies: @types/howler, @types/react

Credits

These definitions were written by Danijel Maksimovic.

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts