DieselDepot-APP/node_modules/next/dist/pages/_error.d.ts
SJCoetz def597c157 chore: add generated build artifacts and node module type files
add all Next.js build outputs and third-party dependency type declaration files
2026-07-20 01:18:42 +02:00

18 lines
632 B
TypeScript

import React from 'react';
import type { NextPageContext } from '../shared/lib/utils';
export type ErrorProps = {
statusCode: number;
title?: string;
withDarkMode?: boolean;
};
declare function _getInitialProps({ res, err, }: NextPageContext): Promise<ErrorProps> | ErrorProps;
/**
* `Error` component used for handling errors.
*/
export default class Error<P = {}> extends React.Component<P & ErrorProps> {
static displayName: string;
static getInitialProps: typeof _getInitialProps;
static origGetInitialProps: typeof _getInitialProps;
render(): import("react/jsx-runtime").JSX.Element;
}
export {};