UNPKG

@xtrek/ts-migrate-plugins

Version:

Set of codemods, which are doing transformation of js/jsx to ts/tsx

10 lines (9 loc) 421 B
import { Plugin } from 'ts-migrate-server'; import { AnyAliasOptions, AnyFunctionAliasOptions } from '../utils/validateOptions'; declare type Options = AnyAliasOptions & AnyFunctionAliasOptions; /** * first we are checking if we have imports of `prop-types` or `react-validators` * only if we have them - this file might have shapes */ declare const reactShapePlugin: Plugin<Options>; export default reactShapePlugin;