_error.d.ts 612 B

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