move-prop-types
Version:
"Help quickly replace the prop type checker in older react projects to map to prop-types"
26 lines • 921 B
TypeScript
/**
* AST-based helper functions for PropTypes transformation
* This is an alternative to the regex-based helper.ts with better accuracy and reliability
*/
import type { FindMatchFunction, InstallPackageFunction, UpdateFileFunction, UpdateFolderFunction, HelpExamplesFunction } from './types.js';
/**
* Install prop-types package (same as original)
*/
export declare const installPackage: InstallPackageFunction;
/**
* Update a single file using AST transformation
*/
export declare const updateFile: UpdateFileFunction;
/**
* Update all files in a folder recursively using AST transformation
*/
export declare const updateFolder: UpdateFolderFunction;
/**
* Display help examples (same as original)
*/
export declare const helpExamples: HelpExamplesFunction;
/**
* Find matching value in array (same as original)
*/
export declare const findMatch: FindMatchFunction;
//# sourceMappingURL=ast-helper.d.ts.map