derhuerst / sepa-payment-qr-code

Generate a QR code to initiate a SEPA bank transfer.
https://github.com/derhuerst/sepa-payment-qr-code#sepa-payment-qr-code
ISC License
31 stars 7 forks source link

TypeScript support #6

Open mariansam opened 3 weeks ago

mariansam commented 3 weeks ago

Hi, thanks for your cool library :) it would be even better with TypeScript support or JSDoc type annotations + DefinitelyTyped @types/ package. Is this in the roadmap? Do you need any help with it?

derhuerst commented 3 weeks ago

I don't mind a typings file in this project, as the API will likely remain stable for the time being.

A definitely-typed/ package would of course work too!

mariansam commented 2 weeks ago

Would you better like a .d.ts file or rewriting the project to .ts files (which would also probably mean rewriting it to ESM modules instead of CJS)? I think both would be pretty easy, I could do it at some point.

derhuerst commented 2 weeks ago

Would you better like a .d.ts file or rewriting the project to .ts files […]?

The former: .d.ts.