gather-ts
Version:
A powerful code analysis and packaging tool designed for creating AI-friendly code representations for javascript and typescript projects.
32 lines (31 loc) • 962 B
TypeScript
export interface IBaseError extends Error {
readonly details?: IErrorDetails;
}
export interface IErrorDetails {
[key: string]: unknown;
}
export interface IValidationErrorDetails extends IErrorDetails {
filePath?: string;
providedValue?: unknown;
expectedType?: string;
allowedValues?: unknown[];
}
export interface IFileSystemErrorDetails extends IErrorDetails {
filePath: string;
operation: "read" | "write" | "delete" | "create";
}
export interface IConfigurationErrorDetails extends IErrorDetails {
configPath?: string;
invalidFields?: string[];
providedValue?: unknown;
allowedValues?: unknown[];
}
export interface ITokenizationErrorDetails extends IErrorDetails {
filePath: string;
operation: "encode" | "decode" | "initialize" | "cleanup";
model?: string;
}
export interface IDependencyAnalysisErrorDetails extends IErrorDetails {
entryPoint?: string;
failedDependencies?: string[];
}