-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(gatsby): convert jobs to typescript #24209
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.
lgtm, except for the function->arrow change. Please undo that and we can merge this :) Thanks!
@@ -29,16 +30,15 @@ describe(`Job actions/reducer`, () => { | |||
}) | |||
|
|||
it(`throws an error if an ID isn't provided`, done => { | |||
function runReducer() { |
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.
Can you please undo the function->arrow changes? (Also below) Or explain why you're doing them?
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.
Since the this
keyword is not used, I thought about removing them.
You are correct that there is no benefit to this change, I'm removing them 👍 .
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.
Nice! Thank you 💜
Convert
src/redux/reducers/jobs.ts
and relative test file to TypeScript.Related Issues
#21995