Skip to content

Conversation

chrisq21
Copy link
Contributor

Description

This PR adds the serverDataStatus property to the ISSRData type in page-ssr/index.d.ts.

I'm currently working on a PR in the netlify-plugin-gatsby repo that allows the use of custom status codes in SSR & DSG responses. Doing so requires accessing the serverDataStatus property on the ISSRData object.

Related Issues

  • None

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 27, 2022
@LekoArts LekoArts changed the title Expose serverDataStatus field in SSR type declaration file chore(gatsby): Expose serverDataStatus field in SSR type declaration file May 5, 2022
@LekoArts LekoArts added topic: TypeScript Issues and PRs related to TS in general, public typings or gatsby-plugin-typescript and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 5, 2022
Copy link
Contributor

@LekoArts LekoArts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note that this can change at any time though

@LekoArts LekoArts merged commit 39e9840 into gatsbyjs:master May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: TypeScript Issues and PRs related to TS in general, public typings or gatsby-plugin-typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants