From 5199b9a75992db9c9779f1d6de80255e17472d71 Mon Sep 17 00:00:00 2001 From: ShaySEY Date: Mon, 29 Feb 2016 22:40:45 +0200 Subject: [PATCH] Update bookshelf.d.ts The destroy signature method is not compatible with the bookshelf.js library. It should return a Promise - destroy is async method. --- bookshelf/bookshelf.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookshelf/bookshelf.d.ts b/bookshelf/bookshelf.d.ts index 5d91927dbc..1532085847 100644 --- a/bookshelf/bookshelf.d.ts +++ b/bookshelf/bookshelf.d.ts @@ -88,7 +88,7 @@ declare module 'bookshelf' { belongsTo>(target : {new(...args : any[]) : R}, foreignKey? : string) : R; belongsToMany>(target : {new(...args : any[]) : R}, table? : string, foreignKey? : string, otherKey? : string) : Collection; count(column? : string, options? : SyncOptions) : Promise; - destroy(options : SyncOptions) : void; + destroy(options : SyncOptions) : Promise; fetch(options? : FetchOptions) : Promise; fetchAll(options? : FetchAllOptions) : Promise>; hasMany>(target : {new(...args : any[]) : R}, foreignKey? : string) : Collection;