/** * For some reason ts-morph.d.ts doesn't export these types even though they are actually * exported by the runtime library, so we are declaring them here * * @version 23.0.0 */ declare module 'ts-morph' { abstract class BaseError extends Error { protected constructor() } class PathNotFoundError extends BaseError { readonly path: string constructor(path: string, prefix?: string) readonly code: 'ENOENT' } class FileNotFoundError extends Error { constructor(filePath: string) } class DirectoryNotFoundError extends Error { constructor(dirPath: string) } } // eslint-disable-next-line no-restricted-imports export * as ts from 'ts-morph' // eslint-disable-next-line no-restricted-imports export { ts as tsc } from 'ts-morph'