mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +00:00
feat: add TOTP QR code scanning functionality and related UI components
This commit is contained in:
Vendored
+16
@@ -8,3 +8,19 @@ declare module 'qrcode-generator' {
|
||||
}
|
||||
export default function qrcode(typeNumber: number, errorCorrectionLevel: 'L' | 'M' | 'Q' | 'H'): QrCode;
|
||||
}
|
||||
|
||||
interface BarcodeDetectorResult {
|
||||
rawValue: string;
|
||||
}
|
||||
|
||||
interface BarcodeDetector {
|
||||
detect(image: ImageBitmapSource): Promise<BarcodeDetectorResult[]>;
|
||||
}
|
||||
|
||||
interface BarcodeDetectorConstructor {
|
||||
new (options?: { formats?: string[] }): BarcodeDetector;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
BarcodeDetector?: BarcodeDetectorConstructor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user