mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #15166 from NomiBernard/master
Fix Bookshelf transaction callback return type
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