mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Update bookshelf.d.ts (#9101)
This commit is contained in:
committed by
Masahiro Wakame
parent
1f17720f56
commit
869bd9c489
@@ -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> {
|
||||
|
||||
Vendored
+1
-1
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user