Skip to content

Commit 71fd863

Browse files
author
Aaron Greene
authored
Fix type definition for getMigration in MigrationSource (knex#4998)
1 parent a31129b commit 71fd863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,7 @@ export declare namespace Knex {
26622662
interface MigrationSource<TMigrationSpec> {
26632663
getMigrations(loadExtensions: readonly string[]): Promise<TMigrationSpec[]>;
26642664
getMigrationName(migration: TMigrationSpec): string;
2665-
getMigration(migration: TMigrationSpec): Migration;
2665+
getMigration(migration: TMigrationSpec): Promise<Migration>;
26662666
}
26672667

26682668
interface MigratorConfig {

0 commit comments

Comments
 (0)