Installation
npm install --save @types/jsbarcode
Summary
This package contains type definitions for jsbarcode (https://github.com/lindell/JsBarcode).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsbarcode.
declare namespace JsBarcode {
function getModule(name: string): () => void;
interface JsBarcodeOptions {
format: string;
width?: number | undefined;
height?: number | undefined;
displayValue?: boolean | undefined;
text?: string | undefined;
fontOptions?: string | undefined;
font?: string | undefined;
textAlign?: string | undefined;
textPosition?: string | undefined;
textMargin?: number | undefined;
fontSize?: number | undefined;
background?: string | undefined;
lineColor?: string | undefined;
margin?: number | undefined;
marginTop?: number | undefined;
marginBottom?: number | undefined;
marginLeft?: number | undefined;
marginRight?: number | undefined;
flat?: boolean | undefined;
valid?(valid: boolean): void;
}
}
declare function JsBarcode(
svg: string | HTMLCanvasElement | HTMLImageElement | SVGElement,
barcodeText: string,
barcodeOptions?: JsBarcode.JsBarcodeOptions,
): void;
export = JsBarcode;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
Credits
These definitions were written by Domien Bakker.