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

0.1.0 • Public • Published

Installation

npm install --save @types/zpl-image

Summary

This package contains type definitions for zpl-image (https://github.com/metafloor/zpl-image).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/zpl-image.

index.d.ts

/// <reference types="node" />

export interface Options {
    /** @default 50 */
    black?: number | undefined;
    /** @default N */
    rotate?: "R" | "B" | "L" | "I" | "N" | undefined;
    /** @default true */
    notrim?: boolean | undefined;
}

export interface AcsImage {
    length: number;
    rowlen: number;
    width: number;
    height: number;
    acs: string;
}

export function rgbaToACS(rgba: Buffer, width: number, options?: Options): AcsImage;

export interface ZplImage {
    length: number;
    rowlen: number;
    width: number;
    height: number;
    z64: string;
}

export function rgbaToZ64(rgba: Buffer, width: number, options?: Options): ZplImage;

Additional Details

  • Last updated: Mon, 26 Feb 2024 18:07:24 GMT
  • Dependencies: @types/node

Credits

These definitions were written by James Lismore.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/zpl-image

Weekly Downloads

303

Version

0.1.0

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • types