UNPKG

refakts

Version:

TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.

20 lines 802 B
import { RefactoringCommand, CommandOptions } from '../command'; export declare class InlineVariableCommand implements RefactoringCommand { readonly name = "inline-variable"; readonly description = "Replace variable usage with its value"; readonly complete = true; private astService; private declarationFinder; private expressionAnalyzer; private variableReplacer; execute(file: string, options: CommandOptions): Promise<void>; private findTargetNode; validateOptions(options: CommandOptions): void; getHelpText(): string; private performInlineVariable; private validateIdentifierNode; private getInitializerText; private getDestructuringInitializer; private getRegularInitializer; } //# sourceMappingURL=inline-variable-command.d.ts.map