Files
York Yao 04dca3a081 add types of upng-js (#23357)
* add types of upng-js

* Update index.d.ts

* Update upng-js-tests.ts

* Update index.d.ts

* Update index.d.ts
2018-02-01 19:06:22 -08:00

21 lines
592 B
TypeScript

// Type definitions for upng-js 2.1
// Project: https://github.com/photopea/UPNG.js
// Definitions by: York Yao <https://github.com/plantain-00>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function decode(buff: ArrayBuffer): PngData;
export function encode(bufs: ArrayBuffer, width: number, height: number, ps?: number, dels?: any[]): ArrayBuffer;
export function toRGBA8(out: PngData): ArrayBuffer;
export interface PngData {
width: number;
height: number;
depth: number;
ctype: any;
frames: any;
tabs: any;
data: ArrayBuffer;
}