mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #7040 from jocull/master
Commit / Rollback on Transaction interface should return promise
This commit is contained in:
Vendored
+7
-2
@@ -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>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user