-
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
refactor(gatsby): convert program reducer to typescript #24941
refactor(gatsby): convert program reducer to typescript #24941
Conversation
e0a01af
to
2454aed
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.
I made a few changes to the approach, but this looks great to me, let's merge it!
Thank you so much for contributing to our TypeScript refactor! We have more work to do and we would love to have you stay involved in our transition. Please submit more PRs! 💜
Holy buckets, @tgallacher — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
* rename file to .ts ext * refactor(gatsby): conver program reducer to typescript * Update typings approach * update yarn.lock * change to use lib reporter Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
* rename file to .ts ext * refactor(gatsby): conver program reducer to typescript * Update typings approach * update yarn.lock * change to use lib reporter Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
Description
Stab at converting Gatsby program reducer to Typescript.
Notes:
There is a partial stub here (for the
reporter
node on theIProgram
initial state, as it raised a TS bug which I don't think is related to this change. Temp disabled it for now; could dig deeper if it is deemed a blocker.I think this also resolves a potential bug: The initial reducer state (at "bootstrapping") included a node in the redux state called
state
. I think this is supposed to bestatus
as per the IProgram interface.Documentation
Related Issues
#21995