gather-ts
Version:
A powerful code analysis and packaging tool designed for creating AI-friendly code representations for javascript and typescript projects.
20 lines (19 loc) • 531 B
TypeScript
import { IErrorDetails } from "@/types/errors";
export interface IErrorClassification {
type: string;
severity: "error" | "warning" | "info";
message: string;
details?: IErrorDetails;
stackTrace?: string;
}
export interface IErrorTransformation {
condition: (error: Error) => boolean;
transform: (error: Error) => Error;
}
export interface IErrorMetrics {
totalErrors: number;
errorsByType: Record<string, number>;
totalWarnings: number;
startTime: number;
lastErrorTime?: number;
}