Commit a971d295 authored by Jesse Hoffman's avatar Jesse Hoffman Committed by Tim Neutkens

Remove jsonPageRes Documentation Reference (#6440)

Next.js no longer uses `jsonPageRes`.

This PR removes it from `en-us` and `zh-cn` documentation (formatting picked up some changes on zh-cn readme).

Also updated the Flow type def for `getInitialProps`.

Resolves #6363  
parent 5514949d
This diff is collapsed.
...@@ -29,7 +29,7 @@ declare module "next/document" { ...@@ -29,7 +29,7 @@ declare module "next/document" {
declare export var Main: Class<React$Component<any, any>>; declare export var Main: Class<React$Component<any, any>>;
declare export var NextScript: Class<React$Component<any, any>>; declare export var NextScript: Class<React$Component<any, any>>;
declare export default Class<React$Component<any, any>> & { declare export default Class<React$Component<any, any>> & {
getInitialProps: (ctx: {pathname: string, query: any, req?: any, res?: any, jsonPageRes?: any, err?: any}) => Promise<any>; getInitialProps: (ctx: {pathname: string, query: any, req?: any, res?: any, err?: any}) => Promise<any>;
renderPage(cb: Function): void; renderPage(cb: Function): void;
}; };
} }
...@@ -385,7 +385,6 @@ export default Page ...@@ -385,7 +385,6 @@ export default Page
- `asPath` - `String` of the actual path (including the query) shows in the browser - `asPath` - `String` of the actual path (including the query) shows in the browser
- `req` - HTTP request object (server only) - `req` - HTTP request object (server only)
- `res` - HTTP response object (server only) - `res` - HTTP response object (server only)
- `jsonPageRes` - [Fetch Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) object (client only)
- `err` - Error object if any error is encountered during the rendering - `err` - Error object if any error is encountered during the rendering
### Routing ### Routing
......
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