UNPKG

695 BTypeScriptView Raw
1import type { MigrationParams } from '../types';
2export type UmzugStorage<Ctx = unknown> = {
3 /**
4 * Logs migration to be considered as executed.
5 */
6 logMigration: (params: MigrationParams<Ctx>) => Promise<void>;
7 /**
8 * Unlogs migration (makes it to be considered as pending).
9 */
10 unlogMigration: (params: MigrationParams<Ctx>) => Promise<void>;
11 /**
12 * Gets list of executed migrations.
13 */
14 executed: (meta: Pick<MigrationParams<Ctx>, 'context'>) => Promise<string[]>;
15};
16export declare function isUmzugStorage(arg: Partial<UmzugStorage>): arg is UmzugStorage;
17export declare const verifyUmzugStorage: (arg: Partial<UmzugStorage>) => UmzugStorage;