/** * Error Callback helper interface, processes errors thrown during migration history comparison. */ export interface CompareMigrationHashesErrorCallback { (message: string, mismatchedRecords?: MigrationRecord[]): void; } /** * Interface containing all relevant properties of migration. */ export interface MigrationRecord { filename: string; fullFilename: string | null; previousHash: string | null; hash: string | null; source: 'database' | 'file'; }