Skip to content

Commit

Permalink
fix(gatsby): add generic type to GatsbyFunctionResponse (#31182)
Browse files Browse the repository at this point in the history
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
junaidilyas and gatsbybot committed May 3, 2021
1 parent 313f432 commit 4b9d0d4
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
Expand Up @@ -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
*/
Expand Down

0 comments on commit 4b9d0d4

Please sign in to comment.