1
2
3
4
5
6
7
8
9
10
11
12
| import type { RenderQrCodeParams } from './typing';
|
| import { renderQrCode } from './drawCanvas';
| import { drawLogo } from './drawLogo';
|
| export const toCanvas = (options: RenderQrCodeParams) => {
| return renderQrCode(options)
| .then(() => {
| return options;
| })
| .then(drawLogo) as Promise<string>;
| };
|
|