Skip to content

Commit

Permalink
Update bookshelf.d.ts (DefinitelyTyped#9101)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjoseph08 authored and vvakame committed Apr 25, 2016
1 parent 1f17720 commit 869bd9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bookshelf/bookshelf-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down
2 changes: 1 addition & 1 deletion bookshelf/bookshelf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}

Expand Down

0 comments on commit 869bd9c

Please sign in to comment.