deepsite / types /preview-error.ts
victor's picture
victor HF Staff
feat: add automatic error detection and fixing for preview
473668f
raw
history blame
456 Bytes
export interface PreviewError {
type:
| "runtime-error"
| "unhandled-promise"
| "console-error"
| "resource-error"
| "react-error";
message: string;
stack?: string;
lineNumber?: number;
columnNumber?: number;
fileName?: string;
timestamp: string;
errorType?: string;
// For resource errors
tagName?: string;
src?: string;
// For React errors
reactVersion?: string;
// For console errors
args?: string[];
}