mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
372 B
TypeScript
16 lines
372 B
TypeScript
import * as UTIF from "utif";
|
|
|
|
// $ExpectType IFD[]
|
|
const IFDs = UTIF.decode(new ArrayBuffer(64));
|
|
// $ExpectType Uint8Array
|
|
const rgba = UTIF.toRGBA8(IFDs[0]);
|
|
|
|
// $ExpectType ArrayBuffer
|
|
UTIF.encodeImage(rgba, 8, 8);
|
|
// $ExpectType ArrayBuffer
|
|
UTIF.encode(IFDs);
|
|
// $ExpectType void
|
|
UTIF.decodeImage(new ArrayBuffer(64), IFDs[0]);
|
|
// $ExpectType void
|
|
UTIF.replaceIMG();
|