Merge pull request #7040 from jocull/master

Commit / Rollback on Transaction interface should return promise
This commit is contained in:
Masahiro Wakame
2015-12-10 22:47:37 +09:00
+7 -2
View File
@@ -3949,6 +3949,11 @@ declare module "sequelize" {
* We don't have a definition for the QueryGenerator, because I doubt it is commonly in use separately.
*/
QueryGenerator: any;
/**
* Returns the current sequelize instance.
*/
sequelize: Sequelize;
/**
* Queries the schema (table list).
@@ -5706,12 +5711,12 @@ declare module "sequelize" {
/**
* Commit the transaction
*/
commit() : Transaction;
commit() : Promise<void>;
/**
* Rollback (abort) the transaction
*/
rollback() : Transaction;
rollback() : Promise<void>;
}