Installation
npm install --save @types/qr-image
Summary
This package contains type definitions for qr-image (https://github.com/alexeyten/qr-image).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qr-image.
export type ec_level = "L" | "M" | "Q" | "H";
export type image_type = "png" | "svg" | "pdf" | "eps";
export interface Bitmap {
size: number;
data: Buffer;
}
export interface SvgObject {
size: number;
path: string;
}
export interface Options {
ec_level?: ec_level | undefined;
type?: image_type | undefined;
size?: number | undefined;
margin?: number | undefined;
parse_url?: boolean | undefined;
customize?: ((bitmap: Bitmap) => void) | undefined;
}
export function image(text: string, level?: ec_level): NodeJS.ReadableStream;
export function image(text: string, options?: Options): NodeJS.ReadableStream;
export function imageSync(text: string, level?: ec_level): Buffer;
export function imageSync(text: string, options?: Options): string | Buffer;
export function svgObject(text: string, level?: ec_level): SvgObject;
export function svgObject(text: string, options?: Options): SvgObject;
export function matrix(text: string, level?: ec_level): any[][];
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by taoqf.