The DocumentContext.defaultGetInitialProps type is missing the optional options
argument
#36247
Closed
1 task done
Labels
bug
Issue was opened via the bug report template.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
The type definition for
DocumentContext.defaultGetInitialProps
is missing the optionaloptions
argument so aType error: Expected 1 arguments, but got 2.
error appears if you try to do something likeas demonstrated in the styled-jsx-with-csp example.
Expected Behavior
There should not be a TypeScript error when passing in an options object to
defaultGetInitialProps
.To Reproduce
npm install
and thennpm run build
The text was updated successfully, but these errors were encountered: