-
Notifications
You must be signed in to change notification settings - Fork 30
refactor: abstraction for features #558
base: main
Are you sure you want to change the base?
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 a lot!
My apologies for the conflict after #505, I'll approve this as soon as it's resolved.
@mkobayashime |
@yudukikun5120 |
src/types/feature.ts
Outdated
|
||
type Feature = (typeof Feature)[number] | ||
|
||
const isFeature = (key: string): key is Feature => key in Feature |
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.
I'm afraid in
operator doesn't work as expected here as documented in MDN. It should be Array.prototype.includes
instead.
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.
Thank you for your suggestion, but I'd use the find
method instead since I somehow came across the TSC error.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
according to: selector-class-pattern
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore: issue template for feature proposal * fix: remove checkboxes * chore: alternatives are not required
…om ESLint to Lint
4f23a05
to
111d61f
Compare
Code Climate has analyzed commit 7f51635 and detected 0 issues on this pull request. View more on Code Climate. |
@mkobayashime It is too hard to modify the past commit messages. I think we should skip the commitlint errors in this PR. |
This PR enables TSC to detect missing implementation for features and relates to #505 in bringing easiness for listing features.