@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
10 lines (9 loc) • 412 B
TypeScript
import { type ComponentClass, type FC, type JSX } from 'react';
import { IEditor } from "../../types";
type ErrorBoundaryProps = {
children: JSX.Element;
onError: (error: Error) => void;
};
export type ErrorBoundaryType = ComponentClass<ErrorBoundaryProps> | FC<ErrorBoundaryProps>;
export declare function useDecorators(editor: IEditor, ErrorBoundary: ErrorBoundaryType): Array<JSX.Element>;
export {};