Skip to content
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

Merged
merged 5 commits into from
May 19, 2020

Conversation

Kornil
Copy link
Contributor

@Kornil Kornil commented May 19, 2020

Convert src/redux/reducers/jobs.ts and relative test file to TypeScript.

Related Issues

#21995

@Kornil Kornil requested a review from a team as a code owner May 19, 2020 07:22
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 19, 2020
@pvdz pvdz removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 19, 2020
Copy link
Contributor

@pvdz pvdz left a 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() {
Copy link
Contributor

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?

Copy link
Contributor Author

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 👍 .

@Kornil Kornil requested a review from pvdz May 19, 2020 12:03
Copy link
Contributor

@pvdz pvdz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you 💜

@pvdz pvdz merged commit 1f46057 into gatsbyjs:master May 19, 2020
@Kornil Kornil deleted the typescript-gatsby-jobs-reducer branch May 19, 2020 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants