1.1.2 • Published 6 months ago

@types/heic-decode v1.1.2

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

Installation

npm install --save @types/heic-decode

Summary

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

Details

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

index.d.ts

// Type definitions for heic-decode 1.1
// Project: https://github.com/catdad-experiments/heic-decode
// Definitions by: hieyou1 <https://github.com/hieyou1>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface HasBuffer {
    buffer: ArrayBufferLike;
}

interface DecodedImage {
    width: number;
    height: number;
    data: ArrayBuffer;
}

interface Decodable {
    decode(): Promise<DecodedImage>;
}

/**
 * @async
 */
declare function decode(bufobj: HasBuffer): Promise<DecodedImage>;

declare namespace decode {
    /**
     * @async
     */
    function all(bufobj: HasBuffer): Promise<Decodable[]>;
}

export = decode;

Additional Details

  • Last updated: Fri, 22 Apr 2022 11:31:35 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by hieyou1.

1.1.1

7 months ago

1.1.2

6 months ago

1.1.0

2 years ago