From a4c90beffc567638eb87752c376c25ab2152e653 Mon Sep 17 00:00:00 2001 From: Oleksandr Podoprygora Date: Wed, 20 Jan 2016 22:54:21 +0200 Subject: [PATCH 1/2] methods of Umzug class return Promise instead of Promise or Promise at least for Umzug 1.8.0 --- umzug/umzug.d.ts | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) 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; } From 5fe89fb639d8d7f772aaac09882b7c1269fe3820 Mon Sep 17 00:00:00 2001 From: Oleksandr Podoprygora Date: Thu, 21 Jan 2016 04:45:02 +0200 Subject: [PATCH 2/2] updating version: Umzug v1.8.0 --- umzug/umzug.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umzug/umzug.d.ts b/umzug/umzug.d.ts index 47cfe595f..b09aae88c 100644 --- a/umzug/umzug.d.ts +++ b/umzug/umzug.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Umzug v1.7.0 +// Type definitions for Umzug v1.8.0 // Project: https://github.com/sequelize/umzug // Definitions by: Ivan Drinchev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped