diff --git a/umzug/umzug.d.ts b/umzug/umzug.d.ts index 82b66c6be..47cfe595f 100644 --- a/umzug/umzug.d.ts +++ b/umzug/umzug.d.ts @@ -146,36 +146,41 @@ declare module "umzug" { } + interface Migration { + path: string; + file: string; + } + interface Umzug { /** * The execute method is a general purpose function that runs for * every specified migrations the respective function. */ - execute(options? : ExecuteOptions) : Promise>; + execute(options? : ExecuteOptions) : Promise; /** * You can get a list of pending/not yet executed migrations like this: */ - pending() : Promise>; + pending() : Promise; /** * You can get a list of already executed migrations like this: */ - executed() : Promise>; + executed() : Promise; /** * The up method can be used to execute all pending migrations. */ - up(migration?: string) : Promise; - up(migrations?: Array) : Promise>; - up(options?: UpDownToOptions | UpDownMigrationsOptions ) : Promise>; + up(migration?: string) : Promise; + up(migrations?: string[]) : Promise; + up(options?: UpDownToOptions | UpDownMigrationsOptions ) : Promise; /** * The down method can be used to revert the last executed migration. */ - down(migration?: string) : Promise; - down(migrations?: Array) : Promise>; - down(options?: UpDownToOptions | UpDownMigrationsOptions ) : Promise>; + down(migration?: string) : Promise; + down(migrations?: string[]) : Promise; + down(options?: UpDownToOptions | UpDownMigrationsOptions ) : Promise; }