@xtrek/ts-migrate-plugins
Version:
Set of codemods, which are doing transformation of js/jsx to ts/tsx
12 lines (11 loc) • 441 B
TypeScript
import { Plugin } from 'ts-migrate-server';
import { AnyAliasOptions, AnyFunctionAliasOptions } from '../utils/validateOptions';
declare type Options = {
shouldUpdateAirbnbImports?: boolean;
shouldKeepPropTypes?: boolean;
} & AnyAliasOptions & AnyFunctionAliasOptions;
export declare type PropTypesIdentifierMap = {
[property: string]: string;
};
declare const reactPropsPlugin: Plugin<Options>;
export default reactPropsPlugin;