Skip to content

Commit

Permalink
Adjust typing for forUpdate()/forShare() variant with table names (#2858
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sgoll authored and tgriesser committed Oct 14, 2018
1 parent e527fae commit cdccb12
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types/knex.d.ts
Expand Up @@ -457,8 +457,11 @@ declare namespace Knex {
//TODO: Promise?
columnInfo(column?: string): Bluebird<ColumnInfo>;

forUpdate(): QueryBuilder;
forShare(): QueryBuilder;
forUpdate(...tableNames: string[]): QueryBuilder;
forUpdate(tableNames: string[]): QueryBuilder;

forShare(...tableNames: string[]): QueryBuilder;
forShare(tableNames: string[]): QueryBuilder;

toSQL(): Sql;

Expand Down

0 comments on commit cdccb12

Please sign in to comment.