feedbacker-react
Version:
A drop-in React feedback system for component-level feedback capture during development and design review
28 lines • 858 B
TypeScript
/**
* Data migration utilities for handling version changes in stored data
*/
import { FeedbackStore } from './StorageManager';
export interface MigrationResult {
success: boolean;
data?: FeedbackStore;
error?: string;
}
/**
* Main migration function that handles data migration between versions
*/
export declare function migrateData(oldData: any, targetVersion: string): Promise<FeedbackStore | null>;
/**
* Check if migration is needed
*/
export declare function needsMigration(data: any, currentVersion: string): boolean;
/**
* Get migration info for a given data structure
*/
export declare function getMigrationInfo(data: any, currentVersion: string): {
hasData: boolean;
sourceVersion: any;
targetVersion: string;
needsMigration: boolean;
migrationAvailable: boolean;
};
//# sourceMappingURL=migrations.d.ts.map