Return type of execute() is not a Promise
alreece45 opened this issue · 1 comments
alreece45 commented
Describe the bug
The return type of grecaptcha.execute() is not a Promise, but a PromiseLike (it only has a then function).
To Reproduce
Steps to reproduce the behavior:
- Run
console.log(grecaptcha.execute(siteKeyV3, { action })
- See an object with only
then()
returned
Expected behavior
Represent actual return type
antokara commented
thank you @alreece45 for improving the types as well!
please considering giving this project a star, if you have found it useful.