Installation
npm install --save @types/barcode
Summary
This package contains type definitions for barcode (https://github.com/samt/barcode).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/barcode.
index.d.ts
/// <reference types="node" />
interface BarcodeOptions {
data: string | number;
width: number;
height: number;
}
interface BarcodeResult {
getStream(callback: (err: NodeJS.ErrnoException, stream: NodeJS.ReadableStream) => void): void;
saveImage(outputfilePath: string, callback: (err: NodeJS.ErrnoException) => void): void;
getBase64(callback: (err: NodeJS.ErrnoException, base64String: string) => void): void;
}
declare function barcode(type: string, options: BarcodeOptions): BarcodeResult;
export = barcode;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: @types/node
Credits
These definitions were written by Pascal Vomhoff.