Update bookshelf.d.ts (#9101)

This commit is contained in:
Robin Joseph
2016-04-26 00:41:51 +09:00
committed by Masahiro Wakame
parent 1f17720f56
commit 869bd9c489
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -15,6 +15,9 @@ var knex = Knex({
var bookshelf = Bookshelf(knex);
bookshelf.plugin('registry');
bookshelf.plugin(['virtuals']);
class User extends bookshelf.Model<User> {
get tableName() { return 'users'; }
messages() : Bookshelf.Collection<Posts> {
+1 -1
View File
@@ -18,7 +18,7 @@ declare module 'bookshelf' {
Model : typeof Bookshelf.Model;
Collection : typeof Bookshelf.Collection;
plugin(name: string) : Bookshelf;
plugin(name: string | string[] | Function, options?: any) : Bookshelf;
transaction<T>(callback : (transaction : knex.Transaction) => T) : Promise<T>;
}