Skip to content

Commit

Permalink
fix(gatsby): add generic type to GatsbyFunctionResponse (#31182) (#31330
Browse files Browse the repository at this point in the history
)

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
(cherry picked from commit 4b9d0d4)

Co-authored-by: Junaid Ilyas <junaidilyas1@gmail.com>
  • Loading branch information
GatsbyJS Bot and junaidilyas authored May 7, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6a6f46b commit 942ddba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/index.d.ts
Original file line number Diff line number Diff line change
@@ -1531,7 +1531,7 @@ type Send<T> = (body: T) => void
/**
* Gatsby Function route response
*/
export interface GatsbyFunctionResponse extends ServerResponse {
export interface GatsbyFunctionResponse<T = any> extends ServerResponse {
/**
* Send `any` data in response
*/

0 comments on commit 942ddba

Please sign in to comment.