Closed pdupavillon closed 6 years ago
@SimonSchick, Thanks a lot for your feedbacks !
I think you misunderstood my comment about export
, I didn't mean you should use module.exports
but write export class Recaptcha
Eg. the commonjs equivalent: exports.Recaptcha = Recaptcha
I think I misunderstood the concept behind this :
Why should I use exports.Recaptcha = Rechaptcha
instead of exports Recaptcha
?
and why exports
instead of module.exports
? (aren't they almost equivalent ?)
Thanks for your explanations
As described in issue #13 the actual express-recaptcha, returns an instance instead of a class, which is hard to define in TS