Import apps/android/src/types/qrcode-generator.d.ts

This commit is contained in:
QQ 2026-11-14 14:20:13 +08:00
parent 91c7d276d4
commit 6142deb3ca
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
declare module 'qrcode-generator' {
interface QrCode {
addData(data: string): void
make(): void
getModuleCount(): number
isDark(row: number, column: number): boolean
}
type ErrorCorrectionLevel = 'L' | 'M' | 'Q' | 'H'
function qrcode(typeNumber: number, errorCorrectionLevel: ErrorCorrectionLevel): QrCode
export default qrcode
}