Fix type generation for namespaced types

Fixes #147
This commit is contained in:
Daniel
2022-02-21 14:36:54 +01:00
parent 78e65c6b42
commit 9a70dd984c
4 changed files with 7 additions and 5 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -1,4 +1,4 @@
export default class QrScanner {
class QrScanner {
static readonly DEFAULT_CANVAS_SIZE = 400;
static readonly NO_QR_CODE_FOUND = 'No QR code found';
private static _disableBarcodeDetector = false;
@@ -1060,3 +1060,5 @@ declare class BarcodeDetector {
static getSupportedFormats(): Promise<string[]>;
detect(image: ImageBitmapSource): Promise<Array<{ rawValue: string, cornerPoints: QrScanner.Point[] }>>;
}
export default QrScanner;
+2 -2
View File
@@ -1,5 +1,5 @@
/// <reference types="offscreencanvas" />
export default class QrScanner {
declare class QrScanner {
static readonly DEFAULT_CANVAS_SIZE = 400;
static readonly NO_QR_CODE_FOUND = "No QR code found";
private static _disableBarcodeDetector;
@@ -120,4 +120,4 @@ declare class BarcodeDetector {
cornerPoints: QrScanner.Point[];
}>>;
}
export {};
export default QrScanner;