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; name: string; priority: number; }; export type SolutionError = Error & { hint?: Solution; };