UNPKG

taro-code

Version:

Taro.js barcode & qrcode, Image & Canvas

32 lines (31 loc) 1.01 kB
export interface QRCode { addData: (data: string) => void; isDark: (row: number, col: number) => boolean; getModuleCount: () => number; make: () => void; createTableTag: (cellSize: number, margin: number) => string; createImgTag: (cellSize: number, margin: number, size: number, black: string, white: string) => string; } /** * qrcode * @param typeNumber 1 to 40 * @param errorCorrectLevel 'L','M','Q','H' */ declare const qrcode: { (typeNumber: number, errorCorrectLevel: 'L' | 'M' | 'Q' | 'H'): QRCode; stringToBytes(s: any): any[]; /** * @param unicodeData base64 string of byte array. * [16bit Unicode],[16bit Bytes], ... * @param numChars */ createStringToBytes(unicodeData: any, numChars: any): (s: any) => any[]; }; export declare const createQrCodeImg: (text: string, options: { size?: number; typeNumber?: number; errorCorrectLevel?: 'L' | 'M' | 'Q' | 'H'; black: string; white: string; }) => string; export { qrcode };