move-prop-types
Version:
"Help quickly replace the prop type checker in older react projects to map to prop-types"
30 lines • 744 B
TypeScript
/**
* Type definitions for move-prop-types
*/
export interface FindMatchFunction {
(givenValue: string[], setToMatch: string[]): string;
}
export interface InstallPackageFunction {
(): Promise<void>;
}
export interface UpdateFileFunction {
(cmd: string, fileAndPath: string): Promise<void>;
}
export interface UpdateFolderFunction {
(cmd: string, folderName: string): Promise<void>;
}
export interface HelpExamplesFunction {
(): string;
}
export interface CommandOptions {
install?: boolean;
path?: string;
folder?: string;
}
export type FileEncoding = 'utf-8';
export interface ProcessingStats {
filesProcessed: number;
filesUpdated: number;
errors: string[];
}
//# sourceMappingURL=types.d.ts.map