-
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): Migrate utils/page-data to TypeScript #23991
Conversation
@blainekasten I had to open a new PR because of the deletion of the fork few days ago 🙄 Sorry for that. |
07dccdd
to
b2696ca
Compare
This commit migrates the existing `src/utils/page-data.ts` file to TypeScript by trying to stick as close as possible to the original JavaScript file. To take advantage of existing Redux typings, I tried to extend the typings from the `IGatsbyPage` interface describing page data.
b2696ca
to
cdde8c8
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 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! 💜
* chore(gatsby): Migrate utils/page-data to TypeScript This commit migrates the existing `src/utils/page-data.ts` file to TypeScript by trying to stick as close as possible to the original JavaScript file. To take advantage of existing Redux typings, I tried to extend the typings from the `IGatsbyPage` interface describing page data. * Improve function naming * convert to functions * update yarn.lock * skip typechecking gatsby-admin Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
Description
This commit migrates the existing
src/utils/page-data.ts
file to TypeScript by trying to stick as close as possible to the original JavaScript file.To take advantage of existing Redux typings, I tried to extend the typings from the
IGatsbyPage
interface describing page data.Related Issues
Related to #21995