/** Custom error class to indicate a failure while parsing the tsconfig.json file. */ export class TsConfigParseError extends Error { /** * * @param {object} params - An object containing the parameters. * @param {string | undefined} params.filepath - The full path, including the filename, to the `tsconfig.json` file (optional) * @param {unknown} cause - The original error or additional information about the parsing failure. */ constructor({ filepath }: { filepath: string | undefined; }, cause: unknown); cause: unknown; }