Merge pull request #7544 from tuhoojabotti/patch-1

Add static plugin method to definitions.
This commit is contained in:
Masahiro Wakame
2016-01-22 18:09:28 +09:00
+1
View File
@@ -18,6 +18,7 @@ declare module 'bookshelf' {
Model : typeof Bookshelf.Model;
Collection : typeof Bookshelf.Collection;
plugin(name: string) : Bookshelf;
transaction<T>(callback : (transaction : knex.Transaction) => T) : Promise<T>;
}