patch-pulse
Version:
Check for outdated npm dependencies
21 lines • 790 B
TypeScript
import { type PatchPulseConfig } from '../../services/config';
import { type DependencyInfo } from '../../types';
type UpdateType = 'patch' | 'minor' | 'all';
interface UpdateOption {
packageName: string;
latestVersion: string;
}
export interface UpdateOptions {
patch: UpdateOption[];
minor: UpdateOption[];
all: UpdateOption[];
}
/**
* Displays the interactive update prompt after the summary
* @param dependencies - Array of outdated dependencies
* @param config - The configuration object
* @returns Promise that resolves with the selected update type or null if cancelled
*/
export declare function displayUpdatePrompt(dependencies: DependencyInfo[], config?: PatchPulseConfig): Promise<UpdateType | null>;
export {};
//# sourceMappingURL=updatePrompt.d.ts.map