@tastekim/chat-cli
Version:
💬Connect with developers worldwide through an interactive terminal chat experience while you code!💻
17 lines (16 loc) • 634 B
TypeScript
export interface VersionInfo {
current: string;
latest: string;
needsUpdate: boolean;
}
export declare class VersionChecker {
private packageName;
private currentVersion;
constructor(packageName: string, currentVersion: string);
checkLatestVersion(): Promise<VersionInfo>;
private fetchLatestVersion;
private compareVersions;
static displayForceUpdateMessage(versionInfo: VersionInfo, packageName: string): void;
static checkAndForceUpdate(packageName: string, currentVersion: string): Promise<void>;
static checkAndNotify(packageName: string, currentVersion: string): Promise<void>;
}