@docusaurus/core
Version:
Easy to Maintain Open Source Documentation Websites
18 lines (17 loc) • 522 B
TypeScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { type ReactNode } from 'react';
import type { Props } from '@docusaurus/ErrorBoundary';
type State = {
error: Error | null;
};
export default class ErrorBoundary extends React.Component<Props, State> {
constructor(props: Props);
componentDidCatch(error: Error): void;
render(): ReactNode;
}
export {};