-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[typescript-migration] fix types & imports #4747
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.
|
If #4743 is merged first, an additional fix will be made. |
4efe60e
to
286ff81
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4747 +/- ##
=======================================
Coverage 96.35% 96.35%
=======================================
Files 8 8
Lines 959 959
Branches 435 442 +7
=======================================
Hits 924 924
Misses 35 35 ☔ View full report in Codecov by Sentry. |
286ff81
to
956f3bc
Compare
956f3bc
to
20d147b
Compare
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.
✅ This pull request was sent to the PullRequest network for review. Expert reviewers are now being matched to your request based on the code's requirements. Stay tuned!
What to expect from this code review:
- Comments posted to any areas of potential concern or improvement.
- Detailed feedback or actions needed to resolve issues that are found.
- Turnaround times vary, but we aim to be swift.
@yuki0410-dev you can click here to see the review status or cancel the code review job.
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.
PullRequest Breakdown
Reviewable lines of change
+ 278
- 237
89% TSX
10% TypeScript
1% JavaScript (tests)
Type of change
Fix - These changes are likely to be fixing a bug or issue.
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.
Just one nit about possible extraneous annotations. Other than that, the PR looks good! All annotations seem correct, so my nit is certainly not blocking.
Reviewed with ❤️ by PullRequest
const maxYear = this.props.maxDate ? getYear(this.props.maxDate) : 2100; | ||
|
||
const options = []; | ||
const minYear: number = this.props.minDate |
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.
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 the review.
I thought it would be better to state explicitly here that I want to get a NUMBER (without resorting to inference) from the results of multiple conditional branches.
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 looked over this pull request thoroughly, but it was difficult to find any problems with it. Nice work! I appreciated the attention to detail and simplification of imports and code throughout the changes.
Reviewed with ❤️ by PullRequest
@@ -55,11 +55,16 @@ import { isWithinInterval } from "date-fns/isWithinInterval"; | |||
import { toDate } from "date-fns/toDate"; | |||
import { parse } from "date-fns/parse"; | |||
import { parseISO } from "date-fns/parseISO"; | |||
import { type Locale, addSeconds, Day } from "date-fns"; | |||
import { type Locale as DateFnsLocale, addSeconds, Day } from "date-fns"; |
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.
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.
PullRequest reviewed the updates made to #4747 since our last review was posted. This includes comments that have been posted by non-PullRequest reviewers. No further issues were found.
Reviewed by:
Looks like there're some conflicts on this one. |
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.
PullRequest reviewed the updates made to #4747 since our last review was posted. This includes comments that have been posted by non-PullRequest reviewers. No further issues were found.
Reviewed by:
20d147b
to
d897045
Compare
@martijnrusschen |
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.
|
d897045
to
4b38122
Compare
@martijnrusschen |
name: fix types & imports
Description
Linked issue: #4700
Changes fix types & imports
Contribution checklist