@zxing/library
Version:
TypeScript port of ZXing multi-format 1D/2D barcode image processing library.
29 lines (28 loc) • 594 B
TypeScript
/**
* Java Formatter class polyfill that works in the JS way.
*/
export default class Formatter {
/**
* The internal formatted value.
*/
buffer: string;
constructor();
/**
*
* @see https://stackoverflow.com/a/13439711/4367683
*
* @param str
* @param arr
*/
private static form;
/**
*
* @param append The new string to append.
* @param args Argumets values to be formated.
*/
format(append: string, ...args: any): void;
/**
* Returns the Formatter string value.
*/
toString(): string;
}