@visulima/error
Version:
Error with more than just a message, stacktrace parsing.
19 lines (18 loc) • 419 B
TypeScript
export type Solution = {
body: string;
header?: string;
};
export type SolutionFinderFile = {
file: string;
language?: string;
line: number;
snippet?: string | undefined;
};
export type SolutionFinder = {
handle: (error: any, file: SolutionFinderFile) => Promise<Solution | undefined>;
name: string;
priority: number;
};
export type SolutionError = Error & {
hint?: Solution;
};