-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support accepting a function in the errorMsg option #126
Conversation
This allows the error message to be evaluated at the time of failure, and potentially include details that may differ from when `waitUntil` was first called.
Hi @peburrows
|
@all-contributors please add @peburrows for ideas, code and test |
I've put up a pull request to add @peburrows! 🎉 |
Done!
I went with
I've updated the TS definitions in I also noticed |
Thank you @peburrows I'm going to review it in the next days 😊 |
Hi @peburrows
|
This is the easiest way to have TypeScript validation without writing the plugin in TypeScript (see #18), what I mean:
The solution is:
You can check it directly in VSCode what happens when the plugin is consumed uncorrectly Let me know if it's clear 😊 |
I just invited you as a collaborator, so you should have write access. |
Thanks, take a look at my commit and let me know if they work for you 😉 |
Yep, looks great. Thanks! |
Perfect, I'm going to merge it 😊 Was the explanation for the |
🎉 This PR is included in version 1.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This allows the error message to be evaluated at the time of failure (instead of at call time), so it can potentially include details that may differ from when
waitUntil
was first called. Specifically, this lets you include more detailed information in the error message about what exactly failed.