-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🏗 ♻️ Fix type errors in /build-system/tasks #33074
Conversation
3beffc2
to
280162a
Compare
@@ -241,8 +241,8 @@ const findConfigBitCommits = ( | |||
tokens.pop(); | |||
} | |||
return { | |||
hash: tokens.shift(), | |||
authorDate: tokens.shift(), | |||
hash: /** @type {string} */ (tokens.shift()), |
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.
Unlike my the other comment I left about string.split.shift this could technically be undefined but I trust that the @alanorozco understands this code better than I.
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.
Sorry, I had this missed this question!
This seems fine per format received: %h %aI %s
, though we have the conditional .pop()
above. I'd say this is good but I'll make a separate change to put up a guard before this cast.
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.
#33266 for safer parsing/testing
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 @alanorozco
eab7343
to
b982744
Compare
Hey @erwinmombay, @jridgewell! These files were changed:
Hey @rsimha! These files were changed:
Hey @alanorozco! These files were changed:
Hey @estherkim! These files were changed:
|
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.
Lots of excellent changes in this PR! Some comments below.
e773e2b
to
9740f77
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.
Yay! LGTM from me after one important change to the visual diff file (bad merge).
Merge away after that's fixed and Daniel approves.
ddf5ae5
to
99f4bea
Compare
9e3da81
to
581540e
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.
Thanks & sorry for the delay! I have a hard timing telling when something is ready for re-review.
Co-authored-by: Raghu Simha <rsimha@amp.dev>
The ongoing effort to add typing to the build-system directory has finally reached the largest directory "tasks". Due to the large size of this directory the e2e, performance, and visual-diff subdirectories have been excluded from this PR but will be fixed in another upcoming PR.
The total number of type errors within the /build-system/tasks directory was 544 which combined with the additional 6 outstanding summed to 550.
After this PR there will be a total of 281 and without the e2e, performance, and visual-diff directories the number drops to 15.
#28387