@types/parse-dds
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/parse-dds

Summary

This package contains type definitions for parse-dds (https://github.com/Jam3/parse-dds).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-dds.

index.d.ts

interface DdsInfo {
    // width, height
    shape: [number, number];
    images: Array<{
        // byte offset
        offset: number;
        // by length
        length: number;
        // width, height
        shape: [number, number];
    }>;
    format: "dxt1" | "dxt3" | "dxt5" | "rgba32f";
    flags: number;
    cubemap: boolean;
}

declare function parse(buffer: ArrayBuffer): DdsInfo;

/**
 * Parse a buffer with dds and returns info about it
 */
export = parse;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by 4eb0da.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/parse-dds

Weekly Downloads

285

Version

1.0.3

License

MIT

Unpacked Size

3.46 kB

Total Files

5

Last publish

Collaborators

  • types