This commit is contained in:
爱喝水的木子
2026-03-13 17:13:04 +08:00
parent fc9bc39afa
commit 02a06ba888
7 changed files with 413 additions and 15 deletions

15
types/qrcode.d.ts vendored Normal file
View File

@@ -0,0 +1,15 @@
declare module "qrcode" {
export type QRCodeToBufferOptions = {
width?: number;
margin?: number;
errorCorrectionLevel?: "L" | "M" | "Q" | "H";
};
export function toBuffer(text: string, options?: QRCodeToBufferOptions): Promise<Buffer>;
const QRCode: {
toBuffer: typeof toBuffer;
};
export default QRCode;
}