1.1.2 • Published 6 months ago
@types/heic-decode v1.1.2
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.