Merge pull request #8567 from shantanuraj/master

Mark options param in destroy as optional
This commit is contained in:
Masahiro Wakame
2016-03-16 01:52:57 +09:00
+1 -1
View File
@@ -88,7 +88,7 @@ declare module 'bookshelf' {
belongsTo<R extends Model<any>>(target : {new(...args : any[]) : R}, foreignKey? : string) : R;
belongsToMany<R extends Model<any>>(target : {new(...args : any[]) : R}, table? : string, foreignKey? : string, otherKey? : string) : Collection<R>;
count(column? : string, options? : SyncOptions) : Promise<number>;
destroy(options : SyncOptions) : Promise<T>;
destroy(options? : SyncOptions) : Promise<T>;
fetch(options? : FetchOptions) : Promise<T>;
fetchAll(options? : FetchAllOptions) : Promise<Collection<T>>;
hasMany<R extends Model<any>>(target : {new(...args : any[]) : R}, foreignKey? : string) : Collection<R>;