-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
change hashes type from any to Record<string, string> #2270
change hashes type from any to Record<string, string> #2270
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this! Would you mind adding an entry to the unreleased section of CHANGELOG.md
? Although this is a small change, it will improve types for end users so we should include it.
Should it styled as |
@davidjgoss Thanks for reviewing it, I intended to add generic type for hashes() in DataTable like following:
But it throws typescript error: I'll just do type assertion in my code which will do the same trick:
|
@unional I think they don't have any difference. I just see the original codebase is using [] for array type in other places, I just intended to keep them in the same style. |
Hi @Terence625, Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾 In return for this generous offer we hope you will:
On behalf of the Cucumber core team, |
@unional I think the |
🤔 What's changed?
⚡️ What's your motivation?
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
📋 Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.