Unverified Commit ffdb9f84 authored by Sean Parmelee's avatar Sean Parmelee Committed by GitHub

fix type definition for defaultGetInitialProps (#36252)

## Bug

- [X] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

This PR fixes #36247 by adding the optional `options` object to the type definition for `DocumentContext.defaultGetInitialProps`. 
parent deb82802
...@@ -178,7 +178,10 @@ export type AppPropsType< ...@@ -178,7 +178,10 @@ export type AppPropsType<
export type DocumentContext = NextPageContext & { export type DocumentContext = NextPageContext & {
renderPage: RenderPage renderPage: RenderPage
defaultGetInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps> defaultGetInitialProps(
ctx: DocumentContext,
options?: { nonce?: string }
): Promise<DocumentInitialProps>
} }
export type DocumentInitialProps = RenderPageResult & { export type DocumentInitialProps = RenderPageResult & {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment