diff --git a/types/bookshelf/index.d.ts b/types/bookshelf/index.d.ts index 4bf14bf189..a4ecd2968d 100644 --- a/types/bookshelf/index.d.ts +++ b/types/bookshelf/index.d.ts @@ -90,7 +90,7 @@ declare namespace Bookshelf { class Model> extends ModelBase { static collection>(models?: T[], options?: CollectionOptions): Collection; - static count(column?: string, options?: SyncOptions): BlueBird; + static count(column?: string, options?: SyncOptions): BlueBird; /** @deprecated use Typescript classes */ static extend>(prototypeProperties?: any, classProperties?: any): Function; // should return a type static fetchAll>(): BlueBird>; @@ -101,7 +101,7 @@ declare namespace Bookshelf { belongsTo>(target: { new (...args: any[]): R }, foreignKey?: string, foreignKeyTarget?: string): R; belongsToMany>(target: { new (...args: any[]): R }, table?: string, foreignKey?: string, otherKey?: string, foreignKeyTarget?: string, otherKeyTarget?: string): Collection; - count(column?: string, options?: SyncOptions): BlueBird; + count(column?: string, options?: SyncOptions): BlueBird; destroy(options?: DestroyOptions): BlueBird; fetch(options?: FetchOptions): BlueBird; fetchAll(options?: FetchAllOptions): BlueBird>; @@ -244,7 +244,7 @@ declare namespace Bookshelf { static forge(attributes?: any, options?: ModelOptions): T; attach(ids: any | any[], options?: SyncOptions): BlueBird>; - count(column?: string, options?: SyncOptions): BlueBird; + count(column?: string, options?: SyncOptions): BlueBird; create(model: { [key: string]: any }, options?: CollectionCreateOptions): BlueBird; detach(ids: any[], options?: SyncOptions): BlueBird; detach(options?: SyncOptions): BlueBird; diff --git a/types/bookshelf/package.json b/types/bookshelf/package.json index 7bd76f13f8..6c3b8365ac 100644 --- a/types/bookshelf/package.json +++ b/types/bookshelf/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "knex": "^0.16.1" + "knex": "^0.17.0" } }