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

1.2.3 • Public • Published

Installation

npm install --save @types/heic-convert

Summary

This package contains type definitions for heic-convert (https://github.com/catdad-experiments/heic-convert).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/heic-convert.

index.d.ts

interface ConversionOptions {
    /**
     * the HEIC file buffer
     */
    buffer: ArrayBufferLike;
    /**
     * output format
     */
    format: "JPEG" | "PNG";
    /**
     * the JPEG compression quality, between 0 and 1
     * @default 0.92
     */
    quality?: number;
}

interface Convertible {
    convert(): Promise<ArrayBuffer>;
}

/** @async */
declare function convert(image: ConversionOptions): Promise<ArrayBuffer>;
declare namespace convert {
    /** @async */
    function all(image: ConversionOptions): Promise<Convertible[]>;
}

export = convert;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Tregan.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/heic-convert

Weekly Downloads

18,391

Version

1.2.3

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • types