mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
fix transaction callback return type
return bluebird<T> instead of T
This commit is contained in:
Vendored
+1
-1
@@ -17,7 +17,7 @@ interface Bookshelf extends Bookshelf.Events<any> {
|
||||
Collection: typeof Bookshelf.Collection;
|
||||
|
||||
plugin(name: string | string[] | Function, options?: any): Bookshelf;
|
||||
transaction<T>(callback: (transaction: knex.Transaction) => T): BlueBird<T>;
|
||||
transaction<T>(callback: (transaction: knex.Transaction) => BlueBird<T>): BlueBird<T>;
|
||||
}
|
||||
|
||||
declare function Bookshelf(knex: knex): Bookshelf;
|
||||
|
||||
Reference in New Issue
Block a user