Skip to content

Commit 8e45eb3

Browse files
authored
fix: canvas options to extend correct parent type (#15)
QRCodeCanvas extends AbstractQRCodeWithImage and it should be typed with AbstractQRCodeWithImage's options as parent type.
1 parent 8dd8f77 commit 8e45eb3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/QRCodeCanvas.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type { QRCodeDataType } from './QRCodeRaw';
2+
import ColorUtils from './utils/ColorUtils';
13
import type {
4+
ImageConfigType,
25
OptionsType as ParentOptionsType,
3-
QRCodeDataType,
4-
} from './QRCodeRaw';
5-
import ColorUtils from './utils/ColorUtils';
6-
import type { ImageConfigType } from './AbstractQRCodeWithImage';
6+
} from './AbstractQRCodeWithImage';
77
import AbstractQRCodeWithImage from './AbstractQRCodeWithImage';
88
import { loadImage } from './loader/ImageLoader';
99

0 commit comments

Comments
 (0)