-
Notifications
You must be signed in to change notification settings - Fork 640
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
refactor(yaml): replace Type
class with interface
#5262
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5262 +/- ##
==========================================
- Coverage 95.74% 95.72% -0.03%
==========================================
Files 458 457 -1
Lines 37973 37955 -18
Branches 5562 5561 -1
==========================================
- Hits 36356 36331 -25
- Misses 1576 1583 +7
Partials 41 41 ☔ View full report in Codecov by Sentry. |
Type
class with interface
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 like this and was going to do this myself at some point. LGTM.
I'm not in favor of this change. There are many changes in optionality of fields. I'm very unsure this doesn't introduce any bugs. |
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 think this change is an improvement in design. It also seems safe enough to do.
However, I understand Yoshiya's sentiment. In #5239, I made changes which I thought were harmless, as tests passed. But rather testing is not yet at a level for this package to instil such confidence.
@kt3k, if you feel strongly about this, let's close this for now and revisit once testing is at an adequate level.
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.
LGTM
* initial commit * refactor(yaml): inline error functions as methods (#5273) * Update _loader.ts Co-authored-by: Yoshiya Hinosawa <[email protected]> * refactor(yaml): simplify isWhiteSpaceOrEOL (#5271) * refactor(yaml): replace `Type` class with interface (#5262) * update --------- Co-authored-by: Yoshiya Hinosawa <[email protected]>
Type
class and replaced with aType
interface.