mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 16:27:06 +00:00
* add types of upng-js * Update index.d.ts * Update upng-js-tests.ts * Update index.d.ts * Update index.d.ts
21 lines
592 B
TypeScript
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;
|
|
}
|