0.7.3 • Published 6 months ago

@types/audiosprite v0.7.3

Weekly downloads
57
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/audiosprite

Summary

This package contains type definitions for audiosprite (https://github.com/tonistiigi/audiosprite).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/audiosprite.

index.d.ts

// Type definitions for audiosprite 0.7
// Project: https://github.com/tonistiigi/audiosprite
// Definitions by: Gyusun Yeom <https://github.com/Perlmint>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export as namespace audiosprite;
export = audiosprite;

declare function audiosprite(files: string[], callback: (error: Error, obj: audiosprite.Result) => void): void;
declare function audiosprite(files: string[], option: audiosprite.Option, callback: (error: Error, obj: audiosprite.Result) => void): void;

declare namespace audiosprite {
    type ExportType = "jukebox" | "howler" | "createjs" | null;
    type LogLevel = "debug" | "info" | "notice" | "warning" | "error";
    type VBR = -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
    type VBR_Vorbis = VBR | 10;
    type Channels = 1 | 2;
    interface Option {
        output?: string | undefined;
        path?: string | undefined;
        export?: string | undefined;
        format?: ExportType | undefined;
        log?: LogLevel | undefined;
        autoplay?: string | null | undefined;
        loop?: string[] | undefined;
        silence?: number | undefined;
        gap?: number | undefined;
        minlength?: number | undefined;
        bitrate?: number | undefined;
        vbr?: VBR | undefined;
        'vbr:vorbis'?: VBR_Vorbis | undefined;
        samplerate?: number | undefined;
        channels?: Channels | undefined;
        rawparts?: string | undefined;
        logger?: Logger | undefined;
        ignorerounding?: boolean | undefined;
    }

    interface Logger {
        debug?(...log: any[]): void;
        info?(...log: any[]): void;
        log?(...log: any[]): void;
    }

    interface Result {
        resources: string[];
        spritemap: {
            [key: string]: {
                start: number;
                end: number;
                loop: boolean;
            }
        };
        autoplay?: string | undefined;
    }
}

Additional Details

  • Last updated: Thu, 07 Apr 2022 00:01:44 GMT
  • Dependencies: none
  • Global values: audiosprite

Credits

These definitions were written by Gyusun Yeom.

0.7.2

7 months ago

0.7.1

8 months ago

0.7.3

6 months ago

0.7.0

2 years ago

0.6.1

3 years ago

0.6.0

7 years ago