scholtz / qrcode-vue3

MIT License
86 stars 32 forks source link

"fix: tsc error while checking" #27

Closed reiyanyan closed 1 year ago

reiyanyan commented 1 year ago

vue-tsc --noEmit will produce this error

node_modules/qrcode-vue3/src/QRCodeVue3.vue:7:23 - Property 'onDownloadClick' does not exist on type 'Vue3Instance<{ imageUrl: string; qrCode: QRCodeStyling; }, Readonly<ExtractPropTypes<{ width: { type: NumberConstructor; default: number; }; imgclass: { type: StringConstructor; default: string; }; ... 14 more ...; downloadOptions: { ...; }; }>>, ... 4 more ..., ComponentOptionsBase<...>> & ... 5 more ... & Readonly...'.

had no other option, caused of --skipLibCheck didn't work for skipping check library