use crate::MigrateAction;

/// Migration function: (key, value) -> MigrateAction<T>
pub type TypedMigrationFn<K, T> = fn(&K, &T) -> MigrateAction<T>;

/// (from_version, migration_fn)
pub type TypedMigration<K, T> = (u16, TypedMigrationFn<K, T>);
