mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
[umzug] fix: support array of migrations as input (#41878)
* fix: support array of migrations as input * fix: add missing methods to Migration interface * fix: remove unnecessary props * fix: add file prop to Migration
This commit is contained in:
Vendored
+6
-2
@@ -174,7 +174,7 @@ declare namespace umzug {
|
||||
/**
|
||||
* Options for defined migration
|
||||
*/
|
||||
migrations?: MigrationOptions;
|
||||
migrations?: MigrationOptions | Migration[];
|
||||
|
||||
}
|
||||
|
||||
@@ -211,8 +211,12 @@ declare namespace umzug {
|
||||
}
|
||||
|
||||
interface Migration {
|
||||
path: string;
|
||||
file: string;
|
||||
|
||||
migration(): Promise<any>;
|
||||
up(): Promise<any>;
|
||||
down(): Promise<any>;
|
||||
testFileName(needle:string): boolean;
|
||||
}
|
||||
|
||||
interface Umzug extends EventEmitter {
|
||||
|
||||
Reference in New Issue
Block a user