Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有声明文件,导致在ts文件中使用报错 #72

Open
lovelytong opened this issue Nov 20, 2020 · 2 comments
Open

没有声明文件,导致在ts文件中使用报错 #72

lovelytong opened this issue Nov 20, 2020 · 2 comments

Comments

@lovelytong
Copy link

Description

没有声明文件,导致在ts文件中使用报错

Environment

  • Wechat version: [微信小程序开发文档]
  • weapp-qrcode version: [1.0.0]

Reproduce

问题复现步骤:

  1. [第一步]
  2. [第二步]
  3. [其他步骤...]

期望的表现:

[在这里描述期望的表现]

观察到的表现:

[在这里描述观察到的表现]

屏幕截图和动态 GIF 图
image

// TODO(you): code or logs here to reproduce the problem
@abearxiong
Copy link

自己定义一个呗

@abearxiong
Copy link

abearxiong commented Dec 4, 2020

qrcode.d.ts

// declare var drawQrcode: Function;
export interface DrawQrcodeOption {
  ctx?: any;
  canvasId?: string;
  text: string;
  width?: number;
  height?: number;
  x?: number;
  y?: number;
  typeNumber?: number;
  correctLevel?: number;
  background?: string;
  foreground?: string;
}
export function drawQrcode(option: DrawQrcodeOption): any;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants