Ben Lin
2024-05-01 4a1a5b96689ce49cba56f7b668d73ed5edc7ff2c
1
2
3
4
5
6
7
8
9
10
11
import { renderQrCode } from './drawCanvas';
import { drawLogo } from './drawLogo';
import { RenderQrCodeParams } from './typing';
 
export const toCanvas = (options: RenderQrCodeParams) => {
  return renderQrCode(options)
    .then(() => {
      return options;
    })
    .then(drawLogo) as Promise<string>;
};