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 committed May 7, 2021
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
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 942ddba

Please sign in to comment.