-
Couldn't load subscription status.
- Fork 10.3k
chore(gatsby): add generic to GatsbyFunctionRequest #35029
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): add generic to GatsbyFunctionRequest #35029
Conversation
…o-GatsbyFunctionRequest
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 also document this on https://www.gatsbyjs.com/docs/reference/functions/getting-started/#typescript ? Thanks!
…o-GatsbyFunctionRequest
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!
Description
Adds a generic to
GatsbyFunctionRequestfor thebodyto help more strict typescript usage easier.The generic defaults to
unknownand is also apartialof whatever is passed in to ensure that nothing explodes.Documentation
Related Issues
Address discussion #33953