UNPKG

584 BTypeScriptView Raw
1import React from 'react';
2import { NextPageContext } from '../next-server/lib/utils';
3export declare type ErrorProps = {
4 statusCode: number;
5 title?: string;
6};
7declare function _getInitialProps({ res, err, }: NextPageContext): Promise<ErrorProps> | ErrorProps;
8/**
9 * `Error` component used for handling errors.
10 */
11export default class Error<P = {}> extends React.Component<P & ErrorProps> {
12 static displayName: string;
13 static getInitialProps: typeof _getInitialProps;
14 static origGetInitialProps: typeof _getInitialProps;
15 render(): JSX.Element;
16}
17export {};