kazuhikoarase / qrcode-generator

QR Code Generator implementation in JavaScript, Java and more.
https://kazuhikoarase.github.io/qrcode-generator/js/demo/
MIT License
2.1k stars 677 forks source link

import failed in TypeScript, and require is ok. #25

Closed Fukiii closed 7 years ago

Fukiii commented 7 years ago

Hi, In TypeScript file, i use import('qrcode-generator') but there is an error of 'can't find the moudle' while i change 'import' into 'require' and it works. But since we start to use TypeScript2.0, we will not use require. I think it may because there doesn't refer to the .d.ts file in the package.json. Please resolve it. Thank you!

kazuhikoarase commented 7 years ago

Hi, I have just published. Is this works fine? qrcode-generator@1.0.7

Fukiii commented 7 years ago

Oh, It works. It has been a great help. Thank you!