Skip to content

Commit

Permalink
Fix type definition for getMigration in MigrationSource (#4998)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Greene committed Feb 3, 2022
1 parent a31129b commit 71fd863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ export declare namespace Knex {
interface MigrationSource<TMigrationSpec> {
getMigrations(loadExtensions: readonly string[]): Promise<TMigrationSpec[]>;
getMigrationName(migration: TMigrationSpec): string;
getMigration(migration: TMigrationSpec): Migration;
getMigration(migration: TMigrationSpec): Promise<Migration>;
}

interface MigratorConfig {
Expand Down

0 comments on commit 71fd863

Please sign in to comment.