mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +00:00
29 lines
711 B
TypeScript
29 lines
711 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module 'qrcode-generator' {
|
|
interface QrCode {
|
|
addData(data: string): void;
|
|
make(): void;
|
|
createSvgTag(options?: { scalable?: boolean; margin?: number }): string;
|
|
}
|
|
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;
|
|
}
|
|
|
|
declare const __NODEWARDEN_DEMO__: boolean;
|