UNPKG

@patryk-w-bl/ts-migrate-server

Version:

A package that contains the main migration runner and spawns a TSServer process

15 lines (14 loc) 454 B
import MigrateConfig from './MigrateConfig'; import { LintConfig } from '../../types'; interface MigrateParams { rootDir: string; tsConfigDir?: string; config: MigrateConfig; sources?: string | string[]; lintConfig?: LintConfig; } export default function migrate({ rootDir, tsConfigDir, config, sources, lintConfig, }: MigrateParams): Promise<{ exitCode: number; updatedSourceFiles: Set<string>; }>; export { MigrateConfig };