mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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:
parent
00a3593da3
commit
c848c5a881
8
types/umzug/index.d.ts
vendored
8
types/umzug/index.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user