@patryk-w-bl/ts-migrate-server
Version:
A package that contains the main migration runner and spawns a TSServer process
11 lines (10 loc) • 326 B
TypeScript
import { Plugin } from '../../types';
declare type InferOptions<P> = P extends Plugin<infer O> ? O : never;
export default class MigrateConfig {
plugins: {
plugin: Plugin<unknown>;
options: unknown;
}[];
addPlugin<P extends Plugin<unknown>>(plugin: P, options: InferOptions<P>): this;
}
export {};